β All models Β· EmbeddingGemma 2
use case Β· multi-model
Run two distinct model generations β EmbeddingGemma 2 (270M backbone, q4 WebGPU) and the original EmbeddingGemma 300M (v1, q8 WASM) β over the exact same text corpus and query. Each model runs in its own dedicated worker runtime. When both runs used the same inputs, the page reports the measured ranking agreement, alongside per-model latency and the combined download footprint. The first model is disposed before the second is loaded: its worker is terminated, which releases its WebGPU session. How much memory the browser reclaims after that is browser-managed and not measured by this page.
β
Run both models on the corpus to compare ranking overlap.
Comparing two model generations honestly on-device requires two completely separate runtime environments. EmbeddingGemma v1 uses the shared Transformers.js 3.7.5 pipeline with the ONNX Runtime Web WASM execution provider, while EmbeddingGemma 2 requires Transformers.js 4.3.1 running on WebGPU. Isolating each model in its own dedicated Web Worker prevents conflicting module scopes and colliding ONNX Runtime sessions.
Holding both models in browser memory simultaneously is the expensive case: downloading and maintaining both (v1 at ~314 MB q8 and v2 at ~175 MB q4) means ~489 MB of transfer, and both sets of weights resident at once. On mobile or constrained devices, that concurrent residency risks out-of-memory crashes. Sequential unloading β terminating the active model's worker, and with it its GPU/WASM session, before loading the other β keeps only one model's weights resident at a time, which is what makes multi-model evaluation survivable on consumer hardware. How much memory the browser actually reclaims is browser-managed and not measured here.