Skip to content

Commit

Permalink
Fix backbone weights loading bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamanehSaadat committed Apr 11, 2024
1 parent 5d9dd82 commit 90f6679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keras_nlp/models/backbone.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ class like `keras_nlp.models.Backbone.from_preset()`, or from
backbone = load_serialized_object(preset, CONFIG_FILE)
if load_weights:
jax_memory_cleanup(backbone)
backbone.load_weights(get_file(preset, CONFIG_FILE))
backbone.load_weights(get_file(preset, MODEL_WEIGHTS_FILE))

return backbone

Expand Down

0 comments on commit 90f6679

Please sign in to comment.