Skip to content
zero-shot-image-classification · multi-model 2 Web Workers · 304.75 MB Total LAION-2B B/32 (152.71 MB) + OpenAI WIT B/16 (152.04 MB) MIT + MIT

Multi-model: OpenCLIP LAION-2B ViT-B/32 vs OpenAI WIT ViT-B/16

Stage 1 runs onnx-community/CLIP-ViT-B-32-laion2B-s34B-b79K-ONNX (trained on open LAION-2B, 32×32 patches = 49 tokens, 152.71 MB q8 WASM). Stage 2 reuses sibling ../../clip-zero-shot-image/worker.js (Xenova/clip-vit-base-patch16, trained on proprietary OpenAI WIT-400M, 16×16 patches = 196 tokens, 152.04 MB q8 ONNX / ~90 MB catalogued). Feed both the identical image and prompt strings to measure dataset-prior and patch-granularity divergence live.

1 · Workflow models (304.75 MB combined WASM q8)

Stage 1 · OpenCLIP LAION-2B ViT-B/32 (152.71 MB)

Uses ../worker.js — LAION-2B English, 32×32 patches (49 tokens), WASM q8.

Stage 2 · OpenAI WIT CLIP ViT-B/16 (152.04 MB)

Reuses ../../clip-zero-shot-image/worker.js — WIT-400M, 16×16 patches (196 tokens), WASM q8.

2 · Side-by-side priors & patch-granularity diff

Loading starter photo…

Stage 1 · LAION-2B ViT-B/32 (32×32 patches · 152.71 MB)

Awaiting Stage 1 inference…

Stage 2 · OpenAI WIT ViT-B/16 (16×16 patches · 152.04 MB)

Awaiting Stage 2 inference…

Top-1 agreement–
Total variation dist.–
LAION-2B B/32 top-1–
OpenAI WIT B/16 top-1–
Latency (B/32 vs B/16)–
Per-prompt score & cosine delta (LAION-2B ViT-B/32 minus OpenAI WIT ViT-B/16)
Prompt LAION B/32 % OpenAI B/16 % Prob Δ LAION cos OpenAI cos Cos Δ
Run both stages to inspect the per-prompt delta table.
Head-to-head comparison history
Photo LAION-2B B/32 OpenAI WIT B/16 Agree? TVD Latency
Run both stages to record head-to-head runs.

See inside the code

Show the code — compareClipModels() probability & cosine divergence
Show the code — softmax() probability normalization over model logits

References