← Home
Quick start

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

shellGPU build (default)
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.

If the build has no code for your card, the engine now says so at upload time: a kernel self-test runs before any weights are transferred, and the message names the device, driver, runtime and architectures. A CUDA build may still fall back to the CPU — but it will say compute path: CPU, and tinycoder_bench --gpu refuses to print CPU numbers.

GPU support

RTX 2080 Tism_75 · native SASS
RTX 3090sm_86 · native SASS
RTX 4090sm_89 · native SASS
RTX 5090sm_120 · CUDA ≥ 12.8

Manual CMake

shellnative SASS for one card
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

shellbenchmark and tests
./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.