Frameworks for training a small language model from scratch
Pretraining workflow, distributed path, fine-tuning support and licence
업데이트
왜 이것들을 비교하나
Training a small language model from scratch can mean a readable single-node experiment or a multi-machine run. This table separates learning-oriented codebases from distributed platforms and shows whether the same project also carries the model into fine-tuning.
-
1
L
LitGPT
Lightning AI's hackable PyTorch implementations cover pretraining, continued pretraining, fine-tuning and evaluation.
Readable pretraining and fine-tuning recipes
-
2
T
TorchTitan
A PyTorch platform for generative-model training with composable distributed techniques and official model recipes.
PyTorch-native distributed pretraining
-
3
N
Nanotron
Hugging Face's pretraining library combines data, tensor and pipeline parallelism in a compact codebase.
Minimal 3D-parallel pretraining framework
-
4
O
OLMo-core
Ai2's PyTorch library provides reproducible components and official scripts for training OLMo-family language models.
The training library behind OLMo models
-
5
n
nanoGPT
A deliberately simple GPT training repository suited to understanding the full loop and running small experiments.
Small codebase for learning and experiments
-
6
G
GPT-NeoX
EleutherAI's framework targets reproducible distributed training through configuration files and DeepSpeed.
DeepSpeed-based autoregressive model training
나란히 비교
| LitGPT | TorchTitan | Nanotron | OLMo-core | nanoGPT | GPT-NeoX | |
|---|---|---|---|---|---|---|
| Workflow | ||||||
| Best fit | Readable end-to-end experiments | Modern PyTorch distributed pretraining | Compact distributed pretraining research | Reproducible Ai2-style model training | Learning and small single-node runs | Configuration-driven cluster training |
| Fine-tuning included | Yes | Not its primary workflow | No primary recipe | Separate post-training workflows | Basic resume/fine-tune path | Yes |
| Training | ||||||
| Pretraining | Yes | Yes | Yes | Yes | Yes | Yes |
| Scale | ||||||
| Distributed path | PyTorch FSDP / multi-device recipes | FSDP2, tensor, pipeline and context parallel | Data, tensor and pipeline parallel | PyTorch FSDP2 | PyTorch DDP | DeepSpeed data, tensor and pipeline parallel |
| Use | ||||||
| Licence | Apache-2.0 | BSD-3-Clause | Apache-2.0 | Apache-2.0 | MIT | Apache-2.0 |
참고 자료
- Official SLM pretraining framework repositories, the framework maintainers (facts). Checked 2026-11-25 07:28 UTC.
- LitGPT repository, Lightning AI, checked 2026-11-25.
- TorchTitan repository, PyTorch, checked 2026-11-25.
- Nanotron repository, Hugging Face, checked 2026-11-25.
- OLMo-core repository, Ai2, checked 2026-11-25.
- nanoGPT repository, Andrej Karpathy, checked 2026-11-25.
- GPT-NeoX repository, EleutherAI, checked 2026-11-25.
