Agent skill · Data & Analytics

llm-pretraining

Plan and execute large language model pretraining from data preparation to checkpoint management

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill llm-pretraining --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 9 KB
Bundled scripts: none
Path: skills/ai-ml/llm-pretraining/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# LLM Pretraining End-to-end pretraining workflow: data mixing, tokenizer co-design, scaling law estimation, compute budgeting, checkpoint management, and training stability monitoring. ## Decision Table | Scale (params) | Data Budget | Batch Size (tokens) | LR | Key Considerations | |---|---|---|---|---| | 100M-500M | 5-10B tokens | 256K-512K | 3e-4 | Quick experiments, single-node | | 1-3B | 20-60B tokens | 512K-1M | 2e-4 | Chinchilla ~20 tok/param | | 7-13B | 140-500B tokens | 1M-2M | 1.5e-4 | Multi-node, activation ckpt | | 30-70B | 1-2T tokens | 2M-4M | 1e-4 | TP+PP, quality annealing phase | | 200B+ | 4T+ tokens | 4M-8M | 6e-5 | MoE likely, multi-phase curriculum | ## Data Mixing and Curriculum ### Multi-Phase Training Configuration ```python from dataclasses import dataclass @dataclass class DomainSource: name: str path: str weight: float # fraction of tokens from this source quality_threshold: float # min quality score to include dedup_strategy: str # "exact", "fuzzy", "none" @dataclass class TrainingPhase: name: str token_budget: int sources: list[DomainSource] batch_size_tokens: int learning_rate: float def validate(self): total = sum(s.weight for s in self.sources) asser

What's inside
Steps it walks through
  1. Decision Table
  2. Data Mixing and Curriculum
  3. Multi-Phase Training Configuration
  4. Tokenizer-Data Co-Design
  5. Scaling Law Estimation
  6. Checkpoint Management
  7. Loss Spike Detection
  8. Gotchas
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the llm-pretraining skill do?

Plan and execute large language model pretraining from data preparation to checkpoint management

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill llm-pretraining --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going