PickleEngine

Open source · Apache-2.0 · C++20 / CUDA

PickleEngine

An inference engine for one model on one GPU: Qwen4-35B-A3B in NVFP4 quantisation on a single RTX 5090, served over an OpenAI-compatible HTTP API and improved by a benchmark loop that only keeps measured wins.

Fund GPU hours on Ko-fi

$5 is about 6.7 hours of rented RTX 5090 time at today's median price. See the maths.

  • 852.1tok/s Real decode, with sampling and thinking on +3.3 %
  • 26035tok/s Prefill +30.3 %
  • 256Kctx Context window on a 32 GB card, using 23.85 GiB VRAM
  • ~4.0s Cold load, straight from Hugging Face safetensors

Speeds measured on a clean lab RTX 5090. Percentages are against the previous best result on that same machine. Full table and method.

What makes it different

PickleEngine is a research fork of qwengine. It aims to combine the decode, prefill and prose speeds of qwengine, Basalt, Strata and llama.cpp in one engine.

  • No offline repack

    It loads Hugging Face safetensors directly, with a cold load of about 4.0 s. The per-layer embedding (PLE) table is memory-mapped from host RAM instead of being converted first.

  • Three ways to guess ahead, one policy

    DFlash2 block-diffusion speculative decoding, MTP and prompt lookup sit behind a single cost-model policy. Greedy output stays 100 % bit-exact with plain decoding.

  • 256K context in 32 GB

    The whole mixture-of-experts stack stays in VRAM: 40 layers × 256 NVFP4 experts, 16.88 GiB. The 19.07 GiB FP8 PLE table stays in system RAM. That split is what leaves room for a 256K context.

  • Gains that are measured

    On the clean lab machine, real decode is up 3.3 % and prefill up 30.3 % against the previous best, and no metric in the table loses.

  • A loop with gates

    Every change has to pass frozen-reference KL, argmax and perplexity gates, an end-of-sequence termination probe, and a downstream check of QA 20/20 and code 5/5. Each result carries a state hash, so a revert restores a known identity.

  • Two machines, two jobs

    The loop looks for wins on a clean lab RTX 5090 and only confirms them on a desktop RTX 5090 that is also used for other things. Numbers are only ever compared within one machine.

Benchmarks

Lab machine, clean GPU. These are the numbers we trust. Results matrix dated 2026-12-06.

PickleEngine against the previous best result on the same lab RTX 5090. Speeds in tokens per second, higher is better.
Metric Previous best PickleEngine Δ
QA20/2020/20=
Code5/55/5=
SVG12251269+3.6 %
CodeGen10341081+4.5 %
LongCode10841150+6.1 %
Chat658687+4.4 %
Prose586607+3.6 %
Prefill1998526035+30.3 %
Real decode824.6852.1+3.3 %
Real chat696.2717.4+3.0 %
Real code846.2874.4+3.3 %
Real mixed956.9986.2+3.1 %
  • QA and Code are quality checks, not speeds: correct answers out of 20 and coding tasks passed out of 5.
  • SVG, CodeGen, LongCode, Chat and Prose are decode throughput in tok/s on fixed prompts; the benchmark reports the median decode rate. Prefill is prompt-processing speed in tok/s.
  • The “Real” rows are tok/s under real settings, with sampling and thinking enabled: 4 seeds, median per workload. “Real decode” is the geometric mean of the workloads.
  • Previous best is the best result previously recorded on that same machine. Numbers from different machines are never compared with each other.
  • The desktop machine is noisier. Its GPU is shared with the desktop shell and other GPU work, which can take up to 15 %. There, real decode went from about 540–585 to about 700 tok/s and prefill from 13132 to 23132 tok/s, while SVG (1275 → 1093) and CodeGen (1047 → 954) came out lower. The results file marks those two as noise, because the lab machine measured the same changes as gains.

What your money buys

GPU time. Donations go to the maintainer's Vast.ai credit and are spent only on GPU rental for this engine.

Donation to RTX 5090 hours at $0.67 per GPU-hour. Hours are rounded down to one decimal.
Donation Net after fees GPU-hours
$3$2.613.8 h
$5$4.556.7 h
$10$9.4014.0 h
$25$23.9535.7 h
$50$48.2071.9 h
$100$96.70144.3 h
gpu_hours      = (amount * 0.97 - 0.30) / price_per_hour
price_per_hour = 0.67
  • The price is a marketplace median, not a receipt. $0.67/h was the median on-demand RTX 5090 price on Vast.ai on 2026-12-06, with offers starting at $0.39/h. The project has not rented there yet.
  • Prices move. The same donation buys more or fewer hours tomorrow. Storage and bandwidth cost a little extra on top of the hourly rate.
  • The fee is an assumption. Ko-fi takes 0 % on one-off donations. The payment processor takes roughly 3 % + $0.30 per payment; that figure is our estimate, not a quoted Ko-fi fee.
  • No “iterations per dollar” claim. We have not measured how many GPU-hours one loop iteration or one night run costs, so we do not convert hours into iterations.

Fund GPU hours on Ko-fi

How it improves itself

PickleEngine is developed by an autonomous benchmark loop. In each iteration an agent picks one lever, implements it on a branch and benchmarks it on the clean lab machine. The change is kept only if quality holds and no greedy metric drops by more than 3 %; otherwise the branch is dropped.

To count as holding quality, a candidate must clear frozen-reference gates (perplexity ≤ 1.05, mean KL ≤ 0.05, argmax agreement ≥ 0.88/0.90), terminate before the token cap, and still score QA 20/20 and code 5/5. A second, fast loop runs inside the live server, where the DFlash2 confidence controller picks the verification width for each round from measured cost.

  1. Pick one leverOne change per iteration.
  2. Build it on a branchA branch that fails is dropped.
  3. Benchmark on the lab machineSame machine, same prompts, clean GPU.
  4. Keep it or drop itGates decide. Every result carries a state hash, so undoing is a restore.

Credits and license

PickleEngine is a research fork of qwengine by satellitedown, which is licensed under Apache-2.0.

PickleEngine is licensed under the Apache License 2.0, with the license text unchanged. Its NOTICE file keeps the upstream qwengine notice and the chain qwengine derives from (fngine, ingine, Cinference and NInfer, each Apache-2.0), together with the notices of the vendored dependencies, and states the modifications made in the fork.

Source status: the PickleEngine repository is not public yet. It runs on Linux x86_64 with an NVIDIA Blackwell GPU such as the RTX 5090 (32 GB VRAM or more, driver 580 or newer) and at least 32 GB of system RAM, 64 GB recommended.