C++ GPT-2 inference engine
github.com
github.com
"I reimplemented GPT-2 from scratch in C++ as an exercise to really understand the nuts and bolts of LLMs. GPT2-117M isn't a super great model, but it's extremely satisfying to get it to generate basically the same thing as other reference implementations."
"I" refers to the guy that wrote this, I, version_five have nothing to do with it, I just thought it looked cool.
Not fully finished yet, haven't gotten around to implementing bpe encoding/decoding and only some ops use BLAS.