Skip to content
Projekte

Über uns

Local inference you can prove. A single-binary GGUF engine in C: serves, scores, and trains LoRA through the quantized weights it deploys, byte-reproducibly. Tool calls survive the token limit; every run replays as a signed receipt. CPU/CUDA/Metal, OpenAI- and Anthropic-compatible.

KI und maschinelles Lernen

So werden diese Zahlen gemessen

Gemessener Sternzuwachs

in 24h
0
in 7 days
+2
in 15 days
+3
in 1 month
Verlauf wird gesammelt

Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.

README.md

Original

Xyntetik Runner

Lifecycle engine with inference you can prove.

xyntetik.com · Evidence · Model files · Manual

Running a model yourself is mostly guesswork. Will it fit? Did shrinking it break it? Why is my laptop out of memory when nothing is running? Runner exists to replace those guesses with answers you can check.

runner --fit (today --info fit) reading the first 16 MB of Granite 4.2 8B on an RTX 3070: FITS, 35 of 40 layers on the GPU

Real output: Runner asked about Granite 4.2 8B on an RTX 3070 (October 2026), shortened to fit. Full capture

  • Ask before you download. Runner reads the first few megabytes of a model and tells you whether it fits your machine, and how. It called the real split in 70 of 72 tests (release 1.0.1, October 2026) and was never too optimistic.
  • Shrink a model and see what it cost. One command and a one-line plan built a Qwen3-30B that is smaller than the official 4-bit file and closer to the original.
  • Read longer documents in the same memory. The context cache fits in about 41% of the usual space, with full agreement on models from 4B to 30B.
  • Leave it running. A 63 GB model sitting idle holds 35 MB of your memory. On the same Mac, llama-server holds 60.8 GB.
  • Trust what comes out. A tool call still parses when the model runs out of words, a fine-tune comes out the same twice, byte for byte, and any run can be signed and replayed by someone else.

It takes about a minute to try: quick start.

What is it?

  • One file. A single program written from scratch in plain C. No Python, no installer, nothing underneath it. Download it and run it.
  • Runs on what you have. Ordinary processors, NVIDIA graphics cards and Apple Silicon, on Linux, macOS and Windows.
  • Speaks what your tools speak. Standard GGUF model files and the OpenAI and Anthropic APIs, so your apps and coding agents connect without changes.
  • Measured, not assumed. Twelve model families have been scored against their publishers' own implementations, and Runner is closer to the reference than llama.cpp on 20 of 23 rows (the measurement). A model it does not know is refused by name, never guessed at.
  • Yours. Free forever under Apache 2.0, built in Sweden, and your prompts never leave your machine.

Support this work

If a file here saved you memory or time, a contribution funds the hardware time behind the next one.
Request a model · Report a result · Report a bug · Community results

Published release: 1.24.0. This release makes long-context prompt and decode faster on Inkling 2 Mini's opt-in CUDA route (RUNNER_INKLING2_CUDA=1). The two-pass prompt core and the one-query decode core preserve the previous arithmetic. Row-blocked dense prompt products, a wider q8 decode core, grouped decode projections and merged decode uploads now run by default where supported. The CPU remains the default backend for Inkling 2 Mini. CUDA still needs enough device memory for whole placement, and CPU and CUDA logits are compared within a tolerance. See the CHANGELOG for all changes and known limits.

Version 1.24.0. The command line, the HTTP API, the record formats and the model files that load stay compatible across 1.x (versioning policy). This page is the short version; every flag, endpoint, limit and measurement is in the manual.

On this page: Quick start · The Xyntetik-Lab · Will it fit · Make your own file · More context, less memory · Idle memory · Tool calls · Training · Validated models · Also in the box · All commands · Prove what a model did

Quick start

1. Download Runner (macOS on Apple Silicon shown; Linux, Windows and checksum steps):

curl -LO https://github.com/Joakimpalm-Zen/xyntetik-runner/releases/latest/download/runner-macos-arm64
chmod +x runner-macos-arm64 && mv runner-macos-arm64 runner

