pytorch-training

pytorch-training is a skill for Kiro from ihatesea69/kiro-kit. It costs 29 tokens per session (335 once invoked), scanned A, original, MIT.

A guide to training neural networks with PyTorch, a Python library for machine learning. It covers model code, training and evaluation loops, data loading, and performance tuning.

In plain words
What is it for?
Use it to build neural networks, prepare training data, measure model results, investigate convergence problems, save checkpoints, and use hardware more efficiently.
Why use it?
It helps organise the many details that affect whether a model trains reliably, such as learning settings, memory use, unstable gradients, and reproducibility.

Skill for Kiro

Written for Kiro: installed under .kiro/.

Good fit Use it to build neural networks, prepare training data, measure model results, investigate convergence problems, save checkpoints, and use hardware more efficiently.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ihatesea69/kiro-kit/pytorch-training
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 ihatesea69/kiro-kit --skill pytorch-training
Clone the repo
git clone --depth 1 https://github.com/ihatesea69/kiro-kit

Made for: Kiro.

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 pytorch-training

README.md
[![agentmods](https://agentmods.dev/badge/skills/ihatesea69/kiro-kit/pytorch-training/github.svg)](https://agentmods.dev/skills/ihatesea69/kiro-kit/pytorch-training)
Your own site
<a href="https://agentmods.dev/skills/ihatesea69/kiro-kit/pytorch-training"><img src="https://agentmods.dev/badge/skills/ihatesea69/kiro-kit/pytorch-training/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 pytorch-training

Your own site · 80×15
<a href="https://agentmods.dev/skills/ihatesea69/kiro-kit/pytorch-training"><img src="https://agentmods.dev/badge/skills/ihatesea69/kiro-kit/pytorch-training.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 335 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00029 $0.00335
Opus 5.5 $0.00012 $0.00134
Sonnet 5.5 $0.00006 $0.00067
Haiku 4.5 $0.00003 $0.00034

Measured 2mo ago against content hash 2e3f742cca9e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 2mo 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.

.kiro/skills/pytorch-training/SKILL.md · 56 lines

What it actually says

PyTorch Training

Activate this skill when training deep learning models with PyTorch.

When to Use

  • Implementing custom neural network architectures
  • Writing training and evaluation loops
  • Optimizing model performance (learning rate, batch size)
  • Implementing data loading and augmentation
  • Debugging gradient and convergence issues

Patterns

import torch
import torch.nn as nn
from torch.utils.data import DataLoader

model = MyModel().to(device)
optimizer = torch.optim.AdamW(model.parameters(), lr=3e-4)
scheduler = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer, T_max=epochs)

for epoch in range(epochs):
    model.train()
    for batch in train_loader:
        optimizer.zero_grad()
        loss = model(batch)
        loss.backward()
        torch.nn.utils.clip_grad_norm_(model.parameters(), 1.0)
        optimizer.step()
    scheduler.step()

Best Practices

  • Use torch.no_grad() during evaluation
  • Implement gradient clipping for stability
  • Use mixed precision (torch.cuda.amp) for speed
  • Save checkpoints periodically
  • Profile with torch.profiler before optimizing

Rules

  • Always set random seeds for reproducibility
  • Move data and model to same device explicitly
  • Use DataLoader with num_workers > 0 for I/O
  • Validate on held-out data every epoch
  • Log metrics to experiment tracker (W&B, MLflow)
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. 2mo ago First seen · 56 lines · 29 tokens per session scan A 2e3f742cca9e

Subscribe to this mod's changes

pytorch-training is a skill published in the GitHub repository ihatesea69/kiro-kit (19 stars, last pushed 2mo ago), licensed MIT. It adds 29 tokens to every session and 335 once invoked, about $0.0001 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-03.

Related

pytorch-training compared with skills from other repositories

pytorch-training next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pytorch-trainingihatesea69/kiro-kitSkill192mo agoMITA29Kiro
pyarrow-pythonskillmds/skillmdSkill1434d agoMITA117Claude Code
production-python-aiskillmds/skillmdSkill1434d agoMITA91Claude Code
instructorraphaelmansuy/edgecrabSkill933mo agononeA41Claude Code, Codex
pytorch-patternsronmkr/PromptBookSkill25mo agoApache-2.0A32Claude Code, Codex
pytorch-patternsaffaan-m/ECCSkill299kyesterdayMITA32Claude Code, Kiro
developing-genkit-pythongoogle/skillsSkill23kyesterdayApache-2.0A49Claude Code, Codex