ariG23498 HF Staff commited on
Commit
b03b4a8
·
verified ·
1 Parent(s): e4b0230

Upload ByteDance_Ouro-2.6B-Thinking_1.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. ByteDance_Ouro-2.6B-Thinking_1.py +4 -2
ByteDance_Ouro-2.6B-Thinking_1.py CHANGED
@@ -4,6 +4,8 @@
4
  # "numpy",
5
  # "einops",
6
  # "pandas",
 
 
7
  # "protobuf",
8
  # "torch",
9
  # "sentencepiece",
@@ -21,7 +23,7 @@
21
  try:
22
  # Load model directly
23
  from transformers import AutoModelForCausalLM
24
- model = AutoModelForCausalLM.from_pretrained("ByteDance/Ouro-2.6B-Thinking", trust_remote_code=True, torch_dtype="auto")
25
  with open('ByteDance_Ouro-2.6B-Thinking_1.txt', 'w', encoding='utf-8') as f:
26
  f.write('Everything was good in ByteDance_Ouro-2.6B-Thinking_1.txt')
27
  except Exception as e:
@@ -38,7 +40,7 @@ except Exception as e:
38
  f.write('''```CODE:
39
  # Load model directly
40
  from transformers import AutoModelForCausalLM
41
- model = AutoModelForCausalLM.from_pretrained("ByteDance/Ouro-2.6B-Thinking", trust_remote_code=True, torch_dtype="auto")
42
  ```
43
 
44
  ERROR:
 
4
  # "numpy",
5
  # "einops",
6
  # "pandas",
7
+ # "matplotlib",
8
+ # "paddleorc",
9
  # "protobuf",
10
  # "torch",
11
  # "sentencepiece",
 
23
  try:
24
  # Load model directly
25
  from transformers import AutoModelForCausalLM
26
+ model = AutoModelForCausalLM.from_pretrained("ByteDance/Ouro-2.6B-Thinking", trust_remote_code=True, dtype="auto")
27
  with open('ByteDance_Ouro-2.6B-Thinking_1.txt', 'w', encoding='utf-8') as f:
28
  f.write('Everything was good in ByteDance_Ouro-2.6B-Thinking_1.txt')
29
  except Exception as e:
 
40
  f.write('''```CODE:
41
  # Load model directly
42
  from transformers import AutoModelForCausalLM
43
+ model = AutoModelForCausalLM.from_pretrained("ByteDance/Ouro-2.6B-Thinking", trust_remote_code=True, dtype="auto")
44
  ```
45
 
46
  ERROR: