🤗 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.
Load dynamic module (remote code) only once if code isn't change (#33162)
* Load remote code only once * Use hash as load indicator * Add a new option `force_reload` for old behavior (i.e. always reload) * Add test for dynamic module is cached * Add more type annotations to improve code readability * Address comments from code review
X
Xuehai Pan committed
e1c2b69c341f088d59949d1eabfc022c12d4c797
Parent: 1bd9d1c
Committed by GitHub <noreply@github.com>
on 9/6/2024, 11:49:35 AM