-
Notifications
You must be signed in to change notification settings - Fork 785
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
Does WEBGPU
Truly Enhance Inference Time Acceleration?
#586
Comments
WEBGPU
serves better in the terms of Inference time Acceleration
WEBGPU
Truly Enhance Inference Time Acceleration?
Used model : Xenova/Whisper-tiny.en , Xenova/all-MiniLM-L6-v2 is there any way to accelerate the speed of inference ?? |
Encoder-decoder models are still a work in progress, but the bert-based embedding models work very well! For example, I get >100x improvement with all-MiniLM-L6-v2. Try it out yourself: https://huggingface.co/spaces/Xenova/webgpu-embedding-benchmark |
Whether nodejs can also benefit from this speedup |
I'm not sure if Node.js can benefit from this speedup, but it is possible that Deno can. |
|
But there is no device setting (ex: cuda) for transformerjs |
@xenova When can I test encoder-decoder model with WebGPU? I can't wait anymore. I am very excited to see that asap. |
Just tried it out, and wow, it's a huge upgrade! When are you thinking of launching it? |
Question
Recently, I've been extensively utilizing transformers.js to load transformer models, and Kudos to the team for this wonderful library ...
Specifically, I've been experimenting with version 2.15.0 of transformers.js.
Despite the fact that the model runs on the
web-assembly backend
, I've noticed some slowness in inference. In an attempt to address this issue, I experimented withwebgpu inference
using thev3
branch. However, the inference time did not meet my expectations.Is it possible for webgpu to significantly accelerate the inference time?
The text was updated successfully, but these errors were encountered: