Skip to content

warpgrid v0.2.0

Choose a tag to compare

@cglab-public cglab-public released this 25 Nov 17:21
· 17 commits to main since this release
283cb21

warpgrid v0.2.0 introduces Cross-Slot Paged Global KV (Radix Prefix Cache) and Chunked Prefill Interleaving across both NVIDIA Blackwell CUDA (sm_121a) and Apple Silicon Metal.

What's New

  • Cross-Slot Paged Global KV (block_size = 64):
    • Shared physical FP8 E4M3 global KV block pool with d_block_tables indirection across all CUDA (CUDA-graph-safe) and Apple Metal global attention kernels.
    • Reference-counted RadixPrefixCache with LRU leaf eviction and pinned boundary snapshots (local SWA ring + sconv states) so concurrent slots share identical system prompts with zero global KV duplication.
    • Leader/follower concurrent prefix deduplication: when multiple queued requests share an uncached system prompt, the leader prefills and publishes the shared prefix once before followers are admitted.
  • Chunked Prefill Interleaving:
    • Shortest-remaining-prefill-first admission combined with chunked prefill (--max-chunk) interleaved with 4-step decode bursts so cache-hit and active decoding streams are no longer head-of-line blocked behind incoming 30K+ cold prefills.
  • HTTP Hardening:
    • Case-insensitive Content-Length header parsing (parse_content_length) fixing large POST bodies from clients like Python urllib that send Content-length:.

DGX Spark Benchmark (c = 8 @ ~30K, 4 shared system prompt / 4 unshared)

Scenario Shared Half (29,992 tok) Unshared Half (30,011 tok) Shared vs. Unshared TTFT Gap
Round 1 (cold shared, leader + 3 followers) 34.86s med (3/4 hit 29,952) 107.62s med (61.9–150.4s) 3.1× faster TTFT
Round 2 (warm shared vs. fresh unshared) 1.58s med (4/4 hit 29,952, 99.87%) 80.49s med (34.8–123.2s) 51× faster TTFT

Prebuilt Binaries

Asset Platform Requirements
warpgrid-v0.2.0-macos-arm64.tar.gz Apple Silicon (arm64, Metal) macOS 15.0+ (embedded precompiled .metallib, links Apple system frameworks only)
warpgrid-v0.2.0-linux-aarch64-dgx-spark-cuda13.tar.gz NVIDIA DGX Spark (aarch64, GB10 sm_121a) Linux aarch64 with CUDA 13.0 runtime (libcublas.so.13, libcublasLt.so.13)

Verify checksums with SHA256SUMS.txt:

shasum -a 256 -c SHA256SUMS.txt