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: save task parameters into cache and model checkpoint #1719

Open
wants to merge 18 commits into
base: develop
Choose a base branch
from

Conversation

clement-pages
Copy link
Collaborator

@clement-pages clement-pages commented May 28, 2024

This PR introduces two features:

  • Save the task parameters into the cache. Indeed the values taken by certain task parameters can influence data preparation. Thus, generating a cache with particular values for these parameters, then reusing this cache with a new task, means that the parameters of this task may not be fully taken into account, and may distort certain results without raising the slightest error. This PR proposes to add a warning to inform the user that there are differences between the parameters of the current task and the one used to generate the cache.
  • Save the task parameters into a model checkpoint. This makes it easier to resume training. For instance:
registry.load_database("/path/to/database.yml")
protocol = registry.get_protocol("AMI.SpeakerDiarization.only_words", preprocessors={"audio": FileFinder()})

model = Model.from_pretrained("/path/to/checkpoint.ckpt", protocol=protocol)

@clement-pages clement-pages marked this pull request as draft May 31, 2024 13:51
@clement-pages clement-pages changed the title Add a warning when task parameters differ from those of the cache in use feat: save task parameters in cache and model checkpoint Jan 23, 2025
@clement-pages clement-pages changed the title feat: save task parameters in cache and model checkpoint feat: save task parameters into cache and model checkpoint Jan 23, 2025
@clement-pages clement-pages marked this pull request as ready for review January 23, 2025 13:23
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

Successfully merging this pull request may close these issues.

2 participants