Sweep Next Edit
Collection
Locally running next edit autocomplete • 3 items • Updated • 5
How to use sweepai/sweep-next-edit-0.5B with llama.cpp:
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-0.5B:Q8_0 # Run inference directly in the terminal: llama cli -hf sweepai/sweep-next-edit-0.5B:Q8_0
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf sweepai/sweep-next-edit-0.5B:Q8_0 # Run inference directly in the terminal: llama cli -hf sweepai/sweep-next-edit-0.5B:Q8_0
# 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-0.5B:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf sweepai/sweep-next-edit-0.5B:Q8_0
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-0.5B:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf sweepai/sweep-next-edit-0.5B:Q8_0
docker model run hf.co/sweepai/sweep-next-edit-0.5B:Q8_0
How to use sweepai/sweep-next-edit-0.5B with Ollama:
ollama run hf.co/sweepai/sweep-next-edit-0.5B:Q8_0
How to use sweepai/sweep-next-edit-0.5B with Docker Model Runner:
docker model run hf.co/sweepai/sweep-next-edit-0.5B:Q8_0
How to use sweepai/sweep-next-edit-0.5B with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull sweepai/sweep-next-edit-0.5B:Q8_0
lemonade run user.sweep-next-edit-0.5B-Q8_0
lemonade list
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf sweepai/sweep-next-edit-0.5B:Q8_0# Run inference directly in the terminal:
llama cli -hf sweepai/sweep-next-edit-0.5B:Q8_0# 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-0.5B:Q8_0# Run inference directly in the terminal:
./llama-cli -hf sweepai/sweep-next-edit-0.5B:Q8_0git 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-0.5B:Q8_0# Run inference directly in the terminal:
./build/bin/llama-cli -hf sweepai/sweep-next-edit-0.5B:Q8_0docker model run hf.co/sweepai/sweep-next-edit-0.5B:Q8_0A 0.5B parameter model for next-edit autocomplete, quantized to Q8_0 GGUF 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.
Download run_model.py and the model file, then:
uv pip install llama-cpp-python huggingface_hub
python run_model.py
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
8-bit
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf sweepai/sweep-next-edit-0.5B:Q8_0# Run inference directly in the terminal: llama cli -hf sweepai/sweep-next-edit-0.5B:Q8_0