Set up the project

This page walks you through cloning the repository and installing the dependencies you need to follow the tutorial.

Prerequisites

This tutorial assumes the following:

  • Basic Python knowledge: Classes, functions, type hints.
  • Familiarity with neural networks: What embeddings and layers do (we’ll explain the specifics).

Check the MAX system requirements to confirm your platform is supported before continuing.

Install

Clone the GitHub repository and navigate to it:

sh
git clone https://github.com/modular/max-llm-book
cd max-llm-book

Install pixi:

sh
curl -fsSL https://pixi.sh/install.sh | sh

Install the tutorial’s dependencies:

sh
pixi install

Next: Run the model serves GPT-2 and calls the endpoint before you write a line of model code.