-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
GPU.js Adoption #30
Comments
Crazy suggestion, you could build on top of Tensorflow.js like what Ml5.js has done. You would get GPU browser support, and fast Node.js support (with CUDA). But that would be a large rewrite :) |
@dan-ryan I'm crazy enough to explore the possibility; but I really would like to keep the API as simple as in-humanely possible (i.e. "teach a year old, in 20 minutes"). I would love to create "plug-gable" "firmware" layer where we could support different computational unit (e.g. CPU, GPU, TPU, etc.) automatically without off-loading the "figure it out" part on someone. I'll have to take some time next week to really tackle some solid architect-ing; but I would love to, ideally, be a zero dependency library with just some simple C++ bindings to CUDA core support. The phrase "strong defaults" comes to mind. I'll have to give this a deeper look - maybe do it in parts, or on a contiguous roadmap (avoid Angular v1 to v2 scenario). |
Well since you said you were crazy enough to explore... :) Tensorflow seems to be the standard low-level neuro-network library on the desktop. Tensorflow.js has only been around a year before that it was called DeepLearn.js. I see Tensorflow.js becoming the standard on browsers. It's pushed by Google and they have the money. Carrot could be rewritten on top of Tensorflow.js like what M15.js has done, and we would get all the low-level advantages with that. The strengths Carrot could have that it has a simple API and we support high-level algorithms. There are also many other libraries that would give us GPU support. |
Neataptic had this issue with ideas: |
Guys, GPU.js now runs on node, and I believe v2 rc14 will be out soon. Perhaps tomorrow. |
@robertleeplummerjr I'm playing around with All good so far - I did note a small kink (gpujs/gpu.js#478), but otherwise working like a charm right now. I'll keep you posted. |
How is implementation going? |
Really well so far; but I hit an impasse (unrelated). We've been trying to clean up the code base, standardize it, and write test to clean a little bit of the technical debt we were carrying and help speed up the feature unit economics on the project. I'm waiting to get some motherboards for a handful of NVIDIA Tesla v100's that I have at home so I can a better testing environment than simulating a GPU - it keeps eating up my Chromebook (🔥). I'm talking to a friend of mine in a small IT startup right now who has a few laying around - so I'll like "Frankenstein" a rig for model development and testing grounds for In the meantime, I'm going to focus on adding streaming to the library. |
External ResponseThat would be super cool! ...email (luis@liquidcarrot.io)? Inner Thoughts |
Details sent. |
For those following this, things with GPU sponsor have been going nicely on all fronts. |
@robertleeplummerjr The introduction was awesome! 👌 Will begin testing as soon as we get setup. |
What I really need from you and others is benchmark data, if you have a chance. Also if you find any bugs. |
I'll shoot you over a more detailed report later, but "off-the-cuff" GPU.js starts outpacing CPU on my modified Chromebok (4 Core - 1.4GHz) around 1300 paramaters (i.e matrix multiplications of at least 1300x1 * 1300x1) - after that it scales REALLY well. But creating the kernel has some overhead initially - which totally makes sense. I haven't really found any strong bugs yet more like "little quirks", but I'll shoot them over to your issues threads as I start noting them a little more concretely. 👍 |
Ty! Also, video element will be a valid input for GPU.js v2. Which will be released today. |
The text was updated successfully, but these errors were encountered: