The new installation instructions for tensorflow at https://developer.apple.com/metal/tensorflow-plugin/ don't work.
- The Conda script name is wrong. The old instructions would share a download link to a script with the same names as in the example shell instructions
- The conda environment now installs 3.9 instead of 3.10, which is behavior that was changed without documentation.
- Tensorflow cannot be imported because it is compiled against a different version of numpy than is installed in the downloadable conda environment.
- A manual,
python -m pip install --upgrade numpy
is required to run the test script.
The test script throws several warnings but works after the numpy upgrade.
- UserWarning: "
sparse_categorical_crossentropy
receivedfrom_logits=True
, but theoutput
argument was produced by a Softmax activation and thus does not represent logits. Was this intended?
Further issues may be related to the M1 Ultra.
- Could not identify NUMA node of platform GPU ID 0, defaulting to 0. Your kernel may not have been built with NUMA support.
- Failed to get CPU frequency: 0 Hz
My experiment was totally isolated while unboxing a new Mac Studio. I installed Xcode command line tools, then went to the developer documentation linked before, and bam.