reshav1 commited on
Commit
360e70e
1 Parent(s): 8275547

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +10 -0
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)