lm-sys / lm-sys/FastChat

--conv-template parameter has no effect。

Open
#2,897 1 comment 2 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 am using the qwen 72B model, and the specified --conv-template does not take effect. If the stop parameter is not specified when calling, the conversation will never end.

启动命令
```
CUDA_VISIBLE_DEVICES=2,3 nohup python -m fastchat.serve.vllm_worker --conv-template qwen-7b-chat --model-path ./finetune_all_weight/checkpoint-6 --trust-remote-code --tensor-parallel-size 2 --dtype bfloat16 --model-names Qwen-72B-ft --gpu-memory-utilization 1 --port 31002 --worker-address http://localhost:31002 > nohup.out.Qwen-72B-ft &
```

调用代码
```
content = 'xxx'
client = OpenAI(
api_key=openai.api_key,
base_url=openai.base_url,
)

chat_response = client.chat.completions.create(
model=model_name,
messages=messages + [
{"role": "user", "content": content},
],
**# stop=['<|im_end|>']**
)
print("Chat response:", chat_response)
content = chat_response.choices[0].message.content
return content
```

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 at the fastchat.serve.vllm_worker entry point and reproduce the Qwen-72B-ft launch command with --conv-template qwen-7b-chat. Trace how that option reaches the chat completion call and verify whether the selected template is applied; done means the conversation ends correctly without requiring an explicit stop parameter.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.