
MicroGPT-C
github.com/vixhal-baraiya/microgpt-c- Category
- Developer Tools
- Rank
- No. 1366Tools index
- Pricing
- Open Source
- Type
- TOOL
- Builder
- @TheVixhal
- GitHub
- 575 stars
- Added
- May 4, 2026
About
A minimal GPT implementation written in pure C with zero dependencies. Trains and runs a small transformer model from scratch, optimized for performance with AVX2 instructions.
What it can do
Train a transformer language model from scratch
Text training data → Trained GPT model weights
Generate text samples using trained model
Text prompt and trained model → Generated text continuation
Compile C code with AVX2 optimizations
Source code and compilation flags → Optimized executable binary
Run inference on transformer model
Model weights and input tokens → Predicted next tokens
Execute zero-dependency C implementation
Compiled binary → Standalone model training or inference
Why it made the leaderboard
A GPT in pure C with zero dependencies — training and inference in a codebase small enough to actually read, with AVX2 optimizations (the author reports 2.6M tokens/sec). A way to understand transformers at the memory-layout level, with no framework in the way.
Tags
Comments (0)
No comments yet
Indexed by a proprietary survey. Corrections welcome.