tensorboard

Visualize training metrics, model graphs, and performance profiles with TensorBoard.

2|Updated Aug 15, 2026
One-click install
npx skills add https://github.com/Jensen-Yao/agents-skills --skill tensorboard-jensen-yao
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tensorboard
Source: https://github.com/Jensen-Yao/agents-skills/tree/main/skills/tensorboard
Command: npx skills add https://github.com/Jensen-Yao/agents-skills --skill tensorboard-jensen-yao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tensorboard, torch, tensorflow, and includes references (resource) components.

What problem does it solve? Training machine learning models without visibility into metrics, weight distributions, and performance bottlenecks makes debugging slow and experiment comparison nearly impossible. This Skill provides complete instructions for instrumenting PyTorch and TensorFlow training loops with TensorBoard logging. ## Core Features & Use Cases - Metric & Experiment Tracking: Log scalars, images, histograms, and text with SummaryWriter, then compare multiple runs side-by-side in the TensorBoard dashboard. - Model Debugging & Profiling: Visualize model graphs, project embeddings with t-SNE/PCA, and profile CPU/GPU performance to identify bottlenecks. - Framework Integrations: Ready-made patterns for PyTorch, TensorFlow/Keras, PyTorch Lightning, HuggingFace Transformers, Fast.ai, JAX, and scikit-learn. - Use Case: You are tuning a ResNet model across learning rates. Log each run to runs/lr0.001, runs/lr0.01, and runs/lr0.1, then launch tensorboard --logdir=runs to overlay loss curves and pick the best configuration. ## Quick Start Instrument my PyTorch training loop with TensorBoard logging for loss, accuracy, and weight histograms, then show me how to launch the dashboard.

Frequently Asked Questions about tensorboard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I log training metrics to TensorBoard in PyTorch?▼

Create a SummaryWriter with a log directory, then call writer.add_scalar with a tag, value, and step inside your training loop. Launch the dashboard with tensorboard --logdir=runs and open http://localhost:6006.

How to compare multiple training runs in TensorBoard?▼

Write each experiment to its own subdirectory under a common logdir, such as runs/exp1 and runs/exp2. Launch TensorBoard on the parent directory and all runs appear together, where you can toggle, filter, and overlay their metric charts.

Does TensorBoard work with TensorFlow and Keras?▼

Yes, TensorFlow includes TensorBoard via tf.keras.callbacks.TensorBoard, which logs metrics, histograms, graphs, and profiling data during model.fit. You can also use tf.summary directly in custom training loops.

Can I use TensorBoard with HuggingFace Transformers?▼

Yes, set report_to='tensorboard' and logging_dir in TrainingArguments, and the Trainer automatically logs training and evaluation metrics. Custom compute_metrics functions also flow into the TensorBoard dashboard.

Why are my TensorBoard log files so large?▼

Logging every batch instead of every epoch creates excessive event files. Log batch metrics only every 100 steps, log histograms every few epochs, and always close the writer when training finishes.

How do I profile GPU performance with TensorBoard?▼

Use torch.profiler with ProfilerActivity.CUDA and a tensorboard_trace_handler, or set profile_batch in the Keras TensorBoard callback. The Profile tab then shows GPU utilization, kernel stats, memory usage, and bottlenecks.