training_hang

training_hang is a skill for Claude Code, Codex from DeepLink-org/probing. It costs 15 tokens per session (267 once invoked), scanned A, original, Apache-2.0.

A troubleshooting guide for a machine-learning training job that is still running but has stopped making progress. It captures call stacks, thread wait locations, and recent tracing activity.

In plain words
What is it for?
Use it to investigate stalled distributed training, inspect worker or data-loader waits, and decide whether to change worker counts, check data paths, or collect more profiling samples.
Why use it?
It helps show whether the job is stuck at a synchronization barrier, waiting for data, or blocked elsewhere instead of guessing from an unchanged loss.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/deeplink-org/probing/training_hang
Any agent
npx skills add DeepLink-org/probing --skill training_hang
Clone the repo
git clone --depth 1 https://github.com/DeepLink-org/probing

Made for: Claude Code, Codex.

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_hang

README.md
[![agentmods](https://agentmods.dev/badge/skills/deeplink-org/probing/training_hang.svg)](https://agentmods.dev/skills/deeplink-org/probing/training_hang)
Your own site
<a href="https://agentmods.dev/skills/deeplink-org/probing/training_hang"><img src="https://agentmods.dev/badge/skills/deeplink-org/probing/training_hang.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 267 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00015 $0.00267
Opus 5 $0.00008 $0.00133
Sonnet 5 $0.00003 $0.00053
Haiku 4.5 $0.00002 $0.00027

Measured 5d ago against content hash 8668365baf1e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

training_hang 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 5d 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.

python/probing/bundled_skills/training_hang/SKILL.md · 29 lines

What it actually says

Training hang diagnosis

Loss 不更新、进程仍存活但无进展时使用。 组合:实时混合栈 + CPU 线程 wchan + 最近 trace 活动。

Parameters

  • stack_depth (integer, default 20): Backtrace frames to show
  • 栈在 dist/barrier → 检查各 rank 是否都存活: probing list / cluster nodes
  • 栈在 DataLoader → 减少 num_workers 或检查数据路径
  • 需要持续采样 → SET probing.pprof.sample_freq=99 后 skill: module_bottleneck
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 29 lines · 15 tokens per session scan A 8668365baf1e

Subscribe to this mod's changes

training_hang is a skill published in the GitHub repository DeepLink-org/probing (11 stars, last pushed 5d ago), licensed Apache-2.0. It adds 15 tokens to every session and 267 once invoked, about $0.0001 per session on Opus 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-08-30.

Related

Other skills, from other repositories

pytorch-patterns

PyTorch deep learning patterns and best practices for building robust, efficient, and reproducible training pipelines, model architectures, and data loading.

affaan-m/ECC · 32 tokens

cuml-machine-learning

Use for GPU-accelerated machine learning on tabular data using NVIDIA cuML. Triggers when tasks involve classification, regression, clustering, dimensionality reduction, or model training on datasets.

langchain-ai/deepagents · 43 tokens

optimize-for-gpu

GPU-accelerates scientific Python on NVIDIA hardware and verifies that the result is correct and faster. Use for CUDA/GPU optimization; CPU-bound NumPy, SciPy, pandas, scikit-learn, NetworkX, scikit-image, vector-search, image-processing, graph, simulation, or file-I/O workloads; CuPy, cuDF, cuML, cuGraph, cuVS…

K-Dense-AI/scientific-agent-skills · 151 tokens

hf-gradio

Use Gradio applications via API. Use when the user asks for to generate a prediction from a Gradio app on Hugging Face spaces or public URL. For example, "Generate an image using black-forest-labs/FLUX.2-dev".

gradio-app/gradio · 55 tokens

pydantic-ai

Build production-ready AI agents with PydanticAI — type-safe tool use, structured outputs, dependency injection, and multi-model support.

davila7/claude-code-templates · 32 tokens

open-source

Documentation reference for writing Python code using the browser-use open-source library. Use this skill whenever the user needs help with Agent, Browser, or Tools configuration, is writing code that imports from browseruse, asks about @sandbox deployment, supported LLM models, Actor API, custom tools, lifecycle…

browser-use/browser-use · 137 tokens