milanm/AutoGrad-Engine
A complete GPT language model (training and inference) in ~600 lines of pure C#, zero dependencies
This project offers a compact, understandable version of the core technology behind large language models like ChatGPT. It takes a dataset of text, like a list of names, and learns the patterns within it. The result is a model that can generate new text, such as original names, that convincingly mimic the style and characteristics of the input data. This is primarily for developers, educators, and students who want to understand the inner workings of a GPT.
332 stars.
Use this if you are a developer or student who wants to deeply understand the mechanics of a GPT model, including its training and inference processes, using a pure C# implementation with zero external dependencies.
Not ideal if you need a production-ready system for generating text, a tool for fine-tuning large pre-trained models, or a solution that prioritizes performance and scales to massive datasets.
Stars
332
Forks
38
Language
C#
License
MIT
Category
Last pushed
Feb 14, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/milanm/AutoGrad-Engine"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
vixhal-baraiya/microgpt-c
The most atomic way to train and inference a GPT in pure, dependency-free C
LeeSinLiang/microGPT
Implementation of GPT from scratch. Design to be lightweight and easy to modify.
dubzdubz/microgpt-ts
A complete GPT built from scratch in TypeScript with zero dependencies
biegehydra/NanoGptDotnet
A miniature large language model (LLM) that generates shakespeare like text written in C#....
alicetinkaya76/microgpt-academy
🧠 Interactive GPT/Transformer Learning Platform — İnteraktif GPT/Transformer Eğitim Platformu