No project description provided
Project description
aiSSEMBLE™ Foundation Versioning
This module contains the implementation for the aiSSEMBLE versioning service. The service provides the ability to version artifacts produced by a Solution Baseline machine-learning pipeline, and uses Maven to package and deploy the artifacts to Nexus.
Model Versioning
The following GET endpoint is provided for model versioning: /version/model/{run_id}
run_id
is the unique training run identifier assigned to an MLflow training experiment. The versioning service currently only supports models that have been trained using the MLflow implementation of a Solution Baseline machine-learning pipeline. It will package the training run artifacts produced by MLflow and the model artifacts produced when saving through MLflow.
The following environment variables are required for model versioning:
MLFLOW_TRACKING_URI
: the MLflow tracking URI path specified in the training pipeline. This is where MLflow saves the training run artifacts.MODEL_DIRECTORY
: The model directory path specified in the training pipeline. This is where the training pipeline saves the trained models.NEXUS_SERVER
: The Nexus server to use to push the versioned artifact to. The credentials for this server must be provided in the Maven settings.xml file.
Example
Below is a basic example of how to leverage the versioning service:
- Extending the baseline docker image to include Nexus credentials
FROM boozallen/aissemble-versioning:${VERSION_AISSEMBLE} COPY /custom/maven/settings/containing/nexus/credentials.xml /root/.m2/settings.xml
- Docker-compose configurations for running the service
example-versioning-service: image: my-extended-versioning-service-image:latest ports: - '80:80' environment: MLFLOW_TRACKING_URI: /path/to/mlflow/tracking/uri MODEL_DIRECTORY: /path/to/saved/models NEXUS_SERVER: http://nexus-server:port
- Note: By default Versioning requires authorization and therefore must have security services running (policy-decision-point).
- Add the following to the above docker-compose file:
policy-decision-point: image: ${CONTAINER_REGISTRY}boozallen/policy-decision-point-docker:latest hostname: policy-decision-point container_name: policy-decision-point ports: - "8780:8080" - "9700:9000"
- Add an
auth.properties
file to your docker image with the following content.pdp_host_url=http://policy-decision-point:8080/api/pdp
- Then add the following environment variable that points to your properties file.
ENV KRAUSENING_BASE /path/to/auth.properties/file
- To disable authorization you can add the following to the
auth.properties
file:is_authorization_enabled = False
.
- Add the following to the above docker-compose file:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file aissemble_foundation_versioning_service-1.12.1.tar.gz
.
File metadata
- Download URL: aissemble_foundation_versioning_service-1.12.1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.11.4 Linux/6.1.128-136.201.amzn2023.aarch64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 218038962a3ebf4f29048dd69772818c184f0d01b853c15df14bd812d599924c |
|
MD5 | 5ae5aadc477ef4865a47223d1fe0b974 |
|
BLAKE2b-256 | 57b5a4eb40952c16b1ef93c8730bdad744b0fe9f774cb9ccba98c570e7b7b63b |
File details
Details for the file aissemble_foundation_versioning_service-1.12.1-py3-none-any.whl
.
File metadata
- Download URL: aissemble_foundation_versioning_service-1.12.1-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.11.4 Linux/6.1.128-136.201.amzn2023.aarch64
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dc34861289118a5344061cb3db47df505089b76b5d700374c83ce0705d41d3a9 |
|
MD5 | a25436557128e0ec299c50cedb315ee3 |
|
BLAKE2b-256 | 1cae6d5b2c47e8ab6c467abbdfb8abc4b6033dbf2a1191f2602d0bce87c379be |