Build it, then point it at a checkpoint
A C++20 compiler, CMake and (for GPU offload) the CUDA Toolkit. The one-shot script configures, builds and tests; a GPU build is the default whenever nvcc is on the PATH.
One-shot build
git clone https://github.com/mgorshkov/tinycoder-inference
cd tinycoder-inference
./scripts/build.sh
# CPU-only
./scripts/build.sh --no-cuda
# explicit kernel targets (CMake syntax)
./scripts/build.sh --arch='75;80;86;120'
On an Ada or Blackwell box, build.sh detects the visible GPU and adds its architecture to the portable default list, so a 4090/5090 gets native SASS instead of depending on PTX JIT. sm_120 needs CUDA ≥ 12.8; CUDA 13.2 was verified on the reference tree.
compute path: CPU, and tinycoder_bench --gpu refuses to print CPU numbers.GPU support
Manual CMake
cmake -B build -DCMAKE_BUILD_TYPE=Release -DENABLE_CUDA=ON \
-DCMAKE_CUDA_ARCHITECTURES=120
cmake --build build --config Release -j
ctest --test-dir build --output-on-failure
Run
./build/benchmarks/tinycoder_bench \
--model /path/to/model.gguf \
--n-prompts 512 --n-gen 128 --threads 36
# or point the gated tests at a checkpoint
TINYCODER_MODEL_PATH=/path/to/model.gguf \
./build/unit_tests/tinycoder_test --gtest_filter='FullQuestions*'
Formats and models
GGUF v3 — K-quants (Q2_K to Q6_K), Q5_0/Q5_1/Q8_0, the IQ series, NVFP4/Q2_0 and Prism pq2_0 ternary. EXL3 — exllamav3's trellis format, loaded directly from a Hugging Face checkpoint directory. Supported model families include Qwen2.5, Qwen3.5/3.6/3.8 (dense and MoE), Ornith, Gemma 4, Inkling-2-Mini and Prism Ternary-Bonsai.