You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FREETOKEN_FP8_DENSE=1 with a bf16 FTW checkpoint dies with KeyError in_proj_qkvz.weight #8
Convert with FP8 off: ft checkpoint --model ~/models/Qwen3.8-Flash-Next-NVFP4 --out ~/models/Qwen3.8-Flash-Next-NVFP4-FTW (bf16 dense). It serves fine without the env vars.
What happens: startup dies 3 s after loading begins:
File ".../layers/base.py", line 43, in load_state_dict
item = state_dict.pop(_concat_prefix(prefix, name))
KeyError: 'model.layers.0.linear_attn.in_proj_qkvz.weight'
parse_config reads the env var and builds the FP8 layout (split in_proj_qkvz / in_proj_ba, Fp8Dynamic* layers). The quantization itself lives in qwen4_exp.weight.iter_weights, which the FTW fast path doesn't run. So the FTW's bf16 fused in_proj never becomes the FP8 keys the model expects. The same env vars against the HF checkpoint dir load and serve correctly.
Expected: either quantize at FTW load as well, or detect the mismatch (bf16 FTW + FREETOKEN_FP8_DENSE=1) and say so instead of a bare KeyError. Whether ft checkpoint run with the env vars set produces a loadable FP8 FTW is being tested separately.
Activity