Setup Mac for Machine Learning with TensorFlow in 13 minutes (works for all M1, M2)

5 Dec 2021 · 13 min
13:00

In this fast‑paced, hands‑on tutorial Daniel Bourke walks viewers through preparing an Apple‑silicon Mac (M1, M1 Pro, or M1 Max) for machine‑learning development with TensorFlow. He begins by installing Homebrew, then downloads and installs Miniforge 3 (a Conda distribution for ARM64). After restarting the terminal, he creates a project directory and a local Conda environment inside it. Using the Apple Conda channel, he installs the required TensorFlow dependencies, then installs the Apple‑optimized tensorflow‑macos package followed by the TensorFlow‑Metal plugin to enable GPU acceleration via Apple’s Metal framework. He also adds common data‑science libraries (Jupyter, Pandas, NumPy, Matplotlib, scikit‑learn) and optionally TensorFlow Datasets. Finally, he launches a Jupyter notebook to import the libraries and runs a short script that prints TensorFlow’s version and confirms that both the CPU and the M1 GPU are visible to TensorFlow, demonstrating successful GPU‑accelerated setup. Throughout, he points to a GitHub repo and description links for deeper explanations and invites viewers to ask questions in the comments.

Chapters

More from Daniel

youtube.com

Small Language Models (SLMs) Are the Future: Fine-Tuning AI That Runs on Your iPhone

7mo ago
youtube.com

Introducing Sunny - A MedGemma-Powered Skin Health Tracking App (Kaggle Competition Entry)

7mo ago
youtube.com

NVIDIA DGX Spark vs RTX 4090 | LLM inference, training speed and more

8mo ago
youtube.com

Benchmarking: NVIDIA DGX Spark & NVIDIA RTX 4090 | Part 4 - Comparing the results

8mo ago
youtube.com

Benchmarking: NVIDIA DGX Spark & NVIDIA RTX 4090 | Part 3 - Running LLMs on the RTX 4090

8mo ago
youtube.com

Benchmarking: NVIDIA DGX Spark & NVIDIA RTX 4090 | Part 2 - Formalizing the tests

8mo ago
youtube.com

Benchmarking: NVIDIA DGX Spark & NVIDIA RTX 4090 | Part 1 - Creating a series of tests

8mo ago
youtube.com

Local Multimodal RAG Pipeline End-to-End Tutorial | On DGX Spark

8mo ago
youtube.com

Local Multimodal RAG on the NVIDIA DGX Spark | Part 4 - Publishing our demo to Hugging Face

8mo ago
youtube.com

Local Multimodal RAG on the NVIDIA DGX Spark | Part 3.5 - Making a demo

8mo ago
youtube.com

Local Multimodal RAG on the NVIDIA DGX Spark | Part 3 - Putting it all together

8mo ago
See all content