Closed nikhilajoshy closed 1 year ago
How to modify this line to run the model on GPU? model = TransformersQG('lmqg/t5-base-squad-qag')
Hi, it will be running on available gpus as a default. If you want to run it on a specific gpu, you need to specify it beforehand eg. export CUDA_VISIBLE_DEVICES=0.
How to modify this line to run the model on GPU? model = TransformersQG('lmqg/t5-base-squad-qag')