Three backends, same prompts, same harness:
gemma-tjs (Gemma 4, Transformers.js + WebGPU) ·
phi4-edge (Phi-4-mini, Edge Prompt API, native) ·
phi4-tjs (Phi-4-mini, Transformers.js + WebGPU).
phi4-edge vs phi4-tjs isolates the runtime; gemma-tjs vs phi4-tjs isolates the model.
Source on GitHub.
Loading…
gemma-tjs: Gemma 4 E2B on Transformers.js. phi4-edge: Phi-4-mini on Edge's native Prompt API. phi4-tjs: Phi-4-mini on Transformers.js.phi4-tjs uses exact tokenization; phi4-edge approximates ~4 chars/token.Run all three backends per the README, then add a folder under results/<YYYYMMDD>-<os-arch>/ with the three JSONs and a report.md. Append an entry to docs/manifest.json and open a PR.