-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document how to run local Inference, for the subset of models that support it #82
Comments
https://github.com/xenova/transformers.js Pipelines in js 🤗 |
Can I take this @julien-c ? |
Web AI supports image and text models - https://github.com/visheratin/web-ai Plus, it already integrates Hugging Face tokenizers for text models. |
Hello everyone. Jason here representing Google's Web ML teams including TensorFlow.js. First it is great to see so many options here to research further into - just a few years ago this was not so much the case so kudos to everyone involved in the Web ML space right now - great work! I just wanted to weigh in with the TensorFlow.js perspective in case that is up for consideration too by Hugging Face and list some of our resources you can use to get started with conversion along with the current state of our ecosystem as to why we see folk actually caring about this. Hope it helps! Let's get to it... Why though? Here at Google we are seeing a number of industries really embrace the use of client side ML models (such as healthcare, fitness, HCI, design and retail/CPG). The main reasons for this are as follows:
So how do we port models to TensorFlow.js? Here are a number of resources to get started:
On that note we now have greater parity between our backends (backends being the technology we actually execute the model on - not a server side backend) such as WebGL, WebGPU, Web Assembly, and of course Plain old JS as the backup if all else fails. We are trying to get higher op parity between these backends so more models can run on any backend in the future too so good momentum there. Do shout if any questions or if you find a specific blocker please also let me know so I can bring this up with our team to see if it is something we can unblock :-) |
Would love to come and share some of the recent projects we are doing https://github.com/mlc-ai/web-stable-diffusion This project also takes a lot of benefit from taking HF models and bring them into web(Thanks to the broader open source community). We would love to support the community to do more. Love to see more interactions and support with the broader ecosystem. |
i.e. a how-to guide (or set of guides) on how to use TFJS or onnxruntime.js (or other alternatives) on either client or server JS
see those Twitter threads for instance:
The text was updated successfully, but these errors were encountered: