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

REF: Use chat_template for LLM instead of prompt_style #2193

Merged
merged 15 commits into from
Sep 5, 2024

Conversation

ChengjieLi28
Copy link
Contributor

@ChengjieLi28 ChengjieLi28 commented Aug 29, 2024

  1. Remove all the prompt_style related codes
  2. Use messages instead of prompt, system_prompt and chat_history. which is compatible with OpenAI API.
  3. Remove qwen-chat tool call function.
  4. Remove qwen react tool call. Use normal tool call instead. See 工具调用chat_template格式咨询 QwenLM/Qwen2.5#805
  5. Now register function is recommanded for registering the LLM models with generate and chat abilities that not in the builtin list.
  6. Registering models for tool call and vision models must be the builtin model families.
  7. Fix: the last one of streaming results of LLM is not match the OpenAI format.
  8. Fixes 自定义模型 xuanyuan-6b 模型,模型推理时无法正确停止。 #1940
  9. TODO: web UI
  10. TODO: doc

@XprobeBot XprobeBot added this to the v0.14 milestone Aug 29, 2024
@ChengjieLi28 ChengjieLi28 force-pushed the ref/register branch 2 times, most recently from 139e5e4 to 72c4633 Compare September 2, 2024 07:13
@XprobeBot XprobeBot modified the milestones: v0.14, v0.15 Sep 3, 2024
@ChengjieLi28 ChengjieLi28 marked this pull request as ready for review September 5, 2024 04:31
Copy link
Contributor

@qinxuye qinxuye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@qinxuye qinxuye merged commit 6d87bca into xorbitsai:main Sep 5, 2024
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

自定义模型 xuanyuan-6b 模型,模型推理时无法正确停止。
4 participants