ariG23498 HF Staff commited on
Commit
14dc6eb
·
verified ·
1 Parent(s): b03c932

Upload tencent_Youtu-Embedding_0.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. tencent_Youtu-Embedding_0.txt +19 -0
tencent_Youtu-Embedding_0.txt ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Traceback (most recent call last):
2
+ File "/tmp/tencent_Youtu-Embedding_0QeSZ0C.py", line 15, in <module>
3
+ model = AutoModel.from_pretrained("tencent/Youtu-Embedding", trust_remote_code=True, torch_dtype="auto")
4
+ File "/tmp/.cache/uv/environments-v2/6c31c7a796f45c80/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 586, in from_pretrained
5
+ model_class = get_class_from_dynamic_module(
6
+ class_ref, pretrained_model_name_or_path, code_revision=code_revision, **hub_kwargs, **kwargs
7
+ )
8
+ File "/tmp/.cache/uv/environments-v2/6c31c7a796f45c80/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 616, in get_class_from_dynamic_module
9
+ return get_class_in_module(class_name, final_module, force_reload=force_download)
10
+ File "/tmp/.cache/uv/environments-v2/6c31c7a796f45c80/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 311, in get_class_in_module
11
+ module_spec.loader.exec_module(module)
12
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
13
+ File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
14
+ File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
15
+ File "/tmp/.cache/huggingface/modules/transformers_modules/tencent/Youtu_hyphen_Embedding/3eaa6c786eadadb5c3010db5003c9b37947cca19/modeling_utu.py", line 45, in <module>
16
+ from transformers.utils import (
17
+ ...<8 lines>...
18
+ )
19
+ ImportError: cannot import name 'LossKwargs' from 'transformers.utils' (/tmp/.cache/uv/environments-v2/6c31c7a796f45c80/lib/python3.13/site-packages/transformers/utils/__init__.py)