webmachinelearning / model-loader

🧪 Model Loader API
https://webmachinelearning.github.io/model-loader/
Other
30 stars 10 forks source link

Prepare for intent to prototype #7

Closed jbingham closed 2 years ago

jbingham commented 2 years ago

It's been over a year since updating the Explainer, and some of the concerns around MLIR and the level of abstraction have already been addressed in the Community Group.

yuhonglin commented 2 years ago

It seems the usage of this API (to align with WebNN API) has not been updated. Are we going to do that in a separate pr?

anssiko commented 2 years ago

I assume you refer to the sample code? Given this is an explainer doc, we can iterate on the doc (and spec draft too) flexibly to align with the prototyping work. So yes, more PRs welcome.

(Also, welcome to the group @yuhonglin!)

yuhonglin commented 2 years ago

Thanks, Anssi! I understand that there is no need to have the explainer freezed for the moment. But we plan to make some significant changes,

  1. We want to make the API to align with WebNN, e..g. sharing the interface MLContext etc.
  2. We want the API be able to support multiple model formats by adding extra arguments. This is important even for the moment to pass the API preview.

We have a doc discussing this. May I have your email address? Then I can share the doc with you.

jbingham commented 2 years ago

It should be ok if the final spec and implementation is a little different. It's sample code or pseudo-code to give an idea of how the API might work.

I'll merge and we can update if needed. Thanks!

anssiko commented 2 years ago

Thanks, Anssi! I understand that there is no need to have the explainer freezed for the moment. But we plan to make some significant changes,

@yuhonglin, your understanding is correct. At the explainer phase, the closer the explainer tracks the prototyping work, the better. Feel free to update the explainer at any stage. You just got mail so you have my address now :)