8000 support qwen3 /think & /no_think & enable_thinking parameter by BUJIDAOVS · Pull Request #3564 · InternLM/lmdeploy · GitHub
[go: up one dir, main page]

Skip to content

support qwen3 /think & /no_think & enable_thinking parameter #3564

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 cl 8000 icking “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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

BUJIDAOVS
Copy link
  1. Add support for parsing the "/think" and "/no_think" commands, with "/no_think" mode as the default.
  2. When the model does not be told to think, add "\n\n\n\n" to the prompt to skip thinking.
  3. Support for the qwen3 model to set the thinking mode through the "enable_thinking" parameter or the "/think" command in chat_completions_v1 api.

Related issues: [https://github.com//issues/3511]

8000
@BUJIDAOVS BUJIDAOVS changed the title surpport qwen3 /think & /no_think & enable_thinking parameter support qwen3 /think & /no_think & enable_thinking parameter May 15, 2025
@lvhan028
Copy link
Collaborator

Hi, @BUJIDAOVS
Thank you very much for the contribution to LMDeploy.
There is some linting error. Please kindly fix it as follows:

pip install pre-commit==3.8.0  # make sure the python version < 3.11
cd lmdeploy # the root directory of lmdeploy repo
pre-commit install
pre-commit run --all-files

@lvhan028 lvhan028 self-requested a review May 16, 2025 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0