Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import transformers
|
2 |
+
from transformers import AutoModelForCausalLM
|
3 |
+
model_id = "mistralai/Mixtral-8x7B-Instruct-v0.1"
|
4 |
+
|
5 |
+
model = AutoModelForCausalLM.from_pretrained(model_id)
|
6 |
+
|
7 |
+
text = "Hello"
|
8 |
+
inputs = (text)
|
9 |
+
outputs = model.generate(**inputs)
|
10 |
+
print(outputs)
|