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
Currently, initProgressCallback only reports progress when the model is being downloaded from the network. However, when the model is already cached in the browser (via CacheStorage), the user receives no feedback, even though loading and initializing the model from cache can still take multiple seconds.
I’d like to request a new callback, e.g., cacheLoadProgressCallback, that reports progress as each cached shard is read and processed.
This would allow developers to show meaningful progress indicators during both cold and warm starts.
Possible implementation ideas:
Trigger callback as each shard is read from CacheStorage and passed into arrayBuffer()
Report total bytes loaded from cache vs total expected
Or simply provide a boolean flag indicating whether loading is from cache or network