Skip to content

[Feature] support qwen3 and qwen3-moe for pytorch engine - #3315

Merged
lvhan028 merged 5 commits into
InternLM:devfrom
CUHKSZzxy:zxy/support_qwen3
Mar 25, 2025
Merged

lvhan028 merged 5 commits into
InternLM:devfrom
CUHKSZzxy:zxy/support_qwen3

Conversation

@CUHKSZzxy

Copy link
Copy Markdown
Collaborator

Qwen3 and Qwen3-MOE as shown in huggingface/transformers#36878
It might require further refinements. Documentations will be added once Qwen3 is officially released.

@lvhan028
lvhan028 requested a review from grimoire March 24, 2025 09:39
@CUHKSZzxy
CUHKSZzxy changed the base branch from main to dev March 24, 2025 09:39
@lvhan028 lvhan028 added the enhancement New feature or request label Mar 24, 2025
@CUHKSZzxy
CUHKSZzxy changed the base branch from dev to main March 24, 2025 09:40
@CUHKSZzxy
CUHKSZzxy changed the base branch from main to dev March 24, 2025 10:10
@lvhan028

Copy link
Copy Markdown
Collaborator

May fix linting errors as following

pip install pre-commit==3.8.0
cd lmdeploy # the root directory of lmdeploy repo
pre-commit install
per-commit run --all-files

Comment thread lmdeploy/pytorch/models/qwen3_moe.py Resolved
Comment thread lmdeploy/pytorch/models/qwen3.py Resolved
@lvhan028
lvhan028 merged commit 213faf2 into InternLM:dev Mar 25, 2025
@CUHKSZzxy
CUHKSZzxy deleted the zxy/support_qwen3 branch April 1, 2025 04:02
oliveagle pushed a commit to oliveagle/lmdeploy that referenced this pull request May 22, 2026
* support qwen3 and qwen3-moe for pytorch engine

* fix lint

* fix q k norm tp, fix errors caused by rebase

* fix lint

* fix tp, all reduce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants