Skip to content

vLLM HTR v0.2.9 — +2.27 GiB Unified-Memory Reclamation & 3.1x Faster Cold Boot

Choose a tag to compare

@hstolte11-collab hstolte11-collab released this 30 Nov 17:56
· 6 commits to main since this release

vLLM HTR v0.2.9 — +2.27 GiB Unified-Memory Reclamation & 3.1x Faster Cold Boot

  • Container image: ghcr.io/hawgauto/vllm-htr@sha256:6a7b9c8607fa01591b5a90788367f69819aef6783ca1fb3d150d2570b11a80b4
  • Version alias: ghcr.io/hawgauto/vllm-htr:v0.2.9
  • Target hardware: AMD Strix Halo (gfx1151, Radeon 8060S, 128 GB unified LPDDR5X)
  • Scope: Runtime unified-memory & cold-boot optimization release layered directly on v0.2.8. All 686 ERNIE-5.5 Wave32 HIP kernels, FlashIndexer H=8, DSpark-5 filtered drafting, ernie55/ernie5 parsers, and the Qwen3.8 v0.2.7 stack are preserved bit-for-bit intact.

What's New in v0.2.9

  1. Single-Process AsyncInprocClient (Shipped Default: VLLM_ENABLE_V1_MULTIPROCESSING=0):
    • Runs EngineCore on a dedicated thread inside APIServer when data_parallel_size == 1 and client_count == 1, eliminating the duplicate ~1.32 GiB Python + PyTorch + ROCm + vLLM + Aiter process, ZMQ IPC overhead, and spawn cold-start penalty.
    • Opt-out: Pass -e VLLM_ENABLE_V1_MULTIPROCESSING=1 (or run with DP > 1 / --api-server-count > 1) to use the standard multi-process AsyncMPClient.
  2. Single-Lock Tokenizer (vllm/tokenizers/hf.py):
    • Replaces TokenizerPool's 4x copy.deepcopy() clones of large Rust+Python vocabularies (201K tokens on ERNIE-5.5) with a single threading.Lock()-guarded tokenizer instance (-130 to -300 MiB Private Dirty, ~3.5 s faster startup).
  3. Lazy .pth Import Hooks (htr_gdn_pin.py, htr_mtp_norm_pin.py):
    • Defers torch._inductor.runtime.triton_heuristics patching until triton_heuristics is actually imported via sys.meta_path, dropping multiprocessing.resource_tracker from 451.1 MiB -> 9.3 MiB (-98%) and bare python3 from 803.5 MiB -> 18.4 MiB, while passing all 23/23 GDN/MTP/packaging CPU unit tests.
  4. Unified Prefill WorkspaceManager, Right-Sized Decode/Split-KV Scratch & Fixed DSpark-DSA RoPE Dedup (vllm_ernie_htr):
    • Pre-sizes vLLM's WorkspaceManager once in Ernie5_5Model.process_weights_after_loading() before lock_workspace() so HPF5 MoE prefill, wo_a prefill, and sparse indexer logits share one buffer.
    • Dynamically right-sizes moe_ops._decode_scratch from max_num_seqs * (num_spec + 1) and lowers fast_ops.get_split_kv_scratch floor 32 -> 8.
    • Exports _ERNIE5_TARGET_DSA_COS_SIN (theta=8M plain RoPE) so DSpark deduplicates against the matching DSA table instead of HCA's YaRN table, and caps HCA/DSpark RoPE to min(max_pos, max_model_len + 256).
    • Net measured DRM GTT reduction: -381 MiB sustained both idle and post-chunked-prefill.
  5. Lazy HIPDriver.get_current_target() (triton/backends/amd/driver.py):
    • Reads PYTORCH_ROCM_ARCH when not torch.cuda.is_initialized() so aiter import does not prematurely initialize ROCm/HIP.

Verified Live 1M NVFP4 Hardware A/B (gfx1151, AMD Strix Halo 128 GB)

Measured apples-to-apples on ERNIE-5.5-Flash-Preview-HTR (107.01 GiB on disk: 101.87 GiB target + 5.14 GiB 3L DSpark draft) with --max-model-len 1048576 --kv-cache-dtype nvfp4_ds_mla --kv-cache-memory-bytes 4026531840 --max-num-batched-tokens 2048 --max-num-seqs 1, FlashIndexer H=8, DSpark-5 probabilistic, -cc.cudagraph_capture_sizes="[1,5,6]":

Metric v0.2.8 (baseline) v0.2.9 (default) Delta
Host available RAM (idle loaded) 1.65 GiB (1,687 MiB) 3.76 GiB (3,847 MiB) +2.11 GiB (2.3x)
Host available RAM (post 5,818-tok chunked prefill) 0.94 GiB (967 MiB) 3.21 GiB (3,292 MiB) +2.27 GiB (3.4x)
Host used RAM (post 5,818-tok chunked prefill) 122.52 GiB 120.25 GiB -2.27 GiB
Container CPU Private_Dirty (all PIDs) 3.85 GiB (3,941 MiB) 2.24 GiB (2,294 MiB) -1.61 GiB (-42%)
DRM GTT used (post 5,818-tok prefill) 114.684 GiB 114.312 GiB -381 MiB
Cold boot to /health 270 s 88 s 3.1x faster
Short greedy (45 -> 160 tok) 3.59 s (44.5 tok/s) 3.66 s (43.7 tok/s) Parity, identical output
Chunked prefill (5,818 -> 135 tok, 3x 2048 chunks) 12.50 s (10.8 tok/s) 12.49 s (10.8 tok/s) Parity, exact needle PASS
SSE streaming (stream=True) — 14 chunks, TTFT 0.379 s PASS
Clean docker stop + manifest + unit tests — 7 s stop · 23/23 OK PASS