Difference between revisions of "Tensorboard"

From UFRC
Jump to navigation Jump to search
(Undo revision 21761: the ampersand is intentional and required to background the TensorBoard process and allow the user to start Firefox without needing to open an additional terminal)
Tag: Undo
(Clarify some instructions based on user feedback.)
Line 4: Line 4:
  
 
One recommendation for using [https://github.com/tensorflow/tensorboard/blob/master/docs/get_started.ipynb TensorBoard] on HiPerGator is to run TensorBoard monitoring as a separate workload. Many neural network software frameworks are able to stream training data to a TensorBoard log file. Here are the steps to monitor the log separately from your training workload:
 
One recommendation for using [https://github.com/tensorflow/tensorboard/blob/master/docs/get_started.ipynb TensorBoard] on HiPerGator is to run TensorBoard monitoring as a separate workload. Many neural network software frameworks are able to stream training data to a TensorBoard log file. Here are the steps to monitor the log separately from your training workload:
 +
  
 
* Request a 1 CPU 2 GB RAM HiPerGator Desktop or a console session via [https://ood.rc.ufl.edu OnDemand]
 
* Request a 1 CPU 2 GB RAM HiPerGator Desktop or a console session via [https://ood.rc.ufl.edu OnDemand]
* Start a tensorboard instance in the resulting terminal/shell:
+
 
  module load tensorflow ubuntu
+
* Start a tensorboard instance in the resulting terminal/shell (replace "./pathtolog" with the path to where your TensorFlow process is storing its logs):
  tensorboard --logdir ./pathtolog &
+
  $ module load tensorflow ubuntu
* Copy the  printed URL
+
  $ tensorboard --logdir ./pathtolog &
 +
 
 +
* After a few seconds, TensorBoard will display a message similar to:
 +
...
 +
TensorBoard 2.4.0 at '''<nowiki>http://localhost:6006/</nowiki>''' (Press CTRL-C to quit)
 +
 
 +
* Copy the  printed URL ("<nowiki>http://localhost:6006/</nowiki>" in the example above)
 +
 
 +
* Press <ENTER> to get back the '$' prompt
 +
 
 
* Start a browser:
 
* Start a browser:
  firefox (or chrome)
+
  $ firefox (or chrome)
* Paste the tensorboard URL into the browser's location bar to view the TensorBoard log
+
 
 +
* Paste the TensorBoard URL into the browser's location bar to view the TensorBoard UI.

Revision as of 18:18, 20 January 2022

Back to TensorFlow page

TensorBoard is used for visually monitoring statistics while a neural network trains.

One recommendation for using TensorBoard on HiPerGator is to run TensorBoard monitoring as a separate workload. Many neural network software frameworks are able to stream training data to a TensorBoard log file. Here are the steps to monitor the log separately from your training workload:


  • Request a 1 CPU 2 GB RAM HiPerGator Desktop or a console session via OnDemand
  • Start a tensorboard instance in the resulting terminal/shell (replace "./pathtolog" with the path to where your TensorFlow process is storing its logs):
$ module load tensorflow ubuntu
$ tensorboard --logdir ./pathtolog &
  • After a few seconds, TensorBoard will display a message similar to:
...
TensorBoard 2.4.0 at http://localhost:6006/ (Press CTRL-C to quit)
  • Copy the printed URL ("http://localhost:6006/" in the example above)
  • Press <ENTER> to get back the '$' prompt
  • Start a browser:
$ firefox (or chrome)
  • Paste the TensorBoard URL into the browser's location bar to view the TensorBoard UI.