prabeakarve/microgpt
Library
Can I trust it?
Worth a closer look before you use it.
Warnings Check
Very new: it was created 11 days ago. Wait a little before installing it.
Stars from real accounts No data
We haven't checked its stars for fakes yet.
Active OK
Last change 10 days ago.
Licence OK
MIT: you can use it for free, also in a commercial product. Keep the licence notice.
Quick checks from public data. They help, but they are no guarantee.
What it is
A dependency-free GPT implementation in pure NumPy, with a byte-level tokenizer, multi-head causal self-attention, hand-written backward pass, AdamW training with warmup and cosine schedule, and top-k sampling. Includes a CLI for training, sampling, next-token inspection and…
Who it's for
Developers and students who want to understand how transformer language models work internally at the code level
How to use it
Install
python -m microgpt trainFrom its README. Check it there before running it.
Ask your AI to set it up
Paste this into Claude, ChatGPT or your coding assistant.
Help me install and set up prabeakarve/microgpt in my project. Follow its README: https://github.com/prabeakarve/microgpt. Explain each step and check it is safe before running anything.
Star curve
Alternatives
Similar projects named in its profile. Each link searches the directory.
Get alerts for repos like this
We'll email you when something in Models & inference starts rising. Free, once a week, only what matches.
What arrives: one email on Mondays with the repos that match, never more. See last week's. Privacy
For maintainers
Add this badge to your README. It shows the repo's place on the radar, updates every hour and links back to this page.
[](https://repoalerts.com/repo/prabeakarve/microgpt?ref=badge)Similar repos
- GrEarl/microgpt-lesson
A learning course for high school students that builds a large language model step by step from basic math and programming, based on Karpathy's microgpt. Runs in Google Colab notebooks with animations
- aa1143/NamiGPT
A Chinese-language step-by-step tutorial that builds GPT-2 from scratch in PyTorch without using existing Transformer modules. It walks through tokenization, embeddings, attention, and blocks using a
- Zguoxu/tiny-transformer-from-scratch
A small Transformer implemented from scratch in PyTorch without nn.Transformer or nn.MultiheadAttention, covering embeddings, positional encoding, multi-head attention, encoder, decoder, training and
- TrenTorch/TrenTorch
An educational repository with a from-scratch machine learning framework built on NumPy, plus a browser-based set of coding questions and a Python CLI curriculum covering tensors, autograd, training,
- YeonwooSung/llm-architecture-from-scratch
A collection of from-scratch PyTorch implementations of modern LLM architectures, including GPT-2 XL, Llama variants, DeepSeek V3, Qwen3, and Gemma 3. A comparison table lists each model's normalizati
- ninetyhe-90/training-explore
Interactive browser app that steps through the internal computations of a Transformer and related LLM training topics, showing tensors, attention weights, residuals, FFN, logits and loss on a small wo