Upload Motif-Technologies_Motif-2-12.7B-Instruct_1.py with huggingface_hub
Browse files
Motif-Technologies_Motif-2-12.7B-Instruct_1.py
CHANGED
|
@@ -4,6 +4,7 @@
|
|
| 4 |
# "numpy",
|
| 5 |
# "einops",
|
| 6 |
# "pandas",
|
|
|
|
| 7 |
# "protobuf",
|
| 8 |
# "torch",
|
| 9 |
# "sentencepiece",
|
|
@@ -21,7 +22,7 @@
|
|
| 21 |
try:
|
| 22 |
# Load model directly
|
| 23 |
from transformers import AutoModelForCausalLM
|
| 24 |
-
model = AutoModelForCausalLM.from_pretrained("Motif-Technologies/Motif-2-12.7B-Instruct", trust_remote_code=True,
|
| 25 |
with open('Motif-Technologies_Motif-2-12.7B-Instruct_1.txt', 'w', encoding='utf-8') as f:
|
| 26 |
f.write('Everything was good in Motif-Technologies_Motif-2-12.7B-Instruct_1.txt')
|
| 27 |
except Exception as e:
|
|
@@ -38,7 +39,7 @@ except Exception as e:
|
|
| 38 |
f.write('''```CODE:
|
| 39 |
# Load model directly
|
| 40 |
from transformers import AutoModelForCausalLM
|
| 41 |
-
model = AutoModelForCausalLM.from_pretrained("Motif-Technologies/Motif-2-12.7B-Instruct", trust_remote_code=True,
|
| 42 |
```
|
| 43 |
|
| 44 |
ERROR:
|
|
|
|
| 4 |
# "numpy",
|
| 5 |
# "einops",
|
| 6 |
# "pandas",
|
| 7 |
+
# "matplotlib",
|
| 8 |
# "protobuf",
|
| 9 |
# "torch",
|
| 10 |
# "sentencepiece",
|
|
|
|
| 22 |
try:
|
| 23 |
# Load model directly
|
| 24 |
from transformers import AutoModelForCausalLM
|
| 25 |
+
model = AutoModelForCausalLM.from_pretrained("Motif-Technologies/Motif-2-12.7B-Instruct", trust_remote_code=True, dtype="auto")
|
| 26 |
with open('Motif-Technologies_Motif-2-12.7B-Instruct_1.txt', 'w', encoding='utf-8') as f:
|
| 27 |
f.write('Everything was good in Motif-Technologies_Motif-2-12.7B-Instruct_1.txt')
|
| 28 |
except Exception as e:
|
|
|
|
| 39 |
f.write('''```CODE:
|
| 40 |
# Load model directly
|
| 41 |
from transformers import AutoModelForCausalLM
|
| 42 |
+
model = AutoModelForCausalLM.from_pretrained("Motif-Technologies/Motif-2-12.7B-Instruct", trust_remote_code=True, dtype="auto")
|
| 43 |
```
|
| 44 |
|
| 45 |
ERROR:
|