Or with Homebrew (macOS on Apple Silicon, Linux on x86-64), which installs the same released binary as runner on your PATH; drop the ./ in the commands below:

brew trust --formula joakimpalm-zen/xyntetik/xyntetik-runner
brew install joakimpalm-zen/xyntetik/xyntetik-runner

Recent Homebrew versions load a formula from a tap outside Homebrew's own only after you trust it; the first line trusts this one formula.

2. Start a model. Runner downloads it, checks it against the Hub's SHA-256 record and serves it on http://127.0.0.1:8080:

./runner -hf Joakimpalm-Zen/Qwen3-30B-A3B-derive-GGUF --serve
# on an 8 GB machine, start smaller:
./runner -hf ibm-granite/granite-4.1-3b-GGUF:Q8_0 --serve

3. Send a request:

curl http://127.0.0.1:8080/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"messages":[{"role":"user","content":"Say hello in one sentence."}]}'

Prefer to chat in the terminal? ./runner -m model.gguf -i.

Hugging Face The Xyntetik-Lab on Hugging Face

The lab publishes everything it makes, with the measurements and the failures left in. Step inside the lab to check the Xyntetik-Runner releases, or follow one of these.

Know whether a model fits before you download it

On an RTX 3070 with the 1.0.1 release (2026-10-03), --info fit named the same GPU and CPU split the loader then used in 70 of 72 cases and was one layer cautious in the other two (six models, two context sizes, four cache formats).

Why. Finding out that a model does not fit usually means downloading 20 GB and watching it crash. The answer is already written in the first few megabytes of the file. Runner reads just that part and tells you, with the arithmetic.

How.

# fetch only the first 16 MB of a model, then ask
curl -r 0-16777215 -L -o head.gguf \
  https://huggingface.co/ORG/REPO/resolve/main/MODEL.gguf
./runner -m head.gguf --info fit -c 16384
  gpu           NVIDIA GeForce RTX 3070, offload budget 6.95 GiB right now
  split         f16: 35 of 40 layers on the GPU, 1.22 GiB in RAM  | --kv q8: 39 of 40 layers on the GPU, 0.47 GiB in RAM  | ...
  verdict       FITS — 35 of 40 layers on the GPU, 6.53 GiB of RAM to spare at ctx 16384

Not sure which file to try? ./runner recommend lists the supported files that fit this machine, largest first, each with its measured fidelity line or marked unmeasured. It works offline from the list built into the binary. Details

./runner cached lists the files already downloaded by -hf or --pull, with their sizes and freshly computed SHA-256 digests. It works offline; --sizes-only skips hashing for a quick list, and --json gives structured output. Details

For a remote proof of concept, keep Runner on loopback and put TLS and a bearer API key in the tested Caddy/Compose front.

./runner --info caps says what this machine and build can run, and ./runner -m model.gguf --info doctor loads a model, probes it and reports. How the verdict is computed

Make your own model file, measured

A 17.1 GB Qwen3-30B-A3B file came from one command, measured against Qwen's own float32 model and carded by Runner itself. It is 1.45 GB smaller than Qwen's official 4-bit file and passes the fidelity bar that file fails: 0.0290 mean KLD and 99.01% margin-qualified top-1, where the official file reads 0.0909 and 94.80%.

The usual way shrinks a model with the same mix for every model, scores it elsewhere if at all and writes the card by hand; runner derive is one command that makes the file, measures it against the publisher's float32 model and writes its card and record

Why. The usual way to shrink a model squeezes every part by the same rule, and the file is rarely measured against the original afterwards. runner derive measures which parts can take the squeeze, makes the file, measures how far it drifted from the publisher's model, and writes the numbers into the file's card.

How. One command, from a parent file and a target size:

--imatrix calibrates rounding for q3_k, q4_0, q4_k, q5_k, q6_k, q5_1, iq3_xxs and iq4_nl, and for the q5_0 a q4_k target falls back to on a row 256 does not divide, using ggml's type-specific weighted writers. The five added formats match pinned ggml bytes on a real tensor slice and deterministic boundary rows; the fixture records the inputs and reference build.

