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
{{ message }}
Repository navigation
[Feature Request] Assess performance capability before a model is loaded #20998
Assess performance capability without downloading the full model.
Describe scenario use case
For some models, the performance may be a blocker. Since model downloads can be quite large, I wonder if there should be a way for web developers to know their machine performance class for running a model without downloading it completely first.
I believe this would involve running the model code with zeroed-out weights, which would still require buffer allocations but would allow the web app to catch out-of-memory errors or such. The model architecture would still needed to generate shaders, but this be much smaller than model weights.
Activity
xhcao commentedon Jun 24, 2024
I have an implementation in https://github.com/xhcao/onnx_model_external_data_web_test, the draft code is in onnxruntime.diff .
And the repo also has an demo to verify the implementation, I cannot upload a big model to that repo, but you could create a custom model with external data file following https://github.com/onnx/onnx/blob/main/docs/ExternalData.md
Any comments are welcome.
beaufortfrancois commentedon Jul 1, 2024
Thank you xhcao for bootstrapping this effort!
I believe your code in onnxruntime.diff may benefit from the following modification. What do you think?
beaufortfrancois commentedon Jul 31, 2024
Guenther Schmuelling (@guschmue) Any update on this by any chance?
beaufortfrancois commentedon Aug 28, 2024
Guenther Schmuelling (@guschmue) gentle ping
guschmue commentedon Aug 28, 2024
sorry, still on the wish list. We have some high priority tasks for the next few weeks and need to put this one into the queue.
beaufortfrancois commentedon Aug 29, 2024
That's good to hear it's still on the queue. Thanks for keeping us up to date Guenther Schmuelling (@guschmue)!
beaufortfrancois commentedon Sep 30, 2024
Guenther Schmuelling (@guschmue) Just wanted to check if there's been any movement on the priority for this.