2U1 / Phi3-Vision-Finetune

An open-source implementaion for fine-tuning Phi3-Vision and Phi3.5-Vision by Microsoft.
Apache License 2.0
43 stars 7 forks source link

cannot import name 'safe_save_model_for_hf_trainer' from 'training.train_utils' #13

Closed CynthiaChuang closed 1 month ago

CynthiaChuang commented 1 month ago

I get this error when I finetune ImportError: cannot import name 'safe_save_model_for_hf_trainer' from 'training.train_utils' (/home/ocisadmin/cynthia/phi3v/Phi3-Vision-ft/src/training/train_utils.py)

CynthiaChuang commented 1 month ago

remove import in train.py will fix it.

2U1 commented 1 month ago

@CynthiaChuang Sorry for the inconvinience. I forgot to remove the import line in the code. Thanks for reporting it.

2U1 commented 1 month ago

Closing the issue, that I'm using the safe_save_model_for_hf_trainer again now.