Skip to content

[BUG]: /bin/bash: line 0: export: `NPU-VISIBLE-DEVICES=0,1,2,3,4,5,6,7': not a valid identifier #6217

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

Open
2 tasks done
Gera001 opened this issue Feb 24, 2025 · 2 comments
Open
2 tasks done
Labels
bug Something isn't working

Comments

@Gera001
Copy link

Gera001 commented Feb 24, 2025

Is there an existing issue for this bug?

  • I have searched the existing issues

The bug has not been fixed in the latest main branch

  • I have checked the latest main branch

Do you feel comfortable sharing a concise (minimal) script that reproduces the error? :)

Yes, I will share a minimal reproducible script.

🐛 Describe the bug

运行这个是colossalai run --hostfile hostfile --nproc_per_node 8 lora_finetune.py --pretrained /home/ma-user/work/deepseek_7b/deepseek_7b --dataset lora_sft_data.jsonl --plugin moe --lr 2e-5 --max_length 256 -g --ep 8 --pp 3 --batch_size 24 --lora_rank 8 --lora_alpha 16 --num_epochs 2 --warmup_steps 8 --tensorboard_dir logs --save_dir DeepSeek-R1-bf16-lora遇到/bin/bash: line 0: export: `NPU-VISIBLE-DEVICES=0,1,2,3,4,5,6,7': not a valid identifier是为什么

Environment

No response

@Gera001 Gera001 added the bug Something isn't working label Feb 24, 2025
@ver217
Copy link
Contributor

ver217 commented Feb 24, 2025

NPU-VISIBLE-DEVICES是本地设置的环境变量吗?正确格式应该是NPU_VISIBLE_DEVICES?

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Is NPU-VISIBLE-DEVICES an environment variable set locally? The correct format should be NPU_VISIBLE_DEVICES?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants