gpt2

gpt2

A Go implementation of GPT-2 using the standard library.

Github: https://github.com/conneroisu/gpt2

gpt2 ΒΆ

A from-scratch Go implementation of GPT-2 using only the standard library. I built this to deepen my understanding of transformer internals by working through attention mechanisms, positional encodings, and the feed-forward layers without relying on any ML frameworks. It served as a practical exercise in translating Python-centric deep learning concepts into idiomatic, dependency-free Go.