AI-For-Beginners
by microsoft
Free 12-week Microsoft course with 24 lessons that introduces artificial intelligence to beginners.
- Stars
- 71,245 stars
- Forks
- 14k forks
- Last push
- 9 days ago
- Activity
- Active
# Clone without the translations$ 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'Commands from the project's README. Run them after installing (see below).
Overview
Understand AI-For-Beginners in 60 seconds
- What it does
- AI for Beginners is a free 12-week, 24-lesson Microsoft curriculum on artificial intelligence. It covers symbolic AI, neural networks, computer vision, natural language processing, genetic algorithms, reinforcement learning, multi-agent systems and AI ethics, with Jupyter notebooks in PyTorch and TensorFlow.
- The problem it solves
- AI courses often jump straight to one framework or skip the foundations. This curriculum walks through the main approaches to AI with theory, runnable notebooks, labs and quizzes, at a beginner-friendly pace.
- Why choose it
- Choose it for a broad, free foundation in AI with code in two major frameworks. It doesn't cover classic machine learning (see ML for Beginners) or business AI.
- Who should use it
- Beginners learning AI and deep learning
- Students and teachers wanting a structured curriculum
- Developers comparing PyTorch and TensorFlow
- Learners in 50+ languages via translations
- Setup difficulty
You'll need:
- Git
- Python with Jupyter
- PyTorch or TensorFlow, depending on the notebook
- Or VS Code with a Codespace
How AI-For-Beginners works
The curriculum has 24 lessons plus extras across seven parts: introduction and history of AI; symbolic AI with knowledge representation and expert systems; neural networks from perceptrons to building your own framework; computer vision (CNNs, transfer learning, autoencoders, GANs, object detection, segmentation); NLP (embeddings, RNNs, transformers, named entity recognition, large language models); other techniques (genetic algorithms, deep reinforcement learning, multi-agent systems); and AI ethics.
Each lesson has pre-reading, executable Jupyter notebooks (often in both PyTorch and TensorFlow), labs for some topics, and links to Microsoft Learn modules. Quizzes are in a quiz app that can run locally or online.
For complete beginners, an examples folder has short programs such as Hello AI World, a simple neural network, an image classifier and text sentiment. A setup lesson and a guide for running in VS Code or a Codespace help you get started. The repository includes 50+ translations, so a sparse clone is recommended.
Features
Key features
24 lessons
12 weeks from AI history to ethics.
PyTorch and TensorFlow
Notebooks often in both frameworks.
Labs and quizzes
Practice problems and a quiz app.
Beginner examples
Hello AI World and other short programs.
Broad coverage
Symbolic AI, vision, NLP, RL and multi-agent systems.
50+ languages
Translated with Co-op Translator.
Strengths
- Free, well-structured Microsoft course
- Covers many AI approaches
- Notebooks in two frameworks
- MIT licensed
Limitations
- Doesn't cover classic machine learning or business AI
- Some models are not state of the art, as the README notes
- Full repository is large because of translations
Practical use cases
Self-study
Follow the 12-week plan.
Teach a class
Use the curricula setup lesson for educators.
Framework comparison
Run the same lesson in PyTorch and TensorFlow.
Installation
Install AI-For-Beginners
Commands come from AI for Beginners's README. AIRepoHub hasn't run them yet. View source
Prerequisites
- Git
- Python and Jupyter
Supported systems
- Windows
- macOS
- Linux
- 1
Clone without translations
Shellgit clone --filter=blob:none --sparse https://github.com/microsoft/AI-For-Beginners.gitcd AI-For-Beginnersgit sparse-checkout set --no-cone '/*' '!translations' '!translated_images' - 2
Follow the setup lesson
lessons/0-course-setup/setup.md sets up your environment.
- 1
Fork the repository on GitHub
- 2
Clone it
Shellgit clone https://github.com/microsoft/AI-For-Beginners.git
- 1
Open in a Codespace
See lessons/0-course-setup/how-to-run.md.
Configuration and API keys
| Setting | What it's for |
|---|
First run
- 1
Start with the beginner examples
examples/README.md, beginning with Hello AI World.
AI-For-Beginners's documentation doesn't include sample output, so we don't show any. Expect the results in your terminal.
Your first project
Build your first neural network lesson
Work through the perceptron lesson with its notebook.
Before you start
- The repository cloned
- Python with Jupyter
- 1
Read lesson 03
lessons/3-NeuralNetworks/03-Perceptron/README.md
- 2
Run the notebook
Open Perceptron.ipynb in the same folder and run each cell.
- 3
Take the lesson quiz
Linked from the lesson, or in the online quiz app.
What to expect
A trained perceptron you built in the notebook, and an understanding of how it learns.
Next steps
- Build your own framework in lesson 04
- Move to PyTorch or TensorFlow in lesson 05
- Try the computer vision section
Costs and requirements
What it costs to run
- License
- MIT.Free
- Course
- Free.Free
- Compute
- Runs on your computer; GitHub may bill Codespaces usage depending on your plan.Depends
Troubleshooting
Common setup issues
Clone is slow or huge
Use the sparse clone that skips translations.
Environment problems
Follow lessons/0-course-setup/setup.md, or run in a Codespace.
Need classic machine learning
That's covered by Microsoft's ML for Beginners curriculum.
Alternatives
Similar AI repositories
LLMs-from-scratch
rasbt
Step-by-step code and notebooks that teach you to build a ChatGPT-like language model in PyTorch from scratch.
ML-For-Beginners
microsoft
Free 12-week Microsoft course with 26 lessons that teaches classic machine learning to beginners.
superpowers
obra
Collection of agent skills and a working method that guide AI coding agents through software development step by step.
andrej-karpathy-skills
multica-ai
A single CLAUDE.md file of coding rules, based on Andrej Karpathy's notes, that makes Claude Code ask before assuming, keep code simple and change only what you asked.