PenGPT: A Generative Transformer for Handwriting and Sketches

By hackernews · · AI News

PenGPT: A Generative Transformer for Handwriting and Sketches

A small transformer that writes and sketches from text. The effort was 80% data, 15% speed and 5% architecture: my first project that follows the Bitter Lesson.

Last year Zach Wimpee and I trained a tiny GPT to write cursive. It worked but it only knew one hand (mine) and it learned from 3,500 words that I wrote on a trackpad.

So here’s the obvious next question: can one small, ordinary transformer learn to hold a pen in lots of hands and draw as well as write? PenGPT is my attempt. There are two models.

A 6M-parameter one writes print and cursive and picks up the handwriting of someone it has never seen from a few of their words. A 54M-parameter one draws from a text prompt.

Then I took the thing apart to find out why it works. The answer wasn’t what I expected.

What Hacker News is saying

  • “Amazing this fits in 50MB.”
  • “Neat!…”
  • “It bothers me how it doesn't know the proper strokes for cursive characters.”
  • “The most interesting part to me is this mention of the Bitter Lesson [1] "The results are interesting and the project was a pleasure to work on.”

Read the full discussion on Hacker News →

Source: https://greydanus.github.io/2026/11/12/pengpt/

More stories