Skip to content

vLLM HTR v0.2.13 — 1M NVFP4 GTT Cut from 114.68 to 111.83 GiB (-4.78 GiB Total Footprint vs v0.2.8)

Latest

Choose a tag to compare

@hstolte11-collab hstolte11-collab released this 01 Dec 02:36
· 1 commit to main since this release

vLLM HTR v0.2.13 — 1M NVFP4 GTT Cut from 114.68 GiB (v0.2.8) to 111.83 GiB (-4.78 GiB Total Footprint, 6.2× Post-Prefill Headroom)

  • Immutable image: ghcr.io/hawgauto/vllm-htr@sha256:88e8b8aa4f61e2c3e9ea317fbb5bbc0b076f5744002817cb645c4bc2aeca984a
  • Tag alias: ghcr.io/hawgauto/vllm-htr:v0.2.13
  • Headline (ERNIE-5.5-Flash-Preview-HTR, 1M NVFP4 + 4 GiB KV + DSpark-5 + FlashIndexer on 128 GB Strix Halo):
    • DRM GTT held at 1M: 114.68 GiB (v0.2.8) → 111.83 GiB (v0.2.13) (-2.85 GiB idle GTT, -3.5+ GiB post-prefill — only +1.07 GiB above pure 107.01 GiB weights + 3.75 GiB KV!)
    • Total container footprint (DRM + CPU Private_Dirty): 118.70 GiB → 113.92 GiB (-4.78 GiB erased, CPU Private_Dirty cut -50% from 3.85 GiB to 1.92 GiB!)
    • Host available RAM (post-5.8K chunked prefill): 0.94 GiB → 5.84 GiB (+4.90 GiB, 6.2× headroom!)
    • Idle CPU: ~100% of 1 core → 0.50% of 1 core (baked ROCPROFILER_REGISTER_ENABLED=0)

Verified 1M NVFP4 A/B (v0.2.8 → v0.2.13, identical weights & 4 GiB KV on 128 GB Strix Halo)

Metric (1M NVFP4, 4 GiB KV) v0.2.8 v0.2.9 / v0.2.10 v0.2.11 v0.2.12 v0.2.13 Total vs v0.2.8
DRM GTT used (idle) 114.684 GiB 114.312 GiB 113.465 GiB 112.796 GiB 111.832 GiB -2.85 GiB
DRM GTT used (post-5.8K prefill) ~115.4 GiB ~115.0 GiB 114.172 GiB 113.531 GiB 111.839 GiB -3.5+ GiB (auto-reclaimed)
Container CPU Private_Dirty 3.85 GiB 2.24 GiB 2.10 GiB 2.05 GiB 1.92 GiB -1.93 GiB (-50%)
Total container (DRM + CPU PrivDirty) 118.70 GiB 116.72 GiB 115.73 GiB 115.01 GiB 113.92 GiB -4.78 GiB
Host available RAM (idle) 1.65 GiB 3.76 GiB 4.22 GiB 4.50 GiB 5.77 GiB +4.12 GiB (3.5×)
Host available RAM (post-5.8K prefill) 0.94 GiB 3.21 GiB 3.45 GiB ~3.8 GiB 5.84 GiB +4.90 GiB (6.2×)
Idle CPU (10s post-inference) ~100% ~100% 0.50% 0.50% 0.50% -99.5%
5,818-tok chunked prefill + needle 12.49 s 12.50 s 12.47 s Parity 12.57 s Parity (exact Record 142)

What's new in v0.2.12 + v0.2.13

v0.2.13 — Deep Allocator, Buffer & Idle Reclamation Pass (-1.9 GiB additional)

  1. Right-sized decode-only & on-demand prefill metadata buffers (-331 MiB GTT):
    • indexer.py: expanded_block_table_buffer sized to max(32, max_num_seqs * next_n) instead of max_num_batched_tokens=2048 (128 MiB → 2 MiB, -126 MiB).
    • sparse_mla.py: c128a_global_decode_buffer (64 MiB → 1 MiB, -63 MiB) + on-demand c128a_prefill_buffer (64 MiB → 0 MiB idle, -64 MiB).
    • deepseek_v4/amd/rocm.py: c128a_decode_topk_ragged_indices_buffer (64 MiB → 1 MiB, -63 MiB) + 10× decode_swa_ragged_indices_buffer (15 MiB → 0.24 MiB, -14.8 MiB).
  2. Pre-graph compaction of stranded 20 MiB HIPCachingAllocator weight segments (~-600 MiB GTT):
    • Compacts small surviving weights (2.5–6.0 MiB parameters left alone in 20 MiB segments after init-time BF16 replacements) contiguously in process_weights_after_loading() before KV allocation and CUDA graph capture (ERNIE_COMPACT_SEGMENTS=0 disables).
  3. Idle-only GPU/CPU reclamation hook (-752 MiB post-prefill GTT + -71 MiB CPU):
    • In EngineCore.post_step(), tracks both sync step() and async step_with_batch_queue() drain transitions; once scheduler.has_requests() returns to idle and reserved - allocated >= 128 MiB, hands peak prefill segments back via torch.cuda.empty_cache() + libc.malloc_trim(0) (HTR_IDLE_CACHE_TRIM=0 disables). Zero overhead during active decode/prefill.
  4. Baked ENV GLIBC_TUNABLES=glibc.malloc.mmap_threshold=131072:glibc.malloc.trim_threshold=131072:glibc.malloc.arena_max=2 (-198 MiB CPU Private_Dirty).

v0.2.12 (included) — 100% Table-Free RoPE (-640 MiB GTT) & Zero-aiter ERNIE-5.5 Startup

  • Replaced all three 1M-position RoPE tables (256 MiB HCA FP32 YaRN + 256 MiB DSpark FP32 plain + 128 MiB DSA BF16 plain = 640 MiB) with 512 bytes of float64 inv_freq / (2π) consumed natively by ernie_hca_attn.hip and ernie_fast_ops.hip (including new Wave32 gfx1151 fused_qnorm_rope_kv_insert_tf and rope_qk64_tf kernels, audited at w64=0, 0 spills, 0 divOps, 0 scratch ops across all 265 kernels).
  • Gated Qwen3.8 install_hc_overlay() and fa_utils.py's flash_attn → aiter import off on ERNIE-5.5 (VLLM_ROCM_USE_AITER=0). Qwen3.8's v0.2.7 kernel/MTP/PLE stack remains 100% untouched (23/23 unit tests PASS).