Skip to main content

Pytorch project template and required tools

Project description

https://badge.fury.io/py/ml-workflow.svg

ML workflow contains our process of bringing a project to fruition as efficiently as possible. This is subject to change as we iterate and improve. This package implements tools and missing features to help bridge the gap between frameworks and libraries that we utilize.

The main packages and tools that we build around are:

  • pytorch

  • ignite

  • pytorch-datastream

  • guild

See the documentation for more information.

Install in existing project

pip install ml-workflow

Create new project with MNIST template

mkdir new-project
cd new-project
virtualenv venv -p python3.8
source venv/bin/activate
pip install ml-workflow
python -m workflow.setup_project

pip install -r requirements.txt
pip install -r dev_requirements.txt
pip freeze > dev_requirements.txt

# reactivate environment to find guild
deactivate
source venv/bin/activate

You can train a model and inspect the training with:

guild run prepare
guild run train
guild tensorboard

Development

Prepare and run tests

git clone git@github.com:aiwizo/ml-workflow.git
cd ml-workflow
virtualenv venv --python python3.8
source venv/bin/activate
pip install -r requirements.txt
pip install -r dev_requirements.txt
pip install pytest
python -m pytest

Test template

./setup_template.py
./test_template.py

Use development version in project

The following steps will create a link to the local directory and any changes made to the package there will directly carry over to your project environment.

cd path/to/my/project
source venv/bin/activate

cd path/to/work/area
git clone git@github.com:aiwizo/ml-workflow.git
cd ml-workflow
pip install -e .

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

ml_workflow-0.8.2-py3-none-any.whl (55.7 kB view details)

Uploaded Python 3

File details

Details for the file ml_workflow-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: ml_workflow-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 55.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.6

File hashes

Hashes for ml_workflow-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 da6e04f250bdf374f7e51af91456d3177570f62abff25a67c9961c29488a7f79
MD5 53e7dc88626d850a325cdb9407f85c09
BLAKE2b-256 fcdb49ddddb7c15f97d1f02797b0e48cee2f77a42b64e6b39d67f147c1ef0bd0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page