AI-for-Beginners System Requirements: Minimum Hardware and Software Setup Guide

You can run Microsoft's AI-for-Beginners course on any modern workstation with Python 3.8+, 8 GB RAM, and Conda—no GPU required for the core curriculum.

The AI-for-Beginners repository by Microsoft provides a complete 12-week, 24-lesson curriculum covering neural networks, computer vision, natural language processing, and reinforcement learning. This guide breaks down the exact system requirements based on the official environment.yml, setup documentation, and source code structure.


Operating System and Platform Support

The course infrastructure is built on cross-platform Conda, supporting three primary operating systems:

  • Windows 10 or 11 (64-bit)
  • macOS 12 or later (Intel and Apple Silicon)
  • Linux — Ubuntu 20.04 LTS or equivalent recommended

The setup scripts and conda commands function identically across all platforms. For Windows users, Git Bash or WSL2 provides the smoothest experience with the sparse checkout commands documented in the repository.


Software Requirements

Python Version

The environment.yml file at the repository root pins Python 3.8 or newer. This specification ensures compatibility with TensorFlow, PyTorch, and the scientific Python stack used throughout the lessons.


# Verify your Python version

python --version

Conda Environment Manager

You need either Miniconda or Anaconda. The repository provides a complete environment definition in [environment.yml](https://github.com/microsoft/AI-For-Beginners/blob/main/environment.yml) that installs all dependencies in one command:

conda env create -f environment.yml
conda activate ai4beg

The environment name ai4beg is hardcoded in the YAML file and activates a preconfigured stack including:

  • TensorFlow and Keras
  • PyTorch
  • OpenCV
  • Jupyter Notebook/Lab
  • NumPy, Pandas, Matplotlib, Scikit-learn

Jupyter Interface

Launch the interactive lessons with either:

jupyter lab        # recommended

jupyter notebook   # legacy interface

Hardware Specifications

Minimum RAM: 8 GB

8 GB RAM is the practical minimum for running most notebooks comfortably. Early lessons (Perceptrons, basic neural networks) execute fine at this level. Later modules—particularly GANs in Lesson 9 and Transformers in Lessons 10-12—load larger models and datasets that push memory utilization higher.

Lesson Type Typical Memory Usage
Introductory (Perceptron, Logistic Regression) 2–4 GB
Convolutional Neural Networks 4–6 GB
GANs and Transformers 6–12 GB

Storage: 1.5 GB Base, 4 GB+ Full Clone

The core repository requires approximately 1.5 GB. However, the translations/ folder containing 50+ language localizations adds 2+ GB. Use sparse checkout to minimize download:


# Full clone (download everything)

git clone https://github.com/microsoft/AI-For-Beginners.git

# Sparse checkout (exclude translations, ~500 MB)

git clone --filter=blob:none --sparse https://github.com/microsoft/AI-For-Beginners.git
cd AI-For-Beginners
git sparse-checkout set --no-cone '/*' '!translations' '!translated_images'

This technique is documented in the README's "Sparse Checkout" section.

CPU Requirements

Any modern multi-core CPU suffices. The curriculum defaults to CPU execution. All 24 lessons compile and run without specialized hardware.


Optional: GPU Acceleration

An NVIDIA GPU with CUDA 11 or newer is optional but beneficial for:

  • Lesson 4: Convolutional Neural Networks (faster training on CIFAR-10)
  • Lesson 9: Generative Adversarial Networks
  • Lessons 10–12: Transformer architectures

GPU support is not required for the basic curriculum. Verify CUDA availability after environment setup:

import torch
print('PyTorch CUDA available:', torch.cuda.is_available())
import tensorflow as tf
print('TensorFlow GPUs:', tf.config.list_physical_devices('GPU'))

The README's "GPU Support for Advanced Lessons" section provides additional configuration guidance for educators running class-wide demonstrations.


Network and External Dependencies

Internet access is mandatory for:

  1. Initial Conda environment creation (downloads ~500 MB of packages)
  2. Dataset downloads triggered within notebooks (MNIST, CIFAR-10, IMDB, etc.)
  3. Optional translation file retrieval

Pre-downloading datasets is not required; notebooks fetch assets automatically on first run.


Quick Start Verification

After completing setup, validate your installation by running the first neural network lesson:

jupyter notebook lessons/3-NeuralNetworks/03-Perceptron/Perceptron.ipynb

If the notebook executes through all cells without import errors, your system meets all requirements.


Key Configuration Files

File Location Purpose
environment.yml Repository root Defines Python version and all package dependencies
lessons/0-course-setup/setup.md lessons/0-course-setup/ Step-by-step installation instructions
lessons/0-course-setup/how-to-run.md lessons/0-course-setup/ VS Code, Codespaces, and Binder alternatives
lessons/0-course-setup/for-teachers.md lessons/0-course-setup/ Hardware recommendations for classroom deployments

Summary

  • Operating Systems: Windows 10/11, macOS 12+, Ubuntu 20.04+ Linux
  • Python: 3.8 or newer (specified in environment.yml)
  • Package Manager: Miniconda or Anaconda required
  • RAM: 8 GB minimum, more for advanced lessons
  • Storage: 500 MB with sparse checkout, 4 GB for full clone
  • GPU: Optional NVIDIA with CUDA 11+ for accelerated deep learning
  • Network: Required for environment setup and dataset downloads

Follow the commands in environment.yml and lessons/0-course-setup/setup.md to complete installation on any supported platform.


Frequently Asked Questions

Can I run AI-for-Beginners without a GPU?

Yes. The entire 24-lesson curriculum runs on CPU. GPU acceleration is optional and only beneficial for specific deep learning modules like GANs and Transformers.

How much disk space do I actually need?

With sparse checkout excluding translations, approximately 500 MB. A full clone including all 50+ language folders requires 4 GB or more. The sparse checkout command git sparse-checkout set --no-cone '/*' '!translations' '!translated_images' is documented in the README.

Is Apple Silicon (M1/M2/M3) supported?

Yes. The Conda-based setup works on macOS 12 and later, including Apple Silicon. PyTorch and TensorFlow wheels are available for the arm64 architecture through the standard environment.yml.

What if I have less than 8 GB RAM?

You can complete early lessons (Perceptrons, basic neural networks) with 4–6 GB. For later lessons, use cloud alternatives: GitHub Codespaces, Google Colab, or Binder instances referenced in lessons/0-course-setup/how-to-run.md.

Have a question about this repo?

These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:

Share the following with your agent to get started:
curl -s "https://instagit.com/install.md"

Works with
Claude Codex Cursor VS Code OpenClaw Any MCP Client

Maintain an open-source project? Get it listed too →