← Open Source

tinygrad/teenygrad on GitHub: Python, Model Development, Deep Learning Frameworks.

Model DevelopmentDeep Learning FrameworksPython
Momentum
+0stars in 24 hours0.0%
827
Stars
100
Forks
+0
This week
1
Contributors
Created 2023-08-20 · Updated 2026-11-24 · #16975 today
Top developers
README
teenygrad is <1000 line MNIST trainer

It shares 90% of its code with tinygrad,
so understanding teenygrad is a good step to understanding tinygrad.

While it supports almost all of tinygrad's functionality,
the extra 4k lines in tinygrad get you speed and diverse backend support.

tensor.py and mlops.py are both tinygrad's and teenygrad's frontend.
lazy.py is a replacement for all of tinygrad's backend.

The only dependency of teenygrad is numpy (well, and tqdm)

Usage:
pip install numpy tqdm
PYTHONPATH="." python mnist.py
Nearby in the ranking
Similar items

AI Rank for iPhone

Follow AI model rankings

Download on the App Store