Skip to content

llama: support Qwen3 - #12501

Closed
CISC wants to merge 3 commits into
ggml-org:masterfrom
CISC:qwen3
Closed

CISC wants to merge 3 commits into
ggml-org:masterfrom
CISC:qwen3

Conversation

@CISC

@CISC CISC commented Mar 21, 2025 •

Copy link
Copy Markdown
Member

Initial draft based on huggingface/transformers#36878

In case models are released before I can have a look at them this weekend:

TODO

  • Set type for all layer sizes in llama_model::load_hparams
  • Test conversion and inference on all models

@github-actions github-actions Bot added the python python script changes label Mar 21, 2025
@x0wllaar

Copy link
Copy Markdown

Are you planning to add MoE support?

@CISC

CISC commented Mar 21, 2025

Copy link
Copy Markdown
Member Author

Are you planning to add MoE support?

I'm focusing on non-MoE for now, so if someone wants to work on Qwen3MoE in the mean time they are more than welcome to. :)

@x0wllaar

Copy link
Copy Markdown

Thank you! I not sure I'm up to the task though lol

@ngxson

ngxson commented Mar 21, 2025

Copy link
Copy Markdown
Collaborator

I had a look at the quen3 MoE python code, it's not much difference from qwen2 MoE. Diff are:

  • Shared experts are removed
  • Added k_norm and q_norm (similar to qwen3 dense)

@CISC

CISC commented Mar 21, 2025

Copy link
Copy Markdown
Member Author

I had a look at the quen3 MoE python code, it's not much difference from qwen2 MoE.

That was my initial impression too, I can have a stab at it if no-one else volunteers, just didn't want to bite off too much at once (esp. given the flustercuck 57B-A14B was). :)

@CISC

CISC commented Apr 8, 2025

Copy link
Copy Markdown
Member Author

Superseded by #12828

@CISC CISC closed this Apr 8, 2025
@CISC
CISC deleted the qwen3 branch April 8, 2025 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python python script changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants