Closed GuyAglionby closed 7 months ago
Usually, you can point which physical GPU id to use with the CUDA_VISIBLE_DEVICES
flag.
Could you please try CUDA_VISIBLE_DEVICES=1
and gpus=[0]
? For example,
CUDA_VISIBLE_DEVICES=1 python script/run.py -c config/transductive/inference.yaml --dataset CoDExSmall --epochs 0 --bpe null --gpus [0] --ckpt /my/path/to/ckpts/ultra_4g.pth
works for me - on a machine with 2 GPUs, the 2nd one is used
Thanks for the quick reply! That works as expected, and is indeed how I'd normally do it -- was trying to fix a bug on a fork and came across this. (The bug is my doing, not ULTRA's)
Happy to close this and the PR if it's out of scope
Yes, let's close them, those aren't really the repo issues but rather the standard CUDA setup params
There's an error if you set the
--gpus
flag to use only one GPU, and that GPU is not index 0.Replication steps:
Setup
Command (here I'm only running evaluation, but the same error also occurs if epochs >= 1)
Logs: