fix(omni-compat): shim v0.34 speculator/warmup imports and sync shim in Omni image build #389
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.57) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.57 · 650 lines diff across 8 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.388
Shallow Review Depth
shallow_review_depth
0.289
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #389"
general
weight: 0.35
yeahdongcn
Summary
Unblocks the
vllm-omniimage build (docker/build_omni_image.sh/docker/omni.Dockerfile) on the pinnedv0.32.0(5df63a7203) base after recent upstreamvllm-omnimainmerges started importing vLLM 0.34 modules/helpers absent from the 0.32 pin:1.
vllm.v1.worker.gpu.spec_decode.speculator_config(BACKPORT,<0.34) — introduced invllm-omni6fa14e5c4(vllm-project/vllm-omni#10713, Higgs Audio v3 INT8 speculative decoding).vllm_omni/engine/arg_utils.py::register_omni_models_to_vllm()unconditionally importsregister_speculative_methodandHiggsAudioSpeculatorConfig(SpeculatorConfig)at startup even when speculative decoding is unused. Following the existingdraft_logitsbackport pattern, the shim records custom method registrations idempotently (and rejects built-inSpeculativeMethodnames with 0.34'sValueError) so Omni startup/CLI imports succeed whileSpeculatorConfiginstantiation raisesNotImplementedErrornamingvLLM >= 0.34on the 0.32 pin.2.
vllm.v1.worker.extensible_kv_cache(BACKPORT,<0.34) &vllm.v1.worker.gpu.warmup(ADAPTER,<0.34) — introduced immediately afterward onvllm-omnimainin9ccf5ad7a(vllm-project/vllm-omni#11251,vllm_omni/worker/triton_attention_warmup.py), which importsensure_kv_cache_blocks/num_committable_kv_blocksand_run_step/_warmup_token_idsand would otherwise fail the in-buildtools/check_omni_compat.pygate on currentorigin/main.3. Sync checkout
omni_compatshim duringdocker/omni.Dockerfileomni-install—docker/build_omni_image.shanddocker/omni/verify_install.py --sync-shimsync this checkout's pure-Pythonvllm_musa/omni_compatandvllm_musa_omni_compat_pth.pyinto the base image's installedvllm_musawheel beforeinstall-pth(without modifying compiled extensions or.dist-infometadata), so Omni image builds on an already-published 0.32 base image (whose bakedvllm-musawheel predates the newest drift entries) immediately pick up the updated shim.All three entries are gated with
applies_to="<0.34"(verified absent inv0.33.0and native inv0.34.0), stdlib-only at module top-level forvllm_musa_omni_compat_pth, and leave non-Omnivllm-musaruntime paths untouched.Validation
Local offline checks
ruff 0.15.1(check+format --check) andtypos 1.43.5on all touched files: PASSpytest -q tests/test_omni_compat.py tests/test_omni_headless_wheels.py tests/test_musa_docker_contract.py(Python 3.12.8): 97 passed (paired positive/negative coverage for0.32.0pin bridging,0.34.0native passthrough, built-in method rejection, and--sync-shimstale-wheel replacement)python tools/check_omni_compat.py --vllm-root <vllm@5df63a7203>/vllm --vllm-version 0.32.0againstvllm-omniorigin/mainc3207dbe6eb0661ace748393c407a5692f9ffd7f: PASS (4671 vllm imports, 20 shimmed, 0 unshimmed; 185 module attributes, 2 shimmed, 0 missing; 0 breaking calls; 16 entries needed, 0 stale)Remote S5000 image build & runtime verification (
f03c11d28)1x MTT S5000(81920 MiB), driver5.2.0-server, MUSA50200, Python3.12.16,torch/torch-musa2.13.0.post1+musa5.2.0,torchada0.1.111,mate-mubin0.2.8.post1,flash-attn-30.2.8.post1+musaregistry.mthreads.com/mcctest/inference/vllm:v0.32.0-ph1-5.2.0-torch2.13.0.post1-20261128@sha256:549baa116dea2c05b295360f3e2e8eb5824d5dae9fd72450d1c38004fa2fc178(bakedvllm-musarevisiondec6155e8cf5, pre-shim update)origin/main@c3207dbe6eb0661ace748393c407a5692f9ffd7f(vllm-omni==0.32.0+musa.gc3207dbe6)bash docker/build_omni_image.sh --target omni&--target test: PASS — both production wheel (sha256:c62fc78e14d248dcd9c601705d50fda18190bc8d9860a4864851886013885e9b) and editable test (sha256:2392d1472876eda75eda2f9a58d4601f53daf73929e346110ed9880954e9f3c9) images passed--sync-shim,install-pth,pip check,verify_install.py(--mode wheel/--mode editable),check_omni_compat.py(4671checked,20shimmed,0unshimmed), andverify_shim.py --driverless(rebind_exercised: true)docker run --rm --runtime=runc ... vllm serve --omni --help-> PASS (exit 0, delegated cleanly tovllm-omni)--runtime=mthreads):-
python /opt/omni-compat/verify_shim.py --require-omni-> PASS (verdict: pass,failures: [],hooks: {adapt: true, serve: true, startup: true},rebind_exercised: true,vllm_omni_version: 0.32.0+musa.gc3207dbe6)-
register_omni_models_to_vllm()+import vllm_omni.worker.triton_attention_warmupon S5000 -> PASS (registered_speculative_methods() == ["higgs_audio_int8"])docs/cookbook/qwen-image/qwen-image-2.1-bf16.md):- Launched production wheel image (
sha256:c62fc78e14d2...) on1x MTT S5000(TORCHINDUCTOR_COMPILE_THREADS=1,MUSA_VISIBLE_DEVICES=0,vllm serve /models/Qwen-Image-2.1 --omni); server confirmedFLASH_ATTNdiffusion attention backend + regionaltorch.compileacross 32QwenImage21TransformerBlocks-
POST /v1/images/generations(512x512,8steps,seed=42,true_cfg_scale=1.0): HTTP 200 in0.584s, valid512x512PNG (1,049,236bytes, SHA-2568ef69fa8bec1dd787558f6b0768a951a0b94204a47a578962ee7b0181868c5f7)-
POST /v1/images/generations(1024x1024,20steps,seed=42,true_cfg_scale=1.0, prompt"a photorealistic latte in a white ceramic cup on a wooden table, morning light"): HTTP 200 in4.121s, valid1024x1024PNG (4,195,716bytes, SHA-25692b02e683d036fca6c58ed1696aecaa83b6623e50e249cb4968829bc11ebc9fa), visually verified coherent photorealistic latte output matching the promptNot run
SpeculatorConfigdrafters remain explicitly unsupported on the vLLM 0.32 pin).