#1061 在训练环境中设置环境变量

Closed
created 11 months ago by catlinzz · 3 comments
<!-- 为了更有效地识别与解决您的问题,请尽可能的补充如下信息 --> ### 问题描述 在训练环境中通过os.environ["CUBLAS_WORKSPACE_CONFIG"]="4096:8"或是os.system("export ...")方式都失败, 先通过上述方面设置环境变量,后通过os.system("python train.py"), 出现下述提示 you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. ### 相关环境(GPU/NPU) GPU ### 相关集群(启智/智算) 智算 ### 任务类型(调试/训练/推理) 训练 ### 任务名 ### 日志说明或问题截图 you must set an environment variable before running your PyTorch application: CUBLAS_WORKSPACE_CONFIG=:4096:8 or CUBLAS_WORKSPACE_CONFIG=:16:8. ### 期望的解决方案或建议
4.9 KiB
liuzx commented 11 months ago
Collaborator
平台不对设置环境变量做限制,正常都是可生效的,请尝试更换镜像。对于日志中的报错,可参考https://discuss.pytorch.org/t/random-seed-with-external-gpu/102260/19
catlinzz commented 11 months ago
Poster
非常感谢
catlinzz closed this issue 11 months ago
谢谢
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.