# hf:DIR is a local download of Qwen/Qwen3-30B-A3B (huggingface-cli download Qwen/Qwen3-30B-A3B --local-dir Qwen3-30B-A3B)
./runner derive -m Qwen3-30B-A3B-Q8_0.gguf -o out.gguf --target-size 17106040320 \
    --high q4_0 --low q3_k --match _exps --imatrix Qwen_Qwen3-30B-A3B.imatrix \
    --reference hf:./Qwen3-30B-A3B --reference-arg --upcast-at-use

Three Qwen3-30B-A3B files against Qwen's float32 model over the same 2,000 positions: the official Q4_K_M at 18.56 GB reads 0.0909 mean KLD and fails the 0.05 bar, our hand-built 17.99 GB selective file 0.0279, and the 17.11 GB derive file 0.0290

The record · runner derive options

Lower-level tools. derive strings these together, and each also runs on its own. A plan file sets each tensor's precision by name, --prune-experts drops the experts a mixture-of-experts model rarely uses, and --remove-sublayer takes out one block's attention or feed-forward branch. A three-rule plan wrote an 8.99 GB Mellum 2.1 file (attention Q8_0, experts Q5_K) that passes the bar against JetBrains' float32 model, 0.0293 mean KLD and 98.74% margin-qualified top-1, where the publisher's own Q4_K_M reads 0.1172 and fails:

./runner -m model-Q8_0.gguf --rewrite out.gguf --type-plan plan.json
./runner -m model.gguf --rewrite pruned.gguf --prune-experts keep.json
./runner -m model.gguf --rewrite cut.gguf --remove-sublayer attn:48

Plan formats

Fit more context in the same memory

--kv k8v4 stores the context cache in about 41% of the usual bytes. On three models from 4B to 30B it agreed with the full-size cache on 100% of clear-cut tokens (500 positions each).

Why. While a model reads a long document it keeps notes on every word so far, and on a long context those notes can take more memory than you have left. Runner can write the notes smaller. It keeps 8 bits for the half that decides where to look, which measurement showed is the half that matters, and shrinks the other half to 4 bits.

How.

./runner -m model.gguf --serve -c 32768 --kv k8v4
./runner -m model.gguf --serve -c 32768 --kv q8     # the gentler setting, about half

On a sliding-window model (gemma-3, gemma-4, gpt-oss and others) Runner keeps only each sliding layer's window when the full cache would not fit, with identical output (--kv-ring).

--info fit shows what each setting buys on your machine before you load anything. Cache formats and their measured cost

A server that gives your memory back

A 63 GB model, loaded and idle on a 128 GB Apple Silicon Mac, holds 35 MB of wired memory under Runner and 60.8 GB under llama-server. On an 8 GB Apple M1 it is 8 MB against 3,819 MB.

Wired memory with a 63 GB model loaded and idle: Runner 35 MB on a 0 to 40 MB scale, llama-server 60.8 GB off the scale

Why. A model server usually lives on the machine you also work on. Most servers hold all of the model's memory until you quit them. Runner keeps the model as memory the operating system may take back whenever another app needs it, and reads it in again on the next request.

How.

./runner -m model.gguf --serve --ttl 300          # unload after five idle minutes
curl -X POST http://127.0.0.1:8080/unload         # or hand everything back now
./runner -m second.gguf --serve --port 8081 --wait-for-vram   # queue for a busy GPU

Idle measurements · Sharing a GPU

Tool calls that survive the token limit

One truncated tool call across six engines: only Runner returns a usable call below the control budget

Six engines, one tool call cut short by the token limit. Runner was the only one to return a call a program could run, at every budget from 1 to 16 tokens.

Why. A model only gets so many words per reply. If it runs out halfway through filling in a form for a tool, most engines hand your program half a form, and the agent has to start again. Runner finishes the form in the smallest valid way and tells you which fields it filled in itself.

