Upload microsoft_Phi-4-mini-flash-reasoning_1.py with huggingface_hub
Browse files
microsoft_Phi-4-mini-flash-reasoning_1.py
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
try:
|
| 10 |
# Load model directly
|
| 11 |
from transformers import AutoModelForCausalLM
|
| 12 |
-
model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-4-mini-flash-reasoning", trust_remote_code=True)
|
| 13 |
with open('microsoft_Phi-4-mini-flash-reasoning_1.txt', 'w') as f:
|
| 14 |
f.write('Everything was good in microsoft_Phi-4-mini-flash-reasoning_1.txt')
|
| 15 |
except Exception as e:
|
|
|
|
| 9 |
try:
|
| 10 |
# Load model directly
|
| 11 |
from transformers import AutoModelForCausalLM
|
| 12 |
+
model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-4-mini-flash-reasoning", trust_remote_code=True, torch_dtype="auto"),
|
| 13 |
with open('microsoft_Phi-4-mini-flash-reasoning_1.txt', 'w') as f:
|
| 14 |
f.write('Everything was good in microsoft_Phi-4-mini-flash-reasoning_1.txt')
|
| 15 |
except Exception as e:
|