Skip to content
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

[Mixtral] Change mistral op order #27955

Merged

Conversation

younesbelkada
Copy link
Contributor

What does this PR do?

This PR slightly refactors the forward pass logic of MixtralBLockSparseTop2MLP to not have routing_weights as a required arg in the forward pass as AWQ does not handle multiple args in the forward pass of the modules (assumes all modules have hidden_states as input)

cc @ArthurZucker

@younesbelkada younesbelkada merged commit 54d0b1c into huggingface:main Dec 11, 2023
18 checks passed
@younesbelkada younesbelkada deleted the change-mistral-op-order branch December 11, 2023 18:03
iantbutler01 pushed a commit to BismuthCloud/transformers that referenced this pull request Dec 16, 2023
staghado pushed a commit to staghado/transformers that referenced this pull request Jan 15, 2024
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