Skip to content

"Model is not a full model or PEFT model" despite loadable on another machine #327

Closed

Description

@OsaCode

Hey there.

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 ?

Activity

  1. danielhanchen commented on Apr 11, 2024

    @danielhanchen
    Member

    @OsaCode Can you screenshot ur folder?

  2. OsaCode commented on Apr 11, 2024

    @OsaCode
    Author
    Screenshot 2024-04-11 at 13 45 11 Here
  3. RonanKMcGovern commented on Apr 12, 2024

    @RonanKMcGovern

    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).

  4. OsaCode commented on Apr 12, 2024

    @OsaCode
    Author

    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.

  5. OsaCode commented on Apr 15, 2024

    @OsaCode
    Author

    I apparently found the problem.
    All of my recently trained models that do not load correctly have:

    "layer_replication": null

    in 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions