Chris Dilger

← Writing · · facemorph, agents, autoresearch, webgpu

The GPU Is Yours Now

Back in 2019 a slightly sleep-deprived team of students won a hackathon by turning checksums into faces. Down the bottom of the post I wrote about it, in the FAQ, someone asked if running the models was expensive. I said:

Per image, it’s not expensive to run - however due to the startup time of GPU instances and ongoing cost of running a GPU the cost over time is relatively expensive.

That one aged. Seven years and a lot of faces later, at 3:11 pm on 30 November 2026, facemorph.me stopped running on my GPU.

It runs on yours.

This is the story of how the model moved from a server in my house into your browser tab, how a loop of AI agents made that fast enough to ship, and the handful of rules that loop runs on, because those rules are the part I’d reuse on anything.

Seven years in a cupboard

Checkface became an API, the API became facemorph.me, and for most of its life the whole thing was one box at home called triton with a GTX 1080 in it. Type a name, a number, anything, and triton drew you a face. Drag between two and it rendered a morph video. Upload a photo and it encoded you into the face space, which is equal parts impressive and deeply uncanny.

I only started keeping proper metrics in October 2022, so this undercounts. But since then:

Four years of faces, and the day they moved
Faces served by the hosted API, and visits to and faces drawn by the new in-browser app. Switch to log scale to see the new app next to the API. Hover for numbers.
Hosted API: faces servedNew app: faces drawn on your deviceNew app: visits
API faces from triton's Prometheus counters (from 13 Oct 2022; a few days are missing). New-app numbers from its anonymous counters (from 25 Oct 2026, next.facemorph.me until the switch, then facemorph.me too); they skip automated browsers but still include some of our own test runs. The two aren't the same unit: the old site asked the API for a face on every keystroke.

The peak was 23 June 2023, when someone (or something) asked for 173,032 faces in a day. A GTX 1080 does about 56 ms of GPU work per face. It coped. Mostly.

Faces are requests, though, not people. Google Analytics has been on the site since April 2023, and it counts visitors. That line tells a quieter story: facemorph.me peaked in May 2023 at about 5,700 people a week and has been sliding since. A typical week in 2023 was 3,600 people. In 2026 it’s about 1,150. Still a thousand-odd people a week typing their name into a face generator, which I’ll take.

People a week, by Google Analytics
Weekly visitors and sessions across facemorph.me and next.facemorph.me since April 2023. Hover for page views and that week's API faces.
People a weekSessions a week
Google Analytics 4, ISO weeks, Melbourne time. People with ad blockers aren't in it: measured against the old API's access log, GA saw about three in every four sessions. API faces in the tooltip include other sites using the API, so they aren't all from these visitors. The week of 30 November is partial.

The thing is, a GPU in a cupboard is a single point of failure that also heats the cupboard. Every face cost me a bit of power and a bit of worry, and when triton had a bad day so did everyone embedding faces on their sites. I’d been wanting to retire the API for a while. The question was whether anyone would notice if the faces came from somewhere else.

Remote to local

The plan: take the exact same StyleGAN2 model, full 1024 × 1024, full FP32, and run it in the browser. No server. Your phone or laptop downloads the model once, keeps it, and draws every face itself.

That one sentence hides most of the work. Moving the model from my house to your device meant replacing every job the server did:

And which bit of your device actually draws the faces? The app tries WebGPU first and falls back to the CPU. In its first fortnight on next.facemorph.me there was a WebGL path too. It drew nine faces, the last on 12 October, and then it was gone. Since then it’s been a two-horse race. On computers the split swings around week to week; since the switch it’s been a bit over half on a GPU (57%), because plenty of laptops don’t offer one the app can use. On phones there still aren’t many faces, which is its own story further down.

Faces by the backend that drew them
Completed faces per day in the new app, by the backend that ran the model. Hover for the day's numbers, including repeats.
WebGPUCPU (WebAssembly)WebGL (retired 12 Oct)
Google Analytics job_finish events with outcome completed, across next.facemorph.me and facemorph.me, Melbourne days. GA skips automated browsers, so our own CI runs aren't in here, but it misses people with ad blockers or Do Not Track. Not shown: 3,881 "repeat" faces that report no backend. They never run the model (median 50 ms) and come back from memory when you revisit a name.
Backend share, phones vs everything else
Share of each week's completed faces by backend. The number above each bar is how many faces it's based on: phones are a small sample, so read their bars as anecdotes, not trends.

Phones

Computers and tablets

WebGPUCPUWebGL
Weeks start on Monday; the last week is partial. Phones are GA's "mobile" device category; everything else is desktop plus tablet. Repeat faces with no backend are left out of the shares. Since 30 September, phones drew 68% of their faces on WebGPU and 28% on CPU (120 faces); computers and tablets 56% and 44% (3,482 faces).

One rule never moved: no cheating. No lower resolution, no half precision, no “close enough” faces. Every candidate had to reproduce 31 fixed reference faces to within one level of RGB before anyone was allowed to look at its timing. That rule killed FP16 early (up to 161 levels of error, gorgeous speedup, wrong faces) and it saved us from ourselves more than once.

The first honest number, on 13 September on my M1 Pro: 0.52 seconds per face in Chrome. Native PyTorch on the same Mac did it in 0.23. So the browser started 2.3× behind native, which is honestly better than I expected and also not good enough.

Letting the robots do science

I didn’t hand-tune WGSL kernels at 2 am. Well. Not mostly. Most of the speed came from an autoresearch loop, run by AI agents against real hardware: my desktop (eris, an RTX 2080 Super), my Mac, my Galaxy S24 Ultra and a Huawei P30 Pro from the drawer.

It started from Karpathy’s autoresearch. His version points an agent at one training script, gives it a fixed five-minute budget and one number to beat (validation bits per byte), and has it log every attempt to a results.tsv as keep, discard or crash. The bones carried over. The difference is that I wasn’t training anything: I was chasing latency across browsers, GPUs and phones, where there is no single number, the noise is enormous and the easiest thing to measure is usually the wrong thing. So the protocol grew some rules. Everything is public in the repo’s autoresearch folder, and these are the primitives that did the work.

one change at a time
The ledger so far: 77 rows
Every row in results.tsv, by status. Only keep rows were allowed anywhere near the product, and a keep still had to be integrated and verified on the deployed site before it counted.

1. A correctness gate before any timing

Before a candidate gets timed it has to reproduce the frozen references: max RGB difference 1, sampled raw float 0.002, photo encoder latent 0.0001. Tolerances never widen quietly; changing the quality policy is its own decision, made by me, not a side effect of a fast kernel. This is the gate that rejected FP16 every single time it came back with a new disguise.

2. One falsifiable hypothesis

Every experiment starts as a written entry from the round template: the mechanism, its control, the checks it needs, a budget, a stop condition, and the observation that would prove it wrong. One change at a time. If you can’t say what would refute it, it isn’t an experiment yet.

3. Lanes, journeys and finish lines

Browser CPU, browser GPU, native CPU and native GPU are separate lanes, and a result in one never counts in another. Before anyone touches a kernel they pick a journey (first face on an empty browser, a warm face, a morph to a playable video) and a cache state, and the finish line is fixed: a decoded, drawn face, not “the shader returned”. Different devices, workloads or finish lines are never a paired speedup. It sounds pedantic. It’s the rule that stops an agent timing a cached video replay against a fresh render and calling it a win.

4. Paired timing on a leased, quiet machine

Timing runs take a lease on the machine through a small bounded runner, so two agents never time on the same GPU at once, and every command has a budget (600 s by default, never more than an hour). Then: control against control first, to measure the machine’s own noise; a discarded warmup; control and candidate in alternating A B B A pairs, at least three of them; and a fresh confirmation run before anything is called a gain. The runner records a successful exit as not_evaluated. A command finishing is not evidence of anything.

5. An append-only ledger

Every evaluated outcome is one row in results.tsv, eleven columns: lane, device, workload, source hashes, control and candidate timings, the correctness gates applied, status, evidence and the hypothesis. The record standards are strict and CI enforces them: rows are only ever appended, a correction is a new row citing the old one, and earlier bytes never change. Here’s where I deliberately part ways with the original: Karpathy’s log writes a crash as 0.000000. In a latency ledger a zero looks like the fastest result ever recorded, so ours never does that. A crash is a crash, a missing sample is missing, and a noisy minimum is not a win.

6. Keep, integrated and deployed are three different facts

A keep in the ledger means the candidate won on the bench. It doesn’t mean the product has it. The maintained drivers measure exact built artifacts by digest, and a speed claim only transfers to the product once the deployed bytes are verified. We learnt this one the hard way on the S24, below.

7. A bench the agents can’t fool

Agents that benchmark their own work will happily fool themselves. Not maliciously, they just measure whatever is easiest to measure. So they got a device lab that’s hard to fool: real browsers, real taps, a real phone. That’s the lab phone up at the top, a P30 Pro with a cracked screen. The green bands are the display, not the model, and the face is a real warm-face run, typed by the lab as Lab0warm.

There are six cells: CPU and WebGPU each, in Chrome and Firefox on eris and in Chrome on the P30 Pro. Each journey has a time budget measured on the hardware, and going over it is a failure, not a warning. Taps on the phone are real OS input at the button’s visible position, after checking that the thing under the finger is actually the button. Every lab page sets Global Privacy Control, so the lab never counts as a visitor. A lease stops two agents grabbing the phone at once. Hosted CI adds an iOS Simulator and an Android emulator on a best-effort basis.

8. Memory, and a person at the gate

There’s no unattended scheduler. An agent session drives the loop: it starts by reading earlier feedback from past sessions, the ledger tail and the newest round log, and inspects any interrupted run before resuming. Opportunities get raised to me rather than built on the spot, and anything that changes quality, costs money or touches production is my call. The agents do the science; I decide what ships.

What’s next for the loop

What it actually found is further down, row by row. The loop isn’t finished either. The next version is about closing the gap between a ledger keep and the bytes people actually run, and about learning from real iPhones, which you can only measure by shipping a candidate, trying it on the device and falling back if it fails. The history before October has every early round if you want the full archaeology.

The flagship: a browser tab vs PyTorch

Same machine, same RTX 2080 Super, same 26-frame morph at 1024 px. On one side Chrome running our code. On the other, native PyTorch with NVIDIA’s fused CUDA ops, which is about as fast as this model goes on this card.

129.8 ms per frame down to 37.1, in five iterations over two days. Native PyTorch with fused ops does 30.7 to 31.1. That’s a browser tab at about 1.2× native, roughly 83% of its throughput. It’s also faster than the PyTorch settings I was shipping in the self-host package (44.5 ms), and faster than the GTX 1080 that had been serving the API for years (about 56 ms of GPU time per face).

I’m not going to claim it beat native. The two sides measure slightly different endpoints and nobody compared their pixels against each other, only against the references. But a browser tab within a fifth of hand-fused CUDA? I laughed out loud.

The big step was the agents giving up on ONNX Runtime for desktop entirely and writing a direct WGSL engine: tiled matrix-multiply convolutions with the StyleGAN modulation fused straight into the kernel. That alone took 69.5 to 40.1 ms, and as a bonus shrank the desktop download from 212 MB to 124 MB.

Phones

This is the bit I’m actually proudest of, because the first runs on my S24 Ultra were properly bad. The first deployed build fell back to WebGL and took about 13 seconds per face. You could make a cup of tea. Flip through the other tabs above for the S24, the P30 Pro and the Mac.

The S24 story has a twist. The robots found a WebGPU kernel that fixed some ugly errors at the image edges on phone GPUs (bounded zero padding, if you care) and got it to 686 ms. Then I tested the live site on my phone and it was still slow, because the bench-winning kernel had never actually been shipped. Winning the benchmark and shipping the winner turned out to be two different jobs, which is exactly why primitive 6 exists. It’s in now: 616 ms per face on the same phone that started at 13 seconds. About 21×.

The P30 Pro taught the opposite lesson. Its Mali GPU is slower than its own CPU for this model (warm face 22 s on WebGPU, 17 s on the CPU), and the fancy desktop engine was even worse there (39 s). So on that class of GPU the app now goes CPU first. Sometimes the fastest kernel is the one you don’t run.

The devices coming in

Benchmarks are one thing. Here’s what real visitors’ devices reported, from the opt-in diagnostics while the new app was in testing:

Time to draw one face, real devices
Median per-face synthesis time from opt-in reports, 22 Sep to 17 Oct 2026. Log scale.
Medians across all devices in each class, not one phone. n is the number of faces. WebGL has since been removed from the app.

A median desktop with WebGPU draws a face in 50 ms. An Android phone with WebGPU, 738 ms. Now that facemorph.me itself is on the new app, the real numbers are coming in properly and I’ll update this.

The first visit

Here’s the catch with doing it in the browser: your device has to download the model first. On eris the first face on an empty browser went from somewhere between 9 and 44 seconds (7 October) to 6.7 s median by 30 October, including typing, the consent prompt and the download. Every visit after that downloads nothing at all.

Photos are the heavy one. On the P30 Pro the gigabyte encoder download alone takes about nine minutes. On eris, under a minute. The photo alignment step got 2.6 to 4.5× faster across Chrome, Firefox and Safari’s engine with the same landmarks to the pixel.

The ledger: heaps of hits, heaps of misses

Here’s the bit I actually wanted to show off. Every idea the agents had went into the ledger: the good, the bad and the ones that couldn’t make up their minds. 77 rows and counting, plus the September rounds before the ledger moved into this repo. The raw file reads like a tax return written by a GPU, so I’ve pulled out the ones worth telling you about and written them up in plain English. Each card names its ledger row if you want to check my homework.

Every idea worth telling you about, from the ledger
37 experiments, in plain English. Bars are log scale: a full bar is 25×. Tap a filter.
  1. Worked 21× faster

    S24 Ultra: WebGL to a bounded WebGPU kernel

    13 s → 616 ms · one face

    Phone GPUs got the edges of the image wrong with the stock kernels, so the app fell back to WebGL and took 13 seconds. A kernel with bounded zero padding fixed the edges. Same phone, same pixels, 21×.

    Galaxy S24 Ultra · mobile-boundary-bounded-phone
  2. Worked 17× faster

    Use the browser's own SHA-256 (in Firefox)

    3.67 s → 213 ms · verify 160 MiB of model

    Every byte of the model gets hashed so we know it's the one we shipped. We were doing it in hand-rolled JavaScript. The browser has a native one. 17× for calling a function that was sitting there the whole time.

    Firefox, eris · eris-it5-opfs-shard-cache-xbrowser
  3. Worked 13× faster

    Show the face without making a PNG first

    65.3 ms → 5 ms · put a face on screen

    We were encoding a PNG just to decode it again to draw it. Hand the raw pixels to the canvas instead. 13×.

    Chrome, CI · rgba-v1-20261010-ci-display
  4. Worked 8.3× faster

    Use the browser's own SHA-256 (in Chrome)

    924 ms → 112 ms · hash a chunk of model

    Same fix as Firefox, measured on its own: our JavaScript hasher did 162 MB/s, crypto.subtle did eight times that. We were also hashing every byte twice.

    Chrome, eris · eris-it2-sha256-js-vs-subtle
  5. Worked 7.1× faster

    Feed the video encoder raw pixels

    1.32 s → 186 ms · encode a 2 s video

    Every frame went pixels to PNG to pixels to H.264. Skip the PNG round trip. 7× on the codec step (and see the coin flips for what that did to a whole video).

    Chrome, CI · rgba-v1-20261010-ci-video
  6. Worked 6.6× faster

    Stop zipping the face

    214 ms → 32.3 ms · store the first face

    The GPU drew the face in about 150 ms, then we spent 214 ms compressing it into a PNG. Store it uncompressed instead. The file's 41% bigger and I genuinely do not care.

    Chrome, RTX 2080 Super · eris-it1-png-stored-deflate
  7. Worked 4.5× faster

    Photo alignment, rebuilt

    9.66 s → 2.17 s · align a photo, warm

    O3, SIMD, WebAssembly exceptions, a hand-written parser for the landmark model and precomputed Gaussian indices. Same landmarks to the pixel. 3.2× in Chrome and Safari's engine, 3.1× on the P30 Pro.

    Firefox · fast-align-v1-browsers
  8. Worked 2.2× faster

    Warm model load from verified file shards

    1.43 s → 640 ms · load a stored model

    Every warm load was re-proving the model was the model, in JavaScript, after reading it twice. Split it into files in the origin private file system that the browser hashes natively on every read.

    Chrome, eris · eris-it5-opfs-shard-cache-warm-load
  9. Worked 2.2× less

    Ask iOS for a GPU before downloading the GPU engine

    330 MiB → 150 MiB · a cold first visit downloads

    Safari on iOS has navigator.gpu, then hands you nothing when you ask for an actual GPU. We were downloading the whole 212 MiB WebGPU bundle before finding that out.

    iPhone Simulator · ios-sim-shell-gpu-waste
  10. Worked 1.86× faster

    Keep the GPU busy (frame pipelining)

    130 ms → 69.7 ms · per morph frame

    62 ms of GPU work, then 55 ms of the CPU packing pixels while the GPU sat on smoko. Start the next frame before tidying up the last one. Not one pixel changed.

    Chrome, RTX 2080 Super · eris-it3-morph-pipeline-product
  11. Worked 1.73× faster

    Write StyleGAN2 straight in WebGPU shaders

    69.5 ms → 40.1 ms · per morph frame

    The agents dropped ONNX Runtime on desktop and wrote the model as tiled matrix-multiply convolutions with the style modulation fused into the kernel. As a bonus the download shrank from 212 MB to 124.

    Chrome, RTX 2080 Super · eris-it4-direct-product
  12. Worked 1.51× faster

    Reuse the file you already made

    101 ms → 66.5 ms · save the same face again

    Small, but all six paired runs agreed: if you've already prepared the file, hand over the same bytes.

    Chrome, CI · direct-rgba-e0-bce-ui-repeat-download
  13. Worked 1.41× faster

    Graph surgery on the ONNX model

    584 ms → 415 ms · one face

    Fold the zero padding into the convolutions, delete slices that did nothing, and turn every stride-2 transposed convolution into four little 2×2 convolutions plus a pixel shuffle. Same faces.

    Mac M1 Pro, Chrome · classic rounds, September
  14. Worked 1.37× faster

    8-bit pixels on the GPU, plus one cursed XOR

    104 ms → 75.6 ms · one warm face

    Convert to 8-bit colour in a shader so we read back 4 MB a frame instead of 12. The first version was off by one on 7 to 15 values a frame, because the GPU fused a multiply and an add and rounded exact integers the other way. The fix is XORing with a zero the compiler can't see is zero. The gate caught it; I'd never have looked.

    Chrome, RTX 2080 Super · eris-it5-gpu-rgba8
  15. Worked 1.29× faster

    CPU first on Mali phone GPUs

    22 s → 17 s · one warm face

    The P30 Pro's GPU is slower than its own CPU for this model. So on that class of GPU the app doesn't use it. The fastest kernel is the one you don't run.

    Huawei P30 Pro · ve6a-mali-cpu-first-v1
  16. Worked 1.23× faster

    Download the next chunk while hashing this one

    6.67 s → 5.44 s · fetch and verify 191 MiB

    Read four 16 MiB chunks ahead so the network and the hashing overlap instead of taking turns.

    eris, real network · eris-it2-acquire-readahead
  17. Didn't up to 161 levels of RGB error

    FP16, half precision faces

    Much faster. Wrong faces. The gate allows one level. Rejected every time it came back.

    Mac M1 Pro · classic rounds, September
  18. Didn't 1.01× slower

    FP16 photo encoder

    5.61 s → 5.68 s · encode a photo

    Half the bytes, somehow slower overall, slower to start and bigger in memory, and the answers 17 to 48 times outside tolerance. A rare double fail.

    Mac M1 Pro, WebAssembly · e4e-fp16-v1
  19. Didn't 1.75× slower

    The desktop shader engine on a Mali phone

    22 s → 38.5 s · one warm face

    1.7× faster on desktop, 1.7× slower here. Desktop only now.

    Huawei P30 Pro · ve6a-direct-engine-arm-phone-v1
  20. Didn't 1.74× slower

    Smaller PNGs with a filter pass

    214 ms → 371 ms · store the first face

    29% smaller files for 157 ms more waiting on the critical path. No.

    Chrome, RTX 2080 Super · eris-it1-png-sub-filter
  21. Didn't 2.× slower

    WebP for the first save

    55.4 ms → 113 ms · encode the file

    The file is 33 times smaller, but it's twice as slow to encode. Kept as a size trade-off for downloads, never as a speed-up.

    Chrome, CI · rgba-v1-20261010-ci-webp
  22. Didn't 1.07× slower

    ONNX Runtime's new native WebGPU backend

    69.9 ms → 74.5 ms · per morph frame

    The shiny new one: 6.6% slower, 26% bigger download, 10% more memory.

    Chrome, RTX 2080 Super · ort1311-native-ep-webgpu-paired-v1
  23. Didn't 1.03× slower

    Realtime mode for the video encoder

    153 ms → 158 ms · encode a 2 s video

    It says realtime. It was slower.

    Chrome, CI · rgba-v1-20261010-ci-realtime
  24. Didn't 1.15× faster

    Relax IndexedDB durability

    33.8 ms → 29.3 ms · save a face to storage

    The theory was that waiting for a durable save was the slow bit. The whole save was 30 ms of a 388 ms face. Saved 4.5 ms and risked your faces. Refuted.

    Chrome, RTX 2080 Super · eris-it1-idb-durability-relaxed
  25. Didn't no gain

    Batching faces together

    Batch of 4 was slower in the browser, and even native PyTorch only gains about 2% past one.

    Chrome and native · eris-it3b-native-cuda-same-gpu
  26. Coin flips no call

    A 7× codec win, inside a whole CPU video

    113 s → 113.4 s · make a 32-frame video on a CPU

    The codec step got 7× faster and the whole video got 0.3 s slower out of 113. On a CPU the codec was never the slow bit. This is why component wins don't count until the product is measured.

    Chrome, CI CPU · direct-rgba-e0-bce-ui-video32
  27. Coin flips no call

    Same change, a whole new face on a CPU

    5.18 s → 5.12 s · one new face

    25 ms faster on a five-second face. Real, maybe, but inside the noise. Inconclusive.

    Chrome, CI CPU · direct-rgba-e0-bce-ui-new-face-face-1
  28. Coin flips 744 → 701 ms, then 634 → 709 ms

    Fused modulation in native PyTorch

    Looked faster in one session and slower in another. The machine's load drifted between runs, so it doesn't count either way.

    Mac M1 Pro, native · native-portable-v1-cpu
  29. Coin flips no call

    One WebP encode for storage

    178 ms → 125 ms · save a face

    Looked 30% faster. The machine had a load of 19 from other work at the time, so it's logged as unqualified and nobody's allowed to quote it. Except me, here, to make this point.

    Chrome, eris · compressed-session-encoding-20261011
  30. Coin flips no call

    The one-second-per-frame ghost

    9 ms → 1.01 s · per derived frame, after about 19 images

    Found while testing something else: from roughly the 19th image in a fresh profile, a step that took 9 ms suddenly took a flat second. Probably a headless Chrome throttle. Written down, not fixed by guessing.

    headless Chrome, eris · eris-it3-cold-derivative-stall
  31. Coin flips no call

    CPU vs WebGL on an iPhone

    7.08 s → 1.46 s · one face

    The CPU was 4.8× faster than WebGL in the simulator, the same reversal as Android. But separate runs aren't a paired result, so it stays a proposal until a real iPhone settles it.

    iPhone Simulator · ios-sim-webgl-vs-cpu
  32. Waiting on me 1.24× faster

    Skip the second whole-file hash

    5.44 s → 4.39 s · fetch and verify 191 MiB

    Another 19% off a cold download, for free. It's waiting on me, because it moves where integrity gets checked, and that's a decision, not an optimisation.

    eris, real network · eris-it2-acquire-no-whole-hash
  33. Waiting on me no face at all

    Time the GPU on a local server

    The exact build that works from next.facemorph.me failed on the same GPU when served locally. So local servers aren't trusted for GPU timing; it has to be a real Cloudflare preview.

    Chrome, RTX 2080 Super · eris-it2-local-artifact-webgpu
  34. Waiting on me too noisy to measure

    Upgrade ONNX Runtime's CPU build

    Correct on all 31 references, but the machine was too noisy and the load guard refused to call it. No conclusion beats a wrong one.

    CI, Chrome · ort130-serial-cpu-tempcpu-v1-noise
  35. Rulers 2.3× gap

    Native PyTorch on the same GPU

    69.7 ms → 30.9 ms · per morph frame, browser vs native

    The row that ruined an agent's victory lap. The browser had just beaten the old API, and native on the same card was still 2.3× faster. Everything after this was chasing that line.

    RTX 2080 Super, CUDA · eris-it3b-native-cuda-same-gpu
  36. Rulers 56.8 ms of GPU per face

    The old server, per image

    Flat for four years. The number every browser engine had to beat on a better card.

    GTX 1080, triton · triton-live-generation-per-image
  37. Rulers 1.37× gap

    Does a warm browser already beat the server?

    530 ms → 388 ms · a warm face, server vs browser

    Yes, just, on a desktop GPU. Different systems and networks, so it's a measurement, not a speed-up. And the browser's cold first face was 9 to 44 seconds against zero.

    Chrome, eris vs the live API · eris-it1-product-vs-server
