Skip to main content

MLgym, a python framework for distributed machine learning model training in research.

Project description


a python framework for distributed machine learning model training in research.

CircleCI

At its core, MLgym offers functionality to run gridsearches of Pytorch models at scale split over multiple GPUs and centrally store the results using DashifyML.

Futhermore, MLgym provides the following key features:

  • Reproducibility of results due to full experiment specification including dataset, preprocessing routines, model architecture, loss function, metrics and more within a single YAML config.

  • Component registry to register custom components with dependencies. For instance one can define a new preprocessing routine component. This component may depend on an iterator component, as specified in the experiment config. During runtime these components are instantiated on the fly.

  • Resume training after crash

  • Custom training routines, e.g., training with partially frozen network weights

  • Large scale, multi GPU training supporting Grid Search, Nested Cross Validation, Cross Validation

  • Reduced logging to reduce storage footprint of model and optimizer states

Please note, that at the moment this code should be treated as experimental and is not production ready.

Install

there are two options to install MLgym, the easiest way is to install it from the pip repository:

pip install mlgym

For the latest version, one can directly install it from source by cd into the root folder and then running

pip install src/

Usage

NOTE: This framework is still under heavy development and mainly used in research projects. It's most likely not free of bugs and interfaces can still change.

For usage see this example.

Copyright

Copyright (c) 2020 Max Lübbering

For license see: https://github.com/mlgym/mlgym/blob/master/LICENSE

Project details


Download files

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

Source Distribution

mlgym-0.0.62.tar.gz (45.1 kB view details)

Uploaded Source

Built Distribution

mlgym-0.0.62-py3-none-any.whl (64.5 kB view details)

Uploaded Python 3

File details

Details for the file mlgym-0.0.62.tar.gz.

File metadata

  • Download URL: mlgym-0.0.62.tar.gz
  • Upload date:
  • Size: 45.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.13

File hashes

Hashes for mlgym-0.0.62.tar.gz
Algorithm Hash digest
SHA256 1d8ad84af0298f175d2b87ba8dc4d2e251e29c82fd0512995022723208b66d56
MD5 ea15fc2af5bcdbe7bc18111e59162686
BLAKE2b-256 b3c439e02c3f98993b87e7dbb08a6aa7d932eaf6df6ad9fceeb3c2d7a7615fb3

See more details on using hashes here.

File details

Details for the file mlgym-0.0.62-py3-none-any.whl.

File metadata

  • Download URL: mlgym-0.0.62-py3-none-any.whl
  • Upload date:
  • Size: 64.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.13

File hashes

Hashes for mlgym-0.0.62-py3-none-any.whl
Algorithm Hash digest
SHA256 eadf73dc40d31d32d4f8028059898b876102f8051f73590df155d8c3c87128f6
MD5 33b97a15c7614d57fd326fd31eb4a3cf
BLAKE2b-256 d9d922049603723b6d9933fb148652b622347525cf154e68b9b24d4c60567e02

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