-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Fix Qwen3OmniMoe Talker weight loading and config initialization #43084
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3042,9 +3042,9 @@ def get_input_embeddings(self): | |
|
|
||
| @auto_docstring | ||
| class Qwen3OmniMoeTalkerForConditionalGeneration(Qwen3OmniMoeThinkerTextPreTrainedModel, GenerationMixin): | ||
| _tied_weights_keys = {"lm_head.weight": "model.embed_tokens.weight"} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe the correct way is
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you very much @zucchini-nlp ! Fixed. |
||
| _tp_plan = {"lm_head": "colwise_rep"} | ||
| _pp_plan = {"lm_head": (["hidden_states"], ["logits"])} | ||
| _tied_weights_keys = {"codec_head": "model.codec_embedding.weight"} | ||
| _tp_plan = {"codec_head": "colwise_rep"} | ||
| _pp_plan = {"codec_head": (["hidden_states"], ["logits"])} | ||
| config_class = Qwen3OmniMoeTalkerConfig | ||
| base_model_prefix = "talker" | ||
| _no_split_modules = ["Qwen3OmniMoeTalkerCodePredictorModelForConditionalGeneration"] | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since we're using text config's init range in any case, we can instead update
init_weightsto useconfig.get_text_config().init_range