less than 650 LOC trainable GPT only using NumPy
Absolute minimalistic implementation of a GPT-like transformer using only numpy (<650 lines). - joennlae/tensorli
less than 650 LOC trainable GPT only using NumPy launched on November 17, 2023 with 90 votes, #852 of 4,333 launches that month and more than 90% of that year's launches. The site was still online in September 2026, 2 years on.
In plain words
This is a trainable GPT implementation written in fewer than 650 lines of code using only NumPy. It is designed for developers and machine learning enthusiasts who want to understand or build GPT models from scratch without relying on large frameworks. The project stands out for its minimal dependency footprint and compact codebase, making it useful for education, experimentation, or creating lightweight language model implementations.
written from the facts on this page · September 2026
Does a similar job
all alternatives →
GPT-4.1 in the API2025 · openai.com · ▲375Announcing GPT-4.1, GPT-4.1 mini, & GPT-4.1 nano in the API
I built a tiny LLM to demystify how language models workApr 2026 · github.com · ▲915Built a ~9M param LLM from scratch to understand how they actually work. Vanilla transformer, 60K synthetic conversations, ~130 lines of PyTorch. Trains in 5 min on a free Colab T4. The fish thinks the meaning of life is food. Fork it and swap the personality for your own character.

GPT‑5.4 mini and nanoMar 2026 · openai.com · ▲267Fast and efficient models optimized for coding and subagents
TinyGPT – A Simple, Educational Deep Learning Library2024 · github.com · ▲13A tiny version of GPT fully implemented in Python with zero dependencies - isaacperez/tinygpt
TurboGPT: train 22KiB transformer in 13s22d ago · github.com · ▲56Train a tiny GPT in under a minute (CUDA only). Contribute to lostmsu/TurboGPT development by creating an account on GitHub.
More ai this month
the category →



Paintings by AI models: programs run through a simulation of oil paint.
AI · 20d ago · stillwet.art

PixVerse R2▲381A real-time world model you can explore and change
AI · 28d ago · world.pixverse.video
Source: Show HN post ↗
Launched alongside, November 2023
the whole month →

Discover & book top creators to promote your product
Growth · 2023 · passionfroot.me



SpeedVitals▲829Hi HN, I’m Kashish, one of the co-founders of SpeedVitals, a platform for testing & monitoring website performance with a major emphasis on Core Web Vitals. Until now, our platform has only focused on Synthetic/Lab testing, such as Lighthouse tests and TTFB tests. But now, we have developed a Real-User Monitoring platform that doubles up as a Web Analytics tool. One major feature we have that most RUM tools lack is Performance Audits. Just like Lighthouse audits work on Lab test data, our audits work across all the real-user visits and gives suggestions on what task to prioritize first.…
Dev tools · 2023 · speedvitals.com