Skip to content

Conversation

mart-r
Copy link
Collaborator

@mart-r mart-r commented Jun 26, 2025

This applies only when saving and/or loading CDB or Vocab explicitly / on its own, not as part of a model pack.

Allowing this makes it a lot easier for trainer because one file can be uploaded instead of a folder.

This PR

  • Adds a utility module with methods to allow to serialise and deserialise objects into zip file
    • As well as a method to figure out whether a zip file should be used
  • The procedure is automatic
  • If the file path ends with .zip a zip file approach is used
  • I.e both for loading and saving
  • Though it can be enabled or disabled by the user
  • Used the above for Vocab and CDB (both load and save methods)
  • Added a few test as well

@mart-r mart-r merged commit 54588a3 into main Jun 26, 2025
11 checks passed
@mart-r mart-r deleted the CU-8699jpw1u-save-load-cdb-vocab-as-zip branch June 26, 2025 20:21
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.

1 participant