mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-20 19:12:24 +00:00
remove use_cdn when loading pretrained model (#5900)
This commit is contained in:
parent
208f4c1d3c
commit
3d5b48a894
1 changed files with 1 additions and 3 deletions
|
|
@ -247,9 +247,7 @@ def load_pretrained_model(model_name, config, cache_dir, custom_model_class, is_
|
|||
transformers_module = __import__("transformers", fromlist=[model_class_name])
|
||||
model_class = getattr(transformers_module, model_class_name)
|
||||
|
||||
use_cdn = False if model_name == 't5-11b' else True
|
||||
|
||||
return model_class.from_pretrained(model_name, config=config, cache_dir=cache_dir, use_cdn=use_cdn)
|
||||
return model_class.from_pretrained(model_name, config=config, cache_dir=cache_dir)
|
||||
|
||||
|
||||
def load_pt_model(model_name, model_class, cache_dir):
|
||||
|
|
|
|||
Loading…
Reference in a new issue