Skip to content

Add a default value for position_ids in masking_utils#39310

Merged
Cyrilvallez merged 3 commits intomainfrom
default-cache-pos
Jul 10, 2025
Merged

Add a default value for position_ids in masking_utils#39310
Cyrilvallez merged 3 commits intomainfrom
default-cache-pos

Conversation

@Cyrilvallez
Copy link
Copy Markdown
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
Copy Markdown
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
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
zaristei pushed a commit to zaristei/transformers that referenced this pull request Sep 9, 2025
…39310)

* set default

* Update masking_utils.py

* add small test
zaristei pushed a commit to zaristei/transformers that referenced this pull request Sep 9, 2025
…39310)

* set default

* Update masking_utils.py

* add small test
zaristei pushed a commit to zaristei/transformers that referenced this pull request Sep 9, 2025
…39310)

* set default

* Update masking_utils.py

* add small test
zaristei pushed a commit to zaristei/transformers that referenced this pull request Sep 9, 2025
…39310)

* set default

* Update masking_utils.py

* add small test
zaristei pushed a commit to zaristei/transformers that referenced this pull request Sep 9, 2025
…39310)

* set default

* Update masking_utils.py

* add small test
zaristei pushed a commit to zaristei/transformers that referenced this pull request Sep 9, 2025
…39310)

* set default

* Update masking_utils.py

* add small test
zaristei pushed a commit to zaristei/transformers that referenced this pull request Sep 9, 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