🌐 Could browsers agree on exactly which AI model a site runs?
In brief
- 🔌 A proposal lets sites ask for a specific AI model that runs on the user’s device.
- 🛡️ The browser would manage the model, and the user would grant each site access.
- 🧪 A forum reply proposes shared test inputs so a model ID means the same across browsers.
💻 A browser API proposal would let a website request a specific open-weight model and run it locally with the user’s permission. In the Hugging Face discussion, a participant asks for shared tests to prove that the same model ID produces compatible results across browsers. An early implementation is in private alpha.
🧰 The Web Models API proposal splits up work that a web application would otherwise have to arrange itself. The website names a particular model. The browser manages downloading, storing and running it. The user decides whether that site may use it. Several sites could reuse the same model resources while keeping their permissions and data separate. An application could generate text or calculate embeddings, which are numerical representations used to compare items in a search.
📓 A local notes app is one example from the explainer. It could turn notes into vectors and use the same model to turn a new search question into a vector. The browser could manage the model files without the notes app having to ship its own inference engine. The proposal uses IDs tied to particular model releases, and an unsupported request would fail rather than silently choose a different model.
🔤 A participant in the Hugging Face thread points out that the same trained weights can behave differently if browsers use different compression, tokenizers or rules for normalizing the resulting vectors. That matters when an app tries to search an index made in another browser. The participant suggests defining the relevant computation as part of the ID and supplying fixed examples with expected outputs and tolerances. That would let an implementation demonstrate compatibility.
🔬 The author replies that the proposal already binds IDs to weight variants, tokenizers and input and output defaults. Testing that agreement across implementations remains open. An early version exists in Common, a Chromium-based browser in private alpha. The public materials are a proposal and reference for discussion, including permissions and model sessions. The discussion is now about what must be specified for a website to trust a named model result across browser implementations.