[gemma3] support sequence classification task#39465
Merged
zucchini-nlp merged 6 commits intohuggingface:mainfrom Jul 21, 2025
Merged
[gemma3] support sequence classification task#39465zucchini-nlp merged 6 commits intohuggingface:mainfrom
zucchini-nlp merged 6 commits intohuggingface:mainfrom
Conversation
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
zucchini-nlp
commented
Jul 17, 2025
Comment on lines
+353
to
+360
| @unittest.skip("Loading nested configs with overwritten `kwargs` isn't supported yet, FIXME @raushan.") | ||
| def test_load_with_mismatched_shapes(self): | ||
| pass | ||
|
|
||
| @unittest.skip("Loading nested configs with overwritten `kwargs` isn't supported yet, FIXME @raushan.") | ||
| def test_mismatched_shapes_have_properly_initialized_weights(self): | ||
| pass | ||
|
|
Member
Author
There was a problem hiding this comment.
Here I mean loading like Gemma3Config.from_dict(config_dict, vocab_size=100) where the vocab_size is actually part of config.text_config. It is a known issue and I have it in my plans to support
myvaheed
reviewed
Jul 17, 2025
Contributor
|
[For maintainers] Suggested jobs to run (before merge) run-slow: auto, gemma3 |
Cyrilvallez
approved these changes
Jul 19, 2025
Member
Cyrilvallez
left a comment
There was a problem hiding this comment.
Alright, but don't we have any other vlm from which we can inherit directly with modular?
Member
Author
|
Nope, we usually don't add when there's no official pretrained checkpoint |
zucchini-nlp
added a commit
to zucchini-nlp/transformers
that referenced
this pull request
Jul 22, 2025
* add seq clf class * fix docs and add in auto-map * skip tests * optional pixels
4 tasks
zaristei
pushed a commit
to zaristei/transformers
that referenced
this pull request
Sep 9, 2025
* add seq clf class * fix docs and add in auto-map * skip tests * optional pixels
zaristei
pushed a commit
to zaristei/transformers
that referenced
this pull request
Sep 9, 2025
* add seq clf class * fix docs and add in auto-map * skip tests * optional pixels
zaristei
pushed a commit
to zaristei/transformers
that referenced
this pull request
Sep 9, 2025
* add seq clf class * fix docs and add in auto-map * skip tests * optional pixels
zaristei
pushed a commit
to zaristei/transformers
that referenced
this pull request
Sep 9, 2025
* add seq clf class * fix docs and add in auto-map * skip tests * optional pixels
zaristei
pushed a commit
to zaristei/transformers
that referenced
this pull request
Sep 9, 2025
* add seq clf class * fix docs and add in auto-map * skip tests * optional pixels
zaristei
pushed a commit
to zaristei/transformers
that referenced
this pull request
Sep 9, 2025
* add seq clf class * fix docs and add in auto-map * skip tests * optional pixels
zaristei
pushed a commit
to zaristei/transformers
that referenced
this pull request
Sep 9, 2025
* add seq clf class * fix docs and add in auto-map * skip tests * optional pixels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
As per title, we can't copy from llama or any other LLM because Gemma3 needs to obtain
text_configparams and needs to pass extra vision kwargs inforward. Thus the code was adapted from llama and the tests are greenFixes #36755