ariG23498 HF Staff commited on
Commit
4ec5af6
·
verified ·
1 Parent(s): bd025f3

Upload moonshotai_Kimi-K2-Thinking_1.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. moonshotai_Kimi-K2-Thinking_1.txt +3 -3
moonshotai_Kimi-K2-Thinking_1.txt CHANGED
@@ -1,13 +1,13 @@
1
  ```CODE:
2
  # Load model directly
3
  from transformers import AutoModelForCausalLM
4
- model = AutoModelForCausalLM.from_pretrained("moonshotai/Kimi-K2-Thinking", trust_remote_code=True, torch_dtype="auto")
5
  ```
6
 
7
  ERROR:
8
  Traceback (most recent call last):
9
- File "/tmp/moonshotai_Kimi-K2-Thinking_1rdNusL.py", line 24, in <module>
10
- model = AutoModelForCausalLM.from_pretrained("moonshotai/Kimi-K2-Thinking", trust_remote_code=True, torch_dtype="auto")
11
  File "/tmp/.cache/uv/environments-v2/2592c6825cb441bd/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 597, in from_pretrained
12
  return model_class.from_pretrained(
13
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
 
1
  ```CODE:
2
  # Load model directly
3
  from transformers import AutoModelForCausalLM
4
+ model = AutoModelForCausalLM.from_pretrained("moonshotai/Kimi-K2-Thinking", trust_remote_code=True, dtype="auto")
5
  ```
6
 
7
  ERROR:
8
  Traceback (most recent call last):
9
+ File "/tmp/moonshotai_Kimi-K2-Thinking_1hrkOOy.py", line 23, in <module>
10
+ model = AutoModelForCausalLM.from_pretrained("moonshotai/Kimi-K2-Thinking", trust_remote_code=True, dtype="auto")
11
  File "/tmp/.cache/uv/environments-v2/2592c6825cb441bd/lib/python3.13/site-packages/transformers/models/auto/auto_factory.py", line 597, in from_pretrained
12
  return model_class.from_pretrained(
13
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~^