GPT-2 Runs in Pure CMake with Integer Arithmetic
Implementation of GPT-2 in pure CMake
A new GitHub project implements GPT-2 entirely in CMake, using Q16.16 fixed-point arithmetic instead of floating-point. It includes both a toy model and the full GPT-2 model, with scripts to generate tables and convert Hugging Face checkpoints. The README demonstrates running the model with a simple `cmake -P` command, making it a quirky but functional proof that CMake can serve as a general-purpose programming language.
GPT-2 in pure CMake, executed with Q16.16 integer arithmetic.