Skip to content

Commit

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

* Fix Mistral Conversion issue
  • Loading branch information
suiyoubi authored Jan 9, 2025
1 parent c771042 commit f5d77c3
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 f5d77c3

Please sign in to comment.