Skip to content

Add a default value for position_ids in masking_utils #39310

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

Merged
merged 3 commits into from
Jul 10, 2025

Conversation

Cyrilvallez
Copy link
Member

@Cyrilvallez Cyrilvallez commented Jul 9, 2025

What does this PR do?

As per the title. See related discussion in #39194

Also cc @BenjaminBossan, sorry again for the inconvenience on this one!

@Cyrilvallez Cyrilvallez added the for patch Tag issues / labels that should be included in the next patch label Jul 9, 2025
Copy link
Member

@BenjaminBossan BenjaminBossan left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM.

The change to find_packed_sequence_indices and the test are unrelated, are they?

@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.

Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

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

Can you add the test that was reported to fail as well?

@Cyrilvallez
Copy link
Member Author

Indeed, the added test is unrelated, I just forgot to add on the previous PR. There are no failed tests on Transformers, issue was highlighted on the peft side, so merging!

@Cyrilvallez Cyrilvallez merged commit 571a8c2 into main Jul 10, 2025
26 checks passed
@Cyrilvallez Cyrilvallez deleted the default-cache-pos branch July 10, 2025 16:53
Cyrilvallez added a commit that referenced this pull request Jul 11, 2025
* set default

* Update masking_utils.py

* add small test
rjgleaton pushed a commit to rjgleaton/transformers that referenced this pull request Jul 17, 2025
…39310)

* set default

* Update masking_utils.py

* add small test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for patch Tag issues / labels that should be included in the next patch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants