Downloads · 30 days
12
21% of all-time downloads
heegyu/Mistral-7B-v0.1-lima
Mistral-7B-v0.1-lima 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
12
21% of all-time downloads
All-time downloads
56
Public
Parameters
7.2B
72.4 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors14.5 GB · 100%
From the Hugging Face model README
from transformers import AutoTokenizer, AutoModelForCausalLM
model_id = "heegyu/Mistral-7B-v0.1-lima"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
chat = [
{ "role": "user", "content": "Write a hello world program in Rust" },
]
inputs = tokenizer.apply_chat_template(chat, tokenize=True, add_generation_prompt=True, return_tensors="pt").to(model.device)
outputs = model.generate(input_ids=inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0]))