Use tensorboard inside notebooks

How to use tensoboard inside AI Notebooks

Last updated 9th of September, 2021.

Objective

The purpose of this tutorial is to show how it is possible to launch a TensorBoard inside an AI Notebooks.

TensorBoard is a tool made by TensorFlow, for providing the measurements and visualizations needed during the machine learning workflow. It enables tracking experiment metrics like loss and accuracy, visualizing the model graph, projecting embeddings to a lower dimensional space, and much more.

TensorBoard provides a visual interface :

image

The tutorial presents a simple example of launching TensorBoard in a notebook.

Requirements

  • access to the OVHcloud Control Panel
  • an AI Notebooks project created inside a Public Cloud project
  • a user for AI Notebooks

Instructions

Launch and access Jupyter notebook

If you want to launch it from the OVHcloud Control Panel, just create a new notebook and select TensorFlow docker image.

If you want to launch it with the CLI, just choose the name of your notebook (<notebook-name>) and the number of GPUs (<nb-gpus>) your want and use the following command:

ovhai notebook run tensorflow jupyterlab \
    --name <notebook-name> \
    --gpu <nb-gpus>

You can then reach your notebook's URL once the notebook is running.

Clone the GitHub repository

The GitHub repository containing all examples for OVHcloud AI NOTEBOOKS is available here.

Inside your notebook, open a new Terminal tab by clicking File > New > Terminal.

image

Run the following command in the notebook's terminal to clone the repository:

git clone https://github.com/ovh/ai-training-examples.git

Experiment with example notebook

The example notebook is based on the Fashion MNIST dataset.

image

Then access the example notebook via the following path:

ai-training-examples > notebooks > tensorflow > tuto > notebook_tutorial_tensorboard.ipynb

The aim of this tutorial is to show how it is possible, thanks to TensorBoard, to see the dynamic display of different metrics.

A preview of this notebook can be found on GitHub.

How to use TensorBoard with AI training ?

If you want to launch TensorBoard in a job, please refer to this documentation.

Feedback

Please send us your questions, feedback and suggestions to improve the service:


Did you find this guide useful?

Please feel free to give any suggestions in order to improve this documentation.

Whether your feedback is about images, content, or structure, please share it, so that we can improve it together.

Your support requests will not be processed via this form. To do this, please use the "Create a ticket" form.

Thank you. Your feedback has been received.


These guides might also interest you...

OVHcloud Community

Access your community space. Ask questions, search for information, post content, and interact with other OVHcloud Community members.

Discuss with the OVHcloud community

In accordance with the 2006/112/CE Directive, modified on 01/01/2015, prices incl. VAT may vary according to the customer's country of residence
(by default, the prices displayed are inclusive of the UK VAT in force).