Picked from the 77 rows in results.tsv plus the September rounds in the classic history. Each card names its ledger row. Component rows (one step measured on its own) are marked by what they measure; only product-level rows say anything about a whole journey.

A few of these genuinely made me laugh.

The PNG cost more than the face. Once the GPU had drawn a face, we compressed it into a PNG to keep it. On eris the drawing took about 150 ms. The compressing took 214. The fix was to just… not compress it (32 ms). The files are 41% bigger and I could not care less.

We were hashing everything, twice, by hand. Every byte of the model gets a SHA-256 so we know it’s the one we shipped. We were doing that in JavaScript. Twice. The browser has one built in. In Firefox, checking 160 MiB of model went from 3.7 seconds to 0.2. That’s 17× for calling a function that had been sitting there the whole time.

The GPU was on smoko half the time. A morph frame was 62 ms of GPU work, then 55 ms of the CPU reading pixels back and packing them up while the GPU sat there. Start the next frame before tidying up the last one and it’s 1.86× faster. Not one pixel changed.

The agents wrote StyleGAN2 in shaders. Not ported. Wrote. Tiled matrix-multiply convolutions with the style modulation fused into the same kernel. ONNX Runtime is a great general tool, but a kernel that only has to know one model is faster: 1.73×, and 88 MB less to download.

