Skip to content

Add distributed infer for qwen3_vl_moe #730

Open
Blaizzy wants to merge 11 commits intomainfrom
pc/qwen3-moe-dist
Open

Add distributed infer for qwen3_vl_moe #730
Blaizzy wants to merge 11 commits intomainfrom
pc/qwen3-moe-dist

Conversation

@Blaizzy
Copy link
Owner

@Blaizzy Blaizzy commented Feb 13, 2026

No description provided.

@Blaizzy Blaizzy marked this pull request as ready for review February 14, 2026 16:22
Copy link
Contributor

@pcuenca pcuenca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting 18 tps with my changes, on two M3 Ultra over Ethernet.

Blaizzy and others added 4 commits February 20, 2026 01:05
Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
Co-authored-by: Pedro Cuenca <pedro@huggingface.co>
…tize_model and dequantize_model based on usage
@Blaizzy
Copy link
Owner Author

Blaizzy commented Feb 20, 2026

Thanks Pedro I'm getting 32 tok/s over thunderbolt!

Screenshot 2026-02-20 at 01 10 15

@pcuenca
Copy link
Contributor

pcuenca commented Feb 20, 2026

Awesome! 🔥

model.shard(tensor_group)

mx.eval(model.language_model.parameters())
mx.eval(model.parameters())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still not working for me, did you revert the model.language_model change?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be clear: mx.eval(model.language_model.parameters()) is what works for me.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried with evaluating the whole model and it works. Just like in the normal path.

What's was missing is model.eval()

My biggest issue is tight right now is that I'm highly limited in my setup to fully test things

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my setup, execution never reaches the new model.eval() you added.

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.

2 participants