snap
snap: local-first decision engine for LLM pipelines
Working when we checked on .
What is snap?
snap is a local decision engine for LLM pipelines that turns data plus questions into typed answers, each with a full probability distribution, from a single pass over the model. It is aimed at teams building support triage, agent guardrails, moderation, search reranking, and evaluation pipelines. Instead of generating text, snap formats each question so the answer is a single letter, reads the logits directly, and returns structured JSON with probabilities and coverage. It ships as a single MIT-licensed Rust binary with llama.cpp built in and runs offline on macOS, Linux, and Windows.
snap pricing
Pricing model: Free
Open source (MIT); no paid plans shown
snap pros
- Answers multiple questions in one batched decode with a shared KV cache prefill
- No generated text, so no parsing, retries or cleanup, and no text channel for prompt injection
- Runs fully offline with no API key, telemetry or third party; GGUF weights on disk
- Open source (MIT) Rust single binary for macOS, Linux and Windows, including a static Linux build
- Auditable: same input always gives the same distribution, loggable with full probabilities and x_snap metadata
- Snap calibrate fits a temperature per question type; coverage and confidence support thresholds and abstention
snap cons
- Only 26 option letters; more than 26 options require splitting into yes/no questions (up to 256)
- Persuasion toward a different answer is still possible, though limited and measurable
- Supported models come from a tested list rather than arbitrary weights
- No paid support or hosted deployment options are documented
Frequently asked questions about snap
What is snap?
snap is a decision engine for LLM pipelines. The input is your data plus every question about it; the output is typed answers, each with a full probability distribution, from a single pass over the model, with no generated text to parse.
Who is snap for?
It targets teams building LLM pipelines: support and ops triage, agent guardrails, moderation and compliance labeling, search reranking, LLM-as-judge evals, and labeling or enrichment of free-text backlogs.
How does snap answer questions without generating text?
Each question is phrased so the answer is a single letter. snap runs the model once, reads the logits for those letters, merges token variants, and applies a softmax to produce a probability distribution over your options.
How fast is snap compared to Ollama?
In a measured benchmark on one Apple M1 Max, snap answered 4 questions in 134.6 ms while Ollama (MiniCPM5-2B) writing answers and probabilities as JSON took 3703.6 ms for 282 tokens. Benchmark scripts are reproducible via eval/vs_ollama.py.
What platforms does snap run on?
It ships as a single binary with llama.cpp built in, running the same on macOS, Linux, and Windows, including a fully static Linux build with no Python and no runtime to patch.
Does snap send data anywhere?
No. There is no API key, telemetry, or third party handling records. Weights are a GGUF file on disk, and after the first download snap runs offline. A daily release check prints to stderr and can be disabled with SNAP_NO_UPDATE_CHECK=1.
How does snap handle prompt injection?
Because snap never produces text, there is no text channel for injection. Answers are numbers keyed by your option names in a server-built JSON schema, so data exfiltration, smuggled tool calls, and broken output formats are prevented.
What happens if the model is uncertain?
Coverage shows how much probability landed on your letters, and split confidence or low coverage can reveal manipulation. allow_abstain lets the model say it can't tell, and you can set a threshold to send contested cases to a person.
How many options can a question have?
Up to 26 letters are available directly. With more than 26 options, each option gets its own yes/no question over the same shared prefix, supporting up to 256 options.
Is snap free and open source?
Yes. snap is MIT-licensed Rust that can be read end to end, with downloads on GitHub and a snap1-2b model available on Hugging Face. No paid plans are shown.