-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
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
在昇腾上,运行 GRPO 报错:AssertionError: Torch not compiled with CUDA enabled #3594
Comments
fixed |
swift版本是3.2.2嘛 |
是的 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
在昇腾上,运行 GRPO 报错:AssertionError: Torch not compiled with CUDA enabled
Your hardware and system info
NPU DRIVER 24.1.0.3
CANN 8.1.RC1
torch 2.5.1
torch-npu 2.5.1.dev20250228
vllm 0.7.3+empty
vllm_ascend 0.7.3rc1
ms_swift 3.2.1
Additional context
文件 swift/llm/infer/infer_engine/utils.py
函数 restore_torch_device_after_vllm_init 里,存在硬编码的 torch.cuda 导致的。我改成 torch.npu 后,可以正常在昇腾卡上运行
The text was updated successfully, but these errors were encountered: