# M1 Apple silicon GPU for node-js

**URL:** <https://discuss.ai.google.dev/t/m1-apple-silicon-gpu-for-node-js/31436>\
**Category:** General Discussion\
**Tags:** mac\_os, gpu, node-js\
**Created:** [January 6, 2023, 5:30pm UTC](https://discuss.ai.google.dev/t/m1-apple-silicon-gpu-for-node-js/31436 "2023-01-06T17:30:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elma\_Ranin](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/elma_ranin/32/14823_2.png) [@Elma\_Ranin](https://discuss.ai.google.dev/u/Elma_Ranin)\
**Post date:** [January 6, 2023, 5:30pm UTC](https://discuss.ai.google.dev/t/m1-apple-silicon-gpu-for-node-js/31436/1 "2023-01-06T17:30:23Z")

</div>

Hello guys, I’m newbie in ML and looking for a way to use `tensorflow-metal` within node-js. I’ve tried `tensorflow-metal` with python and it works like a charm. I can’t find any info about it integration with `tfjs-node-gpu` package. Is there plans to implement this feature?

#help_request #apple_silicon #node-js #gpu

---

<div class="post-metadata">

**Author:** ![Rahul\_Gaikwad](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/rahul_gaikwad/32/8151_2.png) [@Rahul\_Gaikwad](https://discuss.ai.google.dev/u/Rahul_Gaikwad)\
**Post date:** [January 9, 2024, 2:34pm UTC](https://discuss.ai.google.dev/t/m1-apple-silicon-gpu-for-node-js/31436/3 "2024-01-09T14:34:33Z")

</div>

Hi, @Elma_Ranin

Welcome to TensorFlow Forum!

I apologize for the delayed response and as far my current understanding `TensorFlow.js` with `tfjs-node-gpu` this combination brings TensorFlow.js with `WebGL` support to `Node.js` enabling GPU acceleration for web machine learning models while it doesn’t directly access the M1 GPU’s full Metal capabilities it provides WebGL-based GPU acceleration for compatible models.This approach is generally easier to use but might not deliver the same performance.

`TensorFlow.js` **Node.js** GPU support heavily relies on the underlying TensorFlow C++ library which in turn relies on TensorFlow support for Apple Silicon. If TensorFlow adds support for M1 chips and GPU acceleration, TensorFlow.js might inherit this support in the future and as per our [official documentation](https://www.tensorflow.org/install/pip#macos)  
**There is currently no official GPU support for MacOS.**

Just let me know, If I have missed something. Thank you for your understanding and patience.
