AGENT SKILL

tensorboard-x

Router for tensorboardX logging, summaries, graph/projector workflows, and integration-safe writer usage.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
tensorboard-x
license
MIT
metadata
{ "disco-role": "operating" }
description
Router for tensorboardX logging, summaries, graph/projector workflows, and integration-safe writer usage.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

tensorboard-x

Use this repo skill when a task mentions tensorboardX, SummaryWriter, TensorBoard event files, or Python code that logs training progress for later inspection in TensorBoard.

This root skill is a router. It points to focused sub-skills for the common tensorboardX workflow families and keeps the public runtime guidance self-contained.

Quick start

  1. Install the package:
    python -m pip install tensorboardX
    
  2. Verify the import:
    python -c "from tensorboardX import SummaryWriter; print(SummaryWriter)"
    
  3. If you want to inspect a run directory, open TensorBoard with:
    tensorboard --logdir <logdir>
    
  4. If you want a fast install check, run the bundled helper:
    python scripts/tbx_inspect_install.py --help
    python scripts/tbx_inspect_install.py
    

If you need graph/projector, media summaries, or remote writer integrations, install the optional packages described in references/install-and-routing.md. Do not assume every optional dependency is needed for every workflow.

Choose the right sub-skill

logging-core

Use this route for ordinary event logging and writer lifecycle tasks:

  • SummaryWriter setup and logdir policy
  • scalar logging, grouped scalars, hparams, custom scalars
  • use_metadata, purge_step, flush, close, reopen
  • write_to_disk=False
  • event-file sanity checks and tensorboard --logdir

Open sub-skills/logging-core/SKILL.md when the user asks about scalar series, run directories, hparams, or writer behavior.

rich-media-summaries

Use this route for image, audio, video, histogram, PR curve, text, or mesh summaries.

Open sub-skills/rich-media-summaries/SKILL.md when the user asks about payload shapes, media dependencies, or summary builders such as tensorboardX.summary.image() and SummaryWriter.add_video().

graph-and-embedding-plugins

Use this route for model graphs and projector output:

  • SummaryWriter.add_graph() for PyTorch modules
  • SummaryWriter.add_onnx_graph()
  • SummaryWriter.add_openvino_graph()
  • SummaryWriter.add_embedding() and projector metadata/label-image layout

Open sub-skills/graph-and-embedding-plugins/SKILL.md when the user asks about tracing models, loading ONNX/OpenVINO files, or writing embedding projector data.

remote-and-parallel-integrations

Use this route for integration boundaries:

  • GlobalSummaryWriter
  • multiprocessing or multi-module logging
  • s3:// and gs:// record-writer paths
  • Comet forwarding and GPU telemetry as optional input sources

Open sub-skills/remote-and-parallel-integrations/SKILL.md when the task crosses process, credential, or service boundaries.

What this skill does not do

  • It does not expose a tensorboardX CLI; use Python APIs plus TensorBoard as the viewer.
  • It does not rely on the original repository checkout at runtime.
  • It does not ask future agents to run the source repo's examples or tests.
  • It does not treat remote/cloud integrations as enabled by default.

Shared references

Common escape hatch

If you only need to confirm the installation before choosing a workflow, start with scripts/tbx_inspect_install.py. It is safe, self-contained, and does not depend on the original repository checkout.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351