#14 · Primary category: Deep Learning Frameworks
llm.c
LLM training in simple, raw C/CUDA
Project last updated:06/26/25
GitHub Stars
30.9K
Forks
3.7K
Contributors
70
License
MIT
Why we included this project
Most people who train transformers never see past the PyTorch call stack. llm.c strips that away: it implements GPT-2 and GPT-3 pretraining in plain C and CUDA, with a roughly 1,000-line fp32 CPU reference sitting next to the faster CUDA mainline. Because it is a real training loop you can build with make and step through in a debugger, it works well as a way to learn CUDA kernels, mixed precision, and multi-node training. Teams that want to reproduce a known model run without pulling in a heavyweight framework get a compact, auditable baseline, and the parallel PyTorch implementation makes it easy to check that the C version agrees with a familiar training script.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
tensorflow
An Open Source Machine Learning Framework for Everyone
pytorch
Tensors and Dynamic neural networks in Python with strong GPU acceleration
keras
Deep Learning for humans
nanoGPT
The simplest, fastest repository for training/finetuning medium-sized GPTs.
ray
Ray is an AI compute engine. Ray consists of a core distributed runtime and a set of AI Libraries for accelerating ML workloads.