Free, open-source code to pre-train language models from scratch: tiny single-GPU harnesses for learning, large-scale distributed training frameworks, and the kernels and data loaders they rely on.
A minimal, hackable harness that covers tokenization, pre-training, fine-tuning, evaluation and a chat UI on a single GPU node, with a "time to GPT-2" leaderboard. MIT.
The NanoGPT speedrun: a community race to train a GPT-2-class model to a target loss on 8 H100 GPUs as fast as possible. MIT.
A minimalistic Hugging Face library for pre-training transformer models on custom datasets with 3D parallelism. Apache-2.0.
Hugging Face's repo for the SmolLM and SmolVLM small open models, with details on how SmolLM3 was built. Apache-2.0.
EleutherAI's library for training large language models on GPUs, based on Megatron and DeepSpeed. Apache-2.0. Its README says it is the wrong tool if you are not training billion-parameter models from scratch.
PyTorch building blocks for modeling and training in AI2's OLMo ecosystem. Apache-2.0.
A high-performance, scalable LLM library written in pure Python and JAX for Google Cloud TPUs and GPUs, with pre-training and post-training support. Apache-2.0.
A JAX and XLA library for large-scale deep learning models with a composable configuration system. Apache-2.0. Its README says the API is subject to change.
A system for making large AI model training, fine-tuning and inference cheaper and faster. Apache-2.0.
ByteDance Seed's PyTorch training framework with a model-centric recipe zoo for scaling models of any modality. Apache-2.0.
A PyTorch distributed-native training library for LLMs and VLMs with out-of-the-box Hugging Face support. Apache-2.0.
Alibaba Cloud's toolkit for training LLMs and VLMs with Megatron. Apache-2.0. Last push was Dec 15, 2025, so it is close to the one-year cutoff.
NVIDIA's library to speed up Transformer training and inference on NVIDIA GPUs, including FP8 and FP4 precision. Apache-2.0.
The official implementation of fast, memory-efficient exact attention. BSD-3-Clause.
Hackable, optimized Transformer building blocks from Meta. BSD-3-Clause for xFormers itself, with third-party parts under their own licenses.
A source-to-source compiler for PyTorch with kernel fusion, lower-precision support and distributed training recipes. Apache-2.0.
Streams training data from cloud storage for multi-node distributed training, for text, image, video and multimodal data. Apache-2.0. The sibling mosaicml/llm-foundry and composer repos are archived, so they are not listed.
Every link goes to the project's own GitHub repo or official site. Check each project's license and docs before you use it. Licenses are as reported by GitHub or the repo's README/LICENSE on Dec 3, 2026. Pre-training needs a lot of GPU time, so start with the small harnesses; free GPU options are on freegpunotebooks. Megatron-LM, torchtitan, litgpt, DeepSpeed and Liger-Kernel are on llmfinetuningtools, and data pipelines are on llmdatasettools.