From scratch
No pretrained models, no AI APIs — PyTorch is used only as a maths library.
My own tokenizer, Transformer and training loop — no pretrained weights, no AI APIs.

A small AI assistant I built entirely from scratch — my own tokenizer, Transformer and training loop, with no pretrained models or AI APIs. I pre-trained a 5.2M-parameter model on code, instruction-tuned it into a chat assistant that solves 79% of never-seen coding tasks, added Wikipedia web search (RAG) for facts, and wrapped it in a ChatGPT-style web app that runs locally in a locked-down sandbox.
I wanted to understand language models by building one myself — every part, from the tokenizer to the chat interface — and see how far a tiny model on a laptop CPU can go.
No pretrained models, no AI APIs — PyTorch is used only as a maths library.
Answers are syntax-checked and run against hidden unit tests in an isolated process.
Trained to answer “I don't know” for live facts like weather and news.
Facts come from Wikipedia with a source link, instead of the model's memory.