This page needs JavaScript. For agents, the same page as Markdown: https://instabox.sh/blog/inkling-2-mini-on-our-gpus.md (below); the whole site: https://instabox.sh/llms.txt. # Running Inkling 2 Mini at 318 tok/s on the GPUs we already had https://instabox.sh/blog/inkling-2-mini-on-our-gpus.md 2026-11-25 · Junwen Feng · Engineering Inkling 2 Mini officially needs a Hopper-class GPU and a vLLM that hasn't shipped yet. Here is how we got it to 318 tok/s on an H100 PCIe and 241 on one A100, and how we cut an endpoint's start from about 12 minutes to 5. Thinking Machines released Inkling 2 Mini on November 20: open weights under Apache 2.0, a 26B mixture-of-experts with about 3.4B parameters active per token, roughly 20 GB on disk. Two days later we wanted it in the InstaBox Endpoints catalog. The catch was our hardware. We run T4s, L4s, A100 40 GB cards and one H100 PCIe. The official checkpoint stores its weights in NVFP4 and MXFP8, and vLLM's kernels for those formats need compute capability 9.0 or newer. That leaves out everything we have except the H100, and the official vLLM image crashed even there. This post covers what we did about it in two parts. The first is speed: which engine, which patches and which settings give the most tokens per second on each card. The second is start time: an endpoint nobody waits 30 minutes for. ## Where we started: llama.cpp on every card The community GGUF builds run in llama.cpp on any CUDA GPU, so that was the first baseline. One request at a time, 32k context: | GPU | Build | Generate | Prompt | | ---------- | -------------------- | ------------- | ----------- | | T4 16 GB | IQ3_XXS, 16k context | 25-26 tok/s | ~290 tok/s | | L4 24 GB | Q4_K_M | 35 tok/s | 787 tok/s | | A100 40 GB | Q8_0 / Q4_K_M | 42 / 44 tok/s | ~860 tok/s | | H100 80 GB | Q4_K_M | 61 tok/s | 1,837 tok/s | A third-party fork that fuses Inkling's small CUDA ops (`realugbun/llama.cpp`, branch `inkling2-speed`) added 20% on the L4 and about 55% on the H100, which took the H100 to 94 tok/s. The H100 hardware allows a lot more than that. A decode step reads about 3 GB of Q4 weights, and 2 TB/s of memory bandwidth would allow roughly 600 steps a second. Inkling runs 48 looped layer passes of small matrix work per token, so the GPU spends most of its time waiting between kernels. Closing that gap took a different engine. ## vLLM with community patches and DSpark People in the community were already reporting 200+ tok/s for a single user on RTX 3090s and 5090s. They all did the same two things: vLLM (or a custom engine) with CUDA graphs, and DSpark speculative decoding. DSpark is a draft head that ships in the checkpoint (`mtp.safetensors`). It proposes up to seven tokens and the main model checks them in one pass. We started from [lulakien/inkling2-mini-3090-recipe](https://github.com/lulakien/inkling2-mini-3090-recipe). It replaces whole files in vLLM's Inkling image with portable versions of the kernels that the image only ships for Blackwell. The recipe targets the 3090 (sm_86). On the H100 it needed two more changes: - **Version guards.** The recipe takes its portable path when the compute capability is below 9. The H100 is 9.0, so it fell through to native kernels that have no sm_90 build. We moved the guards to `< 10` in six files. - **The KV-cache write.** DSpark's `reshape_and_cache_flash` call also has no sm_90 build. We replaced it with a 15-line Triton scatter that writes the same layout. Then came the settings. Sampling the draft greedily instead of probabilistically made the biggest difference on code: | H100, vLLM + DSpark, 512-token answers | Code, 1 user | Prose, 1 user | Code, 4 users total | | -------------------------------------- | ------------- | ------------- | ------------------- | | No DSpark | 86 tok/s | 121 tok/s | 240 tok/s | | DSpark, probabilistic draft | 185-203 tok/s | 154-168 tok/s | 666 tok/s | | DSpark, greedy draft | 258-265 tok/s | 145-151 tok/s | 614 tok/s | DSpark accepts about 3.2 drafted tokens per step on code and noticeably fewer on prose, so prose stays near 150 whatever we set. Two things we tried that didn't help: int8 draft weights (within noise on code, about 10% faster on prose) and a custom engine built for the RTX 5090 (203 tok/s once its Blackwell-only FP4 instruction was replaced with a software version). ### The A100 and the L4 The A100 is sm_80, below even the 3090 recipe's target. [snailbrainx/inkling-2-mini-sm80](https://github.com/snailbrainx/inkling-2-mini-sm80) supplies Triton stand-ins for the operations that have no sm_80 kernel. With it, one 40 GB A100 reached 228 tok/s on code and 167 on prose. At first a 32k context didn't fit: vLLM wanted 17.8 GiB of KV cache and only had 15. Cutting the batch (`--max-num-batched-tokens 2048`, `--max-num-seqs 4`) freed enough for about 99k tokens of cache, which holds three full 32k requests at once. The L4 runs the 3090 recipe without changes. It is capped by memory bandwidth (about 300 GB/s), and DSpark accepts only 2.2-2.5 tokens per step there, so it reaches 48-68 tok/s on code. That is a small gain over llama.cpp for one user, but it handles four users noticeably better. ## Into the template Running a 44 GB container image as a chroot works for a test, but it makes a slow start. So the `gpu-inference` template (A100) and `gpu-metal-inference` (H100) now carry an Inkling runtime next to their stock vLLM 0.34.0: - `/opt/inkling/site` holds a pinned vLLM nightly (0.34.0rc1.dev1161) and the four packages it needs at other versions, every wheel checked by sha256. It reuses the image's Python and PyTorch, so it adds about 1.4 GiB, and plain `vllm serve` is still 0.34.0. - One patch, applied at build time, carries the sm_80 changes to that nightly and turns on its low-row matmul kernels on Hopper. A wheel it no longer applies to fails the build instead of shipping something broken. - `instabox-inkling-serve` picks the settings measured for the GPUs it finds: kernels and draft length for the H100, the sm_80 path on A100s, and tensor parallel when there are several A100s. - `check-answers.py` runs 16 correctness checks against the server: generated functions run against tests, facts, an exact 40-object JSON array, a tool call and repeated identical prompts. We don't publish a speed number from a server that fails one. Measured from the template, one request at a time, temperature 0, thinking on: | GPUs | Code | Prose | JSON list | Checks | | ------------------------------ | --------- | --------- | --------- | ------ | | 2x A100 40 GB, tensor parallel | 324 tok/s | 202 tok/s | 384 tok/s | 16/16 | | 1x A100 40 GB | 231 tok/s | 157 tok/s | 275 tok/s | 16/16 | | 1x H100 80 GB PCIe | 302 tok/s | 191 tok/s | 377 tok/s | 16/16 | The same images also ship Strata 0.2.20 with its own Inkling engine, `strata-inkling`. It is a separate path we have not benchmarked against vLLM yet. ### Endpoints switch to the built-in runtime The first Inkling endpoints still used the chroot. On every cold start the launch script downloaded the patches, exported the 44 GB image with `crane`, copied in the driver libraries and set up bind mounts. The export alone took about 8 minutes, and the server came up 3-4 minutes after that. The endpoint now checks for the template's runtime and calls `instabox-inkling-serve` directly. The chroot remains only as a fallback, for the L4 (its `gpu` template has no runtime) and for older machines without one. The H100 uses the launcher's own settings: 4 draft tokens, probabilistic sampling, up to 8 requests. On one A100 the launcher defaults to an 8k context, so the endpoint passes the same batch limits as before to keep the 32k it offers. That leaves 99k tokens of KV cache, enough for three full 32k requests at once. Measured on fresh machines, with the weights coming through the host cache: | | Start to serving | Restart | Code, 1 user | Prose, 1 user | 4 users, total | Checks | | --------------------------- | ---------------- | ------- | ------------ | ------------- | -------------- | ------ | | H100, chroot (before) | ~11-12 min | n/a | 260 tok/s | ~150 tok/s | 614 tok/s | n/a | | H100, built-in runtime | 5.1 min | 51 s | 318 tok/s | 189 tok/s | 637-645 tok/s | 16/16 | | A100, chroot (before) | ~11-12 min | n/a | 220 tok/s | ~150 tok/s | 506 tok/s | n/a | | A100, built-in runtime, 32k | 8.7 min | 89 s | 241 tok/s | 156 tok/s | 476-479 tok/s | 16/16 | Loading the weights now takes 2-5 seconds. Almost all of the first start goes to compiling Triton and JIT kernels and capturing CUDA graphs. The H100 got faster on every count. The A100 is faster for one user and about 6% slower for four, a trade we accept for a cold start that is 3 minutes shorter. ## Start time: engines in the image, weights on the host Speed is half of an endpoint. The other half is how long someone waits after clicking Deploy. A cold start has three parts. The engine installs, which took 10-30 minutes for vLLM alone. The weights download from Hugging Face. Then the engine prepares and loads them. We removed the parts we could: **The engine ships in the template.** vLLM, Strata with its engines, and now the Inkling runtime are part of the inference templates. A new machine starts with the engine already installed. **A Hugging Face cache on every GPU host.** Each GPU host runs a read-through cache in front of the Hugging Face Hub, and the templates point `HF_ENDPOINT` at it. The first machine on a host downloads a model. Every later one reads it from the host's disk. The cache is on every GPU pool: 500 GiB on L4, A100 and H100 hosts, 150 GiB on T4. Getting it working meant handling Hugging Face's Xet storage, which hands out content hashes and read tokens that a naive proxy drops. On a small test model, a miss took 17.3 s and a hit 3.7 s, with identical bytes. For Strata's 84 GB Qwen3.8 Flash Next, an H100 start fell from 30.5 minutes to 13.5 with the cache warm, and 2x A100 from 51 to 18. **Faster host disks.** With the network out of the way, the A100 hosts' data disks became the limit: 353 and 501 MB/s raw. We grew both online to 2 TB, which raises a persistent disk's throughput ceiling, and they now read at 811 MB/s. Inside a sandbox it is about 600 MB/s. The remaining loss comes from the host's buffered loop device, and attaching the images with direct I/O measured 810 MB/s inside a sandbox. That change hasn't shipped yet. **Warm snapshots, where they still help.** A snapshot with the engine and weights already on the machine skips everything except loading. An L4 Inkling endpoint started from one answered in 3.4 minutes, so the L4 keeps its snapshot. The H100 went the other way: restoring its 200 GiB snapshot took about 17 minutes, while the built-in runtime serves in about 5. Inkling endpoints on the H100 and the A100 now start from the template and skip the snapshot. ## What we got wrong along the way Single benchmark runs lied to us twice. A draft-length-4 run on the H100 showed 764-781 tok/s for four users, and an L4 run showed 214. Repeated runs gave 548-641 and 125-136. Every number in the catalog now comes from repeated, logged runs. We also learned to label the workload. "Tokens per second" for code with speculative decoding and for prose can differ by close to 2x on the same card. The Endpoints page shows code as the headline and prose as a note, for example "318 tok/s, ~190 on prose" on the H100. ## Where it stands Inkling 2 Mini is the first model on the Endpoints create page. A new endpoint serves in 5-10 minutes on the H100 and A100, and in 15-25 on the L4: | GPU | 1 user, code | 1 user, prose | 4 users, total | | ---------- | ------------ | ------------- | -------------- | | H100 80 GB | 318 tok/s | ~190 tok/s | 640 tok/s | | A100 40 GB | 241 tok/s | ~155 tok/s | 478 tok/s | | L4 24 GB | 58 tok/s | ~44 tok/s | 130 tok/s | Next, we will add more GPU types and keep optimizing how we serve the model.