lm-sys / lm-sys/FastChat

【微调模型调用有问题】Using a fine-tuned model for a Q&A with the output in English was not the answer I was looking for

Open
#3,197 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
39.5k
Forks
4.8k
PR merge metrics
No merged PRs in 30d

Description

I use the following code to create the API interface

`
python -m fastchat.serve.controller
python -m fastchat.serve.model_worker --model-path C:\models\Qwen1.5-0.5B-Chat
python -m fastchat.serve.openai_api_server --host 0.0.0.0 --port 8000
`
I get normal answers
![qwen-fastchat问答](https://github.com/lm-sys/FastChat/assets/15905436/c6bd302f-16fd-4c7c-859d-64cbf331932f)
But I used the fine-tuning model for the conversation, and I didn't get the results I wanted,
![微调模型对话结果](https://github.com/lm-sys/FastChat/assets/15905436/302751b9-97f7-4993-99d2-d318e5fd51b6)

我使用API去对话,基准模型返回正常,但是微调模型返回不是我期望的
微调模型其他方式使用正常
![1](https://github.com/lm-sys/FastChat/assets/15905436/b8bf25d7-4708-4453-bed3-686db632a359)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the three FastChat commands in the issue and compare the base-model and fine-tuned-model runs through the API. Inspect the model-worker and OpenAI API serving entry points, then reproduce the differing responses and determine what expected answer the fine-tuned model should return. Done means the fine-tuned model produces the expected Q&A result through this API path.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend, machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.