PenGPT: A Generative Transformer for Handwriting and Sketches

smusamashah 162 points 28 comments November 25, 2026
greydanus.github.io · View on Hacker News

Discussion Highlights (15 comments)

k2xl

Amazing this fits in 50MB.

charcircuit

It bothers me how it doesn't know the proper strokes for cursive characters.

keyle

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. And yet there was no clever architectural idea behind it. About 80% of my effort went into building the biggest, cleanest datasets possible and doing lots of quality control on them." I spend way too much time on trying to out-clever existing solutions, when a clean application of known approaches would serve best. [1] http://www.incompleteideas.net/IncIdeas/BitterLesson.html

alanwreath

Interesting, it doesn’t handle Spanish well at all (try Spanish “teach me”: enséñame), that said would be interesting to contribute to other languages.

wat555

Very cool! Not so good at drawing a pelican riding a bicycle

jimbobbam

Oh this is great! I’ve been working an app to teach handwriting with Rokid glasses. I’ll give it a shot

seantang001

Seems like for some input it stops prematurely. For example, `!2/23\4/5.4;3;5l=3asfa913k391aslkf9a'a;s.":>"}+-=;.a`

mindmaster098

very impressive

cush

I wonder if this model would have performed better if it wasn’t trained on awful 2000’s handwriting.

Tadpole9181

The project is impressive, but I've really wondered why so many of these types of blogs are Claudish. Just running it through another SOTA model or two, then reading yourself can clean things up. Compared to the work of the project itself, this seems comparatively painless, but is so often neglected.

fraywing

"Stroke tokens" stood out to me

samgreydanus

Author here! Given that I only trained these on an 8xH100 it's not exactly the most spectacular illustration of the Bitter Lesson. All I can say is that historically I always wanted to impress people with better model architectures or training techniques. This time I just put all my energy into data. Agentic workflows + good open weight vision models + cheap multimodal AI APIs make data quality filtering / caption generation really smooth

ex1fm3ta

Very nice congratulations. Long road since the first MNIST dataset. This project is useful for me since I am building an OCR model to properly parse hand written posologies. I already have all the data I needed, I could use this to generate synthetic data to strenghten my model.

SebastianSosa

This is amazing. I've been building a presentation model and will definitely be digging deep into this. I feel like graphical real-time presentation is an essential part of learning and transferring knowledge and it's completely missed by existing models.

Aeroi

this is so cool! the drawing feature is so fun for some reason, although I wish it was just ever so marginally better or smarter. its right there.

Semantic search powered by Rivestack pgvector
4,072 stories · 37,019 chunks indexed