Upload moonshotai_Kimi-K2.5_1.txt with huggingface_hub
Browse files- moonshotai_Kimi-K2.5_1.txt +26 -0
moonshotai_Kimi-K2.5_1.txt
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
```CODE:
|
| 2 |
+
# Load model directly
|
| 3 |
+
from transformers import AutoModel
|
| 4 |
+
model = AutoModel.from_pretrained("moonshotai/Kimi-K2.5", trust_remote_code=True, dtype="auto")
|
| 5 |
+
```
|
| 6 |
+
|
| 7 |
+
ERROR:
|
| 8 |
+
Traceback (most recent call last):
|
| 9 |
+
File "/tmp/moonshotai_Kimi-K2.5_148OTJK.py", line 25, in <module>
|
| 10 |
+
model = AutoModel.from_pretrained("moonshotai/Kimi-K2.5", trust_remote_code=True, dtype="auto")
|
| 11 |
+
File "/tmp/.cache/uv/environments-v2/1fa8411085c3a50c/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 354, in from_pretrained
|
| 12 |
+
model_class = get_class_from_dynamic_module(
|
| 13 |
+
class_ref, pretrained_model_name_or_path, code_revision=code_revision, **hub_kwargs, **kwargs
|
| 14 |
+
)
|
| 15 |
+
File "/tmp/.cache/uv/environments-v2/1fa8411085c3a50c/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 583, in get_class_from_dynamic_module
|
| 16 |
+
return get_class_in_module(class_name, final_module, force_reload=force_download)
|
| 17 |
+
File "/tmp/.cache/uv/environments-v2/1fa8411085c3a50c/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 309, in get_class_in_module
|
| 18 |
+
module_spec.loader.exec_module(module)
|
| 19 |
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^
|
| 20 |
+
File "<frozen importlib._bootstrap_external>", line 1026, in exec_module
|
| 21 |
+
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
|
| 22 |
+
File "/tmp/.cache/huggingface/modules/transformers_modules/moonshotai/Kimi_hyphen_K2_dot_5/a13437f12d214f87f35d8041fc135895acf4832c/modeling_kimi_k25.py", line 67, in <module>
|
| 23 |
+
from .modeling_deepseek import DeepseekV3ForCausalLM
|
| 24 |
+
File "/tmp/.cache/huggingface/modules/transformers_modules/moonshotai/Kimi_hyphen_K2_dot_5/a13437f12d214f87f35d8041fc135895acf4832c/modeling_deepseek.py", line 47, in <module>
|
| 25 |
+
from transformers.utils.import_utils import is_torch_fx_available
|
| 26 |
+
ImportError: cannot import name 'is_torch_fx_available' from 'transformers.utils.import_utils' (/tmp/.cache/uv/environments-v2/1fa8411085c3a50c/lib/python3.13/site-packages/transformers/utils/import_utils.py)
|