A command-line utility to provision infrastructure for ML workflows
Project description
A command-line utility to provision infrastructure for ML workflows
Documentation | Issues | Twitter | Slack
dstack
is a lightweight command-line utility to provision infrastructure for ML workflows.
Features
- Define your ML workflows declaratively, incl. their dependencies, environment, and required compute resources
- Run workflows via the
dstack
CLI. Have infrastructure provisioned automatically in a configured cloud account. - Save output artifacts, such as data and models, and reuse them in other ML workflows
- Use
dstack
to process data, train models, host apps, and launch dev environments
Installation
Use pip to install dstack
locally:
pip install dstack
The dstack
CLI needs your AWS account credentials to be configured locally
(e.g. in ~/.aws/credentials
or AWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
environment variables).
Before you can use the dstack
CLI, you need to configure it:
dstack config
It will prompt you to select the AWS region where dstack will provision compute resources, and the S3 bucket, where dstack will save data.
Region name (eu-west-1):
S3 bucket name (dstack-142421590066-eu-west-1):
Support for GCP and Azure is in the roadmap.
How does it work?
- Install
dstack
locally - Define ML workflows in
.dstack/workflows.yaml
(within your existing Git repository) - Run ML workflows via the
dstack run
CLI command - Use other
dstack
CLI commands to manage runs, artifacts, etc.
When you run an ML workflow via the
dstack
CLI, it provisions the required compute resources (in a configured cloud account), sets up environment (such as Python, Conda, CUDA, etc), fetches your code, downloads deps, saves artifacts, and tears down compute resources.
More information
Licence
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 dstack-0.0.8.tar.gz
.
File metadata
- Download URL: dstack-0.0.8.tar.gz
- Upload date:
- Size: 49.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae3879b423a2a6b118e6de7e2d1b7b0f7f721dcb577c657b733c65ffb0b14146 |
|
MD5 | 6623193ead675dec63850d6e6000c379 |
|
BLAKE2b-256 | 9a269feac41a8094c2aaee606d88ef8cdd4482e7754c613c38c9437a4e6ba9d5 |
File details
Details for the file dstack-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: dstack-0.0.8-py3-none-any.whl
- Upload date:
- Size: 6.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8cdb515118bbd44d6142fbb73bc2a40d14a58670182bf0b0a43fea6066ddb9b |
|
MD5 | 1345439b1ffdbd6c5061b4c36357910f |
|
BLAKE2b-256 | 60601d9c2086412d9ddde47ecb10d51e24b9f8bf3fddf45c95fa513c5b36673e |