协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
model-pretraining【开发与工程】Guide architecture inspection and base-model pretraining from scratch for train-llm-from-scratch, covering the custom decoder-only Transformer, modern DDP/bf16 pretraining, legacy single-GPU training, checkpoints, memory planning, and smoke configs.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to inspect the repo's decoder-only Transformer, plan a base-model pretraining run from scratch, build a safe pretraining command, or troubleshoot model/pretraining checkpoints and memory.
| Request | Route |
|---|---|
| SFT, reward model, DPO/ORPO/KTO, PPO, GRPO/RLVR | ../post-training-rlhf/SKILL.md |
| Creating or validating HDF5/JSONL datasets | ../data-preparation/SKILL.md |
| GSM8K evaluation, chat, raw generation UX | ../evaluation-chat/SKILL.md |
| Streamlit forms, config UI, job manager behavior | ../configuration-ui/SKILL.md |
references/model-architecture.md first and use the constructor/method contracts exactly.scripts/smoke_transformer.py.references/pretraining-workflows.md and generate a dry-run command with scripts/build_pretrain_command.py --mode modern.references/legacy-training.md and generate a dry-run command with scripts/build_pretrain_command.py --mode legacy.references/troubleshooting.md; do not guess around checkpoint shapes, missing token files, DDP launch state, or memory limits.| Tool | Purpose | Safety |
|---|---|---|
scripts/build_pretrain_command.py | Prints one modern or legacy pretraining command; supports smoke config and repeated extra flags. | Dry-run only; never executes training. |
scripts/smoke_transformer.py | Instantiates a tiny Transformer and runs one CPU or CUDA forward/loss. | No dataset, network, checkpoint write, or optimizer step. |
tokens dataset and enough tokens for the configured context and batch.