Runs in the browser · Vision
Run Grounding DINO Tiny in your browser
Grounding DINO Tiny downloads 144.1 MB over WebGPU (q4f16), or 194.4 MB over WebAssembly (uint8), to find objects in an image from a text prompt entirely in the tab with Transformers.js. No install, no server.
Vision · onnx-community/grounding-dino-tiny-ONNX
- Parameters
- 172.28M
- Pipeline task
- zero-shot-object-detection
Reading
0.84 MB/M params against a 1.73 MB/M vision median: light for its parameter count.
The quant ladder spans 4.8x: 144.1 MB (q4f16) to 685.5 MB (fp32).
Will it run in your browser?
Checking for WebGPU support…
All measured variants
| Variant | Size |
|---|---|
| q4f16 WebGPU pick | 144.1 MB |
| uint8 WASM pick | 194.4 MB |
| bnb4 | 208.0 MB |
| q4 | 216.7 MB |
| fp16 | 343.7 MB |
| q8 | 388.8 MB |
| fp32 | 685.5 MB |
Sizes measured from the HuggingFace API file tree for onnx-community/grounding-dino-tiny-ONNX, not estimated.
Use it with Transformers.js
import { pipeline } from "@huggingface/transformers";
const pipe = await pipeline("zero-shot-object-detection", "onnx-community/grounding-dino-tiny-ONNX", {
device: "webgpu", // usually falls back to "wasm"; wrap in try/catch for production
dtype: "q4f16", // use "uint8" for the WASM build
});
const result = await pipe(/* your input */);
Requires npm install @huggingface/transformers (or the CDN build).
Sources
Same job, different size
FAQ
WebGPU or WASM for Grounding DINO Tiny, in practice?
Chrome, Edge, and Safari 26+ run the WebGPU build (q4f16) on the GPU. Firefox has WebGPU on Windows and Apple Silicon Macs but not everywhere yet. Any browser without a WebGPU adapter falls back automatically to the WebAssembly build (uint8) on CPU: same model, slower to load, slower to run.
What does q4f16 mean for Grounding DINO Tiny?
The WebGPU build here uses q4f16: 4-bit weights with some layers kept at 16-bit for stability: WebGPU's usual smallest clean build. The WASM fallback uses uint8: 8-bit integers: about a quarter the size of fp32, with a smaller quality trade than 4-bit.
Sizes measured 2026-08-01 from the HuggingFace API. Last validated 2026-08-03. See all browser models or the methodology.