How to run srl with GPU

from allennlp.predictors.predictor import Predictor
predictor = Predictor.from_path("")
  sentence="Did Uriah honestly think he could beat the game in under three hours?"

The model is running with cpu defaultyly,how to run it using GPU?

Hi @jroy, just use the cuda_device argument. See Typically, you’ll use index 0.