Downloads · 30 days
32
14% of all-time downloads
mlx-community/sarashina2.2-0.5b-instruct-v0.1
sarashina2.2-0.5b-instruct-v0.1 is a text generation model from mlx-community. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as mit.
This model mlx-community/sarashina2.2-0.5b-instruct-v0.1 was converted to MLX format from sbintuitions/sarashina2.2-0.5b-instruct-v0.1 using mlx-lm version 0.25.2.
Downloads · 30 days
32
14% of all-time downloads
All-time downloads
235
Public
Parameters
793M
1.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.6 GB · 99%
From the Hugging Face model README
This model mlx-community/sarashina2.2-0.5b-instruct-v0.1 was converted to MLX format from sbintuitions/sarashina2.2-0.5b-instruct-v0.1 using mlx-lm version 0.25.2.
Please ensure your mlx version is 0.26.2 or newer. You can upgrade mlx using: pip install --upgrade mlx
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/sarashina2.2-0.5b-instruct-v0.1")
prompt = "hello"
if tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)