Implementing GPT-2 Entirely In CSS

shubhampatil.dev43 min read

An engineer successfully implemented the GPT-2 language model to run entirely within a web browser using only CSS, variable font features, and HTML elements, avoiding JavaScript and WASM entirely. By leveraging OpenType variable fonts for matrix multiplication and view timelines for memory readbacks, the system processes tokenization and inference steps directly inside stylesheets. Open article →

More on this topic