Upload moonshotai_Kimi-K2-Instruct-0905_0.txt with huggingface_hub
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157```CODE: # Use a pipeline as a high-level helperfrom transformers import pipeline
pipe = pipeline("text-generation", model="moonshotai/Kimi-K2-Instruct-0905", trust_remote_code=True)messages = [ {"role": "user", "content": "Who are you?"},]pipe(messages)```
ERROR: Traceback (most recent call last): File "/tmp/moonshotai_Kimi-K2-Instruct-0905_0DfWj8m.py", line 17, in <module> pipe = pipeline("text-generation", model="moonshotai/Kimi-K2-Instruct-0905", trust_remote_code=True) File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/pipelines/__init__.py", line 1027, in pipeline framework, model = infer_framework_load_model( ~~~~~~~~~~~~~~~~~~~~~~~~~~^ adapter_path if adapter_path is not None else model, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ...<5 lines>... **model_kwargs, ^^^^^^^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/pipelines/base.py", line 333, in infer_framework_load_model raise ValueError( f"Could not load model {model} with any of the following classes: {class_tuple}. See the original errors:\n\n{error}\n" )ValueError: Could not load model moonshotai/Kimi-K2-Instruct-0905 with any of the following classes: (<class 'transformers.models.auto.modeling_auto.AutoModelForCausalLM'>, <class 'transformers.models.deepseek_v3.modeling_deepseek_v3.DeepseekV3ForCausalLM'>). See the original errors:
while loading with AutoModelForCausalLM, an error is thrown:Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/pipelines/base.py", line 293, in infer_framework_load_model model = model_class.from_pretrained(model, **kwargs) File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 597, in from_pretrained return model_class.from_pretrained( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ pretrained_model_name_or_path, *model_args, config=config, **hub_kwargs, **kwargs ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/modeling_utils.py", line 277, in _wrapper return func(*args, **kwargs) File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/modeling_utils.py", line 4881, in from_pretrained hf_quantizer, config, dtype, device_map = get_hf_quantizer( ~~~~~~~~~~~~~~~~^ config, quantization_config, dtype, from_tf, from_flax, device_map, weights_only, user_agent ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/quantizers/auto.py", line 319, in get_hf_quantizer hf_quantizer.validate_environment( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ dtype=dtype, ^^^^^^^^^^^^ ...<3 lines>... weights_only=weights_only, ^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/quantizers/quantizer_finegrained_fp8.py", line 48, in validate_environment raise RuntimeError("No GPU or XPU found. A GPU or XPU is needed for FP8 quantization.")RuntimeError: No GPU or XPU found. A GPU or XPU is needed for FP8 quantization.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/pipelines/base.py", line 311, in infer_framework_load_model model = model_class.from_pretrained(model, **fp32_kwargs) File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 597, in from_pretrained return model_class.from_pretrained( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ pretrained_model_name_or_path, *model_args, config=config, **hub_kwargs, **kwargs ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/modeling_utils.py", line 277, in _wrapper return func(*args, **kwargs) File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/modeling_utils.py", line 4881, in from_pretrained hf_quantizer, config, dtype, device_map = get_hf_quantizer( ~~~~~~~~~~~~~~~~^ config, quantization_config, dtype, from_tf, from_flax, device_map, weights_only, user_agent ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/quantizers/auto.py", line 319, in get_hf_quantizer hf_quantizer.validate_environment( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ dtype=dtype, ^^^^^^^^^^^^ ...<3 lines>... weights_only=weights_only, ^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/quantizers/quantizer_finegrained_fp8.py", line 48, in validate_environment raise RuntimeError("No GPU or XPU found. A GPU or XPU is needed for FP8 quantization.")RuntimeError: No GPU or XPU found. A GPU or XPU is needed for FP8 quantization.
while loading with DeepseekV3ForCausalLM, an error is thrown:Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/pipelines/base.py", line 293, in infer_framework_load_model model = model_class.from_pretrained(model, **kwargs) File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/modeling_utils.py", line 277, in _wrapper return func(*args, **kwargs) File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/modeling_utils.py", line 4881, in from_pretrained hf_quantizer, config, dtype, device_map = get_hf_quantizer( ~~~~~~~~~~~~~~~~^ config, quantization_config, dtype, from_tf, from_flax, device_map, weights_only, user_agent ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/quantizers/auto.py", line 319, in get_hf_quantizer hf_quantizer.validate_environment( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ dtype=dtype, ^^^^^^^^^^^^ ...<3 lines>... weights_only=weights_only, ^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/quantizers/quantizer_finegrained_fp8.py", line 48, in validate_environment raise RuntimeError("No GPU or XPU found. A GPU or XPU is needed for FP8 quantization.")RuntimeError: No GPU or XPU found. A GPU or XPU is needed for FP8 quantization.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/pipelines/base.py", line 311, in infer_framework_load_model model = model_class.from_pretrained(model, **fp32_kwargs) File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/modeling_utils.py", line 277, in _wrapper return func(*args, **kwargs) File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/modeling_utils.py", line 4881, in from_pretrained hf_quantizer, config, dtype, device_map = get_hf_quantizer( ~~~~~~~~~~~~~~~~^ config, quantization_config, dtype, from_tf, from_flax, device_map, weights_only, user_agent ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/quantizers/auto.py", line 319, in get_hf_quantizer hf_quantizer.validate_environment( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ dtype=dtype, ^^^^^^^^^^^^ ...<3 lines>... weights_only=weights_only, ^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/tmp/.cache/uv/environments-v2/f88bc193c6a79946/lib/python3.13/site-packages/transformers/quantizers/quantizer_finegrained_fp8.py", line 48, in validate_environment raise RuntimeError("No GPU or XPU found. A GPU or XPU is needed for FP8 quantization.")RuntimeError: No GPU or XPU found. A GPU or XPU is needed for FP8 quantization.
moonshotai_Kimi-K2-Instruct-0905_0.txtAdded+157