Skip to content

Commit e839eca

Browse files
authored
use module prefix during modelopt restore (#14384)
Signed-off-by: Jennifer Chen <[email protected]>
1 parent 7a37f14 commit e839eca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nemo/collections/llm/modelopt/model_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ def restore_modelopt_state(
234234
mto.plugins.restore_sharded_modelopt_state(
235235
[core_model],
236236
ckpt_to_weights_subdir(path, is_saving=False),
237+
prefix="module.",
237238
)
238239
if mto.ModeloptStateManager.is_converted(core_model):
239240
logging.info("Restored Model Optimizer state from checkpoint.")

0 commit comments

Comments
 (0)