Anime, manga, and games, with a take · A Yukimedia publication

Sam Greydanus Releases PenGPT, a Small Transformer That Writes by Hand

Machine learning researcher Sam Greydanus released PenGPT, a small transformer that generates handwriting and sketches from text. It was trained on 495,590 words of handwriting from 1,255 writers and 477,670 sketches from 10 public datasets.

Reporting from 1 source: GIGAZINE.

Why it matters

Greydanus says roughly 80 percent of the effort went into building and cleaning the datasets rather than the architecture, which is the part of the project he wants people to look at.

Sam Greydanus Releases PenGPT, a Small Transformer That Writes by Hand

Key Facts

  • Sam Greydanus released PenGPT, a small transformer that generates handwriting and sketches from text.
  • PenGPT was trained on 495,590 words of handwriting data from 1,255 writers.
  • Training also used 477,670 sketches extracted from 10 public datasets.
  • Each training sequence contains up to four words by a single writer.
  • Greydanus said about 80 percent of his effort went into building and quality-checking the datasets.

Each training sequence holds up to four words by one writer, so the model learns that later words resemble earlier ones. A web page lets visitors try it.

The training data is the argument. Greydanus scanned 495,590 words of handwriting from 1,255 writers and pulled 477,670 sketches from 10 public datasets, then spent most of the project on quality control. Sequences hold up to four words by a single writer, so the model picks up that later words should resemble earlier ones and keeps a page consistent.

On the released web page, WRITE turns entered text into a chosen hand, with a pull-down menu of sets that includes one imitating Greydanus's own writing and an ANOTHER HAND button for random swaps. Neat and loose sliders control distortion. DRAW produces doodles, not finished pictures, with loose and literal sliders for fidelity and sparse and dense sliders for line count.

Written with AI by Yomimono from the 1 cited source below, including Japanese-language reporting where cited. See our editorial policy.

Add Yomimono as a preferred source on Google

PenGPT Sam Greydanus

Sources