Downloads · 30 days
10
14% of all-time downloads
heegyu/TinyMistral-248M-v2.5-Instruct-orpo
TinyMistral-248M-v2.5-Instruct-orpo is a text generation model from heegyu. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
10
14% of all-time downloads
All-time downloads
72
Public
Parameters
248M
496 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors496 MB · 100%
From the Hugging Face model README
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("heegyu/TinyMistral-248M-v2.5-Instruct-orpo")
model = AutoModelForCausalLM.from_pretrained("heegyu/TinyMistral-248M-v2.5-Instruct-orpo")
conv = [
{
'role': 'user',
'content': 'What can I do with Large Language Model?'
}
]
prompt = tokenizer.apply_chat_template(conv, add_generation_prompt=True, return_tensors="pt")
output = model.generate(prompt, max_new_token=128)
print(tokenizer.decode(output[0]))