Skip to content

Localgauge

Find out whether a local model can do your coding work, on your hardware.

You have a GPU and an open-weight model. Leaderboards won't tell you whether it can fix a bug in a real repository, how long that takes on your machine, or which tasks to hand to a frontier model instead. Localgauge runs pinned coding tasks against your endpoint, checks every result with tests the model cannot edit, and reports what passed, how often and how sure that is.

Why use it

  • Verified, not self-reported. Each attempt runs Pi (the terminal coding agent) in a Bubblewrap sandbox; a separate sandbox reruns the tests, and the model's final message never counts as a pass.
  • Honest numbers. Every pass rate travels with k/n and a Wilson 95% interval; one-attempt results are marked 1× and derived results say so.
  • Your endpoint. Point the task harness at any OpenAI-compatible API root.

Results

Pass rate with 95% Wilson interval for six local setups on ten Polyglot tasks and for local, frontier and hybrid setups on a fixed eight-task subset, with exact passes, attempts and mean time per attempt. Pass rate with 95% Wilson interval for six local setups on ten Polyglot tasks and for local, frontier and hybrid setups on a fixed eight-task subset, with exact passes, attempts and mean time per attempt.

Caveling-2-Mini Q4_K_M at 64K passed 24/30 · 63–90% on ten Polyglot tasks, three attempts each. Frontier and hybrid rows ran a fixed eight-task subset once per task (1×). Frontier rows predate a review-check correction. Samples, not rankings. Quantization · frontier

Mean seconds per attempt on the fixed eight-task subset, split into local and frontier time, with passes for Caveling only, GPT-6.1 Sol only, and hybrid modes A, B and derived C. Mean seconds per attempt on the fixed eight-task subset, split into local and frontier time, with passes for Caveling only, GPT-6.1 Sol only, and hybrid modes A, B and derived C.

A GPT-6.1 Sol plan followed by Caveling implementation passed 8/8 · 68–100%, one attempt per task; the frontier calls add 7 to 26 seconds per attempt. C is derived, not rerun. Hybrid results

On a harder ten-task real-repository corpus, the same Caveling setup passed 14/30 · 30–64%. Frontier comparison

See every attempt

./localgauge serve

Open http://127.0.0.1:8000. The viewer is read-only, has no run controls, and gives every page a .json twin for agents. Viewer guide

Viewer overview: one row per setup with pass rate, passes over attempts, 95% interval and failure categories. Viewer overview: one row per setup with pass rate, passes over attempts, 95% interval and failure categories.

Overview: each setup's pass rate with passes/attempts and its 95% interval, tasks × attempts, and failure causes.

Viewer attempt page: a failed timeout verdict, a per-request timing bar and the independent test output. Viewer attempt page: a failed timeout verdict, a per-request timing bar and the independent test output.

Attempt: the verdict, the independent test output, and where the wall time went.

Quick start

On Linux with Pi, Bubblewrap, Go, Python, pytest and llama.cpp (tested versions):

  1. Install Pi and clone the repository:

    npm install -g --ignore-scripts @earendil-works/pi-coding-agent@1.7.0
    git clone https://github.com/gambtho/localgauge.git
    cd localgauge
    
  2. Start a local server. It stays in the foreground:

    llama serve -hf unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M --ctx-size 65536 \
      --gpu-layers 999 --cache-type-k q8_0 --cache-type-v q8_0 \
      --host 127.0.0.1 --port 8080 --jinja
    
  3. Once it is ready, run one independently verified task from the repository root in a second terminal:

    python3 -m evals.run_task --base-url http://127.0.0.1:8080/v1 \
      --model 'unsloth/Inkling-2-Mini-GGUF:UD-Q4_K_M' \
      --fixture evals/tasks/go-bugfix-01 --attempts 1
    

This is a new Inkling run, not a reproduction of the Caveling result above. Next: the full guide, how it measures, delegating one task.