In‑browser Zero‑Shot Classification

What does “zero‑shot classification” mean? Imagine you have a list of topics – “education”, “politics”, “business”. Without teaching the model those topics beforehand, you ask it: “Which of these topics best describes the sentence below?” The model looks at the sentence and picks the most likely label(s). That’s zero‑shot: it works on categories it has never seen during training.

Why run it in your browser? The model and its weights are downloaded once, then all calculations happen locally on your computer (using WebGPU or WebAssembly). No data leaves your device, and after the first download you can use it offline.

What this demo does

Launch Demo →

Troubleshooting: If the demo stays on “Model not loaded”, open the browser console (F12) to see any error messages, ensure you are loading the page from its HTTPS GitHub Pages URL, and disable any ad‑blocking extensions that might block model downloads.

How to use the demo

  1. Select a device/backend (leave “auto” if you’re unsure).
  2. Enter the sentence you want to classify.
  3. Enter a comma‑separated list of labels (e.g., education, politics, business).
  4. Click Classify and watch the result appear.