Skip to content

Repack also experts#210

Merged
ikawrakow merged 1 commit into
mainfrom
ik/repack_also_experts
Feb 19, 2025
Merged

Repack also experts#210
ikawrakow merged 1 commit into
mainfrom
ik/repack_also_experts

Conversation

@ikawrakow

Copy link
Copy Markdown
Owner

When I implemented run time repacking, I required the tensor to be 2D to be eligible for repacking, I guess to simplify the code. But I forgot about MoE models, where expert weights are in 3D tensors.

This PR fixes that. This leads to very significant performance gains. E.g., for DeepSeek-Lite quantized with IQ4_XS, we get PP-512 = 545 t/s on the main branch, and PP-512 = 677 t/s with this PR when using run time repacking.

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.

1 participant