dsikka commited on
Commit
13c63cd
·
verified ·
1 Parent(s): d7ac22e

Fix MTP speculative decoding at TP>1: ignore MTP head in fp8_block group

Browse files

The MTP head (model.layers.78.head) is tied to the unquantized lm_head, but the
fp8_block target re:.*\.layers\.78\..* covered it, constructing a block-quantized
vocab-parallel head whose shard (154880/TP) is not divisible by block_n=128 at
TP=4/8, failing model load. Adding re:.*\.head$ to the ignore list loads it as
the shared bf16 lm_head. No effect on non-MTP serving or TP=1.

Files changed (1) hide show
  1. config.json +2 -1
config.json CHANGED
@@ -292,7 +292,8 @@
292
  "re:.*embed_tokens$",
293
  "re:.*eh_proj$",
294
  "re:.*self_attn.indexer.weights_proj$",
295
- "re:.*self_attn.indexer.wk$"
 
296
  ],
297
  "kv_cache_scheme": null,
298
  "quant_method": "compressed-tensors",
 
292
  "re:.*embed_tokens$",
293
  "re:.*eh_proj$",
294
  "re:.*self_attn.indexer.weights_proj$",
295
+ "re:.*self_attn.indexer.wk$",
296
+ "re:.*\\.head$"
297
  ],
298
  "kv_cache_scheme": null,
299
  "quant_method": "compressed-tensors",