Skills for Real Engineers. Straight from my .agents directory.
distributed-llm-pretraining-torchtitan
Agent skill fromOrchestra-Research/AI-Research-SKILLs
Provides PyTorch-native distributed LLM pretraining using torchtitan with 4D parallelism (FSDP2, TP, PP, CP). Use when pretraining Llama 3.1, DeepSeek V3, or custom models at scale from 8 to 512+ GPUs with Float8, torch.compile, and distributed checkpointing.
How to install distributed-llm-pretraining-torchtitan
npx skills add Orchestra-Research/AI-Research-SKILLs# or add only this skill to Claude Code: copy the folder
01-model-architecture/torchtitan/
# into
~/.claude/skills/torchtitan/ (all projects)
.claude/skills/torchtitan/ (one project)
1# TorchTitan - PyTorch Native Distributed LLM Pretraining23## Quick start45TorchTitan is PyTorch's official platform for large-scale LLM pretraining with composable 4D parallelism (FSDP2, TP, PP, CP), achieving 65%+ speedups over baselines on H100 GPUs.67**Installation**:8```bash9# From PyPI (stable)10pip install torchtitan1112# From source (latest features, requires PyTorch nightly)13git clone https://github.com/pytorch/torchtitan14cd torchtitan15pip install -r requirements.txt16```1718**Download tokenizer**:19```bash20# Get HF token from https://huggingface.co/settings/tokens21python scripts/download_hf_assets.py --repo_id meta-llama/Llama-3.1-8B --assets tokenizer --hf_token=...22```2324**Start training on 8 GPUs**:25```bash26CONFIG_FILE="./torchtitan/models/llama3/train_configs/llama3_8b.toml" ./run_train.sh27```2829## Common workflows3031### Workflow 1: Pretrain Llama 3.1 8B on single node3233Copy this checklist:3435```36Single Node Pretraining:37- [ ] Step 1: Download tokenizer38- [ ] Step 2: Configure training39- [ ] Step 3: Launch training40- [ ] Step 4: Monitor and checkpoint41```4243**Step 1: Download tokenizer**4445```bash46python scripts/download_hf_assets.py \47 --repo_id meta-llama/Llama-3.1-8B \48 --assets tokenizer \49 --hf_token=YOUR_HF_TOKEN50```5152**Step 2: Configure training**5354Edit or create a TOML config file:5556```toml57# llama3_8b_custom.toml58[job]59dump_folder = "./outputs"60description = "Llama 3.1 8B training"6162[model]63name = "llama3"64flavor = "8B"65…
Excerpt shown under the repository's MIT license.
More skills in AI-Research-SKILLs
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
