Code Monkey home page Code Monkey logo

Comments (2)

nkreeger avatar nkreeger commented on May 11, 2024 1

Some answers to your questions:

Which version of tensorflow.js is currently supported?
We currently don't have an official supported version of TensorFlow.js. Stay tuned this is something we're working on at the moment.

Is there an example somewhere of tensorflow.js running on node-gles?

Nothing official/stable/etc. I do have a test branch that I'm using to sort out some bugs with f16 textures: https://github.com/google/node-gles/compare/kreeger-rpi-fix?expand=1

Last and most key question is: does this offer any benefit over using the C version of tensorflow for nodejs (I believe there is a tensorflow native module for node out there, based on my vague recollection) For instance, does node-gles allow tensorflow.js to fully exploit the GPU (if present on the system) whereas tensorflow nodejs native module is a CPU only version? Also, what if the system has multiple GPUs, does tensorflow.js have any plans to support local distributed training or distributed inference using multiple GPUs?

We do have Node.js bindings with the C library of libtensorflow. Those bindings exist in the following two packages:

We're thinking about the messaging here since there are many options for hardware execution paths. The existing Node.js bindings enable CPU support in libtensorflow and GPU w/ CUDA with libtensorflow. The headless WebGL backend (powered by node-gles) will enable GPU hardware acceleration on more devices than just CUDA enabled devices. Think of devices like IoT and mobile as well as some desktop/server integration strategies.

This is all preliminary work and hopefully we'll have something to showcase externally in the coming weeks.

from node-gles.

innerop avatar innerop commented on May 11, 2024

Great info, thank you. The trajectory of this project looks amazing in that there will be great benefit if we could run TF with more than just NVIDIA GPUs, without a CUDA to OpenCL conversion.

For the time being, given the early stage of this project, I may be better off going with tfjs-node-gpu on top of CUDA. But only on temporary basis until node-gles is fully ready!

from node-gles.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.