Aller au contenu
Skillpedia
Machine learning18k · #10619

training-check

Ce qu’il fait

Cette skill surveille une exécution d'entraînement d'apprentissage automatique et indique si elle vaut encore la peine d'être poursuivie. Elle s'adresse aux chercheurs qui veulent être alertés tôt d'une exécution défaillante.

Quand l’utiliser

  • ✓Quand un entraînement est en cours et que vous voulez des contrôles de santé réguliers.
  • ✓Lorsque vous voulez repérer tôt les valeurs NaN, les divergences ou une perte qui stagne.
  • ✓Lorsque vous voulez un court rapport à chaque contrôle, avec l'heure du prochain.

Lien du skill

https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/skills-codex/training-check/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/wanshuiyin/Auto-claude-code-research-in-sleep/blob/main/skills/skills-codex/training-check/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Je veux que vous surveilliez mon entraînement et que vous me signaliez toute valeur NaN, divergence ou stagnation toutes les demi-heures.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

L'agent lit les métriques d'entraînement dans WandB ou dans des journaux de secours à chaque contrôle et rédige une courte analyse de santé. Il indique quand le prochain contrôle est prévu et poursuit la surveillance dans la même session.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis GitHub.

Training Check

Before each reviewer slot, follow Selectable Reviewers: resolve invocation → .aris/reviewer.json → Codex default (fresh native reviewer) with reviewer_route.py through the canonical helper resolver, preserving this slot's tier, fresh contexts, source/image inputs and deterministic gates. Codex examples/pins below apply only to backend=codex; other routes use their own first-call/reply contract. Save the route and actual returned identity; unavailable selections are REVIEW_UNAVAILABLE. Classify acceptance from actual families/completion/scope. Forward invocation reviewer/model/effort overrides to reviewer-bearing children. Generation workers are unchanged.

You are now in interactive watch / 交互式训练监控模式.

Keep the current session open and report directly in the current terminal. The user is watching this terminal for updates. By default, run a training health check every 30 minutes, output a concise but complete analysis report after each check, state the next check time, then continue monitoring.

This skill checks training quality, not basic process health. Process health checks such as whether a tmux session exists or whether the GPU is idle can be handled by watchdog-style tooling; this skill focuses on whether the run is still worth continuing.

Inputs To Establish First

Before the first check, identify or ask for the minimum monitoring context:

  • WandB run path or URL, if available.
  • Fallback log path, SSH command, or local command for reading recent training logs.
  • Training target, expected baseline, and key metrics that define success.
  • How the training was launched, so it can be stopped if needed.
  • Project notes path for recording decisions and evidence.

If a source is unavailable, say so clearly and continue with the available source. If both WandB and fallback logs are unreachable, report the connectivity issue, classify the round as WAIT, and check again later. Do not infer that training is bad only because data is unreachable.

Per-Round Check

Every round, read WandB first when configured. If WandB is unreachable, read the fallback logs. Inspect at least:

  • Training loss trend over recent checkpoints or steps.
  • Eval metrics and whether they improve, flatten, or degrade against baseline.
  • NaN or Inf in loss, gradients, activations, or logged metrics.
  • Sudden loss spikes, divergence, or repeated failed evaluations.
  • Learning rate schedule behavior.
  • Gradient norm, if logged.
  • Plateau patterns that suggest the run is no longer useful.

Output one report in the current terminal with this structure:

## Training Check - <local timestamp>

- Data source: wandb_ok | log_fallback | unreachable
- Run: <wandb run or training identifier>
- Recent metrics: <loss/eval/lr/grad summary>
- Anomalies: <NaN/Inf/spike/divergence/plateau findings>
- Evidence: <WandB URL, log lines, metric values, or files inspected>
- Decision: CONTINUE | WAIT | STOP
- Reason: <why this decision is justified>
- Next check: <local timestamp, normally 30 minutes later unless ending>

Use the decisions as follows:

Decision Meaning Action
CONTINUE Run looks healthy enough to keep training. Keep monitoring and check again in 30 minutes.
WAIT Evidence is inconclusive, noisy, too early, or temporarily unreachable. Do not stop training; keep monitoring and check again later.
STOP Training is clearly problematic or no longer worth continuing. Stop the training task, save evidence, write notes, output final summary, and end monitoring.

Stop Behavior

When the decision is STOP:

  • Stop the training task.
  • If the context contains stop_command, run stop_command first.
  • If no stop_command is available, choose the appropriate stop action from how the training was launched, such as stopping the relevant tmux session, local process, remote process, scheduler job, or notebook job.
  • Save evidence: WandB URL, key metrics, relevant log snippets, files inspected, and the reason for stopping.
  • Append a project note for debugging and future analysis.
  • Output FINAL_SUMMARY in the terminal.
  • End the interactive monitoring loop.

Never stop on the first sign of ordinary metric noise. Look for sustained trends, hard failures, or clear divergence. Always preserve enough evidence for a later agent or human to understand why the run was stopped.

Questions fréquentes

Vérifie-t-elle si le GPU est occupé ?

Non. Elle se concentre sur la qualité de l'entraînement, tandis que les contrôles simples des processus relèvent d'outils de surveillance.

À quelle fréquence contrôle-t-elle ?

Par défaut toutes les 30 minutes, et elle indique l'heure du prochain contrôle à chaque passage.

Où lit-elle les métriques ?

Dans WandB lorsqu'il est disponible, ou dans des journaux de secours.

Détails

Description originale de l’auteur

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

repo: wanshuiyin/Auto-claude-code-research-in-sleep

Popularité

Étoiles GitHub
18k
Position au classement
#10619
Licence
MIT
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires