-
Notifications
You must be signed in to change notification settings - Fork 195
[Example] [Bugfix] Fix Gemma3 Generation #1517
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
Conversation
Signed-off-by: Kyle Sayers <[email protected]>
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
👋 Hi! Thank you for contributing to llm-compressor. Please add the ready label when the PR is ready for review. Note: This is required to complete the testing suite, please only add the label once the PR is code complete and local testing has been performed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
## Purpose ## * Fix gemma2 generation * See #1517 Signed-off-by: Kyle Sayers <[email protected]>
## Purpose ## * Fix generation for gemma models * See: #1517 ## Changes ## * Disable compilation for remaining gemma models --------- Signed-off-by: Kyle Sayers <[email protected]>
## Purpose ## * Fix generation for gemma models * See: #1517 ## Changes ## * Disable compilation for remaining gemma models --------- Signed-off-by: Kyle Sayers <[email protected]>
## Purpose ## * Fix Gemma3 example ## Background ## * Transformers `torch.compile`s the model function before running generation. However, some models fail to compile properly. As of the latest transformers version, Gemma3 is one of those models huggingface/transformers#38333 ## Changes ## * Disable compilation when generating with Gemma3 in example Signed-off-by: Kyle Sayers <[email protected]>
## Purpose ## * Fix gemma2 generation * See vllm-project#1517 Signed-off-by: Kyle Sayers <[email protected]>
## Purpose ## * Fix generation for gemma models * See: vllm-project#1517 ## Changes ## * Disable compilation for remaining gemma models --------- Signed-off-by: Kyle Sayers <[email protected]>
Purpose
Background
torch.compile
s the model function before running generation. However, some models fail to compile properly. As of the latest transformers version, Gemma3 is one of those models MedGemma worked find prior to 4.52.3 release but now errors huggingface/transformers#38333Changes