We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
无法指定gpu,无论在shell中使用CUDA_VISIBLE_DEVICES=1,还是在python中使用os.environ["CUDA_VISIBLE_DEVICES"]=1,都无法让程序只占用1卡,程序永远都会优先占用0卡。
shell中
CUDA_VISIBLE_DEVICES=1 python run.py configs/eval_llama_7b.py -w outputs/llama_7b --gpu_idx=1
python中
parser = argparse.ArgumentParser(description='Run an evaluation task') parser.add_argument('--gpu_idx', type=str, default=None) args = parser.parse_args() os.environ["CUDA_VISIBLE_DEVICES"] = args.gpu_idx
No response
The text was updated successfully, but these errors were encountered:
将opencompass/opencompass/runners/local.py文件(A位置)中的B区域代码注释,并添加A代码,即可。
Sorry, something went wrong.
PR is wlecomed for improving OpenCompass. Thanks in advance.
Successfully merging a pull request may close this issue.
描述该错误
无法指定gpu,无论在shell中使用CUDA_VISIBLE_DEVICES=1,还是在python中使用os.environ["CUDA_VISIBLE_DEVICES"]=1,都无法让程序只占用1卡,程序永远都会优先占用0卡。
环境信息
shell中
CUDA_VISIBLE_DEVICES=1 python run.py configs/eval_llama_7b.py -w outputs/llama_7b --gpu_idx=1
python中
parser = argparse.ArgumentParser(description='Run an evaluation task')
parser.add_argument('--gpu_idx', type=str, default=None)
args = parser.parse_args()
os.environ["CUDA_VISIBLE_DEVICES"] = args.gpu_idx
其他信息
No response
The text was updated successfully, but these errors were encountered: