ariG23498 HF Staff commited on
Commit
10ce4fb
·
verified ·
1 Parent(s): 90fbfa4

Upload PowerInfer_SmallThinker-4BA0.6B-Instruct_0.txt with huggingface_hub

Browse files
PowerInfer_SmallThinker-4BA0.6B-Instruct_0.txt ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Traceback (most recent call last):
2
+ File "/tmp/PowerInfer_SmallThinker-4BA0.6B-Instruct_0Xsz2yL.py", line 13, in <module>
3
+ pipe = pipeline("text-generation", model="PowerInfer/SmallThinker-4BA0.6B-Instruct", trust_remote_code=True)
4
+ File "/tmp/.cache/uv/environments-v2/7e8796ae6da29274/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 1008, in pipeline
5
+ framework, model = infer_framework_load_model(
6
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~^
7
+ adapter_path if adapter_path is not None else model,
8
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9
+ ...<5 lines>...
10
+ **model_kwargs,
11
+ ^^^^^^^^^^^^^^^
12
+ )
13
+ ^
14
+ File "/tmp/.cache/uv/environments-v2/7e8796ae6da29274/lib/python3.13/site-packages/transformers/pipelines/base.py", line 292, in infer_framework_load_model
15
+ model = model_class.from_pretrained(model, **kwargs)
16
+ File "/tmp/.cache/uv/environments-v2/7e8796ae6da29274/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 582, in from_pretrained
17
+ model_class = get_class_from_dynamic_module(
18
+ class_ref, pretrained_model_name_or_path, code_revision=code_revision, **hub_kwargs, **kwargs
19
+ )
20
+ File "/tmp/.cache/uv/environments-v2/7e8796ae6da29274/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 582, in get_class_from_dynamic_module
21
+ return get_class_in_module(class_name, final_module, force_reload=force_download)
22
+ File "/tmp/.cache/uv/environments-v2/7e8796ae6da29274/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 277, in get_class_in_module
23
+ module_spec.loader.exec_module(module)
24
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
25
+ File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
26
+ File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
27
+ File "/tmp/.cache/huggingface/modules/transformers_modules/PowerInfer/SmallThinker-4BA0.6B-Instruct/7f837c670856ca442ce012b8766028d35ba8d40e/modeling_smallthinker.py", line 16, in <module>
28
+ from transformers.utils import LossKwargs, can_return_tuple, logging
29
+ ImportError: cannot import name 'LossKwargs' from 'transformers.utils' (/tmp/.cache/uv/environments-v2/7e8796ae6da29274/lib/python3.13/site-packages/transformers/utils/__init__.py)