Website · llms.txt · llms-full.txt · License: GNU GPLv3
Velri is an open-source ecosystem for native neural-network and LLM inference, built around three focused repositories: a C23/C++23 inference engine, a standalone Khronos Slang AOT computation library targeting CPU and Vulkan 1.3, and VTQ (Velri Trellis Quant), a hardware-co-designed trellis weight quantization format (1.5–6.0 bpw).
Stack at a glance: C23 public API · C23/C++23 internals · Khronos Slang (
slangc) build-time AOT · CPU (x86-64 AVX2, AVX-512 VNNI, ARM64, RISC-V 64) + Vulkan 1.3 / SPIR-V 1.6 · Zero Python, PyTorch, CUDA, LLVM, or Slang compiler at runtime.
| Repository | Description | Highlights |
|---|---|---|
velri |
Native C23/C++23 LLM inference engine designed for VRAM offloading | Public C23 API (Context, Model, Program, Session), cascading JSON placement, GPT-2 / Llama / Qwen2, 0 B hot-path allocations |
velri-lib |
Standalone C23 tensor, execution graph, and Khronos Slang AOT compute library (VelriLib::velri) |
23 Slang AOT CPU kernels (incl. 5-loop BLIS & FP64), 29 spirv-val-verified Vulkan 1.3 shaders (CoopMat, FlashAttention, Split-KV), Linux/Windows/Android/macOS cross-compilation |
vtq-research |
VTQ (Velri Trellis Quant, .vtq v2) hardware-co-designed 16×256 trellis weight quantization (1.5–6.0 bpw) |
Tail-biting Ungerboeck TCQ, Outer-DCT rotation for non-power-of-two MoE widths, AVX2 vpshufb & GPU DP4A (1,476.9 GB/s / 96.4% HBM on Blackwell), 36/36 neutral-calibration KLD wins vs EXL3 & GGUF |
| Benchmark | Hardware / Backend | Measured Result | Reference |
|---|---|---|---|
TinyLlama-1.1B W8A8 Decode (64 tokens, batch=1) |
AMD Ryzen 9 9950X (16c, AVX2) |
61.07 tok/s (91.57% DRAM ceiling) |
EN · RU |
TinyLlama-1.1B W8A8 Decode (64 tokens, batch=1) |
NVIDIA RTX 5070 Ti (Vulkan 1.3) |
563.16 tok/s (95.84% on lm_head) |
EN · RU |
Dense CPU Float GEMM (1024×4096×4096) |
AMD Ryzen 9 9950X (16c, Slang AOT) |
4.02–4.29 TFLOPS (FP32/FP16/BF16), 2.05 TFLOPS (FP64) |
velri-lib |
Dense CPU W8A8 GEMM (1024×4096×4096, packed) |
AMD Ryzen 9 9950X (16c, AVX-512 VNNI) |
17.87 TOPS (80.3% VNNI peak), exact mod |
velri-lib |
Domain-neutral calibration (wikitext-2-raw-v1 train), evaluated end-to-end across 3 disjoint traces (nemotron, multilingual, wikitext2) and 4 bitrates (2.5, 3.5, 4.5, 6.0 bpw):
| Model | Architecture | VTQ vs EXL3 KLD | VTQ vs EXL3 Quant Speed | Full Tables |
|---|---|---|---|---|
Llama-3.1-8B-Instruct |
Dense 8B GQA | −15%..−22% lower KLD (12/12 wins) |
1.5×–3.3× faster (2.1× suite) |
EN |
gemma-4-26B-A4B-it |
128-Expert MoE (I=704) |
−47%..−58% lower KLD (12/12 wins) |
3.0×–4.2× faster at 2.5–4.5 bpw (2.2× suite) |
EN |
Qwen3.6-35B-A3B |
256-Expert Hybrid MoE | −16%..−33% lower KLD (12/12 wins) |
1.3×–5.1× faster (2.8× suite) |
EN |
- Velri is implemented in C23/C++23 + Khronos Slang AOT (not Rust/CUDA).
- VTQ (
.vtqv2) supersedes the earlierLTQand.liqkquantization research prototypes. - All three repositories are licensed under GNU GPLv3 and maintained by Vemloir.