orchestra-research avatar

Distributed Llm Pretraining Torchtitan

If you're training large language models at scale, this gives you access to TorchTitan, PyTorch's official distributed pretraining framework. It handles the complexity of 4D parallelism (FSDP2, TP, PP, CP) without forcing you to cobble together your own infrastructure. The team claims 65%+ speedups over baselines on H100s, which matters when you're burning thousands of dollars per training run. You can install from PyPI for stability or pull from source for bleeding edge features, though the latter requires PyTorch nightly builds. This is production tooling from the PyTorch team, not a research prototype, so it's worth evaluating if you're moving beyond single-GPU experiments.

skills.sh installs
1K
GitHub stars
14.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add orchestra-research/ai-research-skills --skill distributed-llm-pretraining-torchtitan --agent claude-code

Installs into .claude/skills of the current project.

Files

TorchTitan - PyTorch Native Distributed LLM Pretraining

Quick start

TorchTitan 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.

Installation:

# From PyPI (stable)
pip install torchtitan

# From source (latest features, requires PyTorch nightly)
git clone https://github.com/pytorch/torchtitan
cd torchtitan
pip install -r requirements.txt

Download tokenizer:

# Get HF token from https://huggingface.co/settings/tokens
python scripts/download_hf_assets.py --repo_id meta-llama/Llama-3.1-8B --assets tokenizer --hf_token=...

Start training on 8 GPUs:

CONFIG_FILE="./torchtitan/models/llama3/train_configs/llama3_8b.toml" ./run_train.sh

Common workflows

Workflow 1: Pretrain Llama 3.1 8B on single node

Copy this checklist:

Single Node Pretraining:
- [ ] Step 1: Download tokenizer
- [ ] Step 2: Configure training
- [ ] Step 3: Launch training
- [ ] Step 4: Monitor and checkpoint

Step 1: Download tokenizer

Sponsors

Details

Repository
github.com/orchestra-research/ai-research-skills
Categories
AI & Agent Building, Data Science & ML
First seen
Jun 3, 2026

More from orchestra-research/ai-research-skills

All 95
1qodex-ai avatarcreative-generation-agentqodex-ai/ai-agent-skillsBuild agents that generate creative content including music, memes, podcasts, and multimedia. Covers generative models, content synthesis, style transfer, and c572skills.sh installs
2pskoett avataragent-teams-simplify-and-hardenpskoett/pskoett-ai-skillsImplementation + audit loop using parallel agent teams with structured simplify, harden, and document passes. Spawns implementation agents to do the work, then 513skills.sh installs
3libukai avatarmcp-configlibukai/awesome-agent-skillsConfigure MCP (Model Context Protocol) servers for Claude Code. Manage MCP servers at user or project scope with best practices to avoid context pollution.505skills.sh installs
4gocallum avatarai-sdk-6-skillsgocallum/nextjs16-agent-skillsAI SDK 6 Beta overview, agents, tool approval, Groq (Llama), and Vercel AI Gateway. Key breaking changes from v5 and new patterns.484skills.sh installs
5pskoett avatarintent-framed-agentpskoett/pskoett-ai-skillsFrames coding-agent work sessions with explicit intent capture and drift monitoring. Use when a session transitions from planning/Q&A to implementation for codi437skills.sh installs
6unclecatvn avatarai-vibe-slidesunclecatvn/agent-skillsCreate beautiful, professional HTML or React slide decks ready for fullscreen presentation. Use this skill when the user wants to: create a PPT/slide/presentati424skills.sh installs