# How to Clone the Microsoft AI-For-Beginners Repository: Full vs Sparse Checkout Guide

> Learn to clone the Microsoft AI-For-Beginners repository efficiently. Discover full vs sparse checkout methods to download only what you need and save space.

- Repository: [Microsoft/AI-For-Beginners](https://github.com/microsoft/AI-For-Beginners)
- Tags: how-to-guide
- Published: 2026-07-03

---

**Yes, you can clone the AI-For-Beginners repository using either a standard `git clone` or a sparse checkout to exclude translation files and reduce download size.**

The `microsoft/AI-For-Beginners` repository is a public GitHub repository containing a complete 12-week curriculum, Jupyter notebooks, example scripts, and a Vue.js quiz application. Because the repository ships with more than 50 language translation files and associated images, a full clone can reach several gigabytes in size, making the sparse checkout method the preferred option for most learners.

## Cloning Methods Overview

The repository’s [`README.md`](https://github.com/microsoft/AI-For-Beginners/blob/main/README.md) offers two distinct approaches to obtaining the code:

1. **Full clone** – Downloads the entire repository including all translations and images.
2. **Sparse checkout** – Downloads only the core curriculum files while skipping the `translations` and `translated_images` directories, dramatically reducing disk usage.

Both methods provide full access to the Python notebooks, example scripts, and quiz application.

## Full Clone (Everything Included)

A full clone retrieves every file in the repository, including the complete translation matrix. This is useful if you need offline access to the course materials in multiple languages.

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

```

After cloning, the directory will contain the full 12-week curriculum structure, the `examples/` folder, and the `etc/quiz-app/` directory. Be aware that the translations and translated images contribute significantly to the repository size.

## Sparse Checkout (Recommended for Most Learners)

If you only need the English curriculum and want to save disk space, use Git’s sparse checkout feature. This method filters out the `translations` and `translated_images` directories while preserving all functional code and notebooks.

```bash

# 1. Clone with blob filtering and enable sparse checkout

git clone --filter=blob:none --sparse https://github.com/microsoft/AI-For-Beginners.git
cd AI-For-Beginners

# 2. Disable cone mode and exclude translation directories

git sparse-checkout set --no-cone '/*' '!translations' '!translated_images'

```

On Windows CMD, use the same commands but replace single quotes with double quotes:

```cmd
git sparse-checkout set --no-cone "/*" "!translations" "!translated_images"

```

This configuration ensures you receive all curriculum files, the [`environment.yml`](https://github.com/microsoft/AI-For-Beginners/blob/main/environment.yml) specification, and the example scripts while omitting the multi-language assets.

## Verifying Your Clone and Running Examples

Once cloned, verify the installation by running the provided examples or setting up the development environment.

### Run a Quick Python Example

The repository includes a minimal sanity check script to confirm your Python environment can access the course materials.

```bash

# Navigate to the repository root

cd AI-For-Beginners

# Run the hello world example

python examples/01-hello-ai-world.py

```

### Set Up the Conda Environment

The [`environment.yml`](https://github.com/microsoft/AI-For-Beginners/blob/main/environment.yml) file defines the required Python 3 environment with TensorFlow, PyTorch, and other dependencies. Following the instructions in [`lessons/0-course-setup/setup.md`](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/0-course-setup/setup.md), create and activate the environment:

```bash

# Create the environment from the specification

conda env create -f environment.yml

# Activate the environment

conda activate ai4beg

# Launch Jupyter Lab to explore the curriculum

jupyter lab

```

### Launch the Vue.js Quiz App

The repository includes an interactive quiz application built with Vue.js. Located in `etc/quiz-app/`, this component provides knowledge checks for the curriculum modules.

```bash

# Navigate to the quiz application directory

cd etc/quiz-app

# Install dependencies

npm install

# Start the development server (typically http://localhost:8080)

npm run serve

```

## Key Repository Files to Know

Understanding the repository structure helps you navigate the curriculum efficiently after cloning:

- **[`README.md`](https://github.com/microsoft/AI-For-Beginners/blob/main/README.md)** – Contains the main repository overview, curriculum map, and cloning instructions.
- **[`environment.yml`](https://github.com/microsoft/AI-For-Beginners/blob/main/environment.yml)** – Conda environment specification listing Python 3, TensorFlow, PyTorch, and supporting libraries.
- **[`lessons/0-course-setup/setup.md`](https://github.com/microsoft/AI-For-Beginners/blob/main/lessons/0-course-setup/setup.md)** – Step-by-step guide for configuring the development environment and running Jupyter.
- **[`examples/01-hello-ai-world.py`](https://github.com/microsoft/AI-For-Beginners/blob/main/examples/01-hello-ai-world.py)** – Minimal verification script to test your local setup.
- **[`etc/quiz-app/package.json`](https://github.com/microsoft/AI-For-Beginners/blob/main/etc/quiz-app/package.json)** – Node.js manifest for the Vue.js quiz application, defining npm scripts and dependencies.
- **[`translations/README.md`](https://github.com/microsoft/AI-For-Beginners/blob/main/translations/README.md)** – Index of supported languages, useful if you later decide to fetch specific translation files.

## Summary

- **You can clone the AI-For-Beginners repository** using standard Git commands because it is a public repository under the Microsoft organization.
- **Two cloning strategies exist**: a full clone (several GB including translations) or a sparse checkout (smaller, English-only curriculum).
- **Sparse checkout excludes** the `translations/` and `translated_images/` directories using `--filter=blob:none` and `sparse-checkout set` commands.
- **After cloning**, use [`environment.yml`](https://github.com/microsoft/AI-For-Beginners/blob/main/environment.yml) to build the Conda environment and run [`examples/01-hello-ai-world.py`](https://github.com/microsoft/AI-For-Beginners/blob/main/examples/01-hello-ai-world.py) to verify your setup.
- **The Vue.js quiz app** resides in `etc/quiz-app/` and requires `npm install` and `npm run serve` to launch locally.

## Frequently Asked Questions

### Can I clone the AI-For-Beginners repository without downloading the translation files?

Yes. Use Git’s sparse checkout feature to exclude the `translations` and `translated_images` directories. Clone with `--filter=blob:none --sparse`, then run `git sparse-checkout set --no-cone '/*' '!translations' '!translated_images'` to download only the core curriculum files.

### How large is the AI-For-Beginners repository when cloned?

A full clone including all 50+ language translations and associated images can reach several gigabytes in size. A sparse checkout excluding these directories is significantly smaller, typically under a few hundred megabytes, depending on the core curriculum content.

### What Python version and dependencies are required after cloning?

The repository requires Python 3 and uses the dependencies specified in [`environment.yml`](https://github.com/microsoft/AI-For-Beginners/blob/main/environment.yml), which includes TensorFlow, PyTorch, Jupyter, and other data science libraries. Create the environment using `conda env create -f environment.yml` and activate it with `conda activate ai4beg` before running the notebooks.

### Is the AI-For-Beginners repository free to use and modify?

Yes, the repository is public and open-source under the Microsoft organization. You can clone, fork, and modify the code according to the repository’s license terms. The curriculum, examples, and quiz application are all available for educational and personal use.