Skip to main content

aiSSEMBLE™ Foundation Versioning

PyPI PyPI - Python Version PyPI - Wheel

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.

Metadata

Release files for aissemble-foundation-versioning-service 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aissemble-foundation-versioning-service 2.0.0
File Size Uploaded Provenance Actions
aissemble_foundation_versioning_service-2.0.0.tar.gz 8.5 kB Without provenance Details for aissemble_foundation_versioning_service-2.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aissemble-foundation-versioning-service 2.0.0
File Interpreter ABI Platform Actions
aissemble_foundation_versioning_service-2.0.0-py3-none-any.whl Python 3 none any Details for aissemble_foundation_versioning_service-2.0.0-py3-none-any.whl

Total release size: 19.2 kB

Release files / aissemble_foundation_versioning_service-2.0.0.tar.gz

Download URL aissemble_foundation_versioning_service-2.0.0.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
144da89853e0f352ab8e87ebda586a2d1a0600eddcdbabddb23763be9e42f92f
BLAKE2b-256 checksum
How to use checksums
37024979f9a4951ef9b9ab021a248f622d5a0ce91ddd11b34e983775341bb189
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.11.4 Linux/6.12.37-61.105.amzn2023.aarch64

Release files / aissemble_foundation_versioning_service-2.0.0-py3-none-any.whl

Download URL aissemble_foundation_versioning_service-2.0.0-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f7e64fd887eaa60e7967d307d5ccbf822b76fffbc412cf7cf1892cbe99d1b01
BLAKE2b-256 checksum
How to use checksums
02df4fef09af6aca5961c4834426c96827b662a5e17a3145458bd892f2c89e7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.4 CPython/3.11.4 Linux/6.12.37-61.105.amzn2023.aarch64

Security for aissemble-foundation-versioning-service 2.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page