Skip to content

Add Qwen3 #1835

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

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

Add Qwen3 #1835

wants to merge 3 commits into from

Conversation

bzantium
Copy link
Contributor

@bzantium bzantium commented Jun 14, 2025

Description

Add Qwen3 models.
Basically, the implementation is highly similar to llama2 except qk_norm so I just added use_qk_norm. Also, I added query_pre_attn_scalar which is head_dim ** 0.5 as llama4.

use_qk_norm=cfg.use_qk_norm,
query_pre_attn_scalar=query_pre_attn_scalar,

FIXES: #1834

Checklist

Before submitting this PR, please make sure (put X in square brackets):

  • I have performed a self-review of my code.
  • I have necessary comments in my code, particularly in hard-to-understand areas.
  • I have run end-to-end tests tests and provided workload links above if applicable.
  • I have made or will make corresponding changes to the doc if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

qwen3 model support
1 participant