Skip to content
@velri-inference

Velri Inference

Native C23 + Khronos Slang AOT LLM inference engine (CPU & Vulkan 1.3) and VTQ trellis weight quantization.

Velri Inference

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.


Repositories

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

Verified Headline Benchmarks

Engine & Compute Kernels (velri + velri-lib)

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 $2^{32}$ velri-lib

Weight Quantization (vtq-research — .vtq v2 vs EXL3 vs GGUF)

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

Note on Naming & History

  • Velri is implemented in C23/C++23 + Khronos Slang AOT (not Rust/CUDA).
  • VTQ (.vtq v2) supersedes the earlier LTQ and .liqk quantization research prototypes.
  • All three repositories are licensed under GNU GPLv3 and maintained by Vemloir.

Popular repositories Loading

  1. velri velri Public

    Native C23/C++23 LLM inference engine with Khronos Slang AOT kernels for CPU & Vulkan 1.3, VRAM offloading, and VTQ quantization

    C 1

  2. vtq-research vtq-research Public

    VTQ (Velri Trellis Quant): hardware-co-designed 16x256 trellis LLM weight quantization (1.5-6.0 bpw) beating EXL3 & GGUF on CPU/GPU

    Python

  3. velri-lib velri-lib Public

    Standalone C23 tensor, execution-graph, and Khronos Slang AOT compute library for CPU (AVX2/AVX-512/ARM64/RISC-V) and Vulkan 1.3

    C

  4. .github .github Public

    Organization profile and community metadata for Velri Inference

  5. velri-inference.github.io velri-inference.github.io Public

    Official website, Schema.org metadata, and llms.txt hub for the Velri Inference ecosystem (velri, velri-lib, vtq-research)

    HTML

Repositories

Showing 5 of 5 repositories

Top languages

Loading…

Most used topics

Loading…