MOVZX and Hinata
6cf86cd95f
[Bugfix] Load checkpoint KV-cache scales in the Qwen3.5 family
...
Checkpoints that ship calibrated k_scale/v_scale tensors (e.g.
unsloth/Qwen3.8-27B-NVFP4, which carries one pair per full-attention
layer) name them ...self_attn.{k,v}_scale, but the runtime parameters
live on the inner attention layer (...self_attn.attn.{k,v}_scale).
Qwen3_5Model.load_weights hands the iterable straight to
AutoWeightsLoader, which performs no scale-name remapping, so the
scales are silently dropped and --kv-cache-dtype fp8 runs at scale 1.0
with only a warning_once that fires even on success (the MTP draft
layer legitimately has no scales).
Route scale-suffixed names through maybe_remap_kv_scale_name first,
mirroring gemma4/gpt_oss. No behavior change for checkpoints without
scales.
Measured on RTX 5090 / Qwen3.8-27B NVFP4 / fp8 KV / MTP k=3 (GSM8K
greedy, n=300): 92.3% at scale 1.0 vs 93.7% with scales loaded
(bf16-KV control 94.5%).
Fixes #54623
Co-Authored-By: Hinata <hinata@idihore.id >
Signed-off-by: MOVZX <movzx@yahoo.com >
2026-10-18 17:18:47 +00:00
..
2026-10-14 05:56:54 -07:00
2026-10-12 20:56:44 +08:00
2026-10-15 22:56:06 +07:00
2026-09-24 14:14:10 +00:00
2026-09-23 05:40:13 +00:00
2026-10-09 09:29:03 +00:00
2026-10-15 10:15:03 +00:00
2026-08-24 17:06:00 -07:00
2026-09-29 04:05:07 +00:00
2026-09-24 14:14:10 +00:00
2026-10-10 05:54:52 +00:00
2026-09-18 17:29:11 +01:00
2026-09-24 14:14:10 +00:00
2026-09-24 14:14:10 +00:00
2026-09-24 14:14:10 +00:00
2026-10-05 09:15:53 +00:00
2026-10-14 10:09:23 -07:00
2026-09-24 14:14:10 +00:00
2026-09-18 17:29:11 +01:00
2026-10-02 03:15:14 +00:00
2026-10-12 14:09:53 +00:00
2026-09-18 17:29:11 +01:00
2026-10-10 15:41:10 +00:00
2026-08-20 10:31:55 +00:00
2026-08-28 16:49:19 -04:00
2026-10-13 05:46:37 +00:00
2026-10-13 05:46:37 +00:00
2026-10-13 05:46:37 +00:00
2026-09-18 17:29:11 +01:00
2026-10-09 09:29:03 +00:00
2026-09-24 14:14:10 +00:00
2026-09-24 14:14:10 +00:00
2026-10-05 09:15:53 +00:00
2026-08-20 15:40:11 +00:00
2026-09-16 16:44:29 +00:00
2026-09-18 17:29:11 +01:00
2026-09-16 10:21:00 -07:00
2026-09-24 14:14:10 +00:00
2026-09-29 11:44:54 +08:00
2026-09-16 16:44:29 +00:00
2026-10-15 20:11:17 -05:00
2026-09-16 16:44:29 +00:00
2026-10-09 09:29:03 +00:00
2026-10-09 09:29:03 +00:00
2026-10-15 13:29:24 +00:00
2026-09-23 05:40:13 +00:00
2026-09-16 16:44:29 +00:00
2026-09-16 10:57:24 -07:00
2026-09-16 16:44:29 +00:00
2026-08-20 15:40:11 +00:00
2026-09-24 14:14:10 +00:00
2026-10-02 09:17:12 +00:00
2026-10-02 09:17:12 +00:00
2026-10-08 12:04:46 -04:00
2026-10-15 21:38:52 +08:00
2026-09-25 14:14:55 -04:00
2026-10-16 21:22:11 -07:00
2026-09-18 17:29:11 +01:00
2026-09-24 14:14:10 +00:00
2026-10-15 12:32:39 +08:00
2026-09-24 14:14:10 +00:00
2026-09-24 14:14:10 +00:00
2026-09-24 14:14:10 +00:00
2026-08-20 10:31:55 +00:00
2026-10-13 13:02:12 +08:00
2026-10-13 13:02:12 +08:00
2026-08-20 10:31:55 +00:00
2026-08-22 15:41:27 -04:00
2026-10-10 15:05:55 +00:00
2026-09-24 14:14:10 +00:00
2026-10-12 23:18:43 +00:00
2026-10-12 10:41:07 -07:00
2026-10-13 00:58:59 -07:00
2026-08-22 15:41:27 -04:00
2026-09-18 17:29:11 +01:00
2026-09-18 17:29:11 +01:00
2026-09-28 14:25:40 +00:00
2026-08-20 10:31:55 +00:00
2026-10-13 10:03:48 -05:00
2026-10-09 09:29:03 +00:00
2026-09-16 16:44:29 +00:00
2026-09-24 14:14:10 +00:00
2026-10-09 09:29:03 +00:00
2026-10-09 09:29:03 +00:00
2026-10-17 11:04:49 +00:00
2026-10-09 09:29:03 +00:00
2026-09-18 17:29:11 +01:00
2026-10-09 09:29:03 +00:00
2026-08-28 16:49:19 -04:00
2026-09-30 15:44:46 +08:00
2026-09-24 14:14:10 +00:00
2026-09-12 00:36:47 -04:00
2026-09-24 14:14:10 +00:00
2026-10-08 12:04:46 -04:00
2026-08-20 15:40:11 +00:00
2026-09-18 17:29:11 +01:00
2026-09-16 16:44:29 +00:00
2026-09-30 15:44:46 +08:00
2026-09-16 16:44:29 +00:00
2026-09-18 17:29:11 +01:00
2026-09-30 12:19:33 +00:00
2026-09-30 12:19:33 +00:00
2026-10-14 10:11:11 -07:00
2026-10-09 09:29:03 +00:00
2026-09-24 14:14:10 +00:00
2026-10-09 09:29:03 +00:00
2026-10-10 13:34:10 +08:00
2026-10-14 12:01:14 -04:00
2026-10-13 00:58:59 -07:00
2026-10-14 12:01:14 -04:00
2026-09-24 14:14:10 +00:00
2026-09-24 14:14:10 +00:00
2026-09-24 14:14:10 +00:00
2026-10-09 09:29:03 +00:00
2026-09-21 09:39:20 -07:00
2026-10-09 09:29:03 +00:00
2026-09-16 16:44:29 +00:00
2026-09-24 11:36:26 -07:00
2026-10-15 12:23:11 +08:00
2026-10-17 08:06:56 +00:00
2026-09-24 14:14:10 +00:00
2026-09-24 14:14:10 +00:00
2026-09-29 11:44:54 +08:00
2026-09-24 14:14:10 +00:00
2026-09-24 14:14:10 +00:00
2026-10-01 02:59:37 -07:00
2026-08-20 15:40:11 +00:00
2026-09-24 14:14:10 +00:00
2026-09-24 14:14:10 +00:00
2026-09-18 17:29:11 +01:00
2026-10-13 00:58:59 -07:00
2026-09-16 10:21:00 -07:00
2026-08-29 08:50:15 -04:00
2026-10-01 19:32:27 +00:00
2026-10-01 19:32:27 +00:00
2026-10-01 19:32:27 +00:00
2026-10-10 15:41:10 +00:00
2026-10-01 19:32:27 +00:00
2026-10-09 09:29:03 +00:00
2026-10-09 09:29:03 +00:00
2026-10-01 19:32:27 +00:00
2026-09-05 11:45:34 +08:00
2026-10-14 10:17:58 +00:00
2026-10-09 09:29:03 +00:00
2026-09-24 14:14:10 +00:00
2026-09-24 14:14:10 +00:00
2026-10-01 02:59:37 -07:00
2026-10-14 10:54:09 +00:00
2026-09-25 10:08:28 -04:00
2026-10-09 01:44:50 +00:00
2026-09-23 05:40:13 +00:00
2026-09-15 14:59:02 +00:00
2026-09-04 07:50:43 -04:00
2026-09-05 11:45:34 +08:00
2026-09-18 17:29:11 +01:00
2026-09-16 10:21:00 -07:00
2026-09-24 14:14:10 +00:00
2026-09-18 17:29:11 +01:00
2026-09-24 14:14:10 +00:00
2026-10-06 08:47:02 +00:00
2026-10-04 00:42:35 +00:00
2026-10-06 08:47:02 +00:00
2026-09-16 16:44:29 +00:00
2026-09-01 11:26:00 -04:00
2026-09-18 17:29:11 +01:00
2026-09-24 14:14:10 +00:00
2026-10-08 17:13:48 +08:00
2026-10-14 10:17:58 +00:00
2026-09-29 23:33:01 +08:00
2026-10-14 10:17:58 +00:00
2026-09-05 11:45:34 +08:00
2026-09-24 14:14:10 +00:00
2026-09-24 14:14:10 +00:00
2026-09-24 14:14:10 +00:00
2026-09-18 17:29:11 +01:00
2026-10-11 10:21:10 +00:00
2026-10-11 10:21:10 +00:00
2026-09-24 14:14:10 +00:00
2026-09-24 14:14:10 +00:00
2026-10-14 10:54:09 +00:00
2026-09-01 11:26:00 -04:00
2026-10-09 01:44:50 +00:00
2026-08-24 10:19:04 -07:00
2026-09-01 11:26:00 -04:00
2026-09-23 05:40:13 +00:00
2026-09-24 14:14:10 +00:00
2026-10-09 09:29:03 +00:00
2026-09-01 11:26:00 -04:00
2026-09-24 14:14:10 +00:00
2026-09-24 14:14:10 +00:00
2026-09-23 05:40:13 +00:00
2026-09-16 16:44:29 +00:00
2026-09-24 14:14:10 +00:00
2026-09-21 09:39:20 -07:00
2026-09-18 17:29:11 +01:00
2026-10-13 12:42:29 +00:00
2026-10-09 09:29:03 +00:00
2026-10-13 09:06:33 -07:00
2026-08-20 10:31:55 +00:00
2026-10-14 18:33:22 +00:00
2026-09-29 08:33:52 +00:00
2026-10-09 09:29:03 +00:00
2026-09-24 14:14:10 +00:00
2026-09-18 12:50:01 +01:00
2026-09-23 05:40:13 +00:00
2026-06-28 16:18:22 -07:00
2026-09-18 12:50:01 +01:00
2026-09-18 12:50:01 +01:00
2026-09-28 04:52:51 +00:00
2026-09-24 14:14:10 +00:00
2026-09-18 17:29:11 +01:00
2026-09-30 12:19:33 +00:00
2026-09-24 14:14:10 +00:00
2026-09-25 07:18:54 +08:00
2026-10-09 09:29:03 +00:00
2026-10-14 19:59:44 +08:00
2026-09-18 17:29:11 +01:00
2026-09-24 14:14:10 +00:00
2026-09-23 05:40:13 +00:00
2026-09-16 16:44:29 +00:00
2026-09-24 14:14:10 +00:00
2026-10-10 15:41:10 +00:00
2026-10-09 22:23:35 +08:00
2026-09-27 21:19:04 -04:00
2026-09-24 14:14:10 +00:00
2026-09-24 14:14:10 +00:00
2026-10-09 15:12:03 +08:00
2026-09-24 14:14:10 +00:00
2026-09-26 14:31:51 +00:00
2026-10-13 10:49:39 +00:00
2026-09-28 21:04:01 +08:00
2026-09-26 14:31:51 +00:00
2026-09-26 14:31:51 +00:00
2026-06-29 01:52:23 -07:00
2026-09-29 03:58:39 +00:00
2026-09-26 14:31:51 +00:00
2026-10-15 21:40:16 +07:00
2026-10-18 17:18:47 +00:00
2026-09-26 14:31:51 +00:00
2026-09-26 14:31:51 +00:00
2026-10-13 10:49:39 +00:00
2026-09-25 10:08:28 -04:00
2026-10-14 10:17:58 +00:00
2026-09-26 14:31:51 +00:00
2026-09-26 14:31:51 +00:00
2026-10-10 06:51:52 +00:00
2026-10-15 22:56:06 +07:00
2026-10-15 21:40:16 +07:00
2026-10-12 21:27:34 +08:00
2026-10-10 06:51:52 +00:00
2026-10-16 16:07:53 +07:00
2026-10-10 06:51:52 +00:00
2026-09-24 14:14:10 +00:00
2026-10-16 23:16:47 +00:00
2026-08-20 10:31:55 +00:00
2026-09-30 08:57:21 +00:00
2026-09-18 17:29:11 +01:00
2026-10-02 04:28:19 +00:00
2026-09-24 14:14:10 +00:00
2026-09-30 12:19:33 +00:00
2026-09-24 14:14:10 +00:00
2026-09-24 14:14:10 +00:00
2026-09-16 10:57:24 -07:00
2026-06-29 01:52:23 -07:00
2026-09-23 05:40:13 +00:00
2026-09-18 17:29:11 +01:00
2026-10-01 01:09:14 -07:00
2026-10-10 15:41:10 +00:00
2026-09-10 09:43:08 -04:00
2026-09-16 16:44:29 +00:00
2026-08-26 14:12:11 +00:00
2026-09-22 16:36:03 -04:00
2026-09-18 17:29:11 +01:00
2026-09-27 21:19:04 -04:00
2026-09-27 21:19:04 -04:00
2026-10-12 14:33:31 -04:00
2026-09-28 15:52:50 -04:00
2026-10-09 17:40:29 +08:00
2026-09-28 15:52:50 -04:00
2026-09-20 09:50:00 +00:00
2026-09-29 17:10:28 +01:00
2026-09-30 13:52:53 +08:00
2026-10-13 00:58:59 -07:00