Downloads · 30 days
16
9% of all-time downloads
alexgusevski/Lightning-1.7B-mlx
Lightning-1.7B-mlx is a text generation model from alexgusevski. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as mpl-2.0.
This model alexgusevski/Lightning-1.7B-mlx was converted to MLX format from TitleOS/Lightning-1.7B using mlx-lm version 0.28.4.
Downloads · 30 days
16
9% of all-time downloads
All-time downloads
188
Public
Parameters
1.7B
3.5 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors3.4 GB · 100%
From the Hugging Face model README
This model alexgusevski/Lightning-1.7B-mlx was converted to MLX format from TitleOS/Lightning-1.7B using mlx-lm version 0.28.4.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("alexgusevski/Lightning-1.7B-mlx")
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)