Train and deploy AutoGluon backed models on the cloud
Project description
AutoGluon-Cloud
AutoGluon-Cloud aims to provide user tools to train, fine-tune and deploy AutoGluon backed models on the cloud. With just a few lines of codes, users could train a model and perform inference on the cloud without worrying about MLOps details such as resource management.
Currently, AutoGluon-Cloud supports AWS SageMaker as the cloud backend.
Example
# First install package from terminal:
# pip install -U pip
# pip install -U setuptools wheel
# pip install --pre autogluon.cloud # You don't need to install autogluon itself locally
from autogluon.cloud import TabularCloudPredictor
train_data = 'train.csv'
test_data = 'test.csv'
predictor_init_args = {label='label'} # init args you would pass to AG TabularPredictor
predictor_fit_args = {train_data, time_limit=120} # fit args you would pass to AG TabularPredictor
# Train
cloud_predictor = TabularCloudPredictor(cloud_output_path='YOUR_S3_BUCKET_PATH').fit(predictor_init_args, predictor_fit_args)
# Deploy the endpoint
cloud_predictor.deploy()
# Real-time inference with the endpoint
result = cloud_predictor.predict_real_time('test.csv')
print(result)
# Cleanup the endpoint
cloud_predictor.cleanup_deployment()
# Batch inference
cloud_predictor.predict('test.csv') # results will be stored in s3 bucket
cloud_predictor.download_predict_results() # download the results to your local machine
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
autogluon.cloud-0.1.tar.gz
(38.2 kB
view details)
Built Distribution
File details
Details for the file autogluon.cloud-0.1.tar.gz
.
File metadata
- Download URL: autogluon.cloud-0.1.tar.gz
- Upload date:
- Size: 38.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52c0c162d256e487384f3c6e879b0e739877686e09216ea58db3a948068213b9 |
|
MD5 | b6d3beb4e8801ea2b3b4b3ccaad0b92b |
|
BLAKE2b-256 | 657785b20619a47a962f65136ebed05b2d742a598f315c4d552d014f2cae20a5 |
File details
Details for the file autogluon.cloud-0.1-py3-none-any.whl
.
File metadata
- Download URL: autogluon.cloud-0.1-py3-none-any.whl
- Upload date:
- Size: 45.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0498a03c45d0807f1e5f959fa87bb1ef408cfa74c90b22c5fd31f52a8aa7eb5a |
|
MD5 | 6fd7fdeb8bb25b18f123cb508745198b |
|
BLAKE2b-256 | f95ad6a2bdb35dffc78c12e529093d3b295f128e4c291e5857ea5d284c5f1cbc |