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

[core] Fix quantization issues with transformers==4.36.0 #249

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

younesbelkada
Copy link
Collaborator

What does this PR do?

The recent transformers release that included a cache refactor: huggingface/transformers#26681 broke some internal assumptions in autoawq about the shapes of attention masks and input embeddings.

This PR fixes this issue by simply updating layer_kwargs thanks to the prepare_inputs_for_generation method that automatically takes care of updating the inputs and attention masks in the correct format (should be also compatible with previous versions)

cc @casper-hansen @TheBloke

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