milanm/AutoGrad-Engine

A complete GPT language model (training and inference) in ~600 lines of pure C#, zero dependencies

48
/ 100
Emerging

Implements automatic differentiation through a custom computation graph engine (`Value.cs`) to enable backpropagation, trainable via Adam optimizer on character-level sequences. Faithful C# port of Andrej Karpathy's educational microgpt.py that demonstrates transformer architecture (multi-head attention, position embeddings, residual connections) with numerical gradient verification matching PyTorch's `torch.autograd.gradcheck` methodology.

332 stars.

No Package No Dependents
Maintenance 10 / 25
Adoption 10 / 25
Maturity 11 / 25
Community 17 / 25

How are scores calculated?

Stars

332

Forks

38

Language

C#

License

MIT

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.