Skip to content

Commit bd2bc0b

Browse files
authored
Fix ema resume checkpoint (#184)
1 parent 25f226b commit bd2bc0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/neuralmagic/sparsification_manager.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ def maybe_create_sparsification_manager(
601601

602602
# reconstruct ToggleableModelEMA from state dictionary
603603
if ckpt["ema"]:
604-
ckpt["ema"] = load_ema(ckpt["ema"], model)
604+
ckpt["ema"] = load_ema(ckpt["ema"], model).ema
605605

606606
return sparsification_manager
607607

0 commit comments

Comments
 (0)