SHORTLIST20
日本語
Englishالعربية中文日本語한국어EspañolFrançaisहिन्दी
AI

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. 1 L

    LitGPT

    Lightning AI's hackable PyTorch implementations cover pretraining, continued pretraining, fine-tuning and evaluation.

    Readable pretraining and fine-tuning recipes

  2. 2 T

    TorchTitan

    A PyTorch platform for generative-model training with composable distributed techniques and official model recipes.

    PyTorch-native distributed pretraining

  3. 3 N

    Nanotron

    Hugging Face's pretraining library combines data, tensor and pipeline parallelism in a compact codebase.

    Minimal 3D-parallel pretraining framework

  4. 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. 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. 6 G

    GPT-NeoX

    EleutherAI's framework targets reproducible distributed training through configuration files and DeepSpeed.

    DeepSpeed-based autoregressive model training

並べて比較

LitGPTTorchTitanNanotronOLMo-corenanoGPTGPT-NeoX
Workflow
Best fitReadable end-to-end experimentsModern PyTorch distributed pretrainingCompact distributed pretraining researchReproducible Ai2-style model trainingLearning and small single-node runsConfiguration-driven cluster training
Fine-tuning includedYesNot its primary workflowNo primary recipeSeparate post-training workflowsBasic resume/fine-tune pathYes
Training
PretrainingYesYesYesYesYesYes
Scale
Distributed pathPyTorch FSDP / multi-device recipesFSDP2, tensor, pipeline and context parallelData, tensor and pipeline parallelPyTorch FSDP2PyTorch DDPDeepSpeed data, tensor and pipeline parallel
Use
LicenceApache-2.0BSD-3-ClauseApache-2.0Apache-2.0MITApache-2.0

測り方

Official repositories checked 2026-11-25; limited to actively documented open-source frameworks with a direct autoregressive language-model pretraining path. Ordered from approachable end-to-end workflows toward cluster-oriented systems, not by quality or popularity.

参考資料

  1. Official SLM pretraining framework repositories, the framework maintainers (facts). Checked 2026-11-25 07:28 UTC.
  2. LitGPT repository, Lightning AI, checked 2026-11-25.
  3. TorchTitan repository, PyTorch, checked 2026-11-25.
  4. Nanotron repository, Hugging Face, checked 2026-11-25.
  5. OLMo-core repository, Ai2, checked 2026-11-25.
  6. nanoGPT repository, Andrej Karpathy, checked 2026-11-25.
  7. GPT-NeoX repository, EleutherAI, checked 2026-11-25.