--- title: Web Decisions WebGPU Quick Start emoji: 🦊 colorFrom: indigo colorTo: blue sdk: static app_file: index.html pinned: false --- # Web Decisions WebGPU Quick Start Try urgency, sentiment, and refund-triage decisions entirely in your browser. Choose a Laya checkpoint or GLiClass v4 Edge, d1-3B, jiwo-0.8B, OneJev-0.8B, Kev 0.6B, or Kev 4B. Laya retains WebGPU (FP32) and WASM/CPU (mixed weight-only INT8); the added models run on WebGPU. GLiClass v4 Edge fp32 is the default. Laya manifests use immutable Hugging Face revisions; messages and inference stay on your device. Other runners retain the model revisions used by `web_decision`. Browser GPU support varies. If WebGPU is unavailable, choose a Laya checkpoint with WASM/CPU. Initial model downloads are large, and browser acceptance for full-model WebGPU remains in progress. This Space does not contain an API or server-side inference. ## Run locally with your JEV API key The Space repository also includes a self-contained Docker build under `local-docker/`. Clone this Space repository, then run from its root: ```sh git clone https://huggingface.co/spaces/ti3x-m/web-decisions-webgpu-quickstart cd web-decisions-webgpu-quickstart docker build -t laya-quickstart-jev ./local-docker docker run --rm -p 127.0.0.1:7860:7860 laya-quickstart-jev ``` Open `http://127.0.0.1:7860`, select **JEV API · local development**, and enter your own key. Docker builds that local variant from the bundled source and runs a same-origin proxy to JEV. The key is held in the browser page, sent to JEV through your local container, and not saved by this app. The published Space remains static and does not expose the JEV option or proxy. Models: [English](https://huggingface.co/ti3x-m/laya-onnx), [multilingual](https://huggingface.co/ti3x-m/laya-multilingual-onnx), and [typed decisions](https://huggingface.co/ti3x-m/laya-typed-decisions-onnx). The three original examples, five example languages, theme controls, and local Docker variant are preserved. The Docker variant retains its original Laya/JEV choices. For the expanded static app locally, use `npm ci && npm run dev`. See [PORTING.md](PORTING.md) for details. The flat model list is sorted by displayed Decision Index score, highest first, with unscored checkpoints last. Labels distinguish DI 0.4.1 Full scores, historical editions, and approximate proxy scores. Historical editions are not directly comparable. The selected model's description explains its score and checkpoint match; the relevant official records are in `data/decision-index-0.4.1.json`, verified on 2026-10-28. GLiClass remains the default even though the Kev 4B proxy score is higher. The **Full request JSON** block shows the current user message in `state`, the selected browser `model`, and the decision `questions` together. It updates when the message, question definitions, example, language or model changes. The existing question editor remains separate.