An off-by-one that needed a cursed XOR. Moving the 8-bit colour conversion onto the GPU saved 8 MB of readback a frame. The first version was out by one level on 7 to 15 values a frame, because the GPU fused a multiply and an add and rounded exact integers the other way. The correctness gate caught it. The fix is XORing with a zero the compiler can’t prove is zero, so it stops fusing. I’d never have found that. I’m not sure I’d have even looked.

iPhones were downloading a GPU engine they couldn’t use. Safari on iOS says it has WebGPU, then hands you nothing when you actually ask for a GPU. The app was downloading the whole 212 MiB WebGPU bundle before finding that out. Ask first, download second: a cold iPhone visit went from 330 MiB to 150.

And then the misses, because there were heaps. FP16 came back twice and was wrong twice: up to 161 levels of error on faces, and 17 to 48 times the tolerance on the photo encoder, which was somehow also slower. Smaller PNGs cost 157 ms. WebP files were 33 times smaller and twice as slow to make. ONNX Runtime’s shiny new WebGPU backend was slower and bigger. The video encoder’s “realtime” mode was slower than the normal one, which I’m choosing to find funny. And the desktop shader engine that was 1.7× faster on my PC was 1.7× slower on a Mali phone, because on that phone the GPU loses to its own CPU anyway.

My favourite number in the whole ledger is the 42. Over half of everything tried was inconclusive: the change might have helped, but not by more than the noise. The best example: feeding the video encoder raw pixels made the codec 7× faster on its own, and then a whole CPU video took 113.4 seconds instead of 113.0. The codec was never the slow bit on a CPU. A human (me) would’ve seen the 7× and written a press release. The loop doesn’t let you.

One’s sitting at blocked, waiting on me. Skipping the second whole-file hash would make a cold download another 19% faster. Free speed! But it moves where integrity gets checked, and that’s a decision, not an optimisation, so it waits for a human.

And the most useful row didn’t make anything faster at all. On 8 October one of the agents was busy declaring victory because the browser now beat the old API. Then it ran native PyTorch on the same GPU as a baseline and found the browser was still 2.3× slower. That one row changed the whole question from “is it good enough” to “how close to native can a browser tab get”. Which is how we ended up at 1.2×.

Apples to apples

After the switch I opened Grafana expecting the new line to pick up where the old one left off. It didn’t. The old API had been doing about 25,000 calls a day and the new app was counting a few dozen faces. Panic, briefly.

We were counting different things. The old site asked the API for a face on every keystroke (typing 389 asked for 3, 38 and 389), every morph was 25 separate frame requests plus a video, and other people’s sites embedded the API directly. A visit to the old site was something like 80 API calls. The new app counts a face when you ask for one and it appears.

Old API, a normal dayCalls a dayAn hour after the switch
Faces /api/face~10,000~30 (other people’s sites)
Morph frames /api/morphframe5,000–32,0000
Morph videos /api/mp4~7000
Photos /api/encodeimage~9000

Visits themselves check out. In the first hours on the new app Cloudflare’s own browser analytics counted 45 visits and our counters counted 44. What was genuinely missing was the why: failed jobs had no reason attached, nobody could see how many people said no to the model download, and photo runs were only counted for people who’d turned on debug reporting. All of that is now in our own counters, which the agents can read and test. Google Analytics can’t be checked by anyone but me, so it’s being replaced.

Speed, like for like

Speed is where it gets interesting, because the spread is wild. The old server was one GTX 1080 for everyone: 57 ms of GPU per face, flat for four years. Its variance came from queueing. The new app’s variance comes from your device.

Old server vs your device, median to 90th percentile
Seconds, log scale. Bars run from the median to the 90th percentile; pick a comparison, then click a row for what each side actually measures.
Old: the API server's access log (10 Oct to 30 Nov) and Cloudflare's leg from its edge to the server in Melbourne. New: the app's own anonymous counters on facemorph.me from the switch to 4 December, and lab runs where field data doesn't exist yet. Sample sizes are in the deep dive.

With the model loaded, a face on a desktop GPU takes 0.24 s at the median, about what the old server took before the visitor’s network even started. And the network was not small: Cloudflare’s leg to the box in Melbourne alone took 1.1 s at the median. A warm face in the browser has no network at all.

Everything else is a different story. A desktop CPU takes about 3 s per face, an iPhone about 3 and an Android phone about 13. Same model, same pixels, fifty-odd times apart depending on what you’re holding. That spread is the real cost of giving the GPU back, and it’s why the app picks a route per device rather than trusting a benchmark.

Photos are the exception, and I’m not going to pretend otherwise. On the old server, turning a photo into a face was one request: align it, run the e4e encoder on a GPU that already had everything in memory, 0.87 s at the median. In the browser it’s a gigabyte of encoder to download first (under a minute on my desktop, nine minutes on the P30 Pro), then alignment (about 2 s warm) and the encoder itself, around 12 s for a first photo on eris. That’s 15 to 50 times slower warm and over 100 times on a first visit. It’s the one job where a big GPU in a cupboard genuinely wins, and the reason the app asks before downloading it.

