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

The Code Reviewer fine-tuning script freezes on multiprocessor functions on Windows. #302

Open
AndreyMoskalev565 opened this issue Nov 4, 2023 · 2 comments

Comments

@AndreyMoskalev565
Copy link

Hi! I'm trying to reproduce the fine tuning of CodeReviewer using a script finetune-ref.sh on Windows 11. However, when executing the multiprocessing.Pool(...).map function or iterating over torch.utils.data.DataLoader script freezes hopelessly.

It is important to note that in order to solve other problems, I have made the following changes to the code:

finetune-ref.sh:

"python -m torch.distributed.launch ..." replaced by "torchrun..."

run_finetune_ref.py:

"nccl" replaced by "gloo"

Could you help solve this problem?

@chrfwow
Copy link

chrfwow commented Nov 15, 2023

I had the same problem and I think I got it to work by specifying the exact path to the model (something like C:/Users/User/.cache/huggingface/hub/models--microsoft--codereviewer/snapshots/094a...) for the --model_name_or_path argument. However, I did run into another problem immediately afterwards, which I have not solved yet.

@AndreyMoskalev565
Copy link
Author

False alarm. It turned out that the hang occurs only during debugging :)

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

No branches or pull requests

2 participants