Frederico Klüser de Oliveira’s SOM WebCore demo can classify a support message and rate its urgency in the browser. It uses an open TS-Ettin-17M checkpoint for the fallback, rather than calling TypeSafe’s hosted Jev API.
Keep the same call when the model changes
- The demo code uses
DecisionModelfor yes/no answers, choices and scores. If the browser already provides that interface, the demo leaves it alone. Otherwise the project supplies a replacement that runs the model with WebGPU, the browser’s interface to the GPU. - The TS-Ettin adapter builds a separate sequence for each question and scores the options directly. It returns labels and probabilities without generating an answer to parse. The same API can yield different answers with a different model.
Test the download separately from the decision
- The demo catalog lists about 22 MB of model weights, plus tokenizer and other files. The fallback stores them in browser Cache Storage. Site code and model files still need to reach the device before the demo can make local decisions.
- In a published Chrome Canary test, the project recorded no page or worker requests during 20 calls after download, even when it changed the questions. That covers an already-loaded page in that setup.
Caveat: We inspected the code and test report without running inference. The checkpoint ships without fitted confidence calibration. A valid label can still be wrong, and the network test says nothing about accuracy or whether the demo can reopen offline.