Repository navigation
vLLM HTR v0.2.9 — +2.27 GiB Unified-Memory Reclamation & 3.1x Faster Cold Boot
·
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, FlashIndexerH=8, DSpark-5 filtered drafting,ernie55/ernie5parsers, and the Qwen3.8v0.2.7stack are preserved bit-for-bit intact.
What's New in v0.2.9
- Single-Process
AsyncInprocClient(Shipped Default:VLLM_ENABLE_V1_MULTIPROCESSING=0):- Runs
EngineCoreon a dedicated thread insideAPIServerwhendata_parallel_size == 1andclient_count == 1, eliminating the duplicate~1.32 GiBPython + PyTorch + ROCm + vLLM + Aiter process, ZMQ IPC overhead, andspawncold-start penalty. - Opt-out: Pass
-e VLLM_ENABLE_V1_MULTIPROCESSING=1(or run withDP > 1/--api-server-count > 1) to use the standard multi-processAsyncMPClient.
- Runs
- Single-Lock Tokenizer (
vllm/tokenizers/hf.py):- Replaces
TokenizerPool's4xcopy.deepcopy()clones of large Rust+Python vocabularies (201K tokens on ERNIE-5.5) with a singlethreading.Lock()-guarded tokenizer instance (-130 to -300 MiBPrivate Dirty,~3.5 sfaster startup).
- Replaces
- Lazy
.pthImport Hooks (htr_gdn_pin.py,htr_mtp_norm_pin.py):- Defers
torch._inductor.runtime.triton_heuristicspatching untiltriton_heuristicsis actually imported viasys.meta_path, droppingmultiprocessing.resource_trackerfrom451.1 MiB -> 9.3 MiB(-98%) and barepython3from803.5 MiB -> 18.4 MiB, while passing all23/23GDN/MTP/packaging CPU unit tests.
- Defers
- Unified Prefill
WorkspaceManager, Right-Sized Decode/Split-KV Scratch & Fixed DSpark-DSA RoPE Dedup (vllm_ernie_htr):- Pre-sizes vLLM's
WorkspaceManageronce inErnie5_5Model.process_weights_after_loading()beforelock_workspace()so HPF5 MoE prefill,wo_aprefill, and sparse indexer logits share one buffer. - Dynamically right-sizes
moe_ops._decode_scratchfrommax_num_seqs * (num_spec + 1)and lowersfast_ops.get_split_kv_scratchfloor32 -> 8. - Exports
_ERNIE5_TARGET_DSA_COS_SIN(theta=8Mplain RoPE) so DSpark deduplicates against the matching DSA table instead of HCA's YaRN table, and caps HCA/DSpark RoPE tomin(max_pos, max_model_len + 256). - Net measured DRM GTT reduction:
-381 MiBsustained both idle and post-chunked-prefill.
- Pre-sizes vLLM's
- Lazy
HIPDriver.get_current_target()(triton/backends/amd/driver.py):- Reads
PYTORCH_ROCM_ARCHwhennot torch.cuda.is_initialized()soaiterimport does not prematurely initialize ROCm/HIP.
- Reads
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 |