Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

🔎 Monitor deep learning model training and hardware usage from your mobile phone 📱

License

NotificationsYou must be signed in to change notification settings

labmlai/labml

Repository files navigation

🔥 Features

  • Monitor running experiments from mobile phone or laptop
  • Monitor hardware usage on any computerwith a single command
  • Integrate with just 2 lines of code (see examples below)
  • Keeps track of experiments including infomation like git commit, configurations and hyper-parameters
  • API for custom visualizationsOpen In ColabOpen In Colab
  • Pretty logs of training progress
  • Open source!

Hosting the experiments server

Prerequisites

To installMongoDB, refer to the officialdocumentationhere.

Installation

Install the package using pip:

pip install labml-app

Starting the server

# Start the server on the default port (5005)labml app-server# To start the server on a different port, use the following commandlabml app-server --port PORT

Optional: to setup and configure Nginx in your server, please refertothis.

You can access the user interface either by visitinghttp://localhost:{port} or, if configured on a separate machine,by navigating tohttp://{server-ip}:{port}.

Monitor Experiments

Installation

  1. Install the package using pip.
pip install labml
  1. Create a file named.labml.yaml at the top level of your project folder, and add the following line to the file:
app_url:http://localhost:{port}/api/v1/default# If you are setting up the project on a different machine, include the following line instead,app_url:http://{server-ip}:{port}/api/v1/default

PyTorch example

fromlabmlimporttracker,experimentwithexperiment.record(name='sample',exp_conf=conf):foriinrange(50):loss,accuracy=train()tracker.save(i, {'loss':loss,'accuracy':accuracy})

Distributed training example

fromlabmlimporttracker,experimentuuid=experiment.generate_uuid()# make sure to sync this in every machineexperiment.create(uuid=uuid,name='distributed training sample',distributed_rank=0,distributed_world_size=8,                  )withexperiment.start():foriinrange(50):loss,accuracy=train()tracker.save(i, {'loss':loss,'accuracy':accuracy})

📚 Documentation

Guides

🖥 Screenshots

Formatted training loop output

Sample Logs

Custom visualizations based on Tensorboard logs

Analytics
# Install packages and dependenciespip install labml psutil py3nvml# Start monitoringlabml monitor

Citing

If you use LabML for academic research, please cite the library using the following BibTeX entry.

@misc{labml, author = {Varuna Jayasiri, Nipun Wijerathne, Adithya Narasinghe, Lakshith Nishshanke}, title = {labml.ai: A library to organize machine learning experiments}, year = {2020}, url = {https://labml.ai/},}

[8]ページ先頭

©2009-2025 Movatter.jp