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

Update all weights to the .weights.h5 format #1307

Closed
mattdangerw opened this issue Nov 8, 2023 · 1 comment
Closed

Update all weights to the .weights.h5 format #1307

mattdangerw opened this issue Nov 8, 2023 · 1 comment
Assignees
Labels
type:feature New feature or request

Comments

@mattdangerw
Copy link
Member

mattdangerw commented Nov 8, 2023

We have a new "best practice" format for weight saving. We should re-upload all our existing checkpoints in this format.

Steps:

  • Load a backbone with from_preset.
  • Save in the new format weights by calling backbone.save_weights("model.weights.h5").
  • On our gcp bucket. Make a new v2 directory keras_nlp/models/preset/xx_id/v2.
  • Copy the new weights over along with all other preprocessing assets.
  • Update our xx_preset.py file to point to the new assets.

Make sure not to delete of overwrite anything currently in the bucket! This should be non-destructive.

This will need to be handled by someone on the Keras team directly, as it requires write access to GCP storage.

@mattdangerw mattdangerw added the type:feature New feature or request label Nov 8, 2023
@mattdangerw mattdangerw moved this to In Progress in Kaggle integration Nov 14, 2023
@mattdangerw mattdangerw moved this from In Progress to Todo in Kaggle integration Nov 14, 2023
@mattdangerw mattdangerw moved this from Todo to In Progress in Kaggle integration Nov 28, 2023
@mattdangerw mattdangerw self-assigned this Nov 28, 2023
@mattdangerw mattdangerw moved this from In Progress to Done in Kaggle integration Dec 4, 2023
@mattdangerw
Copy link
Member Author

Done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or request
Projects
Development

No branches or pull requests

1 participant