Closed linhaojia13 closed 6 months ago
How could I specify the GPU index for the DPO training? I have tried using CUDA_VISIBLE_DEVICES=2,3,4,5 as well as appending localhost: 2,3,4,5 in the command, but none of these methods seem to work.
CUDA_VISIBLE_DEVICES=2,3,4,5
localhost: 2,3,4,5
command
I figure out it. The CUDA_VISIBLE_DEVICES should be set in the begin of file run_dpo.py, just like:
CUDA_VISIBLE_DEVICES
run_dpo.py
import os os.environ["CUDA_VISIBLE_DEVICES"] = "2,3,4,5" import json import logging
How could I specify the GPU index for the DPO training? I have tried using
CUDA_VISIBLE_DEVICES=2,3,4,5
as well as appendinglocalhost: 2,3,4,5
in thecommand
, but none of these methods seem to work.