Downloads · 30 days
0
Andyrasika/mistral_autotrain_llm
mistral_autotrain_llm is a text generation model from Andyrasika. Use it when you need the model to write or continue text. The card lists the license as openrail.
Downloads · 30 days
0
Access
Public
Updated Nov 15, 2023
Repo size
82.5 MB
Likes
1
Public
Click a slice to open those files.
.pt54.6 MB · 48%
From the Hugging Face model README
from transformers import AutoModelForCausalLM, AutoTokenizer
model_path = "Andyrasika/mistral_autotrain_llm"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(model_path)
input_text = "Health benefits of regular exercise"
input_ids = tokenizer.encode(input_text, return_tensors="pt")
output = model.generate(input_ids)
predicted_text = tokenizer.decode(output[0], skip_special_tokens=False)
print(predicted_text)
Output:
Health benefits of regular exercise include improved cardiovascular health, increased strength and flexibility, improved mental
Resources: