Skip to content
WebAI

Blog

Implementation notes on browser AI: weight sizes, inference runtimes, image restoration and inpainting, video repair, audio separation, VLMs and retrieval. Browse by topic or tag.

Vision & perception5

Detection, matting, restoration, erasing, real-time perception and frame-by-frame video work.

View category →
  • The video watermark demo samples a dozen frames and checks whether the background behind the watermark moves. If it does, a temporal median rebuilds it and nothing is downloaded; a static background gets a single MI-GAN inpaint. Also covered: re-encoding frame by frame with WebCodecs and muxing the audio back with ffmpeg.wasm.

    Read more →
  • The watermark, object-removal and inpainting pages share one set of brush controls, and their real weights mostly come down to the same 26.8 MiB MI-GAN ONNX. The exception is the video HD pass, which genuinely loads the 198 MiB LaMa checkpoint.

    Read more →
  • The super-resolution, restoration and enhancement demos share one set of controls, and with real weights wired up, four differently named cards resolve to three repositories, all Swin2SR exports. Here is how the substitutes map out, and why the task selector stops responding in real mode.

    Read more →
  • The models in our real-time category add up to under 15 MB. Landmarks, smoothing and tracking all have to fit inside one frame budget, and the skeleton shook until we changed a few things.

    Read more →
  • The smallest detector in our vision category is 2.5 MiB; the largest matting model is 93.9 MiB. The extra weight shows up along the edge, in two or three pixels. All three demos use the same sample images.

    Read more →

Audio & speech3

Speech recognition, voice activity detection, synthesis, stem separation and audio classification.

View category →
  • Stem separation runs as a bare ONNX session in a Worker, cutting audio into overlapping 7.8-second segments and joining them back; the six-minute cap is forced by accumulator memory. The audio classification page has its own story: the smallest tier printed on the card is not the q8 file the page downloads.

    Read more →
  • Which speech models actually run in a browser tab, and how long does each one keep you waiting? The recognition, synthesis and cloning stages, in pipeline order, with a Whisper transcription snippet you can copy as is.

    Read more →
  • Voice activity detection answers a single question: which parts of the audio contain speech. Why nearly every speech pipeline starts with it, where the Silero ONNX input contract is easy to get wrong, and what the three sliders on the demo page control.

    Read more →

Language models & retrieval2

Size trade-offs in small LLMs and how the local retrieval half fits together.

View category →
  • The whole retrieval half of RAG fits in a tab: an embedding model, a vector index and a cross-encoder reranker. How the three stages connect, what each one weighs, and why swapping the embedding model means rebuilding the index from scratch.

    Read more →
  • Our llm category runs from TinyLlama at 681 MiB to Llama-3 8B at 4.2 GB. Every generated token reads the whole weight set, so size sets the speed, and that is what we check first when picking a tier.

    Read more →

Multimodal & documents2

Vision-language models, CLIP and document parsing.

View category →
  • The four cards under multimodal/vlm list sizes from 213 MiB to 2.7 GB, yet every one of them downloads the same vit-gpt2 captioning checkpoint, and the question you type never reaches a model. Here is how the substitutes work, and why the CLIP page next door runs real weights.

    Read more →
  • OXR-1.0 is only 1.3B parameters, yet it beats larger models on several document-parsing benchmarks. Its RSI training loop, its pluggable layout analysis, and the three ways in: hosted demo, free API or Docker.

    Read more →

Runtime & engines2

How Transformers.js, ONNX Runtime, WebGPU, WASM and WebNN divide the work in a browser.

View category →