Skip to content

fix: replace check_model_inputs with merge_with_config_defaults + capture_outputs for transformers 5.2#15

Merged
ZhiyuanChen merged 1 commit intomasterfrom
claude/fix-transformers-import-MGwyP
Feb 25, 2026
Merged

fix: replace check_model_inputs with merge_with_config_defaults + capture_outputs for transformers 5.2#15
ZhiyuanChen merged 1 commit intomasterfrom
claude/fix-transformers-import-MGwyP

Conversation

@ZhiyuanChen
Copy link
Copy Markdown
Member

In transformers 5.2, check_model_inputs was removed from transformers.utils.generic
and split into two separate decorators:

  • merge_with_config_defaults (from transformers.utils.generic)
  • capture_outputs (from transformers.utils.output_capturing)

This updates all 12 model files to use the new API.

https://claude.ai/code/session_012Q6dbgKtUaoPgb7yWU3e6g

…ture_outputs for transformers 5.2

In transformers 5.2, `check_model_inputs` was removed from `transformers.utils.generic`
and split into two separate decorators:
- `merge_with_config_defaults` (from `transformers.utils.generic`)
- `capture_outputs` (from `transformers.utils.output_capturing`)

This updates all 12 model files to use the new API.

https://claude.ai/code/session_012Q6dbgKtUaoPgb7yWU3e6g
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