aissemble-foundation-model-training-api


Nameaissemble-foundation-model-training-api JSON
Version 1.9.2 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2024-09-26 20:46:04
maintainerNone
docs_urlNone
authoraiSSEMBLE Baseline Community
requires_python<3.12,>=3.11.4
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## aiSSEMBLE&trade; Model Training API

[![PyPI](https://img.shields.io/pypi/v/aissemble-foundation-model-training-api?logo=python&logoColor=gold)](https://pypi.org/project/aissemble-foundation-model-training-api/)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/aissemble-foundation-model-training-api?logo=python&logoColor=gold)
![PyPI - Wheel](https://img.shields.io/pypi/wheel/aissemble-foundation-model-training-api?logo=python&logoColor=gold)

This module contains the implementation and baseline Docker image for the aiSSEMBLE model training service. This service allows you to create model training jobs, list jobs, retrieve job logs, and kill jobs.

### Model Training API

`POST /training-jobs?pipeline=PIPELINE_NAME`

- Request body contains all key/value pairs required for model training, such as model hyperparameters
- Functionality:
    - Spawns appropriate model training Kubernetes job
        - Checks for existence of model training image with naming convention: "model-training-PIPELINE_NAME"
            - Returns error if not present
        - Job naming convention: "model-training-PIPELINE_NAME-RANDOM_UUID"
    - Passes in user-provided parameters 
- Returns model training job name 

`GET /training-jobs/TRAINING_JOB_NAME`

- Returns logs from pod running model training job or error if job doesn't exist

`GET /training-jobs`

- Returns list of all model training jobs (active, failed, and completed) and statuses
- Filters all jobs in cluster by reserved job name prefix "model-training"

`GET /training-jobs?pipeline=PIPELINE_NAME`

- Returns list of all model training jobs (active, failed, and completed) and statuses for a given pipeline

`DELETE /training-jobs/TRAINING_JOB_NAME`

- Deletes specified Kubernetes job
- Returns error if job does not exist

### Remaining Items
- Ensure appropriate Kubernetes RBAC config in Helm charts
- Deploy model training API in downstream projects with ML training step(s)
- In downstream projects, ensure model training image is generated into "model-training-PIPELINE_NAME"
- In downstream projects, ensure embeddings deployment name is "PIPELINE_NAME-STEP_NAME"
- Configure permissions/implement PDP authorization for each API route
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "aissemble-foundation-model-training-api",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<3.12,>=3.11.4",
    "maintainer_email": null,
    "keywords": null,
    "author": "aiSSEMBLE Baseline Community",
    "author_email": "aissemble@bah.com",
    "download_url": "https://files.pythonhosted.org/packages/67/97/1bc0a4a0b6a3bfbd2cd179d08edd1f534df0225b349a7e459e325ff19eeb/aissemble_foundation_model_training_api-1.9.2.tar.gz",
    "platform": null,
    "description": "## aiSSEMBLE&trade; Model Training API\n\n[![PyPI](https://img.shields.io/pypi/v/aissemble-foundation-model-training-api?logo=python&logoColor=gold)](https://pypi.org/project/aissemble-foundation-model-training-api/)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/aissemble-foundation-model-training-api?logo=python&logoColor=gold)\n![PyPI - Wheel](https://img.shields.io/pypi/wheel/aissemble-foundation-model-training-api?logo=python&logoColor=gold)\n\nThis module contains the implementation and baseline Docker image for the aiSSEMBLE model training service. This service allows you to create model training jobs, list jobs, retrieve job logs, and kill jobs.\n\n### Model Training API\n\n`POST /training-jobs?pipeline=PIPELINE_NAME`\n\n- Request body contains all key/value pairs required for model training, such as model hyperparameters\n- Functionality:\n    - Spawns appropriate model training Kubernetes job\n        - Checks for existence of model training image with naming convention: \"model-training-PIPELINE_NAME\"\n            - Returns error if not present\n        - Job naming convention: \"model-training-PIPELINE_NAME-RANDOM_UUID\"\n    - Passes in user-provided parameters \n- Returns model training job name \n\n`GET /training-jobs/TRAINING_JOB_NAME`\n\n- Returns logs from pod running model training job or error if job doesn't exist\n\n`GET /training-jobs`\n\n- Returns list of all model training jobs (active, failed, and completed) and statuses\n- Filters all jobs in cluster by reserved job name prefix \"model-training\"\n\n`GET /training-jobs?pipeline=PIPELINE_NAME`\n\n- Returns list of all model training jobs (active, failed, and completed) and statuses for a given pipeline\n\n`DELETE /training-jobs/TRAINING_JOB_NAME`\n\n- Deletes specified Kubernetes job\n- Returns error if job does not exist\n\n### Remaining Items\n- Ensure appropriate Kubernetes RBAC config in Helm charts\n- Deploy model training API in downstream projects with ML training step(s)\n- In downstream projects, ensure model training image is generated into \"model-training-PIPELINE_NAME\"\n- In downstream projects, ensure embeddings deployment name is \"PIPELINE_NAME-STEP_NAME\"\n- Configure permissions/implement PDP authorization for each API route",
    "bugtrack_url": null,
    "license": null,
    "summary": null,
    "version": "1.9.2",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "659130e00fcf764ff79bd751d27b242ef302ea48f2482a28d0660bedb7ad66c3",
                "md5": "89daa97fad94406df9971831607b2a52",
                "sha256": "2d8a042470f4250b3bc30f6d83ce358f8e374fcfdc07ccfe08d6663c85ef12bc"
            },
            "downloads": -1,
            "filename": "aissemble_foundation_model_training_api-1.9.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "89daa97fad94406df9971831607b2a52",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<3.12,>=3.11.4",
            "size": 7969,
            "upload_time": "2024-09-26T20:46:03",
            "upload_time_iso_8601": "2024-09-26T20:46:03.247652Z",
            "url": "https://files.pythonhosted.org/packages/65/91/30e00fcf764ff79bd751d27b242ef302ea48f2482a28d0660bedb7ad66c3/aissemble_foundation_model_training_api-1.9.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "67971bc0a4a0b6a3bfbd2cd179d08edd1f534df0225b349a7e459e325ff19eeb",
                "md5": "8a390a5d188de63c27710a8bbf4447ad",
                "sha256": "efe62d80b94cfd73645b9ade2136dabf80b630a879f785fe22542cb869711ff8"
            },
            "downloads": -1,
            "filename": "aissemble_foundation_model_training_api-1.9.2.tar.gz",
            "has_sig": false,
            "md5_digest": "8a390a5d188de63c27710a8bbf4447ad",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<3.12,>=3.11.4",
            "size": 6894,
            "upload_time": "2024-09-26T20:46:04",
            "upload_time_iso_8601": "2024-09-26T20:46:04.050222Z",
            "url": "https://files.pythonhosted.org/packages/67/97/1bc0a4a0b6a3bfbd2cd179d08edd1f534df0225b349a7e459e325ff19eeb/aissemble_foundation_model_training_api-1.9.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-26 20:46:04",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "aissemble-foundation-model-training-api"
}
        
Elapsed time: 0.45533s