Hey Nico, thanks for the great feedback. Admittedly the registry governance needs to be tightened up, but I do have some thoughts on a path forward. I'll get to those, but first I want to touch upon the split you laid out, as it creates its own set of issues.
We already have Prompt, Summarizer, Writer, Rewriter and Translator, with separate proposals for Semantic Embedder, Vector Store and Decisions. Where does this stop? Do we keep adding these APIs for each new capability and direct developers to libraries for everything else?
Web Models takes a different approach (which I probably haven't been clear enough at delineating). The approach is to have an API which supports running models, across different classes, on-device. Generation and embeddings are already defined (currently working on extending to support decision models). New inference operations can extend the same contract without introducing another model-management interface for each task.
On the registry, I don't agree that our choices are a handful of gatekept models or an unrestricted list. The Public Hash List proposed alongside COS already lays out a cross-vendor approach that I think Web Models can build on.
Similar to the PHL proposal, the registry would be selective with predefined acceptance criteria. Maybe 10K downloads as PHL recommends, but I'm not sure on that just yet. However there is precedent and a path forward for this problem. Ultimately, I don't think I alone should set that criteria so it would need to be fleshed out. However, i don't think custom fine-tunes would make sense via the Web Models API, and instead is better served by transformers.js.
On Performance, I agree that native isn't necessarily faster, and in the benchmarks I've seen it's faster than Prompt API, however, I don't believe the WebGPU instance used nano. My concern is what happens across applications. COS shares stored files but it doesn't share loaded models or inference sessions. As more sites run on-device inference, having each manage its own engine leaves cross-site resource sharing unresolved. Web Models proposes putting that coordination in the browser, with user-controlled model access.
I think Transformers.js and Web Models have complementary roles here. I'm working on a navigator.models prototype built on Transformers.js to test some of these ideas (although admittedly the boundary of the polyfill will be COS and not be able to handle the cross-site resource management).
What would you need to see demonstrated to make a browser-managed path for developer-selected models worth pursuing?