Cutover day

At 3:11 pm on 30 November facemorph.me switched over. The old site called the API for every face, so this is what that looks like from the API’s side, to the afternoon of 4 December:

The switch, per hour
Faces served by the hosted API, and visits and finished faces on facemorph.me's new app. Melbourne time. Log scale available.
API faces served per hourfacemorph.me visits (new app)facemorph.me faces finished on the device
From triton's Prometheus and the new app's own anonymous counters. The API faces still arriving after the switch are other people's sites and scripts using the API directly. From 27 November to 3 pm on 4 December.

From about 360 API faces an hour to about 20, in one DNS change. The faces didn’t stop. They just stopped coming from my house.

The API keeps answering until Saturday 5 December 2026, so anyone embedding it has a week to move. After that the API hosts answer from Cloudflare with a “switched off” notice, triton goes dark, and I’ll add the final cliff to this chart.

What actually happened

I asked the agents not to look for anything in particular: just dig through every log we had, before and after, and tell me what’s there. The old API’s web server log (37 days of it), the old Prometheus counters, the new app’s own counters, Cloudflare’s browser analytics and, once I’d sorted out access, Google Analytics. No IP addresses kept, only counts. Here’s the story it tells.

The people

264people a day on the old site (median of 33 full days)
10 smedian visit, first to last request (p90 11 min)
5%came back on another day
65%of all requests came from the top 1% of people

Most visits were a quick look: a couple of faces, ten seconds, gone. 54% were on phones, 39% from the US, then the UK, Germany and Canada. A third of sessions turned a photo into a face, which I honestly didn’t expect. And then there’s the long tail, which went properly wild: one person made 37,633 requests, one session drew 1,679 faces, another encoded 684 photos, and the longest sat there for six hours. The top 10% of people made 90% of everything.

How long a visit to the old site lasted
10,091 sessions, 10 Oct to 30 Nov (a session ends after 30 minutes without a request). Hover a bar.
First to last request, so time spent looking after the last face isn't counted. Images were cached in the browser for a week, so these are floors.

Did anyone notice?

On a chart of API requests, switch day looks like a cliff. Counted by people it isn’t: 190 people used the old site before 3:11 pm and the new app had 65 visits after it, about 255 for the day, against a normal 217 to 269.

Those are two different rulers, though: the API’s log for the old site, the app’s own counters for the new one. Google Analytics is the one thing that measured both sides the same way, so I waited for the overnight numbers. In the twelve hours from 4 pm to 4 am after the switch, facemorph.me had 97 sessions. The same twelve hours on each of the 28 days before had a median of 107, anywhere from 70 to 132. About 9% under a typical night, and well inside the normal range. No cliff.

The first three full days are less rosy. GA counted 550 sessions from 1 to 3 December, against 649 for the same three weekdays at the median over the four weeks before (633 to 872). That’s about 15% down and just under the usual range. People a day sat at the bottom of normal; it’s mostly fewer sessions per person. Some of that is the ruler again, because the new app loads GA later and skips it for anyone sending Do Not Track, Global Privacy Control or Save-Data. Some of it is probably real, and I reckon most of the real bit is phones, below.

