-
Notifications
You must be signed in to change notification settings - Fork 939
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
How can I debug on vscode #400
Comments
Just create a launch.json that looks like below.
|
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
Hi @yuxinyuan , how can I specify other args after train.py. Could you give me an example? Shoud it be like |
It should be sth like "args": ["train.py", "--flag1", "--arg1=hello"] |
I'm trying to figure out how to debug processes pdsh kicks off on my second node (see #1114) with vs code or pdb, anything really. Anyone have any advice? |
this is from the url: https://huggingface.co/docs/accelerate/usage_guides/megatron_lm, accelerate launch --config_file megatron_gpt_config.yaml |
|
Hi, could you also explain how to specify arguments of accelerate launch, like --gpu_ids, please? (In other words, is it possible to configure a launch.json file representing CLI commands like |
I think for those args they'd come before main.py -- perhaps you can try the following and see if it works?
|
Yes, it works. Thank you! |
None of above |
Make sure to specify the GPUs and be careful with the file name path with respect to the .vscode folder. Something like below should work hopefully:
|
I still encounter the ModuleNotFoundError, /home/user/miniconda3/envs/ziplora/bin/python: Error while finding module specification for 'accelerate.command.launch' (ModuleNotFoundError: No module named 'accelerate.command') { |
This should be commands, not command
|
what if I have this in my original shellscript, |
checkout my example above where you can see for instance |
Same issue, when I try to debug accelerate, the code accelerator = Accelerator() hangs, any solution to this? |
I am a new user of accelerate. How should I configure VSCode in order to debug a program with accelerate? (E.g. accelerate launch train.py)
The text was updated successfully, but these errors were encountered: