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 $0.00015 $0.00168
Sonnet 5 $0.00006 $0.00067
Haiku 4.5 $0.00003 $0.00034

Measured 5d ago against content hash 2e3f742cca9e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 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.

.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. 5d 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 (18 stars, last pushed 20d ago), licensed MIT. It adds 29 tokens to every session and 335 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-09-03.

Related

Other skills, from other repositories

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"…

claude-dev-suite/claude-dev-suite · 124 tokens

pydantic-ai-model-integration

Configure LLM providers, use fallback models, handle streaming, and manage model settings in PydanticAI. Use when selecting models, implementing resilience, or optimizing API calls.

existential-birds/beagle · 43 tokens

pypi-release

This skill should be used when releasing tunacode-cli to PyPI. It keeps the existing local release checks, then hands the actual PyPI upload to a GitHub Actions workflow that uses the repository's PYPIAPITOKEN secret.

alchemiststudiosDOTai/tunacode · 52 tokens

pytorch-training

PyTorch model-building conventions and a neural-net training debug checklist. Use this skill whenever writing or reviewing PyTorch code that defines a model (nn.Linear, nn.Conv2d, BatchNorm) or trains one (training loop, optimizer, LR schedule), and ESPECIALLY when debugging training problems — loss not converging…

congmnguyen/claude-code-wsl2-setup · 118 tokens

schliff

Deterministic linter and scorer for instruction files — SKILL.md, AGENTS.md, CLAUDE.md. No model in the loop: the same bytes score the same everywhere. Use for linting, scoring, auditing or CI-gating an instruction file, and for checking whether the commands a file promises actually resolve in the repo. Trigger…

Zandereins/schliff · 204 tokens

sap-cloud-sdk-ai-python

Integrates the SAP Cloud SDK for AI for Python (sap-ai-sdk-gen, formerly generative-ai-hub-sdk) into Python applications. Use when building Python apps with SAP AI Core, Generative AI Hub, or the Orchestration Service: chat completion, embeddings, streaming, LangChain integration, templating, content filtering, data…

secondsky/sap-skills · 103 tokens