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
fix(export): stop the resume dir growing per layer, and close four review gaps
The auto-derived resume dir was never opted into, and kept one full activation
set per layer -- on a 40-layer model that dwarfs the checkpoint it sits beside.
Prune every boundary but the committed one, after the manifest commits it so a
crash mid-write still resumes. Scoped to the per-layer export path, leaving the
explicit checkpoint_dir semantics untouched.
Fuse the sibling experts the probe never routed to, mirroring the replay
requantize_resmooth_fused_llm_layers does for the same reason: sync_moe_gate_up_amax
covers weight_quantizer.amax but not a static quantizer's global_amax, so unrouted
gate/up pairs would keep unmerged scales.
Drop the format re-check latch -- it inspected only one layer, so a recipe applying
a pre-quant-scale format to a subset still shipped unfused pre_quant_scale.
Refuse MTP checkpoints before calibration on the normal load path: only the FSDP2
loader flags the prefixes early, so the run used to write a complete-looking
checkpoint and fail afterwards.
Also: no MoE gate/up warning at finalize (the sync happens inside
transient_module_state, so it fired on every MoE run and reported a miss that did
not happen); delete out-of-range shards from a longer previous run; null-safe
manifest read plus a num_layers check; drop __all__, which advertised names the
package never exported.
The resume test now interrupts for real rather than rewinding a finished run's
manifest -- a state a crash cannot produce.
Signed-off-by: Fridah-nv <201670829+Fridah-nv@users.noreply.github.com>
0 commit comments