Skip to content
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

feat: load checkpoint #2

Open
surana01 opened this issue Nov 12, 2024 · 1 comment
Open

feat: load checkpoint #2

surana01 opened this issue Nov 12, 2024 · 1 comment
Assignees

Comments

@surana01
Copy link
Collaborator

surana01 commented Nov 12, 2024

The code does not currently support loading from a checkpoint. To add this functionality, we would need to modify the surrogate config file by adding an extra argument, load_checkpoint.

if load_checkpoint != null:
    model = load_model(load_checkpoint)

The load_checkpoint argument contains the name of the checkpoint which will be downloaded from HuggingFace.

@surana01 surana01 self-assigned this Nov 12, 2024
@PDuckworth
Copy link
Collaborator

@surana01
Please also update the readme with the required config changes necessary to load a checkpont.
Along with an example of how to use a checkpoint model for inference only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants