-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUN ERROR #35
Comments
Yes I've fixed the trainer code. Phi3-Vision-Finetune/src/training/trainer.py Lines 206 to 207 in e4a5cd9
|
Backgroundexcute Problem
It still can't work. Can you give some suggestions? |
That's becuase the auto config model name has changed you need to open the config file and fix it. Change the autoconfig in config.json like |
my environment is offline, I download the phi-3.5-vision-instruct in my disk. |
@superdabuniu You could change the model loading script in utils.py Phi3-Vision-Finetune/src/utils.py Lines 44 to 46 in e4a5cd9
to load it from your local directory. |
Problem
module src/training/trainer.py line 206
state_dict = {k:v for k, v in state_dict.items() if "wte" not in k}
Error: state_dict is None
Background
I just run scripts/finetune.sh on single A100 GPU. Due to lack of mpi4py, my environment can't use deepspeed, so I remove the --deepspeed scrpits/zero3.json.
My solution
Before this line, I add the following line refer to line 190-191
if state_dict is None:
state_dict = self.model.state_dict()
Is it correct?
The text was updated successfully, but these errors were encountered: