How to Install TensorFlow GPU for Mac M1/M2 with Conda

How to Install TensorFlow GPU for Mac M1/M2 with Conda

Jeff Heaton

1 год назад

60,248 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

T. Isac
T. Isac - 25.08.2023 00:59

I didnt understand how to run the file tensorflow-apple-metal.yml from the Terminal

Ответить
Ashit Nayak
Ashit Nayak - 08.08.2023 20:52

Thanks a ton professor. It worked like a charm.

Ответить
Rohan Mahajan
Rohan Mahajan - 07.08.2023 05:51

ive been trying to do this for weeks and this is the only tutorial that actually worked for me. i can finally go forward with my tensor flow machine learning projects thank you so much

Ответить
Yujie Wang
Yujie Wang - 12.07.2023 18:13

Thank you so much, professor!! Your instruction is super clear and it really works! I've been trying to find a way to incorporate tensor flow on my mac and your instruction is so far the only one that works for me!!!🤩
I just have a really quick question, I am wondering if I ever need to install an external package that is not already in my "Python 3.10 (tensorflow)" kernel, how could I install the new package into the tensorflow kernel on my jupyter notebook? packages such as seaborn etc., (I am not sure whether I elaborated my question well enough) Thank you again for all your help!!

Ответить
Sarder Fakhrul Abedin
Sarder Fakhrul Abedin - 08.07.2023 17:26

Thank you for the nice tutorial! I installed Tensorflow in M2 and ran the commands to test the installation. I got the following error, "AttributeError: module 'tensorflow.keras' has no attribute '__version__'". This is because starting with TensorFlow 2.3, the version of Keras included in TensorFlow no longer has a separate version number. The Keras API included in TensorFlow is guaranteed to be compatible with that TensorFlow version. Therefore, the Keras version is the same as the TensorFlow version.

Ответить
Robert McKee
Robert McKee - 27.06.2023 23:02

Thanks!

Ответить
Tuğçe Saygın
Tuğçe Saygın - 13.06.2023 21:05

Thank you so much!

Ответить
Maël Poncin
Maël Poncin - 22.05.2023 14:46

Thank you very much! Most complete tutorial I've seen on the web.

Ответить
Jae Young Park
Jae Young Park - 19.05.2023 09:22

Thank you so much!!! I can't tell you how many times I have uninstalled and reinstalled tensorflow and anaconda. Thanks to the professor, I was able to solve the problem quickly. I really appreciate it.

Ответить
ricocode
ricocode - 15.05.2023 03:45

Worked as of May 14, 2023! Hickup encountered when running: conda env create -f tensorflow-apple-metal.yml -n tensorflow
I had to run: python -m pip install tensorflow-macos
Then: python -m pip install tensorflow-metal

Ответить
Alrik Schörling
Alrik Schörling - 07.05.2023 21:31

This saved me! You're a computer science hero!

Ответить
eggmel1
eggmel1 - 04.05.2023 12:03

few words for you: SUPER AMAZING - thank you

Ответить
cnuh_datacenter
cnuh_datacenter - 27.04.2023 15:31

Thank you so much, professor!!! I can use GPU on my Mac Book.

Ответить
Mark Xiang Li
Mark Xiang Li - 23.04.2023 15:07

thank you legend! My eyes are watery when I finally see that "GPU is available". Being a rookie in DL and having a M1 at the same time is rough...

Ответить
Emir Öztürk
Emir Öztürk - 23.04.2023 01:51

Thank you! Now, M1 GPU works like a charm. Even faster than google colab GPU.

Ответить
V's Websites
V's Websites - 18.04.2023 01:41

You are a genius and Thank you, Jeff Heaton. I have been struggling to install Tensorflow for more than a month now!!

Ответить
The Mighty Code Coder
The Mighty Code Coder - 17.04.2023 22:49

I could not install using the pkg file that you suggested. After consulting ChapGPT I was able to install everything using the .bash file on MiniConda. Everything 
works great now. Thank you for your video!

Ответить
hedge
hedge - 10.04.2023 17:55

Can’t thank you enough! Wish I ventured out to this video instead of wasting 5 hours of day.

Ответить
A B
A B - 09.04.2023 16:02

Thx a lot from Germany! :)

Ответить
William Leith
William Leith - 02.04.2023 01:18

Extremely helpful. Thank you so much!

Ответить
terence0till
terence0till - 29.03.2023 14:21

When I try to install the given Miniconda version it says that it isn't compatible with my macOS. Anyone got a solution for that? TY

Ответить
Ibrahim Salaudeen
Ibrahim Salaudeen - 24.03.2023 14:21

Thanks Prof.

Ответить
Aaqib Majeed
Aaqib Majeed - 24.03.2023 14:02

