Mohamed Ansar / Selected work

Hedwig

My try at building a ChatGPT-style LLM from scratch in plain PyTorch. I built and proved all three stages on a MacBook Air, hit the laptop compute and 4k vocabulary wall, then moved to rented GPUs that ran 26× faster and grew the model to 286.7 million knobs for $2.45.

Portfolio home