SIGN IN SIGN UP

🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

0 0 0 Python

[core] Faster and thread-safe `check_model_inputs` implementation (#43765)

* poc

* cleaner

* style

* forgot name

* fix all

* more fixes

* oupsi

* fix

* use only 1 contextvar

* lazy hook installation

* capture with lists instead of tuples

* more bad-behaved model fixes

* style

* move to dedicated file

* doc

* style
C
Cyril Vallez committed
f8f2834e1a82970f93e06f9bb076a361ca2d70c0
Parent: 95007e5
Committed by GitHub <[email protected]> on 2/6/2026, 4:08:46 PM