i followed along exactly but model.fit() does not work it throws some error. what to do, can anybody help please

Ответить
Miloš Aleksić
Miloš Aleksić - 24.03.2023 02:58

Everything worked fine, but how can I open the Environment and the Kernel in VSCode in my Project?

Ответить
LeicaM11
LeicaM11 - 20.03.2023 00:02

Has the GPU of Apple silicon been used or the neural network cores?

Ответить
Pablo Aguirre Solana
Pablo Aguirre Solana - 15.03.2023 05:47

Dear Jeff, I just installed the program as is, following each step, on my brand new Mac Air M2. It worked perfectly, thanks so much and appreciate all the work that you put into creating the notebook in git hub and the video.

Ответить
Rahil Vig
Rahil Vig - 12.03.2023 17:09

Anyone else getting this error: SpecNotFound: Invalid name 'tensorflow', try the format: user/package
when running this line: conda env create -f tensorflow-apple-conda.yml -n tensorflow

Ответить
DS Huang
DS Huang - 25.02.2023 09:57

Thank you so much, really help me a lots

Ответить
MAHESH H 1960351
MAHESH H 1960351 - 24.02.2023 07:41

I cannot thank you enough professor, I've been struggling to install tensor flow on my Mac for months now. Thank you so much for the insightful explanation, made my day!

Ответить
Xinm wang
Xinm wang - 14.02.2023 16:52

没有字幕,我没有听懂 install tensorflow-macos

Ответить
Alex Irabor
Alex Irabor - 14.02.2023 14:37

Thanks for your guidance. I initially struggled to install TensorFlow on my M1 Mac but could only do it after watching this video.

Ответить
Julian Schmitz
Julian Schmitz - 11.02.2023 19:31

"I've never seen a problem installing this." Yeah well....

Ответить
The Artistic Vision
The Artistic Vision - 11.02.2023 12:22

Thank you very much Sir....Please make video on How to install fbprophet on mac1.. Its a request

Ответить
Johanna Alfonso
Johanna Alfonso - 10.02.2023 21:10

I am not following your course, but recently I had to switch from Linux to Mac and this was really helpfull to me. Thanks a lot, specially the first part about downloading the right Miniconda/Anaconda.

Ответить
Derek Loyer
Derek Loyer - 04.02.2023 21:17

Not one of your students, but your videos constantly bail me out of snags I run into. Thanks for the content we really appreciate it and would love to have you on our podcast.

Ответить
benignma
benignma - 28.01.2023 20:20

I was getting errors trying to fit a model on an M2 chip. Like others online, downgrading to tensorflow-macos 2.9 and tensorflow-metal 0.5 allowed fitting to occur

Ответить
Артур Красномаков-Пауковский
Артур Красномаков-Пауковский - 28.01.2023 15:09

The only person from the whole internet who gave a working instruction upon how to install TensorFlow on Mac M1. Big thank you!

Ответить
didier Leprince
didier Leprince - 27.01.2023 12:23

A great merci (:

Ответить
Andres Hofmann
Andres Hofmann - 21.01.2023 12:42

awesome video!

Ответить
Victor Leung
Victor Leung - 21.01.2023 09:16

Thank you. Finally got tensorflow running with metal. Apple's instruction missed a lot of steps compared to yours.

Ответить
Yogi
Yogi - 17.01.2023 18:46

This video instruction works like a charm in my macbook m1, thanks Sir

Ответить
Dominic Culver
Dominic Culver - 16.01.2023 19:11

Hey Jeff, Thanks for the video! I used your tutorial to install tenor flow on my new Mac (M1 chip) before, back in December. Everything was working great, but today I tried building a neural network and with an Adam optimizer but I got an error. In particular I got a NotFoundError. Has anyone else had this problem?

Ответить
Jonathan Fetterolf
Jonathan Fetterolf - 13.01.2023 17:29

The end to a day-long journey through terminal and every combination in version of Python/Numpy, Anaconda, miniConda etc. Thank you VERY much.😁

Ответить
Akshay Khandizod
Akshay Khandizod - 31.12.2022 21:56

Thank you. It just works !!!
Helped a lot to install GPU support for my MacBook Pro M1.

Ответить
Jack McNamara
Jack McNamara - 27.12.2022 15:28

Thank you so much for this super helpful tutorial. A few follow-ups others may find helpful. As of at least Dec 2022 there seems to be a continuing issue with the latest versions of tensorflow-macos and tensor flow-metal. there was a reference to this on an apple developer forum to revert back to tensorflow-macos==2.9 and tensorflow-metal==0.5.0. Doing this fixed it. Also, I really wanted to use the Spyder environment. After many failed attempts I learned that I just needed to add -spyder to the .yml file and follow the install as normal.

Ответить