Real, but naive, question: does TensorFlow have meaningful share outside Google? I've been in the HuggingFace ecosystem and it's overwhelmingly PyTorch, IIRC 93%, (I can't find the blog post that said it, but only gave it 2 minutes)
TF used to be the most popular framework by a large margin, so a lot of things that were started 5+ years ago are still on it. PyTorch is most popular in places that only started more recently or have the ability to switch easily, e.g. new startups, research, LLMs, education, and companies that have the resources to do a migration project.
Since the browsers work as a sort of unified experience (to some extent) that would be quite good. But sadly, I haven't seen the wide adoption of PWA or similar technology. Most usually just create their own app, which in many cases really isn't even needed, since the app is just a wrapped version of their website.
A question that comes to mind is: How significant is the performance difference between using CPUs and GPUs for these machine learning models in web applications, and are there specific types of applications where one would significantly outperform the other?
Hello there, I am one of the authors of the piece. Fun fact just for the lols we have tried running a 1.3B parameter unoptimized TensorFlow.js model in this system just to see if it would work (could be much more memory efficient with tweaks), and it does. It uses about 6GB RAM and 14GB VRAM when using V100 GPU on Colab (15GB VRAM limit) but runs pretty fast otherwise once the initial load is complete! Obviously plenty of room to make this use much less memory in the future - we just wanted to check we could run such things as a test for now.
At least on desktop you generally know where the line is, on mobile there's a mystery limit you're not allowed to cross, and you're also not allowed to know where the line is until you reach it, which might gracefully throw an error or might result in your tab being force-killed, and you're not allowed to know which of those will happen either.
I hate it so much. So arbitrary and capricious. I would say this is currently the number one blocker for the web as a serious platform. And they're doing it on purpose.
For this blog post we are using Chrome for the testing environment which has WebGPU turned on by default now and other common browsers should hopefully follow suit, but given we are using Chrome here we know WebGPU will be available if the WebAI is using that (which many people are turning to for diffusion models and LLMs as its so much faster to run those types of models).
But yes, I am all for better support on all the things too, we have many WASM users too, and when anything new comes out there, this set of instructions can still be used to leverage testing that too as its just Chrome running on Linux essentially with the right flags set.
[+] [-] refulgentis|2 years ago|reply
[+] [-] hatthew|2 years ago|reply
[+] [-] summerlight|2 years ago|reply
[+] [-] nwoli|2 years ago|reply
[+] [-] antimora|2 years ago|reply
For Burn project, we have WebGPU example and I was looking into how we could add automated tests in the browser. Now it seems possible.
Here is the image classification example if you'd like to check out:
https://github.com/tracel-ai/burn/tree/main/examples/image-c...
[+] [-] dblitt|2 years ago|reply
https://www.destroyallsoftware.com/talks/the-birth-and-death...
[+] [-] tcper|2 years ago|reply
[+] [-] LoveMortuus|2 years ago|reply
[+] [-] rubatuga|2 years ago|reply
[+] [-] bhakunikaran|2 years ago|reply
[+] [-] FL33TW00D|2 years ago|reply
[+] [-] FL33TW00D|2 years ago|reply
[+] [-] not_a_dane|2 years ago|reply
[+] [-] jmayes|2 years ago|reply
[+] [-] jsheard|2 years ago|reply
[+] [-] abxytg|2 years ago|reply
[+] [-] FL33TW00D|2 years ago|reply
[+] [-] leeeeeepw|2 years ago|reply
[deleted]
[+] [-] sylware|2 years ago|reply
[+] [-] lxe|2 years ago|reply
[+] [-] jmayes|2 years ago|reply
But yes, I am all for better support on all the things too, we have many WASM users too, and when anything new comes out there, this set of instructions can still be used to leverage testing that too as its just Chrome running on Linux essentially with the right flags set.
[+] [-] NavinF|2 years ago|reply