Downloads · 30 days
5
7% of all-time downloads
sergiones/Sergio-lora-4b-hybrid8
Sergio-lora-4b-hybrid8 is a text generation model from sergiones. Use it when you need the model to write or continue text. It is set up for mlx.
Downloads · 30 days
5
7% of all-time downloads
All-time downloads
76
Public
Parameters
494M
1.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors525 MB · 97%
How the weights are stored.
U32494M · 100%
From the Hugging Face model README
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("sergiones/Sergio-lora-4b-hybrid8")
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)