KEMBAR78
Fix gemma3n feature extractor's incorrect squeeze by Isotr0py · Pull Request #39919 · huggingface/transformers · GitHub
Skip to content

Conversation

@Isotr0py
Copy link
Collaborator

@Isotr0py Isotr0py commented Aug 5, 2025

What does this PR do?

Fixes #39911

  • Only squeeze batch_size dimension for mel_spectrogram in gemma3n processor

TODO:

  • Add test

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests?

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

cc @NickLucche Can you check if this fix works on your gemma3n PR? Thanks!

Signed-off-by: Isotr0py <2037008807@qq.com>
@Isotr0py Isotr0py changed the title Fix gemma3n feature extractor incorrext squeeze Fix gemma3n feature extractor incorrect squeeze Aug 5, 2025
@Isotr0py Isotr0py changed the title Fix gemma3n feature extractor incorrect squeeze Fix gemma3n feature extractor's incorrect squeeze Aug 5, 2025
@HuggingFaceDocBuilderDev

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.

@NickLucche
Copy link

Yep that mask error looks gone now, thanks for the fix @Isotr0py !

@Rocketknight1
Copy link
Member

cc @eustlb @zucchini-nlp - this makes sense to me if you're happy with it!

Isotr0py and others added 2 commits August 6, 2025 23:06
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
@github-actions
Copy link
Contributor

github-actions bot commented Aug 6, 2025

[For maintainers] Suggested jobs to run (before merge)

run-slow: gemma3n

@zucchini-nlp
Copy link
Member

run-slow: gemma3n

Copy link
Member

@zucchini-nlp zucchini-nlp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, seems reasonable. Let's run slow tests and if they pass, we can merge

@github-actions
Copy link
Contributor

github-actions bot commented Aug 7, 2025

This comment contains run-slow, running the specified jobs:

models: ['models/gemma3n']
quantizations: [] ...

@Isotr0py Isotr0py merged commit 2b19a06 into huggingface:main Aug 7, 2025
20 checks passed
@Isotr0py Isotr0py deleted the fix-gemma3n-processor branch August 7, 2025 10:34
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.

[Gemma3N] Audio processing issue

5 participants