A collection of interactive demos showcasing machine learning models running directly in your browser. These demos use Transformers.js to run inference locally — your data never leaves your device.
Visual Question Answering
Ask questions about images and get natural language answers powered by the Moondream vision-language model.
Image Captioning
Generate natural language captions for any image using a Vision Transformer and GPT-2 decoder.
Model downloads#
Both demos run on the CPU through ONNX Runtime Web (WebAssembly). The browser downloads the model weights from Hugging Face on the first visit and caches them, so later visits start much faster.
| Demo | Model | Weights loaded | Download |
|---|---|---|---|
| Visual Question Answering | Xenova/moondream2 (ONNX export of vikhyatk/moondream2) | token embeddings (fp16, 210 MB), vision encoder (fp16, 879 MB), decoder (4-bit, 824 MB) | ~1.9 GB |
| Image Captioning | Xenova/vit-gpt2-image-captioning | encoder (8-bit, 87 MB), decoder (8-bit, 159 MB) | ~246 MB |
The VQA model is large: use a desktop browser on an unmetered connection.
Privacy#
Since these models run entirely in your browser, your images never leave your device. No data is sent to any server.

