要在具体用加载模型代码的文件里面加上import os
os.environ["CUDA_VISIBLE_DEVICES"] = "1"才有效果
posted on 2021-09-09 15:23 cltt 阅读(25) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2025 cltt Powered by .NET 9.0 on Kubernetes