Unable to Use M1 Mac Pro Max GPU for TensorFlow Model Training

Hi Everyone,

I'm currently facing an issue where TensorFlow is unable to detect the GPU on my M1 Mac for model training. When I run the following code to check for available GPUs:

import tensorflow as tf

print("Num GPUs Available: ", len(tf.config.list_physical_devices('GPU')))

Num GPUs Available: 0

I have already applied the steps mentioned in the developer apple document. https://developer.apple.com/metal/tensorflow-plugin/

System Information:

Device: M1 Mac Pro Max

Python Version: 3.12.2

TensorFlow Version: 2.17.0

OS: macOS Sequoia (15.1)

Questions:

Is there any additional configuration required to enable GPU support on M1 Macs?

Are there specific TensorFlow versions that I should be using for better compatibility?

Has anyone else faced this issue, and how did you resolve it?

Unable to Use M1 Mac Pro Max GPU for TensorFlow Model Training
 
 
Q