Skip to content

Conversation

@hugary1995
Copy link
Collaborator

This PR introduces two major capabilities

  • object serialization
  • model bundling

The object serialization works by recording options consumed when creating an object and serializes the recorded options afterwards.

The model bundling capability is built upon that. A model can be bundled and stored on disk in a compressed format. The compressed file contains

  • the serialized options that can be used to recreate the model
  • a json configuration file describing the model metadata

The metadata can include high-level description of the bundled model, as well as user-facing descriptions of each variable and parameter. This addresses one of the user complaints on hard-to-interpret names like forces/S, state/internal/Ep, etc.

The bundled model can be deserialized using the BundledModel object which only needs the path to the compressed file. The BundledModel can be used like a usual neml2 model and can be composed with others as usual.

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