How. Nothing to switch on. Serve a model and send a request with tools; a call cut short by max_tokens still parses, and runner_telemetry.closure lists the values the closer wrote.

./runner -m model.gguf --serve

Measured on the same prompt and schema against vLLM, llama.cpp, Ollama, TensorRT-LLM and SGLang. Method and raw responses · Details

Train the model file you actually serve

Runner trains a LoRA adapter through the quantized file you serve, in the same binary, with no Python stack. With --train-gpu a step on a 7B model takes about ten seconds on a consumer NVIDIA GPU (90 s on the CPU beside it), and training covers dense models, the Qwen3.5 and Clef hybrids, and attention-only adapters on sparse-MoE models. On Qwen3-4B at 4 bits, exact tool calls on a held-out set went from 0.69 to 1.00 in 316 steps; two runs wrote the same adapter, checksum for checksum, an independent tester reproduced that on a Tesla T4, and stock llama.cpp scores the adapter at the same 1.00.

The usual path trains a 16-bit copy in a Python stack, merges, quantizes and ships a different file; Runner trains an adapter through the 4-bit file it serves and serves or merges it on that file

Why. Teaching a model a new habit normally means training a 16-bit copy in a Python framework, quantizing the result, and serving that in a third tool: three tools, two numerical paths, and the file you tested is not the file you ship. Runner's serving forward pass is its training forward pass, so the adapter is trained on the exact weights it will run on, and every adapter is written beside a record of what made it.

How.

./runner train data.jsonl -m base-Q4_K_M.gguf --steps 200 \
  --lora-rank 8 --out adapter.gguf
./runner -m base-Q4_K_M.gguf --lora adapter.gguf --serve

Serve the adapter with --lora, or merge it into a Q8_0 or F16 file. Same data, seed and build write the same adapter bytes. runner train --full trains the weights themselves in place of an adapter: a float32 file in, a variant file out. On the CPU with -b 1 the sampler and the trainer agree bit for bit: measured beside vLLM and transformers. Every adapter feature, explained · Walkthrough · Coverage and limits

Actively validated models

Runner keeps loading every model the support matrix admits; the validated files below compare a greedy reply byte for byte with its class-specific pin. Each backend's latest mark names the actual device class, date and Runner version; earlier class runs stay in the evidence.

The validated files by family, what each row claims, every file's full envelope and how to run the check

