You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Those optional attributes should also be set to null when available === "after-download" since the model is not ready yet.
It only becomes an issue after we migrated the sampling param config to the model.
The text was updated successfully, but these errors were encountered:
However, that's more important for questions like the supported languages. It's harder to imagine a web developer saying that they don't want to use the prompt API if maxTemperature only goes up to 1.0, or something like that.
So maybe we can keep the capabilities hyperparameters as null in the after-download state, even though we need to support languageAvailable() in that state.
I chatted with @fergald about this, maybe we could keep the current implementation that returns null for the sampling params if the model is not downloaded yet, but eventually this could be supported by fetching the metadata of the model and read the config without downloading the full model.
For the languageAvailable() method, yes it will be supported even when the model is not downloaded.
OK, cool. Let's tentatively keep the explainer as-is, with Chromium not matching it for now. We can keep this issue open to track that it's still unclear what the best path is, and revisit when we have either more information from web developers, more information from other implementations, or more information on how difficult this would be in the Chromium implementation.
In the IDL of capabilities API, we have
Those optional attributes should also be set to null when
available === "after-download"
since the model is not ready yet.It only becomes an issue after we migrated the sampling param config to the model.
The text was updated successfully, but these errors were encountered: