Skip to content

batch: int8 activations again on vLLM 0.34, through Humming (stacked on #478) - #479

Open
cpuchip wants to merge 34 commits into
syv-ai:mainfrom
cpuchip:w4a8-034
Open

cpuchip wants to merge 34 commits into
syv-ai:mainfrom
cpuchip:w4a8-034

Conversation

@cpuchip

@cpuchip cpuchip commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #478. The first 25 commits are #478's; this PR's own are the last 9 (one of them a merge of #478's head), which this
compare shows alone:
cpuchip/qwen38-27b-rtx3090@port-0.34...w4a8-034. It can be reviewed on its own and merged
after #478, or with it. Like #478 it needs #474 to build: without #474's apache-tvm-ffi hold, a fresh build of either
fails at xgrammar/install.sh (-Werror=odr).

Brings batch mode's int8 activations back on vLLM 0.34, which removed Marlin's (#65542, the cost #478 names first). On
an RTX 3090, batch at its shipped defaults serves 1,121 tok/s at 64 concurrent 128/512 against 791 at W4A16 on the
same image, for +0.9-1.1% perplexity, which is 0.33's Marlin int8 speed for about half its perplexity cost.

  1. INT8_ACT=int8 runs compressed-tensors' W4A8 scheme with the Humming kernels. The launchers pass one
    --hf-overrides (scripts/int8_overrides.py) that copies the checkpoint's quantization_config and adds a group:
    the Linear group's weights, targets re:.*(?:<INT8_LAYERS>).*, int8 symmetric dynamic per-token activations. The
    int8 lm_head and embeddings, the MTP group and the ignore list load as the checkpoint has them (the first matching
    target wins). INT8_LAYERS keeps its meaning: a regex searched in the layer name, mlp by default.
  2. Two vLLM patches, without which that scheme serves W4A16 on a 3090 or a 4090 with nothing in the log:
    • wna8-int-humming-kernel: CompressedTensorsWNA8Int chose its kernel with the params dtype as the activation
      type, so below SM90 Marlin took the layer and ignored the int8 input config. It now takes Humming when it has an
      input quant.
    • humming-explicit-input-schema: with Humming chosen, Humming's groupwise heuristic replaced the int8 input
      schema with a 16-bit one (allow_input_schema_fallback defaulted to True). It is now False for a layer with
      an input quant config, and the built dtype is logged once: Humming layer config: a_dtype=int8 (input quant config set).
  3. The NVRTC builtins on LD_LIBRARY_PATH. Humming compiles its kernels with NVRTC, which loads
    libnvrtc-builtins.so.13.0 by soname; the wheel ships it in site-packages/nvidia/cu13/lib, on no default path,
    so the first Humming kernel failed to compile at boot. launcher_common.sh appends that directory when it exists.
  4. Batch's INT8_ACT default goes back to int8. Left unset on a checkpoint the override does not fit (anything
    but compressed-tensors int weights), or beside an --hf-overrides in EXTRA_ARGS, batch serves W4A16 with a note,
    because up to 0.33 Marlin's int8 took any Marlin checkpoint. Set explicitly, it refuses with the reason. fp8 is
    refused: Humming has fp8 activations, and nothing here measured them.
  5. Tests: bench/test_int8_overrides.py (at build: the group it adds, what it leaves, what it refuses, and the
    layers it selects through compressed-tensors' own matching) and bench/test_int8_knob.sh (a CI step and the 8.6 rerun
    loop: the three launchers against a stub vllm). Each went red on a deliberate break (the target regex, INT8_LAYERS ignored,
    the default fallback removed) and green after.
  6. Docs: docs/vllm-0.34.md "int8 activations (W4A8)", batch's INT8_ACT and INT8_LAYERS rows, the README's
    pin row, quality.md, optimizations.md, arete.md.

Decisions (reject any by name)

  • An --hf-overrides built at launch, rather than --quantization humming (it replaces the checkpoint's whole
    quantization handling and cannot load the int8 embed group) or a second checkpoint.
  • Batch defaults to int8 again, as up to 0.33.
  • The default falls back to W4A16 on a checkpoint it does not fit; an explicit INT8_ACT=int8 refuses.

How it was checked

Native RTX 3090 at its default 350 W (batch/README's rows are at 250 W, so compare these rows with each other):
batch launcher, Qwen3.8-27B-W4A16-AutoRound, GPU_UTIL=0.93, a fresh cache volume per boot. bench/quality_battery.py
(PPL over wikitext-2, fineweb-2 Danish and 33 windows of vLLM's v1/core source; GSM8K 200, greedy) and
vllm bench serve (random, --ignore-eos, 256 prompts, 64 concurrent, second of two runs).

The shipped path was measured on this branch at 6d3e3f7. The commits after it change docs/vllm-0.34.md and the CI
workflow, merge #478's head with EmilienIT's ekv_stress.py fix (a bench script), and take his 2f3df5b, which changes the target int8_overrides.py builds only
for an INT8_LAYERS with leading inline flags or verbose mode; for the default mlp it builds the same
re:.*(?:mlp).*. That branch and #478 each merged with #474's d0078b7 locally, built --no-cache from their own Dockerfile. Both build, all build-time tests pass, the step differs between them only by the two patches and
test_int8_overrides, and each image's patched vLLM tree equals the fork branch it was exported from. Both images
end with apache-tvm-ffi==0.1.11.

batch on this branch's image 128/512 256/256 PPL all GSM8K forced 64-prompt step 128-request burst
shipped defaults (int8 on the MLP) 1,121.1 815.9 8.0962 96.0 64/64, 365 MiB spare 128/128
INT8_ACT= (W4A16) 790.8 547.6 8.0229 95.5 64/64, 407 MiB spare 128/128

The log of the int8 boot shows a_dtype=int8 (input quant config set), Humming for CompressedTensorsWNA8Int and
nothing else for it, Marlin for the W4A16 layers, and the engine's LD_LIBRARY_PATH ends in nvidia/cu13/lib.

Against 0.33 on the same card (the two patches as read-only overlays on #478's image and the int8 group in a
config-only copy of the checkpoint, before this branch's launcher existed):

configuration 128/512 256/256 PPL all GSM8K
0.33.0, Marlin int8 on the MLP (0.33's batch default), two boots 1,091.9 / 1,092.9 782.6 / 784.0 8.2060 / 8.2012 95.0
0.33.0, W4A16 782.2 542.1 8.0269 95.5
0.34.0, W4A16, two boots 789.4 / 790.3 547.3 / 547.4 8.0230 / 8.0264 95.0
0.34.0, int8 on the MLP, two boots 1,119.0 / 1,120.2 815.6 / 816.2 8.1095 / 8.1095 94.5
0.34.0, int8 on every linear (INT8_LAYERS=.) 1,369.4 1,035.7 8.2180 93.5

Over five int8-MLP boots (both images, the override and the config copy) PPL all read 8.1095 four times and 8.0962
once, each value exact within its boot; W4A16 read 8.0229-8.0264 over three boots. Why one boot lands on the other
value is not found: not the image (the humming package is byte-identical) and not the config route. GSM8K at n=200
moves 1-2 points between boots with identical PPL, so its differences above are noise.

Before the second patch, the int8 arms read W4A16's perplexity to the third decimal and its speed within 1%: the
silent path the patches close.

Configs: the launcher matrix (create_engine_config() on CPU over 408 launcher settings) gives no new failure
against #478's image; the 24 cases #478 refused are now accepted, each with one --hf-overrides.

What is not checked

  • Single-user and alternative.sh with INT8_ACT=int8 (opt-in there, as before): their argv is tested, their serving
    is not.
  • Any card but the RTX 3090, the 250 W limit, any checkpoint but Qwen3.8-27B-W4A16-AutoRound, INT8_LAYERS values
    other than mlp and ., and INT8_ACT=fp8.
  • The native install's LD_LIBRARY_PATH (the launcher globs $REPO/venv/lib/python3*/site-packages/nvidia/cu13/lib;
    not run).
  • Upstream main: both patched code paths are still there on main (read, not run); main now warns on the Humming
    fallback and forbids it under VLLM_STRICT_QUANT_SCHEME=1 (#59460).

scripts/pin-bump.py moved the mechanical pins and the four KVarN patch names, now -0.34.0. vLLM 0.34.0 keeps torch
2.14.0 and moves flashinfer-python to 0.7.3 (docs/install.md's cubin line follows), transformers' ceiling to <5.23 and
huggingface_hub to >=2.0.0. The pin here moves to huggingface_hub 2.4.0, the version vLLM 0.34.0's own CI lock uses;
transformers stays at 5.19.0 (it declares huggingface-hub <3.0) and tokenizers at 0.23.3.

All patch files are re-exported with scripts/export-patch.sh from the vLLM fork's qwen38/0.34, the series rebased
onto v0.34.0 one commit per topic. Each file keeps its preamble; Cut-against names 0.34.0. kvarn-recycled-pages
leaves out its kvarn_attn.py section as before (kvarn/files ships that file whole and matches the branch).
PATCHES.md is regenerated with scripts/patches_md.py.

Retired:
- vllm-pr61612-flashinfer-async-barrier, replaced by the new vllm-pr64165-flashinfer-plan-event: vLLM #64165
  (merged 11-11, after the 0.34.0 branch) fixes the same FlashInfer plan-buffer race (syv-ai#328) with a CUDA event
  before each plan() instead of a blocking seq_lens.cpu() at every step.
- marlin-int8-layer-select, marlin-int8-negative-scales and marlin-int8-asym-zp: vLLM #65542 removed Marlin's
  8-bit activations, kernels included, so the three have nothing to act on (the launcher change is the next
  commit).
- sampler-small-topk-fast-softmax: vLLM #63373 removed Model Runner V1; every caller of its fast path was a V1
  file, and the launchers already ran V2.
- quant-scale-view-preserve-pages: its whole change (no fill_(1.0) on the scale views) is in 0.34.0 through #56492.
- vllm-pr64137-logits-stats-no-specialize: #64137 is in 0.34.0.

Applied to a pristine v0.34.0 tree in apply.sh order, then kvarn/files and apply.sh --kvarn: the result is
identical to the branch (0 differing files under vllm/). A one-byte change to one patch shows as 1 differing file.
… empty and batch defaults to W4A16

vLLM #65542 removed Marlin's int8/fp8 activations, and 0.34.0 lists VLLM_MARLIN_INPUT_DTYPE as a removed
variable, so exporting it is a startup error. qwen_int8_exports now refuses any non-empty INT8_ACT with the reason
(exit 2, before the engine starts) instead of exporting it, so nothing is served at W4A16 under a name that says
int8. batch/start_qwen.sh's default moves from int8 to empty. bench/test_no_key_bind.sh checks all three launchers:
empty and unset export nothing, INT8_ACT=int8 is refused. bench/test_marlin_int8_asym.py tested the removed kernel
path and goes with it; the comments that described the path say so.

Batch mode loses its int8-activation speedup until W4A8 is wired through upstream's Humming kernels
(`--quantization humming`), which this commit does not do.
Two commits past 0.33's b273a026 (syv-ai#199, SM90 FP8 head dim 512; syv-ai#216, fatbins compressed with --compress-mode=size
on CUDA >= 13), neither under csrc/flash_attn/src, and the cutlass submodule is unchanged (62750a2b). fa2/check_upstream.py
on d8dca8f0: the patch applies and all 18 mapped files match byte for byte.
…batch's INT8_ACT row

docs/vllm-0.34.md says first what the pin costs (batch serves W4A16 until W4A8 is wired through Humming), then the
dependencies, the retired and re-cut topics with their upstream causes, the breaks no conflict showed, and what is
unproven. Its acceptance section is pending and is filled from the runs.
… arete, third-party checkpoints, drafter)

The measurements stay as the record of 0.33 and earlier; each place that tells a reader to set INT8_ACT=int8 or
VLLM_MARLIN_INPUT_DTYPE now says vLLM 0.34 removed the path and points at docs/vllm-0.34.md.
…, and the retired int8 knob must be absent

verify.sh --install failed on 0.34 with "envs.py does not register VLLM_MARLIN_INT8_INCLUDE_RE": the behavioural
registry check named the knob of marlin-int8-layer-select, which this port retires with vLLM #65542. It now checks
VLLM_DFLASH2_LOOKUP (speed-knobs-envs) in the live registry, and a second check fails if VLLM_MARLIN_INT8_INCLUDE_RE is
still registered, which would mean a retired patch was applied. drafter/gen_data.py and docs/gotchas.md say where the
int8 layer-select knobs were 0.33-only.
… (stand-ins, call shapes, where the code moved)

Each change is to a stand-in or to where a structural test looks; no assertion changes.
- test_offload_mamba_swa_boundaries: OffloadingConnectorScheduler reads vllm_config.num_hash_lookahead_tokens (0, as a
  real config resolves it: the offloading connector does not support lookahead block hashes), and
  _lookup_complete_chunks returns (hit tokens, full-attention boundary); the hit is what the test checks.
- test_dflash_context_capacity: the check moved with the draft config setup into
  DraftModelSpeculatorConfig.configure() (#63205), which DFlash's config class inherits.
- test_gdn_ba_lora: the padded-GEMM selection is now forward_cuda's local _ba(), beside upstream's aux-stream overlap.
- test_async_mamba_kv_sizing: _check_enough_kv_cache_memory takes upstream's new hint argument, and the hint reads
  cache_config.enable_extensible_kv_cache.
- test_quant_scale_views: an Impl built with __new__ needs the _set_kv_ptr_range that 0.34's __init__ sets.
All twelve build-time tests pass against an installed 0.34 stack (2x RTX 3090 rental, this branch's tree).
…and a warmup for its fused GDN norm

On CUDA, vLLM 0.34 runs Qwen3.5 through vllm/models/qwen3_5/nvidia (#51012), so qwen3_5-embed-quant,
qwen3_5-mtp-draft-vocab and qwen3_5-embed-uva now patch those files as well as the old ones (which still
serve other platforms). dflash2-lookup-drafting goes back to 0.34's own quantized-weight fallback for the
drafter's context KV (#64357) in place of its dense unpack. spec-decode-scratch-within-budget sizes the int4
scratch from the caller's geometry, which is what 0.34's metadata builder reads (#56996). New:
qwen3_5-nvidia-gated-norm-warmup.

All six exported from the fork's qwen38/0.34 series with scripts/export-patch.sh. Checked by an overlay
boot on an RTX 4090 of the five changed files over the 0.34 image: DFlash2 at the shipped alternative.sh
defaults and MTP at start_qwen.sh CTX=fast both served, the MTP draft head and VLLM_EMBED_UVA both took
effect, and no gated-norm kernel compiled during inference.
… pipeline ranks that build the tower on meta

vLLM 0.34 builds the vision tower on the meta device on every pipeline rank after the first and replaces it
with a stage stub, and vision-tower-cpu-offload's offloader then tried to copy meta tensors to the host, so
VISION=1 with VLLM_VISION_CPU_OFFLOAD_GB could not boot at PP=2 (found by the syv-ai#328 PP=2 gate's first boot on a
2x RTX 3090). Exported from the fork's qwen38/0.34 series. Checked by building the tower under
torch.device("meta") with the offload on, inside the 0.34 image: the old file raises, this one does not.
…sible KV cache off

On 0.34 every KVarN profile without a --kv-cache-memory pin died in CUDA-graph capture: KVarN's batched flush
writes the KV pool during capture, before the extensible cache commits its pages. With the cache off all three
boot and serve with 0.33's outputs (boots of every documented launcher default on an RTX 3090). Exported from the fork's qwen38/0.34
series. Checked by calling the resolver inside the 0.34 image: KVarN resolved on before, resolves off now, an
explicit --enable-extensible-kv-cache is refused, and fp8 and auto still resolve on.
…96 on vLLM 0.34 (was 57344)

vLLM 0.34 rounds the hybrid attention block up to every attention backend's smallest kernel block
(platforms/interface.py, backend_block_alignment), so this profile's page went from 480 tokens to 512 and
the same 5.2 GiB pin holds less. At 57344 the engine refused to start, 3 boots of 3 on an RTX 3090: "5.23 GiB
KV cache is needed, which is larger than the available KV cache memory (5.18 GiB)", with an estimated
maximum of 56320. 55296 = 108 x 512 leaves about 2% under that, the margin the other DFLASH_TOKENS>7
profiles keep. The README's knob row and prefill_ab.sh's comment follow. The pin itself is unchanged.
…, as vLLM 0.34 does

vLLM 0.34 rounds the hybrid attention block up to every attention backend's smallest kernel block. On every
profile both pins share, 0.34's block is 0.33's rounded up to 64 (RTX 3090 boot logs: 480 -> 512,
800 -> 832, 1696 -> 1728; 448 and 960 unchanged), so the note printed 480-token pages for DFLASH_TOKENS=15
CTX=fast where the engine used 512. Checked with PRINT_ARGV=1 in the 0.34 image: fast k7 448, fast k15 512, long
k15 960, each the engine's own block. The note is an estimate and changes no setting.
…0.33's rounded up to 64)

test_launcher_prediction_matches_engine_group_caps pins each case's engine block. Its 864, 816, 800 and 880 were
0.33's. vLLM 0.34 rounds the hybrid attention block up to the 64-token kernel-block alignment (896, 832, 832,
896; RTX 3090 boot logs show the same rounding on every profile the pins share). Since f361c73 the launcher's
estimate applies that rounding too, so the image build's test step failed on the int8 k=3 and k=1 cases
((12, 16) != (13, 17)). The fixture now carries 0.34's blocks; the pools and the rest of the test are unchanged.
With the extensible KV cache on (0.34's default on CUDA), LSA=1 SPEC=mtp CTX=long answered a 50k/100k ruler 0/8 and
0/6 with garbled numbers and no error; with --disable-extensible-kv-cache, 8/8 and 6/6, as on 0.33 (an
RTX 3090). The plugin's index tables follow the cache tensor they are handed, and the extensible cache hands them its
whole reserved range before it commits pages (213,824 slots, against 6,656 with the cache off).

So start_qwen.sh's LSA branch passes --disable-extensible-kv-cache with the arguments it already owns, and the
plugin's attention impl refuses to construct with the cache on, naming the flag, so no other launcher gets wrong
answers silently. Checked in the 0.34 image: PRINT_ARGV with LSA=1 shows the flag, and the guard raises with the
cache on and constructs with it off or with the field absent. Before this change it constructed with the cache on.
…KVarN runs with 0.34's extensible KV cache on

KVarN's batched flush now commits the extensible cache's blocks it writes, found from the write's address (a
KVarN block id is a 128-token tile, several to a cache block), so the unpinned KVarN profiles boot with the cache
on instead of opting out of it. The vLLM half is the patch, the KVarN half is kvarn/files' kvarn_attn.py. Measured
on an RTX 3090 and a WSL 4090: the cache-off texts on all three KVarN profiles, 0 broken in the 128-residue sweep,
and no commit past the sized cache.
… GPU_UTIL 0.93

vLLM 0.34 turns the extensible KV cache on by default on CUDA. It sizes the pool after warmup from the memory it
measures free, less its own margin, and upstream says to leave gpu_memory_utilization unset with it on. Every
launcher here sets GPU_UTIL, so with it on we paid both: one boot per setting, 17% fewer KV blocks on a native 3090
at the single-user profile, 21% under WSL2 on a 4090, alternative.sh's 256k refused under WSL2, and batch a seat
short at any GPU_UTIL.

All three launchers now pass --disable-extensible-kv-cache, which keeps 0.33's sizing, unless EXTRA_ARGS names the
flag (then the launchers add nothing). Batch's fp8 default moves from 0.94 to 0.93: with the cache off, 0.94 cleared
the 64-new-prompt step by 131 MiB on a native 3090 and 0.93 by 393 MiB, with 64 seats running and the burst at 0.33's
speed. docs/vllm-0.34.md gets the table and when turning the cache on pays. bench/test_extensible_kv_default.sh
checks the argv of all three launchers (red with the flag dropped, with EXTRA_ARGS ignored, and with batch at 0.94).
…ache off through its own arguments

Two rows: LSA=1 SPEC=mtp CTX=long carries --disable-extensible-kv-cache once, and with EXTRA_ARGS naming
--enable-extensible-kv-cache both reach the engine, where the plugin refuses the combination. The first row
fails if the default helper stops reading ATTN_ARGS (the flag twice), the second if the LSA branch drops its
own flag. Two launcher comments now cite the card instead of the box.
…5 re-cut; bench/ekv_stress.py

docs/vllm-0.34.md's Acceptance section is the runs against 0.33.0 on an RTX 3090, the PP=2 gate and the
production RTX 4090's probes, with what is still unexplained there. The patch series is 62 topics plus 4 KVarN
files, with qwen3_5-nvidia-gated-norm-warmup, vision-tower-cpu-offload-meta and kvarn-extensible-kv-commit new,
and the Qwen3.5 topics re-cut onto 0.34.0's CUDA model path. bench/ekv_stress.py is the load the extensible KV
cache table was measured with.
…(was dense)

Since 0.29 a KV tier switched alternative.sh's retention default to None, because beside 0 a tier served
nothing on 0.29. On 0.34 dense with a tier cost the first of two ~59K conversations its GPU hit: dense caches
a Mamba state at every block (34 per group per conversation), the second conversation's prefill evicted the
first's, and its turn 2 came from the tier at 9.9 s against 0.7 s. 0.33 cached as densely and kept one state
its 1,696-token block put past the prompt end; 0.34's 1,728-token block puts that boundary inside the prompt.
At 0 with the tier both turn 2s hit 58,752 tokens on the GPU and the tier still serves a forced miss (46,656
tokens in 2.9 s), on an RTX 3090 at alternative.sh's 160k profile with vision and an 8 GB tier.
bench/test_prefix_cache_knob.sh checks the tier case and that PREFIX_RETENTION= still asks for dense.
On the production 4090, one request at a time, 0.33 and 0.34 run 22.27 and 22.30 ms per decode step over six
greedy prompts. The 7.4% on the single lighthouse prompt is that prompt's greedy text forking between versions.
Greedy acceptance over the six is 2.9% lower on 0.34; at default sampling, 78 requests each, 1.9% lower with a
95% interval of -3.9% to +0.1%.
… switch is not its cause

The six-prompt greedy pool is half the 600-token essay by weight. Without it, 0.34 shows no greedy gap on
either 4090. With VLLM_USE_BREAKABLE_CUDAGRAPH=0 the essay still reads at 0.34's level over three boots.
…up's header changed

The patch's What line was edited in its preamble (the 257-512 token band) without rerunning
scripts/patches_md.py, so CI's patch-index check found the table stale.
…s 64-token block

4bfde3c rounds the resident-request note's page up to 64 tokens, as vLLM 0.34 does, and the measured arms
here carry vLLM 0.31's blocks (864, 816, 800, 880), which are not multiples of 64, so nine checks failed in
CI's model-verification job. They are now checked at the rounded block with the pool and ranges it gives,
and keep their 0.31 values in the table and in each message. No 0.34 boot measured those arms. The bf16
arms, at block 448, are unchanged.
…nt8 activations on vLLM 0.34

compressed-tensors' W4A8 int scheme served W4A16 on a 3090 twice over: vLLM's kernel chooser took Marlin, which
ignores the int8 input config, and with Humming chosen, Humming's groupwise heuristic built a 16-bit input
schema. The first patch makes the scheme take Humming when it has an input quant; the second makes the Humming
linear kernel build the input schema the config asked for, and log it.
…batch defaults to it again

INT8_ACT=int8 now passes one --hf-overrides (scripts/int8_overrides.py) that adds an int8-activation group to the
checkpoint's own quantization_config, targeting the layers INT8_LAYERS matches, so compressed-tensors serves them
with CompressedTensorsWNA8Int and everything else (the int8 lm_head and embed, the MTP group, the ignore list)
loads as the checkpoint has it. The launchers also put the venv's NVRTC builtins (site-packages/nvidia/cu13/lib)
on LD_LIBRARY_PATH, which Humming's JIT needs and no default path names. fp8 stays refused, an empty INT8_LAYERS,
a bad regex, a checkpoint the override does not fit and an --hf-overrides in EXTRA_ARGS are refused with the
reason. Batch's INT8_ACT default goes back to int8, as up to 0.33. bench/test_int8_overrides.py runs at build.
…surements

docs/vllm-0.34.md gains "int8 activations (W4A8)": how INT8_ACT=int8 is wired, why the two patches, and seven boots
on a native RTX 3090 at 350 W (0.33 Marlin int8, 0.33 and 0.34 W4A16, 0.34 int8 on the MLP and on every linear).
The batch README's INT8_ACT and INT8_LAYERS rows, the main README's pin row, quality.md, optimizations.md and
arete.md stop saying the launchers refuse it.
…he override does not fit, with a test

Up to 0.33 Marlin's int8 took any Marlin checkpoint, so batch's default must not stop a GPTQ or AWQ one from
booting. Left unset, INT8_ACT=int8 on such a checkpoint (or beside an --hf-overrides in EXTRA_ARGS) now serves
W4A16 and says so; INT8_ACT=int8 set explicitly still refuses. bench/test_int8_knob.sh runs the three launchers
against a stub vllm (the override and its regex, the refusals, the fallbacks, LD_LIBRARY_PATH) and joins CI's
launcher loop.
@EmilienIT

EmilienIT commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Correction after the maintainer's retest. My first fixture supplied Python's standard-library re to the extracted matcher. vLLM 0.34.0 imports regex as re. I repeated the CPU test with that import and confirmed that (?i)MLP already selected the intended layers before the change. My earlier report that this selector failed in vLLM was incorrect. Maintainer's reproduction

The reproducible failure is a verbose selector ending in a comment, such as (?x) mlp # MLP only. The comment consumes the closing parenthesis added by the launcher. Across four selectors and five layer names, the corrected fixture passed 14/20 selections before the change. The six failures came from two verbose selectors. All 20 passed on 2f3df5b, using the matcher functions from the vLLM 0.34.0 tag with the regex package on CPU.

The launcher fix is now included in this PR. Original commit · Accepted commit

@cpuchip

cpuchip commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

Thank you. I took 4e6782a: it is 2f3df5b on this branch, on top of a merge of #478's head, with your authorship.

One correction on the mechanism. On vLLM 0.34.0, compressed-tensors' targets are matched by is_equal_or_regex_match
in quantization/utils/config_utils.py, which imports regex as re, and regex accepts a global flag in the middle of
a pattern. In the 0.34 image, re:.*(?:(?i)MLP).* matched model.language_model.layers.0.mlp.down_proj and left
self_attn.qkv_proj on its Linear group, so that example serves as intended there. Python's re refuses it, which is
probably what an extracted copy of the matcher ran.

Your verbose case does fail on the real path: (?x) mlp # MLP projections wraps to a pattern whose comment swallows
the closing parenthesis, and regex raises missing ) on it. With your change, mlp, (?i)MLP, that verbose form and
. each select the same layers through vLLM's own matcher in the image as they should (the MLP projections, or every
group_0 linear for ., with lm_head and the MTP layers kept), and CI's model-verification and patch-index steps pass on
this head in the image, apart from the same two container-only failures #478 shows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants