Model Upload Manager
High-level orchestrator responsible for uploading complete model packages to the Norman platform. This includes:
Authenticating the user
Creating the model entry in the metadata store
Uploading all model assets (files, streams, links)
Waiting for backend processing flags to reach completion
The ModelUploadManager is the primary entry point for pushing model definitions and associated resources to Norman.
Methods
upload_model(model_config) async
Coroutine
Upload a complete model package to the Norman platform. This includes:
Validating configuration with
ModelConfigCreating the model entry via
ModelFactoryUploading all associated assets (files, streams, or URLs)
Waiting for model-level status flags to reach completion
Parameters
model_config (
dict[str, Any]) A raw dictionary containing the model’s definition and asset configuration. It will be validated viaModelConfig.
Returns
Model The fully registered model returned from the backend.
Raises
RuntimeError If model creation in the backend fails.
ValueError If asset sources are invalid.
TimeoutError If assets do not finish processing within the configured timeout.