Skip to content

Commit

Permalink
Fix Mistral Conversion Issue (NVIDIA#11786)
Browse files Browse the repository at this point in the history
* Fix Mistral Conversion issue

* Fix Mistral Conversion issue

Signed-off-by: Youngeun Kwon <[email protected]>
  • Loading branch information
suiyoubi authored and youngeunkwon0405 committed Feb 10, 2025
1 parent bd7dbba commit a1bd06b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/checkpoint_converters/convert_mixtral_hf_to_nemo.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,8 @@ def save_to_nemo(args, checkpoint):
model.cfg.use_cpu_initialization = False
model.cfg.perform_initialization = True

torch.distributed.init_process_group()
parallel_state.initialize_model_parallel()
model.save_to(args.output_path)
logging.info(f'NeMo model saved to: {args.output_path}')

Expand Down

0 comments on commit a1bd06b

Please sign in to comment.