Unbabel / COMET

A Neural Framework for MT Evaluation
https://unbabel.github.io/COMET/html/index.html
Apache License 2.0
477 stars 75 forks source link

[QUESTION] how to enable multi-gpu when calling the predict method #223

Open cumtsunzhenxing opened 1 month ago

cumtsunzhenxing commented 1 month ago

The predict method is called by setting gpus=2, but only one gpu is used. model.predict(samples=samples,batch_size=2, gpus=2, devices=2, accelerator="gpu", strategy="ddp")