ml-training-recipes

ml-training-recipes is a skill for Claude Code, Codex from OpenRaiser/NanoResearch. It costs 88 tokens per session (3,038 once invoked), scanned A, a copy of ml-training-recipes, MIT.

A collection of PyTorch recipes for training and fine-tuning machine-learning models, including language, image, diffusion, medical, protein, drug-discovery, spatial-omics, and genomics models. It covers model choices, optimizers, learning-rate schedules, mixed-precision training, debugging, and experiments.

In plain words
What is it for?
Use it to design training loops, select model architectures and optimizers, schedule learning rates, train across domains, debug training, manage checkpoints and data loading, and run systematic experiments.
Why use it?
It helps choose suitable training approaches for different data types and dataset sizes and provides patterns for running and evaluating experiments.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design training loops, select model architectures and optimizers, schedule learning rates, train across domains, debug training, manage checkpoints and data loading, and run systematic experiments.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openraiser/nanoresearch/ml-training-recipes
About the project

NanoResearch is an autonomous AI research system that turns research ideas into executable experiments and LaTeX papers supported by results from real training runs. It is for researchers validating prototypes, running GPU experiments, generating benchmarks, analyzing logs, and preparing paper drafts. The catalogue add-ons support its research pipeline and agent workflows.

OpenRaiser/NanoResearch · 1,365 stars · on GitHub

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 OpenRaiser/NanoResearch --skill ml-training-recipes
Clone the repo
git clone --depth 1 https://github.com/OpenRaiser/NanoResearch

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 ml-training-recipes

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/openraiser/nanoresearch/ml-training-recipes"><img src="https://agentmods.dev/badge/skills/openraiser/nanoresearch/ml-training-recipes.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 88 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,038 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.
Origin 100% copy Near-identical to another mod 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.00088 $0.03038
Opus 5 $0.00044 $0.01519
Sonnet 5 $0.00018 $0.00608
Haiku 4.5 $0.00009 $0.00304

Measured 10d ago against content hash 1cb661b0d3ba, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

ml-training-recipes 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 10d 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.

Origin

This is a copy

100% identical to ml-training-recipes — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/vendor-ai-research/ml-training-recipes/SKILL.md · 320 lines

How it starts

The opening of the file, as written. The whole thing — 320 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ML Training Recipes

Battle-tested patterns for PyTorch training across domains. Drawn from production codebases (Karpathy's autoresearch/nanochat, torchvision, HuggingFace) and modern training practice.

Reference files (read when needed)

  • references/architecture.md — Transformer/LLM architecture code patterns, weight init
  • references/optimizers.md — Muon, AdamW hybrid, per-group LR, compiled optimizer steps
  • references/domain-specific.md — Vision, diffusion, contrastive, distributed, checkpointing, data loading
  • references/scaling-and-selection.md — Scaling laws, compute budget tables, decision trees, DGX Spark
  • references/biomedical.md — Drug discovery, protein models, medical imaging, genomics, clinical NLP
  • references/experiment-loop.md — Autonomous experiment loop (autoresearch keep/discard/revert)

Architecture Selection

Pick the right model by data type and data scale:

Data Type < 10K samples 10K-100K > 100K
Images Pretrained CNN + fine-tune Fine-tune ViT or CNN ViT from scratch
Text (gen) Few-shot prompting Fine-tune GPT/LLaMA (LoRA) Pretrain from scratch
Tabular XGBoost/LightGBM Still XGBoost Neural viable
Audio Pretrained Whisper Fine-tune AST Train from scratch
Molecules Pretrained GNN Fine-tune molecular LM Train GNN from scratch
Proteins ESM-2 embeddings + head Fine-tune ESM-2 Train protein LM
Medical img Pretrained CNN nnU-Net (auto-config) Swin-UNETR / MedSAM

Key principle: architecture matters less than training recipe at equal compute. A well-tuned ResNet beats a poorly-tuned ViT (ref: "ResNet Strikes Back", Wightman 2021).

For biomedical domains, see references/biomedical.md. For sequence model selection and compute planning, see references/scaling-and-selection.md.


Scaling Laws

Chinchilla rule (Hoffmann et al., 2022)

Read the full file on GitHub · 320 lines

Files

What ships with it

6 files 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. 10d ago First seen · 320 lines · 88 tokens per session scan A 1cb661b0d3ba

Subscribe to this mod's changes

ml-training-recipes is a skill published in the GitHub repository OpenRaiser/NanoResearch (1,365 stars, last pushed 15d ago), licensed MIT. It adds 88 tokens to every session and 3,038 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to ml-training-recipes, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

ml-training-recipes

Battle-tested PyTorch training recipes for all domains — LLMs, vision, diffusion, medical imaging, protein/drug discovery, spatial omics, genomics. Covers training loops, optimizer selection (AdamW, Muon), LR scheduling, mixed precision, debugging, and systematic experimentation. Use when training or fine-tuning…

Orchestra-Research/AI-Research-SKILLs · 88 tokens

ml-training-recipes

Battle-tested PyTorch training recipes for all domains — LLMs, vision, diffusion, medical imaging, protein/drug discovery, spatial omics, genomics. Covers training loops, optimizer selection (AdamW, Muon), LR scheduling, mixed precision, debugging, and systematic experimentation. Use when training or fine-tuning…

TTAWDTT/elegant-researcher-skill · 88 tokens

tao-run-automl

Run container-backed AutoML / hyperparameter optimization (HPO) for NVIDIA TAO networks using AutoMLRunner. Handles algorithm selection (bayesian, hyperband, asha, bohb, llm, hybrid, autoresearch), WandB experiment tracking, job execution on any TAO SDK platform, result interpretation, and per-rec custom evaluation…

NVIDIA-TAO/tao-skill-bank · 235 tokens

optimizing-attention-flash

Optimizes transformer attention with Flash Attention for 2-4x speedup and 10-20x memory reduction. Use when training/running transformers with long sequences (>512 tokens), encountering GPU memory issues with attention, or need faster inference. Supports PyTorch native SDPA, flash-attn library, H100 FP8, and sliding…

synthetic-sciences/openscience · 78 tokens

map

Build and commit a Cortex function knowledge graph — maps structural dependencies and domain intent relationships across all AI functions in the project. Supports --reduce (default on) for transitive reduction of the dependency graph.

Snowflake-Labs/cocoplus · 42 tokens

context-add

Guided wizard to capture or update organizational Snowflake/Cortex standards into .cocoplus/context/ .md. Presents a menu of 6 standard types, collects answers via multi-turn dialogue, and commits the file.

Snowflake-Labs/cocoplus · 48 tokens