Skip to content

Conversation

BenjaminBossan
Copy link
Member

@BenjaminBossan BenjaminBossan commented Oct 8, 2025

Trigger an error on transformers FutureWarning and DeprecationWarnings by converting them into failures. Since transformers often uses logger.warning instead of warnings.warn(..., FutureWarning), also add a special handler to the transformers logger that errors when the logged message looks like it contains a deprecation warning.

Note: Failing CI due to diffusers, not related to this PR.

DON'T MERGE

Check if/how often PEFT triggers transformers FutureWarning or
DeprecationWarning by converting these warnings into failures. Note that
there will be many false negatives, as transformers uses logger.warning
frequently, which will not trigger a failure.
@BenjaminBossan BenjaminBossan changed the title [WIP] Testing transformers deprecations CI Testing transformers deprecations Oct 8, 2025
@BenjaminBossan BenjaminBossan marked this pull request as ready for review October 8, 2025 14:12
@BenjaminBossan BenjaminBossan merged commit 61a11f9 into huggingface:main Oct 13, 2025
8 of 25 checks passed
@BenjaminBossan BenjaminBossan deleted the testing-transformers-deprecations branch October 13, 2025 14:53
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.

2 participants