Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
reshav1
/
test
like
0
Sleeping
App
Files
Files
Community
1
Fetching metadata from the HF Docker repository...
b829eb5
test
/
app.py
Last commit not found
raw
Copy download link
history
blame
Safe
235 Bytes
import
transformers
from
transformers
import
AutoModelForCausalLM
model_id =
"mistralai/Mixtral-8x7B-Instruct-v0.1"
model = AutoModelForCausalLM.from_pretrained(model_id)
text =
"Hello"
outputs = model.generate(text)
print
(outputs)