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

Script about finetuning #25

Open
Chrisliu89 opened this issue Mar 30, 2025 · 1 comment
Open

Script about finetuning #25

Chrisliu89 opened this issue Mar 30, 2025 · 1 comment

Comments

@Chrisliu89
Copy link

I tried the train-gen script, but it gave an error. After I changed all "module" to "modules", it showed a new error. Could you please check your code again? I really want to run it successfully. I would be very grateful if you could.

Image

Image

@ElectricAlexis
Copy link
Owner

Hi, I guess that you might use multiple GPUs for fine-tuning.
If you are using multiple GPUs, please have a try on this command: accelerate launch --multi_gpu --mixed_precision fp16 train-gen.py
If you only use one GPU, simply denote the GPU when running the script: CUDA_VISIBLE_DEVICES=0 python train_gen.py
I hope this solves your problem. 😄

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