Skip to main content

No project description provided

Project description

Mobile first web app to monitor PyTorch & TensorFlow model training

Relax while your models are training instead of sitting in front of a computer

PyPI - Python Version PyPI Status Slack Docs Twitter

This is an open-source library to push updates of your ML/DL model training to mobile. Here's a sample experiment

You can host this on your own. We also have a small AWS instance running. and you are welcome to use it. Please consider using your own installation if you are running lots of experiments. Thanks.

Notable Features

  • Mobile first design: web version, that gives you a great mobile experience on a mobile browser.
  • Model Gradients, Activations and Parameters: Track and compare these indicators independently. We provide a separate analysis for each of the indicator types.
  • Summary and Detail Views: Summary views would help you to quickly scan and understand your model progress. You can use detail views for more in-depth analysis.
  • Track only what you need: You can pick and save the indicators that you want to track in the detail view. This would give you a customised summary view where you can focus on specific model indicators.
  • Standard ouptut: Check the terminal output from your mobile. No need to SSH.

How to use it ?

  1. Install the labml client library.
pip install labml
  1. Start pushing updates to the app with two lines of code. Refer to the examples below.
  2. Click on the link printed in the terminal to open the app. View Run

How to run app locally

pip install labml-app
from labml import tracker, experiment

with experiment.record(name='sample', token='http://localhost:5000/api/v1/track?'):
    for i in range(50):
        loss, accuracy = train()
        tracker.save(i, {'loss': loss, 'accuracy': accuracy})

Examples

  1. Pytorch Open In Colab Kaggle
from labml import tracker, experiment

with experiment.record(name='sample', exp_conf=conf):
    for i in range(50):
        loss, accuracy = train()
        tracker.save(i, {'loss': loss, 'accuracy': accuracy})
  1. PyTorch Lightning Open In Colab Kaggle
from labml import experiment
from labml.utils.lightening import LabMLLighteningLogger

trainer = pl.Trainer(gpus=1, max_epochs=5, progress_bar_refresh_rate=20, logger=LabMLLighteningLogger())

with experiment.record(name='sample', exp_conf=conf, disable_screen=True):
        trainer.fit(model, data_loader)
  1. TensorFlow 2.0 Keras Open In Colab Kaggle
from labml import experiment
from labml.utils.keras import LabMLKerasCallback

with experiment.record(name='sample', exp_conf=conf):
    for i in range(50):
        model.fit(x_train, y_train, epochs=conf['epochs'], validation_data=(x_test, y_test),
                  callbacks=[LabMLKerasCallback()], verbose=None)

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

labml_app-0.0.2.tar.gz (283.2 kB view details)

Uploaded Source

Built Distribution

labml_app-0.0.2-py3-none-any.whl (312.7 kB view details)

Uploaded Python 3

File details

Details for the file labml_app-0.0.2.tar.gz.

File metadata

  • Download URL: labml_app-0.0.2.tar.gz
  • Upload date:
  • Size: 283.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5

File hashes

Hashes for labml_app-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9b9b2fce964d559c4cb755d7ad70e78af47e6e59e90a491bac0389066ab8e2e7
MD5 a8685ac4bf1b6eb019f2cc3c6b360d9c
BLAKE2b-256 62042a1b841706321658c3201cb5982191ac5d84575b90d0b70d2ef9da3dbe42

See more details on using hashes here.

File details

Details for the file labml_app-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: labml_app-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 312.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.5

File hashes

Hashes for labml_app-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f860316f8238759834cbefc16d8b689bb3fc59a922d275782038b03117a1fec6
MD5 e7c5ec088569db95c99e01cc239cfbac
BLAKE2b-256 eda8ebff37519aecf7dd79f1500616787ab70b372e488c31e85cca3357d140d9

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