Skip to content

Commit 8186fa9

Browse files
committed
small fix
1 parent 02b47fd commit 8186fa9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MaxText/utils/ckpt_conversion/to_maxtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ def _eager_getter(key):
840840
# Reconstruct model_args (script name + the args MaxText needs)
841841
model_args = [sys.argv[0]] + remaining_args
842842

843-
if local_args.use_from_pretrained_api:
843+
if not local_args.use_from_pretrained_api:
844844
assert local_args.hf_model_path != ""
845845
assert local_args.mode != "default"
846846

0 commit comments

Comments
 (0)