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

Finetuning with LLaMA-Efficient-Tuning and deploying with fastchat, but get poor result #2407

Open
myj951 opened this issue Sep 12, 2023 · 4 comments

Comments

@myj951
Copy link

myj951 commented Sep 12, 2023

I have fine-tuned the Baichuan2 model using another framework and deployed it using fastchat. However, I encountered the following issue: the accuracy on fastchat decreased. Here is the deployment code I used:

python3 -m fastchat.serve.cli --model-path /backup/baichuan/912/baichuan2-fintuned-50b
I would like to know which parameters I should modify to solve this problem and I would appreciate guidance on parameter selection if possible. If it is not possible to solve this issue, does it mean that I can only achieve the same results by fine-tuning and deploying within the fastchat framework?

The fine-tuning project I used is available at:
https://github.com/hiyouga/LLaMA-Efficient-Tuning/blob/main/README_zh.md
By using the local deployment demo provided by this project, I obtained consistent results (overfitting with 99%+ accuracy on the training set, and good generated outputs when deploying the model).

@ye7love7
Copy link

I tried to deploy baichuan2-13b-chat by fastchat, but the performance is very different from that of normal deployment. I don't know why the performance is lost,is this same to you?

@myj951
Copy link
Author

myj951 commented Sep 12, 2023

I tried to deploy baichuan2-13b-chat by fastchat, but the performance is very different from that of normal deployment. I don't know why the performance is lost,is this same to you?

Yes,that's my question. I tried both baichuan and baichuan2 and this problem occurred. I wonder if this is due to the difference in default parameters between the training project and the deployment project.

@Betai18n
Copy link

Because baichuan2 use new template with <reserved_106> and <reserved_107>, and I find fastchat add support for baichuan2 models just now. #2408

@ye7love7
Copy link

ye7love7 commented Sep 13, 2023 via email

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