PenGPT

by greydanus · Model · Image

Generates handwriting and pen sketches as strokes from a text prompt, with a write mode and a draw mode that runs in the browser.

promising

Small browser demo that writes and draws; fails on other languages and combined scenes

Latest · Nov 25Generative transformer for handwriting and sketches with a write mode and a draw mode, usable in the browser; model is about 50MB

AccessOpen codePricefreeDownloadabout 50 MB; runs in the browserLicenseApache 2.0 (code)Commercial useyes for the code (Apache 2.0)

What it makes

Samples its makers published on greydanus.github.io
A sample from PenGPT
A sample from PenGPT
Six prompts drawn with increasing ink
Six prompts drawn with increasing ink
Drawings of prompts that never appeared in training
Drawings of prompts that never appeared in training
A sample from PenGPT
Forty random labels, one drawing each, nothing selected
Forty random labels, one drawing each, nothing selected

Who says what

Early days

Hacker News, the author, posting on Hacker News

Trained on one 8xH100 machine with no unusual architecture. About 80% of the effort went into building and quality-checking the datasets, helped by open vision models and cheap multimodal APIs.

Hacker News who tried it in the browser

Write and draw modes work, and it draws penguins, bicycles and roughly pelicans. It handles Spanish badly ('enséñame' comes out wrong), doesn't know cursive stroke order, and stops early on some random-symbol inputs. A pelican riding a bicycle comes out as abstract art. One commenter plans to use it for synthetic handwriting data for an OCR model.

What would settle it. A side-by-side handwriting test against other models, and a version trained on non-English text.

Evidence

  1. Nov 25
    Author says it was trained on an 8xH100 machine, with no clever architecture; about 80% of effort went into building and quality-controlling datasets
    Maker's claimHacker News
  2. Nov 25
    Author says agentic workflows, open-weight vision models and cheap multimodal APIs made data quality filtering and caption generation easy
    Maker's claimHacker News
  3. Nov 25
    Users report it does not handle Spanish well, e.g. 'enséñame' comes out badly; one asks how other languages could be added
    Community reportHacker News
  4. Nov 25
    Users report it does not know proper stroke order for cursive characters
    Community reportHacker News
  5. Nov 25
    One user found it stops prematurely on some random-symbol inputs
    Community reportHacker News
Show all 7
  1. Nov 25
    Draw mode draws penguins, pelicans (roughly) and bicycles, but a pelican riding a bicycle gives abstract art; it struggles to combine objects
    Community reportHacker News
  2. Nov 25
    One commenter plans to use it to generate synthetic data for an OCR model parsing handwritten prescriptions
    Community reportHacker News

Everything said about PenGPT, on the wire