Upload moonshotai_Kimi-K2.5_1.txt with huggingface_hub
Browse files1234567891011121314151617181920212223242526```CODE: # Load model directlyfrom transformers import AutoModelmodel = AutoModel.from_pretrained("moonshotai/Kimi-K2.5", trust_remote_code=True, dtype="auto")```
ERROR: Traceback (most recent call last): File "/tmp/moonshotai_Kimi-K2.5_148OTJK.py", line 25, in <module> model = AutoModel.from_pretrained("moonshotai/Kimi-K2.5", trust_remote_code=True, dtype="auto") File "/tmp/.cache/uv/environments-v2/1fa8411085c3a50c/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 354, in from_pretrained model_class = get_class_from_dynamic_module( class_ref, pretrained_model_name_or_path, code_revision=code_revision, **hub_kwargs, **kwargs ) 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 return get_class_in_module(class_name, final_module, force_reload=force_download) File "/tmp/.cache/uv/environments-v2/1fa8411085c3a50c/lib/python3.13/site-packages/transformers/dynamic_module_utils.py", line 309, in get_class_in_module module_spec.loader.exec_module(module) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^ File "<frozen importlib._bootstrap_external>", line 1026, in exec_module File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed File "/tmp/.cache/huggingface/modules/transformers_modules/moonshotai/Kimi_hyphen_K2_dot_5/a13437f12d214f87f35d8041fc135895acf4832c/modeling_kimi_k25.py", line 67, in <module> from .modeling_deepseek import DeepseekV3ForCausalLM File "/tmp/.cache/huggingface/modules/transformers_modules/moonshotai/Kimi_hyphen_K2_dot_5/a13437f12d214f87f35d8041fc135895acf4832c/modeling_deepseek.py", line 47, in <module> from transformers.utils.import_utils import is_torch_fx_availableImportError: 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)moonshotai_Kimi-K2.5_1.txtAdded+26