You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Model is not a full model or PEFT model" despite loadable on another machine #327
I have two machines.
One (machine 1) has Jupyter running to do all the experiments and training of models (with Nvidia T4).
The other (machine 2) I can only access through SSH and loads the model to provide an api.
I have trained multiple models, on various steps of data example volumes (100, 1000, 10K, 20K).
Somehow, the 10K and 20K models can not run on machine 2.
All the other models are in the same folder and they work fine.
They have all been trained using the same parameters, except for the volume of data examples.
The error I get:
Unsloth: models/mistral_test is not a full model or a PEFT model.
I get the same error both with the model stored locally and when trying to load it from my HF.
I can load it both locally and through HF on machine 1.
Machine 2's unsloth is up to date.
Is there anything I can do like provide you with the model so that you can check if it's corrupted ?
The issue is that I am able to load other adapters trained in the exact same way. I suspect the models that fail to load are the ones I had to restart training with their checkpoints.
EDIT : It is not, I trained a new model without needing any restart and it did not work as well. See my comment below for the solution.
Reacted by Daniel Han, snakecook and RowingWithoutOars
Activity
danielhanchen commentedon Apr 11, 2024
@OsaCode Can you screenshot ur folder?
OsaCode commentedon Apr 11, 2024
RonanKMcGovern commentedon Apr 12, 2024
yeah same issue trying to load adapters.
Also related to this I believe: #59
EDIT: After testing again, I was not able to replicate. In other words, I'm able to load adapters fine (and in one shot as Daniel said above).
OsaCode commentedon Apr 12, 2024
The issue is that I am able to load other adapters trained in the exact same way. I suspect the models that fail to load are the ones I had to restart training with their checkpoints.
EDIT : It is not, I trained a new model without needing any restart and it did not work as well. See my comment below for the solution.
OsaCode commentedon Apr 15, 2024
I apparently found the problem.
All of my recently trained models that do not load correctly have:
"layer_replication": nullin their adapter_config.json, and removing it made it correctly load on my other machine.
EDIT : Any idea why this happens (why this may cause issues on some machines and not on others) @danielhanchen ? sorry for the ping