An open-source tool for teams to build reproducible ML workflows
Project description
Reproducible ML workflows
dstack
is an open-source tool that allows running reproducible ML workflows independently of
the environment (locally or in the cloud), and collaborate around data and models.
Docs • Quick start • Basics • Slack
dstack
is an open-source tool that allows running reproducible ML workflows independently of
the environment. It allows running ML workflows locally or remotely (e.g. in a configured cloud account).
Additionally, dstack
facilitates versioning and reuse of artifacts (such as data and models), across teams.
In brief, dstack
simplifies the process of establishing ML training pipelines that are independent of a
particular vendor, and facilitates collaboration within teams on data and models.
How does it work?
- Define workflows via YAML
- Run workflows locally via CLI
- Track and reuse artifacts across workflows
- Run workflows remotely (in any configured cloud) via CLI
- Version and share artifacts across teams
Installation
Use pip to install the dstack
CLI:
pip install dstack --upgrade
Example
Here's an example from the Quick start.
workflows:
- name: mnist-data
provider: bash
commands:
- pip install torchvision
- python mnist/mnist_data.py
artifacts:
- path: ./data
- name: train-mnist
provider: bash
deps:
- workflow: mnist-data
commands:
- pip install torchvision pytorch-lightning tensorboard
- python mnist/train_mnist.py
artifacts:
- path: ./lightning_logs
With workflows defined in this manner, dstack
allows for effortless execution either locally or in a configured cloud
account, while also enabling reuse of artifacts.
Run locally
Use the dstack
CLI to run workflows locally:
dstack run mnist-data
Configure a remote
To run workflows remotely (e.g. in the cloud) or share artifacts outside your machine,
you must configure your remote settings using the dstack config
command:
dstack config
This command will ask you to choose an AWS profile (which will be used for AWS credentials), an AWS region (where workflows will be run), and an S3 bucket (to store remote artifacts and metadata).
AWS profile: default
AWS region: eu-west-1
S3 bucket: dstack-142421590066-eu-west-1
EC2 subnet: none
For more details on how to configure a remote, check the installation guide.
Run remotely
Once a remote is configured, use the --remote
flag with the dstack run
command to run the
workflow in the configured cloud:
dstack run mnist-data --remote
You can configure the required resources to run the workflows either via the resources
property in YAML
or the dstack run
command's arguments, such as --gpu
, --gpu-name
, etc:
dstack run train-mnist --remote --gpu 1
When you run a workflow remotely, dstack
automatically creates resources in the configured cloud,
and releases them once the workflow is finished.
More information
For additional information and examples, see the following links:
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.1.1rc1.tar.gz
.
File metadata
- Download URL: dstack-0.1.1rc1.tar.gz
- Upload date:
- Size: 79.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 340b5dfb524f1f18a89e0d93fc4e1973e5aa4be46b39d6de92e33108e05fe5dd |
|
MD5 | 89e901f7cc3dd4d7960bd528bafbdac7 |
|
BLAKE2b-256 | 310806690c3b194efb8522c051860798bbad063fa26b14c15ce149bb66b54e58 |
File details
Details for the file dstack-0.1.1rc1-py3-none-any.whl
.
File metadata
- Download URL: dstack-0.1.1rc1-py3-none-any.whl
- Upload date:
- Size: 13.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3de40e394c951ac89e7acf9d1723fa0247642835f9e71b12609b44df06a21cd8 |
|
MD5 | 3f6e143f3a7e27eee51ee078eb60562d |
|
BLAKE2b-256 | 1cc53209454f1c6f661f5624dea8adcb5326941b7777169c0bda18f12c0377d8 |