Upload ByteDance_Ouro-2.6B_1.py with huggingface_hub
Browse files- ByteDance_Ouro-2.6B_1.py +2 -3
ByteDance_Ouro-2.6B_1.py
CHANGED
|
@@ -6,7 +6,6 @@
|
|
| 6 |
# "pandas",
|
| 7 |
# "protobuf",
|
| 8 |
# "torch",
|
| 9 |
-
# "sentencepiece",
|
| 10 |
# "torchvision",
|
| 11 |
# "transformers",
|
| 12 |
# "timm",
|
|
@@ -21,7 +20,7 @@
|
|
| 21 |
try:
|
| 22 |
# Load model directly
|
| 23 |
from transformers import AutoModelForCausalLM
|
| 24 |
-
model = AutoModelForCausalLM.from_pretrained("ByteDance/Ouro-2.6B", trust_remote_code=True,
|
| 25 |
with open('ByteDance_Ouro-2.6B_1.txt', 'w', encoding='utf-8') as f:
|
| 26 |
f.write('Everything was good in ByteDance_Ouro-2.6B_1.txt')
|
| 27 |
except Exception as e:
|
|
@@ -38,7 +37,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", trust_remote_code=True,
|
| 42 |
```
|
| 43 |
|
| 44 |
ERROR:
|
|
|
|
| 6 |
# "pandas",
|
| 7 |
# "protobuf",
|
| 8 |
# "torch",
|
|
|
|
| 9 |
# "torchvision",
|
| 10 |
# "transformers",
|
| 11 |
# "timm",
|
|
|
|
| 20 |
try:
|
| 21 |
# Load model directly
|
| 22 |
from transformers import AutoModelForCausalLM
|
| 23 |
+
model = AutoModelForCausalLM.from_pretrained("ByteDance/Ouro-2.6B", trust_remote_code=True, dtype="auto")
|
| 24 |
with open('ByteDance_Ouro-2.6B_1.txt', 'w', encoding='utf-8') as f:
|
| 25 |
f.write('Everything was good in ByteDance_Ouro-2.6B_1.txt')
|
| 26 |
except Exception as e:
|
|
|
|
| 37 |
f.write('''```CODE:
|
| 38 |
# Load model directly
|
| 39 |
from transformers import AutoModelForCausalLM
|
| 40 |
+
model = AutoModelForCausalLM.from_pretrained("ByteDance/Ouro-2.6B", trust_remote_code=True, dtype="auto")
|
| 41 |
```
|
| 42 |
|
| 43 |
ERROR:
|