C++20 / CUDA · no inference library linked

TinyCoder — a from‑scratch inference engine for GGUF and EXL3

Dequantisation, the int8 MMA GEMM, attention and the gated-delta-net kernels are all implemented in the tree. Measured at 725.8 tok/s prefill and 29.83 tok/s decode on Qwen3.8-27B EXL3, on an 11 GB Turing card — and now compiled natively for Ada and Blackwell, including the RTX 4090 and 5090.

4 GPU pages 2080 Ti → 5090
sm_75–sm_120 native SASS
GGUF + EXL3, both first-class
no inference library linked
New · 1.0.8

Ada and Blackwell are first-class

The engine now emits native code for the RTX 4090 and 5090, and a dead GPU path can no longer report a throughput number. Both are explained in What's new.

Native sm_89 and sm_120

./scripts/build.sh detects the GPU it is building on and adds that architecture. When built with a Blackwell toolkit, a 5090 no longer depends on JIT-compiling sm_86 PTX; CUDA 13.2 builds native sm_89 and sm_120 cubins, and the card receipt proves them at runtime.

RTX 4090RTX 5090sm_120
The 5090 page →

A dead GPU path fails loudly

A kernel self-test runs before any weights upload, and fatal launch errors are latched. The run stops with the device, driver, runtime and architectures instead of printing numbers from launches that never ran.

issue #16self-testno fallback numbers
Read the fix →

One benchmark page per card

The 2080 Ti table is published, the 3090 table is reported, and the 4090/5090 pages stay empty until a real session passes the text gate, checks the native cubin and clears the physics roof.

2080 Ti309040905090
Benchmarks by GPU →
The engine

An inference engine, not a wrapper around one

GGUF and EXL3 loaders, the int8 MMA GEMM, attention and the gated-delta-net recurrence are all in this tree. cuBLAS is used as a plain GEMM and nothing else.

Every kernel in the tree

Dequantisation, the int8 mma.s8 stream-K GEMM, warp flash attention, the recurrent kernels and the samplers are implemented here. No llama.cpp, ggml, Candle, PyTorch or ExLlamaV3 underneath.

C++20CUDAfrom scratch

cuBLAS is only a GEMM

Prefill has two paths: cuBLAS fp16 tensor cores, and the in-tree int8 stream-K MMA that quantises activations to Q8_0 and reads GGUF blocks straight from VRAM.

cuBLASint8 MMAQ8_0

Two first-class formats

GGUF v3 — K-quants, the IQ series, NVFP4 and Prism ternary. EXL3 — exllamav3's trellis format, read directly from a checkpoint directory. Model::load sniffs the format.

GGUFEXL3IQ-seriesNVFP4
Kernels, EXL3 and native GPU support →
Downstream integration

The VS Code extension is one consumer

The extension embeds tinycoder_core through its own N-API bridge, adding a chat panel and editor commands. It is not the pitch — the library is the product — but it proves the embedding path works.

How it embeds
How it embeds
  1. FetchContent pulls the engine and links tinycoder_core.
  2. The extension adds an N-API bridge over the C++ Model.
  3. VS Code renders chat and commands over that bridge.

Run it on the GPU you already own

MIT-licensed C++20/CUDA. Clone the engine, build with CUDA, point TINYCODER_MODEL_PATH at a GGUF file or an EXL3 checkpoint directory.