Today I’ll show you how to install TensorFlow 2.7 on MacBook Pro M1 Pro. Stay tuned to the blog for the upcoming benchmarks and comparisons for data science. It wipes the floor with my M1 Macbook Pro from the last year and in some tests comes close to my custom configuration with RTX 3060Ti. New M1 Pro and M1 Max Macbooks don’t look as chunky in real life.Īnyhow, I opted for the “base” model 16" M1 Pro Macbook Pro with 10-core CPU, 16-core GPU, and 16 GB of RAM. I was a bit skeptical at first and decided not to buy the new laptop, but after seeing the 16" in the store I couldn’t resist. Apple markets these towards content creators, but rest assured, the performance you can squeeze as a data scientist is worth talking about. The new M1 Pro and M1 Max are what the professional users have been waiting for. Notice that while there are workarounds for certain TensorFlow features, other features like object_detection are not yet supported.Install and test TensorFlow 2.7 on the new M1 Pro and M1 Max chips from AppleĪpple’s M1 chip completely revolutionized the industry back in 2020. However, you can create a virtual environment following the instructions here. If your goal is to install TensorFlow, it isn’t officially supported yet on the M1. ![]() Let us know if you spot any mistakes or needed updates in the comments - I want to keep this as helpful as possible for people, and new technology tends to change very quickly. Thanks for following along! I hope this is helpful. You should now be set up to go - hack away! Make sure that it works by returning to step 6 and writing commands in your Jupyter notebook. Step 8: If you’ve followed the above steps, you should be good to go! I usually quit the Terminal ( hold Command and press Q) because I think that, sometimes, updates won’t immediately take effect without restarting the Terminal. Note that George also edits the docstring (the text between the “““ triple quotation marks ”””) to better reflect what the function is doing - checking for Apple Silicon. If you want to know more, George Hotz excellently describes the debugging process in his video you can jump to where he makes the change (47 minutes, 30 seconds) here. I recognize: this process is a very “do as I say and don’t ask any questions” process. Once you have made that edit and are sure you haven’t created a typo, then hold Control and hit x to exit.Once you do, then click "New" (on the right-hand side) and open up a Python 3 notebook. Step 6: In your Terminal, type jupyter notebook and hit Return. ![]() You want to stop your kernel from repeatedly dying. Now to fix the Jupyter kernel issue!Īt this point, Python and Jupyter should be installed. If that doesn't work, then head here and follow the instructions. Step 5: If you’ve installed Python but had trouble installing Jupyter, then go to your Terminal and type pip3 install jupyter. Once you’re done, head back up to Step 3. Note that the normal Anaconda download won’t work here, as the M1 computer isn’t 64-bit. ![]() You’ll need to login with your Apple ID and follow the instructions. Step 4: You can install Python by going to XCode Command Line Tools. New Mac operating systems should have it already installed, so if you're finding an error, make sure that there isn't a typo somewhere. If you get a command not found: python3 error, this means that you need to install Python.If you see something similar Python 3.X.Y, with the > at the bottom, then great! That means Python 3 is installed.The Python interpreter open in the Terminal. (It’s OK if you get a kernel error, we’ll figure that out later!) Skip to step 6. If your Terminal looks like the image directly below and a Jupyter interface opens in your browser like the the second image below, then Jupyter is installed.Step 2: In your Terminal, type jupyter notebook and hit Return. Step 1: Open up your Terminal by holding Command and hitting Space, which should bring up your Spotlight Search. (We’ll assume you don’t know if you have Jupyter on your computer yet! If you know with certainty that you have Jupyter downloaded, you can skip here.) Check if Python & Jupyter are already installed. That’s why we’re here! In this blog, we’ll walk through how to get Jupyter functional on your M1 computer - starting with the download step and ending with a fully operational Jupyter notebook. ) Your goal: Run a Jupyter notebook.Įither you’re opening a notebook right now and your kernel instantly dies, or you haven’t been able to get a Jupyter notebook operational yet. Voilà! Excited for my new MacBook! (Image by Roboflow.
0 Comments
Leave a Reply. |