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

Add save submodule plugin #707

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ioangatop
Copy link
Collaborator

Closes #706

@ioangatop ioangatop added the core Changes regarding the core part of the library label Nov 12, 2024
@ioangatop ioangatop self-assigned this Nov 12, 2024
@ioangatop ioangatop linked an issue Nov 12, 2024 that may be closed by this pull request
@ioangatop ioangatop marked this pull request as ready for review November 12, 2024 14:08
path: _PATH,
storage_options: Any | None = None,
) -> None:
super().save_checkpoint(checkpoint, path, storage_options)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will also save the checkpoint of the full module to path if I understand correctly?
For big FMs / encoders those checkpoints can be quite heavy, it'd be nice to have the option to only save the decoder checkpoint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Changes regarding the core part of the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add IO plugin to save a submodule
2 participants