8 lessons · Free · No GPU
From your first line of Python to your own model
Run your first Python example in the browser. By the final lesson, you’ll train a model to recognise the type of incident from its description.
You can start without an account.
“The API takes too long to respond”
Learns from examples on a CPU
Write Python
Functions and data, with examples you can run in your browser.
Train a model
Prepare examples and train a small classifier on your CPU.
Check the result
Measure quality on new data and find out where the model makes mistakes.
Your eight steps
- 01Python for AI: your environment and first function
- 02Records, functions and clear errors
- 03JSONL: reading data one line at a time
- 04NumPy: turning text into numbers
- 05An honest experiment: splits and baselines
- 06PyTorch: tensors, autograd and optimizers
- 07A small incident classifier
- 08Evaluation, checkpoints and the final CLI
What do I need for the project?
Try the basics in your browser. The final project runs locally with Python 3.15.1, NumPy and PyTorch. It uses a CPU; the target configuration is two CPU cores and 8 GB of RAM.
Download the projectExtract the archive, then follow the setup in lesson 1. It includes the course-projects/python-for-ai folder, exercises and tests.
What can I build next?
Train a model to complete a phrase or build an assistant that answers questions about documents. All project lessons are open. Assignments and checks are included in paid MCP practice.
Choose an AI project