PyTorch Lightning Training
Orchestra-Research/AI-Research-SKILLs
Shows how to organize PyTorch training with Lightning's LightningModule and Trainer, covering validation, DDP, callbacks and learning-rate scheduling.
A skill your agent uses when training or debugging a neural net in PyTorch — the forward/loss/backward/step loop and its silent bugs, mixed precision (AMP), AdamW/LR schedules, DDP/FSDP/ZeRO…
$ npx skills add ericrisco/rsc-harness --skill deep-learning -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ericrisco/rsc-harness deep-learning --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/deep-learning .claude/skills/deep-learning && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "deep-learning" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/deep-learning into .claude/skills/deep-learning/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deep-learning", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ericrisco/rsc-harness/tree/main/skills/deep-learningType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ericrisco/rsc-harness --skill deep-learning -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ericrisco/rsc-harness deep-learning --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/deep-learning .agents/skills/deep-learning && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "deep-learning" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/deep-learning into .agents/skills/deep-learning/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deep-learning", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ericrisco/rsc-harness --skill deep-learning -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ericrisco/rsc-harness deep-learning --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/deep-learning .cursor/skills/deep-learning && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "deep-learning" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/deep-learning into .cursor/skills/deep-learning/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deep-learning", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ericrisco/rsc-harness.git --path skills/deep-learning--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ericrisco/rsc-harness --skill deep-learning -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ericrisco/rsc-harness deep-learning --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/deep-learning .gemini/skills/deep-learning && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "deep-learning" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/deep-learning into .gemini/skills/deep-learning/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deep-learning", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ericrisco/rsc-harness deep-learningInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ericrisco/rsc-harness --skill deep-learning -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/deep-learning .github/skills/deep-learning && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "deep-learning" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/deep-learning into .github/skills/deep-learning/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deep-learning", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ericrisco/rsc-harness --skill deep-learning -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ericrisco/rsc-harness deep-learning --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ericrisco/rsc-harness.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/deep-learning .opencode/skills/deep-learning && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "deep-learning" agent skill from https://github.com/ericrisco/rsc-harness/tree/main/skills/deep-learning into .opencode/skills/deep-learning/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "deep-learning", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
deep-learningA skill your agent uses when training or debugging a neural net in PyTorch — the forward/loss/backward/step loop and its silent bugs, mixed precision (AMP), AdamW/LR schedules, DDP/FSDP/ZeRO…
Deep Learning is an agent skill from ericrisco/rsc-harness. Use when training or debugging a neural net in PyTorch — the forward/loss/backward/step loop and its silent bugs, mixed precision (AMP), AdamW/LR schedules, DDP/FSDP/ZeRO, checkpoints and seeds. NOT LoRA/QLoRA on a pretrained LLM (that is finetuning), NOT tabular sklearn/XGBoost (that is machine-learning), NOT tokenization or NLP metrics (that is nlp).
Its SKILL.md is about 3.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `evals/README.md`, `evals/cases.yaml` and `references/distributed.md`).
It sits in AI & LLM Engineering, covering Deep learning, Machine learning and Natural language processing. It works with PyTorch, scikit-learn, CUDA and Python. The repository describes itself as: Your agent invents things because it has no memory, and can't touch your database because it has no arms. rsc is the meta-harness that gives it both, plus the trade to know the… The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 92fde8f. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Deep Learning loads about 3.4k tokens when it runs, and up to ~6.3k if it reads all its reference files. Until then it costs about 94 tokens; SKILL.md has 1,240 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ericrisco/rsc-harness at commit 92fde8f, republished under its MIT licence (© ericrisco). 1,240 words, ~3,432 tokens.
.claude/skills/deep-learning/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.You own training and understanding neural networks in PyTorch: the loop, autograd, mixed precision, optimizers/schedulers, multi-GPU, and the reproducibility/checkpoint hygiene that separates a real result from a lucky one. Nets from scratch, vision, custom architectures — all here. This is PyTorch-first by design: JAX and TensorFlow are real and fine, but the patterns, APIs, and gotchas below are Torch's.
Version reality (verify at author time). Current stable is PyTorch 2.x — ~2.13 as of
mid-2026 (pytorch.org/get-started, releases move fast; don't hard-pin a minor). Everything below
is stable 2.x API. The one namespace shift to know: AMP now lives under torch.amp
(torch.amp.GradScaler("cuda")), not the old torch.cuda.amp.*.
| You are doing… | Skill |
|---|---|
| Training/debugging a net in PyTorch (from scratch, vision, custom loop, AMP, multi-GPU) | deep-learning (here) |
| Adapting a pretrained LLM — LoRA/QLoRA, SFT, trl/peft | finetuning |
| Classic/tabular — sklearn, XGBoost/LightGBM, feature engineering | machine-learning |
| Tokenization, NLP task modeling, task metrics (F1/BLEU/ROUGE) | nlp |
| Envs, packaging, tests and hygiene around the model code | python |
Three objects carry everything.
device (cpu/cuda/mps) with a dtype. requires_grad=True
makes autograd track ops on it. .to(device) / .detach() / .item() are the moves you use
constantly; .item() pulls a Python scalar and drops the graph (see the loop bugs below).requires_grad tensor records a node; loss.backward()
walks it and accumulates into each leaf's .grad. "Accumulates" is the word that bites people
(§2). Wrap read-only regions in torch.no_grad() to skip taping.nn.Module — the model container. __init__ registers submodules/params; forward defines
compute. model.parameters() feeds the optimizer; model.train() / model.eval() flip
train-vs-eval behavior for Dropout and BatchNorm.import torch, torch.nn as nn
device = "cuda" if torch.cuda.is_available() else "cpu"
class MLP(nn.Module):
def __init__(self, d_in, d_h, d_out, p=0.1):
super().__init__()
self.net = nn.Sequential(nn.Linear(d_in, d_h), nn.ReLU(),
nn.Dropout(p), nn.Linear(d_h, d_out))
def forward(self, x):
return self.net(x)
model = MLP(784, 256, 10).to(device)torch.compile — wrap the model once and get a JIT-optimized (Dynamo→Inductor) graph, often a
real speedup with no code change: model = torch.compile(model). Modes: "default" (balanced),
"reduce-overhead" (CUDA graphs, best for small batches), "max-autotune" (Triton autotuning,
slowest to warm up). First step(s) are slow — that's compilation, not your model. Keep it after
.to(device) and before the loop. (pytorch.org/docs/stable/generated/torch.compile.html)
The whole game is five ordered steps. Get the order or the resets wrong and it fails silently — no exception, just a model that won't learn.
model.train() # Dropout/BN in TRAIN mode
for epoch in range(epochs):
for x, y in train_loader:
x, y = x.to(device), y.to(device)
optimizer.zero_grad(set_to_none=True) # clear LAST step's grads
out = model(x) # forward
loss = loss_fn(out, y) # loss (raw logits in, e.g. CrossEntropyLoss)
loss.backward() # autograd fills .grad (ACCUMULATES)
optimizer.step() # update weights from .grad
scheduler.step() # if a per-step schedulerThe load-bearing traps, stated next to the lines they govern:
optimizer.zero_grad() → gradients silently add up across batches. PyTorch
accumulates .grad by design (so you can split a batch); if you never zero it, every step
updates on the sum of all prior batches' grads and training destabilizes. Zero every step.
(pytorch.org/tutorials optimization tutorial; torch.optim docs.) set_to_none=True is the
default in modern Torch and is slightly faster.CrossEntropyLoss eats raw logits. It applies log_softmax internally — do not put a
Softmax/Sigmoid before it or you double-activate and learning stalls. Same for
BCEWithLogitsLoss.loss without .item() leaks memory. total += loss keeps the whole autograd
graph alive across the epoch. Use total += loss.item() (or .detach()).backward() twice on one graph raises unless you meant it (retain_graph=True) — usually a
sign you forgot to zero or re-ran forward.Run forward/loss in low precision for speed and memory, keep a master copy for the update. Two
pieces: torch.autocast (picks per-op precision) + torch.amp.GradScaler (rescues fp16 gradients
from underflow). Verified against pytorch.org/docs/stable/notes/amp_examples.html.
scaler = torch.amp.GradScaler("cuda") # current namespace (not torch.cuda.amp)
for x, y in train_loader:
x, y = x.to(device), y.to(device)
optimizer.zero_grad(set_to_none=True)
with torch.autocast(device_type="cuda", dtype=torch.bfloat16):
out = model(x) # forward + loss ONLY under autocast
loss = loss_fn(out, y)
scaler.scale(loss).backward() # backward OUTSIDE autocast, on scaled loss
scaler.step(optimizer) # unscales, skips step if inf/NaN grads
scaler.update() # adjusts the scale for next stepbf16 vs fp16 — the choice that matters:
| dtype | Exponent range | Needs GradScaler? | Use when |
|---|---|---|---|
bf16 (bfloat16) | same as fp32 | No (range can't underflow) | Ampere+ (A100/H100/…) or CPU — prefer this, it's the robust default |
fp16 (float16) | narrow → underflows | Yes — scaler is mandatory | older GPUs without bf16; squeeze extra range with the scaler |
GradScaler entirely (GradScaler(enabled=False) or just don't use
it) — its whole job is fp16 underflow. With fp16 the scaler is not optional.scaler.unscale_(optimizer) first, then
torch.nn.utils.clip_grad_norm_(...), then scaler.step. Clipping scaled grads clips the wrong
magnitude.backward().torch.optim.AdamW is the default for most modern nets (transformers, and increasingly
vision): Adam with decoupled weight decay (correct L2, unlike plain Adam(weight_decay=)).
SGD + momentum + Nesterov still wins on many CNNs and generalizes well — worth trying.weight_decay=0; use two param groups. Decaying them hurts with no upside.opt = torch.optim.AdamW(model.parameters(), lr=3e-4, weight_decay=0.01, betas=(0.9, 0.999))
# Warmup (linear ramp) THEN cosine decay, composed with SequentialLR — verified 2.x API.
from torch.optim.lr_scheduler import LinearLR, CosineAnnealingLR, SequentialLR
warmup = LinearLR(opt, start_factor=0.1, total_iters=500) # 500 steps ramp-in
cosine = CosineAnnealingLR(opt, T_max=total_steps - 500, eta_min=3e-5)
scheduler = SequentialLR(opt, [warmup, cosine], milestones=[500]) # switch at step 500
# call scheduler.step() every STEP here (T_max/total_iters are in steps).Alternatively OneCycleLR(opt, max_lr=..., total_steps=...) bakes warmup+anneal into one
scheduler. Match step() cadence to the scheduler's units — per-step schedulers stepped once
per epoch (or vice-versa) silently give the wrong curve. (pytorch.org/docs/stable/optim.html)
One line each on when; mechanics and launch commands in references/distributed.md.
torch.nn.parallel.DistributedDataParallel) — replicate the whole model on each GPU,
all-reduce grads every step. Use when the model fits on one GPU and you just want more
throughput / a larger effective batch. Default choice; one process per GPU via torchrun.torch.distributed.fsdp.fully_shard) — shard parameters, gradients, and optimizer
states across GPUs (gather just-in-time). Use when the model does NOT fit on one GPU. FSDP2 is
the current DTensor-based, per-parameter API; apply it bottom-up (wrap layers, then the root).Rule of thumb: fits on one GPU → DDP; too big → FSDP2 (or ZeRO-3); need to offload to CPU/NVMe → ZeRO.
Regularization (reach for these when val loss diverges from train — i.e. overfitting):
weight decay (AdamW), nn.Dropout, data augmentation, early stopping on a val metric, label
smoothing (CrossEntropyLoss(label_smoothing=0.1)), and gradient clipping for stability (not
generalization).
Checkpointing — save state_dicts, not the model object. Pickling the module ties the file to
your code layout and breaks on refactor.
torch.save({"epoch": epoch,
"model": model.state_dict(), # DDP/FSDP: model.module.state_dict(), rank 0 only
"optimizer": opt.state_dict(),
"scheduler": scheduler.state_dict(),
"scaler": scaler.state_dict()}, # AMP scale must survive a resume
"ckpt.pt")
# Resume: load model FIRST, then optimizer/scheduler; move optimizer state to device if needed.Save optimizer + scheduler + scaler too, or a resumed run restarts its LR schedule and loss scale.
Reproducibility — seed everything, and know the ceiling. From
pytorch.org/docs/stable/notes/randomness.html, quoted: "Completely reproducible results are not
guaranteed across PyTorch releases, individual commits, or different platforms. Furthermore,
results may not be reproducible between CPU and GPU executions, even when using identical seeds."
import random, numpy as np, torch
seed = 42
random.seed(seed); np.random.seed(seed); torch.manual_seed(seed) # covers CPU + all CUDA devices
torch.use_deterministic_algorithms(True) # errors on ops with no deterministic impl
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False # benchmark=True picks fastest algo → nondeterministic
# For CUDA >= 10.2, deterministic matmul also needs, set BEFORE launch:
# export CUBLAS_WORKSPACE_CONFIG=:4096:8DataLoader workers need their own seeding (each worker forks its RNG), via worker_init_fn +
a seeded generator — full snippet in references/training-recipes.md. Determinism costs speed
(benchmark=False disables autotuned convs).
| Anti-pattern | What actually happens | Instead |
|---|---|---|
Validating with the model left in train() mode, or without torch.no_grad() | Dropout keeps dropping and BatchNorm uses batch stats instead of running stats, so val numbers are wrong; the graph is still built and can OOM | model.eval() + torch.no_grad() around val/inference, model.train() after (nn.Module.eval / autograd docs, pytorch.org) |
| Reading a NaN loss as a modeling problem | It is almost always LR too high, fp16 with no GradScaler, unclipped exploding grads, or a log(0)/0/0 in a custom loss | Bisect: drop LR 10×, clip grads, switch fp16→bf16 |
| fp16 with the scaler left off | Gradients underflow to zero → no learning, and no error to tell you | Keep GradScaler on fp16, or move to bf16 where underflow can't happen |
| A stray CPU tensor in a CUDA graph | Hard device-mismatch error mid-step, usually on the targets or a hand-built mask rather than the inputs | .to(device) inputs, targets and model |
| Promising bit-exact reproducibility from seeds | Not guaranteed across releases, commits, platforms, or CPU-vs-GPU even with identical seeds | Seed for debugging/regression and say so; state the caveat with the result (randomness note, pytorch.org) |
© ericrisco, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 4 other files (references) in skills/deep-learning of ericrisco/rsc-harness.
Open the folder on GitHubat commit 92fde8f
Deep Learning next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Deep Learning this skillericrisco/rsc-harness | 156 | — | ~3.4k | Automated safety check: Pass | MIT | |
| PyTorch Lightning TrainingOrchestra-Research/AI-Research-SKILLs | 13k | 7 repos | ~2.3k | Automated safety check: Pass | MIT | |
| Ako4allTongmingLAIC/AKO4ALL | 369 | — | ~4k | Automated safety check: Pass | MIT | |
| Paddle Op DevPaddlePaddle/Paddle | 24k | — | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| Fix Envevo-design/proto-tools | 134 | — | ~2.5k | Automated safety check: Notes | MIT | |
| Alphagenome Finetuninggenomicsxai/alphagenome-pytorch | 162 | — | ~1k | Automated safety check: Pass | Apache-2.0 |
Orchestra-Research/AI-Research-SKILLs
Shows how to organize PyTorch training with Lightning's LightningModule and Trainer, covering validation, DDP, callbacks and learning-rate scheduling.
TongmingLAIC/AKO4ALL
Drive an agentic loop that iteratively optimizes a GPU kernel for maximum speedup.
PaddlePaddle/Paddle
PaddlePaddle (飞桨) C++ 算子开发指南。提供从 YAML 配置、InferMeta 函数、Kernel 实现、Python API 封装、单元测试到编译验证的完整算子开发流程指导。在以下场景使用此 skill:(1) 为 Paddle 框架新增 C++ 算子 (2) 修改或调试已有 Paddle 算子 (3) 编写算子的 YAML…
evo-design/proto-tools
Fixes tool environment setup failures in proto-tools, either just for the current machine (eject the tool's standalone dir, patch it, and point PROTO<TOOLKITSTANDALONEDIR at it; works for any…
genomicsxai/alphagenome-pytorch
Fine-tune or transfer-learn AlphaGenome-PyTorch on custom genomic data — pick a mode (linear probe, LoRA, Locon, full), train on BigWig tracks with agt finetune, use adapters, delta checkpoints…
Orchestra-Research/AI-Research-SKILLs
Scales PyTorch, TensorFlow and Hugging Face training from a single GPU to multi-node clusters with Ray Train, including Ray Tune sweeps and checkpoint recovery.
ericrisco/rsc-harness
A skill your agent uses when designing or analyzing a controlled experiment — falsifiable hypothesis, sample size from an MDE, reading significance/CI/power, CUPED, or rescuing tests that won't go…
ericrisco/rsc-harness
A skill your agent uses when making a web UI conform to WCAG 2.2 Level AA — axe-core or Lighthouse a11y violations, keyboard operability, focus management, ARIA roles/names/live regions, contrast…
ericrisco/rsc-harness
A skill your agent uses when running or fixing paid acquisition on Google or Meta — campaign structure (Performance Max, Demand Gen, Search, Advantage+), platform-fit creative, budget/scaling rules…
ericrisco/rsc-harness
A skill your agent uses when measuring whether an LLM or agent system actually got better and gating merges on it: golden sets, fixing an inflated LLM-as-judge, scoring RAG (faithfulness, contextual…
ericrisco/rsc-harness
A skill your agent uses when a creative goal must become a finished media file: pick and order generative-media models per modality — AI voiceover, image-to-video clips, score — then glue them with…
ericrisco/rsc-harness
A skill your agent uses when instrumenting product or web analytics — GA4/PostHog SDK wiring, event taxonomy, funnels, double-counted events, consent gating, PII scrubbing.
Works with
Categories
A skill your agent uses when training or debugging a neural net in PyTorch — the forward/loss/backward/step loop and its silent bugs, mixed precision (AMP), AdamW/LR schedules, DDP/FSDP/ZeRO…. Deep Learning is an agent skill from ericrisco/rsc-harness. Use when training or debugging a neural net in PyTorch — the forward/loss/backward/step loop and its silent bugs, mixed precision (AMP), AdamW/LR schedules, DDP/FSDP/ZeRO, checkpoints and seeds.
Deep Learning fits situations like: debugging a neural net in PyTorch — the forward/loss/backward/step loop and its silent bugs; mixed precision (AMP); adamW/LR schedules; checkpoints and seeds.
Run `npx skills add ericrisco/rsc-harness --skill deep-learning -a claude-code`. Or copy the skill folder (skills/deep-learning in ericrisco/rsc-harness) into .claude/skills/deep-learning in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ericrisco/rsc-harness --skill deep-learning -a codex`. Or copy the skill folder (skills/deep-learning in ericrisco/rsc-harness) into .agents/skills/deep-learning in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ericrisco/rsc-harness --skill deep-learning -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/deep-learning, .gemini/skills/deep-learning, .github/skills/deep-learning and .opencode/skills/deep-learning in your project.
SKILL.md names no scripts, command-line tools or credentials: Deep Learning is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Deep Learning is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.4k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.9k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Deep Learning: PyTorch Lightning Training (Orchestra-Research/AI-Research-SKILLs, 13k stars), Ako4all (TongmingLAIC/AKO4ALL, 369 stars), Paddle Op Dev (PaddlePaddle/Paddle, 24k stars) and Fix Env (evo-design/proto-tools, 134 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ericrisco (a GitHub user) maintains it in ericrisco/rsc-harness, which has 156 GitHub stars. The repository holds 229 skills in this directory. The repository was last updated on October 6, 2026.
Source: ericrisco/rsc-harness on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.