Downloads · 30 days
117
6% of all-time downloads
Chris-Kode/sweep-next-edit-1.5b-mlx
sweep-next-edit-1.5b-mlx is a text generation model from Chris-Kode. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as apache-2.0.
A 1.5B parameter model for next-edit autocomplete, quantized to 8bit MLX format.
Downloads · 30 days
117
6% of all-time downloads
All-time downloads
1.9K
Public
Parameters
1.4B
1.6 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors1.6 GB · 100%
How the weights are stored.
U321.4B · 100%
From the Hugging Face model README
A 1.5B parameter model for next-edit autocomplete, quantized to 8bit MLX format.
Sweep Next-Edit predicts your next code edit before you make it. It runs locally on your laptop in under 500ms (with speculative decoding) and outperforms models over 4x its size on next-edit benchmarks. More details here.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("Farok/sweep-next-edit-1.5b-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, return_dict=False,
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)
The model uses a specific prompt format with file context, recent diffs, and current state to predict the next edit. See run_model.py for a complete example.
Apache 2.0