People an hour on facemorph.me, one ruler throughout
Google Analytics people per hour on facemorph.me (the old site, then the new app), against what's usual for that hour. Melbourne time. Hover for numbers.
People an hour (GA)Usual for that hour (median of the same hour, one to five weeks earlier)
GA finishes processing an hour a few hours late, so the line stops at about 11 am on 4 December. Someone active across two hours counts in both, so hours don't add up to a day.
People, not requests
People a day on the old site (from the API's access log), and visits a day to the new app. Hover for numbers.
Old site: people a dayOld site: sessions a dayNew app: visits a day (next.facemorph.me, then facemorph.me too)Google Analytics: people a day on facemorph.me
Old site: distinct clients with an API request from facemorph.me pages (salted hash, kept only as counts). 23 October to 7 November isn't in the log. The new app's visits are counted by its own anonymous counters; before the switch they're next.facemorph.me, mostly testers. 30 November is split across both. Google Analytics counts facemorph.me throughout, the old site and then the new app, and sees fewer people than the access log because of ad blockers. 4 December is a partial day, so GA is left off it.

Arrivals held up. In the four and a bit hours after the switch, the new facemorph.me had 54 visits (Cloudflare’s own count says 50). The same hours on the 34 days before saw a median of 40 sessions on the old site.

Same hours, before and after
Sessions starting between 3:11 and 7:30 pm on each earlier day (old site), against visits in the same window on switch day (new app).

What Google Analytics says

GA can also say whether the people arriving are the same kind of people. They are. Here’s the new app’s first four days against the old site’s last four weeks:

Old site
2–29 Nov
New app
since the switch

Same mix of phones, much the same Google searches (a few more people typing the address in), same share of first-timers, and a touch more engaged. That last one comes with a caveat I owe you. The new app only loads GA once the page has gone idle, and skips it entirely for anyone sending Do Not Track, Global Privacy Control or Save-Data, so the very quickest bounces are missing from the new side. Against its own counters, GA saw about nine in ten of the new app’s page loads. Against the old access log it saw about 76% of the old site’s sessions. Close enough to compare. Not close enough to brag about the engagement bump.

And the long tail is alive and well. On the first night, between 11 pm and 4 am a couple of desktop visitors drew about 2,500 faces between them. On the old site that’s 2,500 requests to the box in my cupboard. Now it’s their GPU’s problem.

What most people waited

This is the one I really wanted, and it’s more complicated than “faster” or “slower”. The old server was quick at its own job: a computed face took 0.23 s at the median, and the first face of most visits came straight from its disk cache in 8 ms. That’s before the network, which added about a second for anyone outside Australia. The new app has no network once the model is in, so a face on a desktop GPU is about a quarter of a second. On an iPhone it’s about 3 seconds, on an Android phone about 13, and the first visit has the download on top.

Seconds to a face, at each percentile
Log scale. Read across: the 50 column is what the median person waited, 90 is the unlucky tenth. Hover a point.
Old: server time from its access log, 10 Oct to 30 Nov, excluding the visitor's network. New: click to visible face on the device, from the app's counters on facemorph.me since the switch (bucketed, so approximate). The new timer also counts faces shown again from storage, which flatters the fast end. The dashed line is an estimate, not a measurement: the new app's per-device times weighted by the old site's mix of desktops, iPhones and Androids.

Put the old audience on the new app and the median person waits about half a second instead of a quarter of one, and the unlucky tenth waits 46 seconds. The middle flatters the new app a bit, because its timer also counts faces it pulled back out of storage. The tail doesn’t flatter anyone. That’s the honest trade: a desktop with a decent GPU got better, anything relying on a phone got worse.

Downloaded, or already there

The whole idea leans on the download happening once. Your browser keeps storage per site, so at 3:11 pm nobody had anything stored for facemorph.me, and every device that has made a face since has fetched the model at least once. So the question is how often it comes back out of storage instead of over the network. On 1 December I got the app to count exactly that, and here’s what three days of it says:

186browsers started a face on facemorph.me since we started counting this
78%arrived with nothing stored and had to download (146)
41 of 45return visits found the model already waiting
58%of faces were drawn in a visit that arrived with the model stored (524 of 900)
New browsers…already had the modelReturn visits…model waitingFaces from a stored model
Desktop9317 (18%)1412350 of 620 (56%)
iPhone497 (14%)10954 of 62 (87%)
Android395 (13%)2120120 of 218 (55%)

The app's own anonymous counters on facemorph.me, from the evening of 1 December (when they shipped) to 4 December. Counted once per page load at its first face: "new browsers" is the first time we'd seen that browser, "return visits" every later page load. Five browsers didn't say what they were and are in the totals but not the rows. Some of the Android return visits are probably our lab phone. Google Analytics agrees on the shape: 130 devices had a face wait on a download since 30 November, and 22 had at least one load straight from storage.

Most browsers turn up with nothing and download. The ones that already had the model mostly said yes to the download prompt before their first face started. The good news is that coming back works: 41 of 45 return visits found the model sitting there, and over half of all faces were drawn from a model that was already waiting when the visit started. The other number I wanted was how much a visit actually uses it. Of 98 page loads that drew a face, 37 drew five or more, 10 drew twenty or more, and one made it to a hundred. Those are the people the download is worth it for. On the old site 5% of people came back on another day, so plenty of devices will pay for the download once and never get the free second visit.

The phones

And here’s the part that matters most. In the first five hours on facemorph.me every completed face (11 of them) was on a desktop. Four days in, phones are getting there, but barely. By GA’s count, of 279 desktop visitors 104 started a face and 57 got one. Of 281 phone visitors, 89 started a face and 13 got one. Those 13 drew 206 faces between them, so once a phone gets going it keeps going. Getting going is the problem. On the old site a face was on screen before you’d touched anything, and 40% of phone visitors went on to make a morph video.

How far visitors got, by device
Share of Google Analytics visitors who did each thing: the new app since the switch, and the old site over 2–29 November. Hover a bar for counts.
New appOld site
Visitors are GA users with a session on facemorph.me. "Got a face" is a user with a completed job. The old site drew a face on page load, so it has no "started" step to compare. The new-app numbers run from the switch to 4 December, about 280 people per row.

The app’s own counters see more phones than GA does (548 finished faces, 359 of them drawn fresh, against 283 cancelled or failed), and some of those are our own lab phone. But they also now say why a job stopped, which is the bit I was missing. On iPhones, 30 jobs ran out of memory and 11 ran out of storage. Most of the rest were people giving up and cancelling.

Our hosted iPhone and Android simulators get there (42 s and 63 s for a first face), so it works. It’s just slow enough, or heavy enough, that real people leave, and real iPhones have never been measured end to end. That’s the next thing the loop is pointed at, and why the site now (outside Europe, for the next two weeks) sends debug reports by default. Phone results after the fixes will go here.

Run your own

If you were using the API for something, the self-host package is the same API and the original UI in Docker. On a machine with a decent NVIDIA GPU it’s the old facemorph.me in a box. It also runs on CPU, slowly. The details are on the retirement page, and all of the new app, including the autoresearch ledger, is on GitHub.

And if you just want faces: go to facemorph.me. The first one takes a moment. The rest are basically free, and the GPU drawing them is yours.

Ship the model, not the server.


Numbers come from the project’s autoresearch ledger, device-lab runs, opt-in diagnostics, triton’s Prometheus and Loki logs, the app’s own anonymous counters and Google Analytics, re-pulled on the afternoon of 4 December 2026 unless a chart says otherwise. Where a number is a single run or an estimate, the deep-dive panels say so.