Skip to content
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

internlm-xcomposer2_5-7b fine-tuning with multiple gpus reports an error "all tensors to be on the same device" #1335

Closed
thonglv21 opened this issue Jul 9, 2024 · 1 comment · Fixed by #1343

Comments

@thonglv21
Copy link

CUDA_VISIBLE_DEVICES=0,1 swift sft --model_type internlm-xcomposer2_5-7b-chat --dataset myData.jsonl

Expected all tensors to be on the same device, but found at least two devices

Looking forward to your answer!

@Jintao-Huang
Copy link
Collaborator

NPROC_PER_NODE=2 CUDA_VISIBLE_DEVICES=0,1 swift sft --model_type internlm-xcomposer2_5-7b-chat --dataset myData.jsonl --deepspeed default-zero2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants