Porting the Moebius 0.2B image inpainting model to run in the browser with Claude Code

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Client-side browser AI now handles 0.2B-parameter inpainting models, so developers can ship GPU-accelerated image editing without servers or PyTorch installs.

Read this as

Simon Willison used the Claude Code coding assistant to port Moebius, a small 0.2-billion-parameter AI model that fills in removed areas of photos, so it runs inside a web browser instead of on an NVIDIA graphics card. The result is a live demo at simonw.github.io/moebius-web where anyone can mark parts of an image for removal and have the model imagine the missing region. It works in Chrome, Firefox and Safari, though it downloads about 1.3GB of model weights the first time.

Willison delegated the entire port of the Moebius inpainting model, PyTorch-to-ONNX conversion, a 1.24GB weight upload to Hugging Face, and a GitHub Pages web UI, to Claude Opus 4.8 without reading any code, treating it as a side project while working with Codex Desktop. The takeaway for engineering leaders: a single developer with an agent can deliver a working, publicly deployed model demo in one day. The 1.3GB client-side download remains a usability constraint for production use.

The Moebius 0.2B inpainting model, originally PyTorch/CUDA-only, was exported via torch.onnx.export at opset 18 and run with ONNX Runtime Web on the WebGPU backend in Chrome, Firefox and Safari. The 1.24GB ONNX weights are hosted at huggingface.co/simonw/Moebius-ONNX; the UI at simonw.github.io/moebius-web caches them client-side using the CacheStorage API (caches.open('transformers-cache')), a pattern borrowed from the Xenova whisper-web demo. No inference-latency figures are given.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Moebius Claude Code Claude Opus 4.8 ONNX Runtime Web WebGPU Hugging Face GitHub Pages

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading