Skip to content

Swizzle Runtime v0.1.0

Latest

Choose a tag to compare

@Paramveersingh-S Paramveersingh-S released this 12 Nov 11:03
· 34 commits to main since this release
ccdb036

Swizzle Runtime v0.1.0 (swizzle-rt)

First public release of Swizzle Runtime — an exact, high-throughput Rust inference engine for GGUF & .ktc models with x86-64 AVX2/F16C, NVIDIA CUDA (sm_75–sm_120), and Vulkan compute kernels.

What's Included in v0.1.0 (PRs #1–#4)

  • XOR Bank-Conflict-Free CUDA GEMM Tiling (PR #1): Eliminates +16B shared-memory bank padding (-9.1% SMEM across GemmTile32/64/128) + auto-detects nvcc 12.8+ and SWIZZLE_CUDA_ARCH.
  • Zero-Copy CPU & GPU-Resident Shortlist Screening (PR #2): Pre-quantized PreparedBatch + matmul_indexed_prepared on CPU and CUDA graph-resident Shortlist head screening (Q8_0 / Q6_K, 128 MiB VRAM reserve).
  • Lock-Light CPU Decode & Physical-Core Scheduling (PR #3): Thread-local SINGLE_WORKSPACE quantization scratch buffers, physical-core for_each_decode for n = 1 decode, and FxHashMap session lookup.
  • Live HTTP Telemetry & Latency Percentiles (PR #4): Emits X-Swizzle-Backend, X-Swizzle-TTFT-Ms, X-Swizzle-Tokens-Per-Sec, X-Swizzle-Gen-Tokens, and X-Swizzle-Receipt-Hash on OpenAI endpoints + ttft_ms and decode ITL p50/p95/p99 in swizzle-rt bench.

Verified Hardware Benchmarks (Ryzen 7 170 + RTX 3050 Laptop 4GB, repetitions=5)

  • Qwen3-0.6B-Q8_0.gguf CUDA: 11,804.23 tok/s prefill (43.37 ms TTFT) · 209.70 tok/s decode (ITL p50 4.84 ms) · 759.75 tok/s RAD-1 edit256 (edit_identical: yes)
  • LFM3-1.7B-Q4_K_M.gguf CUDA: 4,985.19 tok/s prefill · 144.26 tok/s decode (ITL p50 7.04 ms) · 656.55 tok/s RAD-1 edit256 (edit_identical: yes)

Quick Install (Linux x86_64 + CUDA 12.8 Driver)

tar -xzf swizzle-rt-v0.1.0-linux-x86_64-cuda12.8.tar.gz
./swizzle-rt-v0.1.0-linux-x86_64-cuda12.8/swizzle-rt bench path/to/model.gguf --device cuda

Checksums

7c422f972c6dabcbd0283f47dfa31507e0c28671f2c5a5b275bc45c4f13e2c37  swizzle-rt-v0.1.0-linux-x86_64-cuda12.8.tar.gz