Skip to content

Llama 4 Support #1508

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

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

Llama 4 Support #1508

wants to merge 15 commits into from

Conversation

Qubitium
Copy link
Collaborator

@Qubitium Qubitium commented Apr 6, 2025

Llama 4 attention mask/casual mask caculations have issues/bugs at the moment. We are bypassing them by forcing batch=1, padding, and removing attention_masks alltogether, for now until the bugs are fixed upstream.

@Qubitium Qubitium marked this pull request as ready for review April 6, 2025 08:39
@Qubitium Qubitium changed the title llama 4 Llama 4 Support Apr 6, 2025
@Qubitium Qubitium marked this pull request as draft April 6, 2025 09:50
@Qubitium
Copy link
Collaborator Author

Qubitium commented Apr 6, 2025

We are missing layers/modules. The quantized sized vs non-quantized size is only 6.2% which is not normal. At 4bit, it whould be closer to 70% difference.

@Qubitium
Copy link
Collaborator Author

Qubitium commented Apr 6, 2025

Need to fix this. MoE modules are parameters and not linear so they are skipped for quantization.

https://github.com/user-attachments/assets/ac3b3fd4-50eb-420e-929f-c6ae1f2c8b11

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.

3 participants