Parameters
The name for the model. Must be a non-empty string.
The Onyx model to save. Must be an MLP, RNN, or Transformer instance.
Source datasets used to train this model, for lineage tracking. Each dictionary should have:
name(str): Name of the source datasetversion_id(str, optional): Specific version, or latest if not provided
Returns
None. Prints a confirmation message when upload completes.Raises
Exception: If the name is an empty stringException: If a source dataset is not found in the Engine
Example
Notes
- The model is saved locally before uploading (in
~/.onyx/models/) - Model weights are saved in PyTorch format (
.pt) - The model configuration is saved alongside the weights
- Each save creates a new version of the model