Skip to content

[Need help] How can I load a created base model #626

Description

@yangliu2

I was looking for finetuning a previously trained model because I no longer have access to the training data.

I see that Classifier have a create_base_model(filename, exists_ok=False) function. I was able to save the same model weights. But I'm not sure how to load the saved weights as a base model.

When I used something like new_model = Classifier(base_model="<model_file_name>", it tells me the base_model should be an object with "settings" rather than a string.

Or should I just load the model using new_model = Classifier.load("<model_file_name>") and do new_model.fit(train, test) directly?
Thanks!

Activity

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

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions