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.
npx skills add congmnguyen/claude-code-wsl2-setup --skill pytorch-traininggit clone --depth 1 https://github.com/congmnguyen/claude-code-wsl2-setupWrote 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.
[](https://agentmods.dev/skills/congmnguyen/claude-code-wsl2-setup/pytorch-training)<a href="https://agentmods.dev/skills/congmnguyen/claude-code-wsl2-setup/pytorch-training"><img src="https://agentmods.dev/badge/skills/congmnguyen/claude-code-wsl2-setup/pytorch-training.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00118 | $0.00570 |
| Opus 5 | $0.00059 | $0.00285 |
| Sonnet 5 | $0.00024 | $0.00114 |
| Haiku 4.5 | $0.00012 | $0.00057 |
Grade A, and why
pytorch-training 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 7d 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.
What it actually says
PyTorch Training
Model-building conventions
- Set
bias=Falseon anynn.Linear/nn.Conv2dimmediately followed byBatchNorm— BN's mean-subtraction + learnablebetacancels the bias, making it dead params. Keepbias=True(default) on the output/classifier head, which has no BN after it.
Neural net training checklist (common mistakes if skipped)
Run through these before and during any training run — each one catches a class of silent bug that wastes full training runs:
- Overfit a single batch first. Before full training, verify the model can drive loss to ~0 on one small batch — if it can't, there's a bug in the model/loss/data pipeline; no point training on the full set.
- Verify loss @ init. Check the starting loss equals the theoretical value — softmax over
nclasses should give-log(1/n)(e.g. ~2.30 for 10 classes). A mismatch means a bad head init or mislabeled targets. - Input-independent baseline. Train once with inputs zeroed out; the model must do worse than with real inputs. If they match, the data pipeline isn't actually feeding the model (it's only learning the prior).
- Init the output-layer bias to data statistics. Regression with mean 50 → init bias 50; class imbalance 1:10 → set logit bias so p≈0.1 at init. Kills the "hockey stick" loss curve where early steps just learn the bias.
- Visualize the exact tensor right before
y_hat = model(x). Decode what actually enters the net — the only source of truth for catching preprocessing/augmentation bugs (e.g. forgetting to flip labels when flipping images). - Don't trust LR-decay defaults; use a constant LR and tune it last. Borrowed code often decays by epoch number (e.g. ImageNet decays at epoch 30) — on a smaller dataset this silently drives the LR to ~0 before the model converges.
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.
- 7d ago First seen · 22 lines · 118 tokens per session scan A 4805ea086906
pytorch-training is a skill published in the GitHub repository congmnguyen/claude-code-wsl2-setup (50 stars, last pushed 6d ago), licensed MIT. It adds 118 tokens to every session and 570 once invoked, about $0.0006 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.
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.
anthropic-python
Anthropic Python SDK for Claude API integration. Covers messages API, streaming, tool use, vision, error handling, and best practices. Use when building Python applications that call the Claude API. USE WHEN: user mentions "anthropic", "claude api", "anthropic sdk", "anthropic.Anthropic()", "client.messages.create"…
django-patterns
Django architecture patterns, REST API design with DRF, ORM best practices, caching, signals, middleware, and production-grade Django apps.
python-testing
Python testing best practices using pytest including fixtures, parametrization, mocking, coverage analysis, async testing, and test organization. Use when writing or improving Python tests.
accelerate
Run PyTorch training across GPUs with minimal changes.
fastapi-patterns
FastAPI patterns for async APIs, dependency injection, Pydantic request and response models, OpenAPI docs, tests, security, and production readiness.