# PenGPT learns a stranger's handwriting from just a few words

Original title: PenGPT: A Generative Transformer for Handwriting and Sketches

> Hacker News story 50637056 · language: en · submitted 2026-11-25
> Web version: https://zeli.app/story/50637056
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 9 · by [smusamashah](<https://news.ycombinator.com/user?id=smusamashah>) · 💬 0
[original](<https://greydanus.github.io/2026/11/12/pengpt/>) · [HN discussion](<https://news.ycombinator.com/item?id=50637056>)

## Summary

A 6M-parameter transformer writes print and cursive and picks up the hand of a writer it has never seen from one to three real words; a 54M-parameter sibling draws from typed prompts. The author rebuilt the handwriting data from 495,590 scanned words by 1,255 writers and 477,670 public sketches, then ablated the design. Data and augmentation carried the result; the clever tokenizer and extra parameters barely moved it.

## Key quote

> The BPE merges I was proud of make the score slightly worse; they buy speed (sequences are 3.2x shorter) and that's all.

---

## Cite

- Page: https://zeli.app/story/50637056
- Date: 2026-11-25
- Source: greydanus.github.io (https://greydanus.github.io/2026/11/12/pengpt/)
- Hacker News: https://news.ycombinator.com/item?id=50637056

## Other languages

- zh: https://zeli.app/zh/story/50637056 · markdown: https://zeli.app/zh/story/50637056.md
- ja: https://zeli.app/ja/story/50637056 · markdown: https://zeli.app/ja/story/50637056.md
- ko: https://zeli.app/ko/story/50637056 · markdown: https://zeli.app/ko/story/50637056.md
- de: https://zeli.app/de/story/50637056 · markdown: https://zeli.app/de/story/50637056.md
- es: https://zeli.app/es/story/50637056 · markdown: https://zeli.app/es/story/50637056.md
- ru: https://zeli.app/ru/story/50637056 · markdown: https://zeli.app/ru/story/50637056.md
