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

Train a model for a new language #200

Open
boyu9 opened this issue Dec 4, 2024 · 6 comments
Open

Train a model for a new language #200

boyu9 opened this issue Dec 4, 2024 · 6 comments

Comments

@boyu9
Copy link

boyu9 commented Dec 4, 2024

I want to train a new programming language with a model. Without fine-tuning, it is completely impossible to output because it is an internal front-end framework and the open-source model does not have corresponding corpus. Now, I want to fine tune based on Qwen-2.5-Coder-32B and hope that the output component code can comply with the specifications in the internal framework documentation. And implement code writing. May I ask how to use Qwen-2.5-Coder-32B for training, Do we need to pretrain, or just fine tune based on Qwen-2.5-Coder-32B

@cyente
Copy link
Collaborator

cyente commented Dec 5, 2024

https://github.com/QwenLM/Qwen2.5-Coder/tree/main/finetuning

here are our finetuning scripts, you can try.

pretraining or not depends on your demands and resources. We advise you to try first. Hoping to hear your successful implementation on Qwen-Coder :)

@boyu9
Copy link
Author

boyu9 commented Dec 5, 2024

Thank you for your reply. If I want to try fine tune Qwen-Coder, can I do it in two steps? The first step is to learn the basic grammar knowledge of the new language, first do grammar knowledge fine-tuning , and then second do instruction fine-tuning,Could you give me some training suggestions about this .thanks

@CSJianYang
Copy link
Collaborator

You can try the low-quality data in the first stage and high-quality data in the second sft stage. Maybe, it brings more improvement (https://arxiv.org/abs/2412.05210).

@boyu9
Copy link
Author

boyu9 commented Dec 11, 2024

Okay, thank you for your suggestion. I also have a question to ask. Should we use full parameter fine-tuning or based on Lora fine-tuning? Currently, GPU resources are not very sufficient, and I plan to use Lora fine-tuning. I'm not sure about the performance.

@cyente
Copy link
Collaborator

cyente commented Dec 16, 2024

both way is ok, i am not sure too :(

waiting for your feedback~

@boyu9
Copy link
Author

boyu9 commented Dec 16, 2024

OK,Thank you. If I do pre-training, is SFT's finetune script suitable for pre-training? I see that the source code only provides the finetune script. Can this script be used for pre-training?

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

3 participants