training-monitor

training-monitor is a skill for Claude Code from wenhaochai/claude-plugins. It costs 225 tokens per session (7,023 once invoked), scanned A, original, MIT.

A monitoring guide for language-model pretraining runs, where a model learns from large amounts of text before later use. It defines signals, formulas, checking frequency, and a fixed order for investigating problems.

In plain words
What is it for?
Use it to review loss, gradients, system measurements, tensor measurements, and evaluation results during pretraining. Some sections also apply to supervised fine-tuning, reinforcement learning, mixture-of-experts, and multimodal runs when relevant.
Why use it?
Training failures can appear in several measurements before the main loss curve clearly changes. The guide gives the agent a consistent way to inspect existing logs and spot unusual spikes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: $skill-name invocation.

Part of the training-monitor plugin — 1 skill shipped together

Good fit Use it to review loss, gradients, system measurements, tensor measurements, and evaluation results during pretraining. Some sections also apply to supervised fine-tuning, reinforcement learning, mixture-of-experts, and multimodal runs when relevant.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wenhaochai/claude-plugins/training-monitor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add wenhaochai/claude-plugins --skill training-monitor
Clone the repo
git clone --depth 1 https://github.com/wenhaochai/claude-plugins

Made for: Claude Code.

Or install training-monitor, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for training-monitor

README.md
[![agentmods](https://agentmods.dev/badge/skills/wenhaochai/claude-plugins/training-monitor/github.svg)](https://agentmods.dev/skills/wenhaochai/claude-plugins/training-monitor)
Your own site
<a href="https://agentmods.dev/skills/wenhaochai/claude-plugins/training-monitor"><img src="https://agentmods.dev/badge/skills/wenhaochai/claude-plugins/training-monitor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for training-monitor

Your own site · 80×15
<a href="https://agentmods.dev/skills/wenhaochai/claude-plugins/training-monitor"><img src="https://agentmods.dev/badge/skills/wenhaochai/claude-plugins/training-monitor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 225 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,023 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00225 $0.07023
Opus 5.5 $0.00090 $0.02809
Sonnet 5.5 $0.00045 $0.01405
Haiku 4.5 $0.00022 $0.00702

Measured 12d ago against content hash 1b82b2a9706c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

training-monitor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

training-monitor/skills/training-monitor/SKILL.md · 253 lines

How it starts

The opening of the file, as written. The whole thing — 253 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Training monitor

A pretraining run fails in a small number of ways, and most of them show up in a handful of every-step numbers before the loss curve moves. This skill restates the metric set, the reduction rules, and the triage order from Deng (2026) so that an agent can read a run the same way each time. The source is explicit that "every lab has its own dashboard, so this list is necessarily opinionated"; treat it as a starting point that the run's own healthy history then calibrates.

Scope. Language-model pretraining first; the loss, gradient, system, tensor, and evaluation sections also apply to large SFT and RL runs with the obvious substitutions. The expert-balance section applies only to mixture-of-experts models, the modality section only to multimodal models. This skill contains no code: which checks exist, where they run, and whether they become a script is the reading agent's decision, made from the procedure below.

How to apply this to a project

  1. Inventory before you instrument. List what the training stack already logs, namely the tracker keys, the stdout lines, and the evaluation outputs. Most stacks already emit the global loss, a global gradient norm, step time, tokens per second, and a held-out loss.
  2. Map the inventory onto the table in the next section and mark each row as present, derivable, or missing. Derivable rows come from logged quantities without new hooks: co-spike count from the loss and gradient-norm histories, update ratio from update and weight norms when both are logged, tokens per second from token counts and step time, straggler score from per-rank step times.
  3. Fill P0 gaps first and leave P1 and P2 for when a P0 signal misbehaves. A monitor that is complete but late is worth less than one that is partial and on time.
  4. Set thresholds from healthy runs, never from one failure. Deng: "Choose thresholds from healthy runs. Do not tune the window length or the $z_t$ cutoff around one failure." Record the chosen thresholds next to the run config so the next run inherits them.
  5. Pick the sampling interval $K$ from the cost rules in Part V, then measure the overhead on the actual model and hardware before adding anything.
  6. Decide the tooling last. A check that repeats every run or chains into a gate deserves a script with an exit status. A single investigation deserves a query or a notebook. A short run deserves a person reading the dashboard. The doctrine is the same in all three.
  7. When something looks wrong, walk the triage order in Part I and stop at the first step that explains the symptom; open per-layer charts only when the walk ends without an explanation.
  8. Compare runs by tokens or FLOPs, not by step, whenever batch size or sequence length differs between them.

Read the full file on GitHub · 253 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed · +64 tokens per session 1b82b2a9706c
  2. 14d ago Changed · -33 tokens per session 6c9c84713687
  3. 28d ago First seen · 253 lines · 194 tokens per session scan A bf3a5a5e0cea

Subscribe to this mod's changes

training-monitor is a skill published in the GitHub repository wenhaochai/claude-plugins (17 stars, last pushed 2d ago), licensed MIT. It adds 225 tokens to every session and 7,023 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-20.

Related

Other skills, from other repositories

agent-platform-model-registry

Agent Platform Model Registry Management. Use when you need to upload, list, describe, update, or delete machine learning models (and their versions) in the Agent Platform Model Registry. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform models.

google/skills · 60 tokens

foundry-config-setup

Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.

microsoft/agent-framework · 65 tokens

google-cloud-solution-agentic-analytics-spark-knowledge-catalog

Discovers requirements and designs an end-to-end governed agentic analytics solution using Knowledge Catalog and Managed Service for Apache Spark (Lightning Engine). Use when designing data science and analytics workflows across structured and unstructured distributed data (including in S3, Azure Blob, AlloyDB, and…

google/skills · 132 tokens

training-check

Interactively monitor training metrics from the current Codex session, periodically checking WandB or fallback logs for NaN, divergence, plateaus, and broken runs.

wanshuiyin/Auto-claude-code-research-in-sleep · 35 tokens

nemo-automodel-launcher-config

Configure NeMo AutoModel job launches for interactive runs, Slurm clusters, and SkyPilot cloud execution.

NVIDIA/skills · 30 tokens

finetuning

Fine-tune models on Microsoft Foundry using SFT (supervised), DPO (preference), or RFT (reinforcement with graders). Covers dataset preparation, training job submission, deployment, and evaluation. USE FOR: fine-tune, SFT, DPO, RFT, training data, grader, distillation, fine-tuned model, training job, large file…

microsoft/skills · 132 tokens