Also in the box

  • OpenAI and Anthropic APIs. Chat Completions, Responses, Completions, Embeddings and Anthropic Messages on http://127.0.0.1:8080, with each model family's own tool format. OpenCode, Claude Code, Codex CLI, Continue, Cline and pi are checked against it every release. Endpoints · Coding-agent setup
  • Structured output. --json, --json FILE or the API's response_format guarantee the shape of the answer, a oneOf of objects told apart by a const included, and "confirm_below": 0.8 reports whether the model was sure enough to skip a human. Details
  • Rerank without a second model. POST /v1/rerank scores documents against a query with the model that is already loaded. Details
  • A /metrics endpoint. Prometheus counters for tokens, timings, memory and the prefix cache, always on with --serve. Details
  • Multi-file models load as they are. A standard split GGUF set loads from any of its parts, with no merge step. Details
  • Expert layers in system RAM. --cpu-moe keeps a mixture-of-experts model's expert layers off a small graphics card. Details
  • Long thinking turns that finish. --reasoning-budget 512 caps how long a model thinks out loud and --loop-guard closes a turn that has started repeating itself. Reasoning budget · Loop guard
  • Shadow mode. runner --shadow-mode -m model.gguf retries your own finished coding tasks with a local model under your own tests and keeps score. Deprecated: it keeps working through 1.x and is removed no earlier than 2.0.0. Details
  • Desktop tray. On macOS, Windows and Linux desktops (Ubuntu's GNOME with its AppIndicator extension) an icon shows which models are loaded and starts or stops them. Details
  • Draft decoding. --draft small.gguf, --draft mtp, --draft mtp:head.gguf (a NextN/MTP head shipped as a companion file) or --draft lookup. On CUDA with every layer on the device, two measured cases need no flag: a server request with draft_hints, and --json output on Qwen3.5-4B. RUNNER_GRAMMAR_FF=1 also drafts grammar-pinned tokens under JSON constraints, with the plain path's tokens (details). Details
  • Pause and resume a generation. Session images with --sessions DIR. Details
  • Container image and clients. ghcr.io/joakimpalm-zen/xyntetik-runner, a Python client and a TypeScript client. Container
  • What loads. 30 admitted architecture labels and 24 weight formats, verified on download with -hf. Support matrix
  • How Runner compares. Closer to the publisher's reference than llama.cpp on 20 of 23 measured rows, and level or ahead on the reference's chosen token on 22 of 23. The measurement · Evidence · Speed tables · Measure your own quantized file

All commands

The complete list of Runner's commands and flags is the command-line reference, and every endpoint is in the API reference. ./runner --help prints the same list.

Prove what a model did

scripts/audit-demo.sh signs a 1,000-token record, replays it and refuses three forgeries, in under a minute on an 8 GB Mac.

Why. A chat log is only text, and anyone could have typed it. If you have to show what a model really said, you need a record that someone else can run again and get the same answer. Runner writes that record, signs it, and replays it.

How.

./runner -m model.gguf -p "Say hello in one sentence." -s 42 --record run.json
./runner -m model.gguf --verify run.json     # VERIFIED, DIVERGED or UNVERIFIABLE

Around that core: signed and chained receipts (runner attest keygen, --sign-key) that carry an agent turn's tool calls and the tool results it was sent as data a policy can read. A served tool turn records its declarations and grammar settings so --verify can replay it, as it replays a turn cut by a stop sequence, a reasoning budget, the loop guard or a cancel. There are also evidence packs a reviewer checks offline (runner attest pack, runner attest check-pack), signature checks on the model file itself (--model-sig), and a text watermark with its detector (--watermark, runner attest detect).

Where a model came from. Each step that makes a model file (quantize, train, merge) writes a signed record beside it that names its inputs by sha256. runner attest lineage walks a file, or a served answer's receipt, back to the download it started from, and --require-eval refuses a file without a passing evaluation made for those exact bytes. Lineage walkthrough · Details · What is and is not promised

Build from source

git clone https://github.com/Joakimpalm-Zen/xyntetik-runner
cd xyntetik-runner
make
./runner --version   # -> runner 1.24.0

Linux, macOS and Windows. NVIDIA GPUs need a driver with CUDA 13.0 support or newer (the R580 series); no CUDA toolkit is needed. Builds and platforms

Support the project

Xyntetik Runner is independent, built in Sweden, and free forever under Apache 2.0. If it or one of its files is useful to you, a contribution funds the hardware and measurement time behind the next one: one-off, through Stripe, with no tiers and no gated features. What contributions enable

Support this work

Ran a file or the engine on your own hardware? Open a result report; success and failure are both wanted, and each is credited by name in community results. For a problem, include runner --version, runner --info caps, the model's exact filename and the load log. SECURITY.md has the threat model and CONTRIBUTING.md the correctness gates.

License

Apache 2.0.

Third-party code: the GGUF block layouts, the i-quant grids and dequantizers, the reference and importance-weighted quantizers and the xIELU activation are ported from ggml and llama.cpp under the MIT License; NOTICE lists them file by file, and the MIT notice is LICENSES/ggml-MIT.txt. src/ed25519.c is the signing subset of TweetNaCl (Bernstein, van Gastel, Janssen, Lange, Schwabe, Smetsers), placed in the public domain by its authors; the file header records what was kept and what was changed. src/mldsa/ is the ML-DSA-44 (FIPS 204) reference implementation from pq-crystals/dilithium (public domain / CC0, also Apache 2.0), pinned to the 44 parameter set with two recorded changes: keys derive from a caller-supplied seed and signing is deterministic (src/mldsa/sign.c marks both).

Ähnliche Projekte entdecken

Wird geladen…