How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf sweepai/sweep-next-edit-1.5B:Q8_0
# Run inference directly in the terminal:
llama cli -hf sweepai/sweep-next-edit-1.5B:Q8_0
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf sweepai/sweep-next-edit-1.5B:Q8_0
# Run inference directly in the terminal:
llama cli -hf sweepai/sweep-next-edit-1.5B:Q8_0
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf sweepai/sweep-next-edit-1.5B:Q8_0
# Run inference directly in the terminal:
./llama-cli -hf sweepai/sweep-next-edit-1.5B:Q8_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf sweepai/sweep-next-edit-1.5B:Q8_0
# Run inference directly in the terminal:
./build/bin/llama-cli -hf sweepai/sweep-next-edit-1.5B:Q8_0
Use Docker
docker model run hf.co/sweepai/sweep-next-edit-1.5B:Q8_0
Quick Links

Sweep Next-Edit 1.5B (GGUF)

A 1.5B parameter model for next-edit autocomplete, quantized to Q8_0 GGUF format.

Model Description

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.

Usage

Download run_model.py and the model file, then:

uv pip install llama-cpp-python huggingface_hub
python run_model.py

Model Details

  • Format: GGUF (Q8_0 quantization)
  • Parameters: 1.5B
  • Context Length: 8192 tokens
  • Base Model: Qwen2.5-Coder

Example

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.

Links

License

Apache 2.0

Downloads last month
1,271
GGUF
Model size
1B params
Architecture
qwen2
Hardware compatibility
Log In to add your hardware

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 3 Ask for provider support

Model tree for sweepai/sweep-next-edit-1.5B

Finetunes
1 model
Merges
1 model
Quantizations
1 model

Collection including sweepai/sweep-next-edit-1.5B