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

Fix the "test_offline" test (#42458)

* Fix the test offline test

* Refactor test_offline method with context patches

Refactor test_offline to use patch for offline mode.

* Apply suggestion from @Wauplin

---------

Co-authored-by: Lucain <[email protected]>
L
Lysandre Debut committed
a8457eb866c8fc6cf3b4db0eb51288b27c001f44
Parent: e2e411c
Committed by GitHub <[email protected]> on 11/27/2025, 4:36:58 PM