Install Magpie#
2026-07-22
4 min read time
This topic provides step-by-step instructions to install Magpie and verify the
installation on your system. Choose the method that best fits your workflow:
install directly from GitHub (recommended for most users), install from source
(recommended for development), or install into a managed virtual environment
with make.
Prerequisites#
Before installing Magpie, make sure your system meets the following requirements:
Python 3.10 or later
pip(and optionallygitfor source/GitHub installs)An AMD ROCm (HIP) or NVIDIA CUDA toolchain, if you plan to compile or profile GPU kernels
(Optional)
rocprof-compute(AMD) orncu(NVIDIA) for performance profiling(Optional) Docker, used by Benchmark mode when
run_modeisdocker
For the full list of verified hardware and software versions, see the Compatibility matrix.
Install from GitHub (recommended)#
This installs Magpie from GitHub with its core dependencies:
pip install git+https://github.com/AMD-AGI/Magpie.git
For a reproducible Magpie 0.2.0 beta install, pin the release tag:
pip install "magpie-eval @ git+https://github.com/AMD-AGI/Magpie.git@v0.2.0"
To install the broadly supported optional Magpie integrations, request the
all extra. This currently installs MCP support:
pip install "magpie-eval[all] @ git+https://github.com/AMD-AGI/Magpie.git"
To install the same optional set from the Magpie 0.2.0 beta release, pin the same tag:
pip install "magpie-eval[all] @ git+https://github.com/AMD-AGI/Magpie.git@v0.2.0"
IntelliKit integrations are intentionally not part of all because some
components build native ROCm/HIP code and require additional system packages.
Install them explicitly on supported systems.
To also install the optional Model Context Protocol (MCP) server dependencies,
request the mcp extra:
pip install "magpie-eval[mcp] @ git+https://github.com/AMD-AGI/Magpie.git"
Install from source (development)#
Use an editable install when you want to modify Magpie or follow the latest changes on a branch.
# Clone the repository
git clone https://github.com/AMD-AGI/Magpie.git
cd Magpie
# Editable install (recommended for development)
pip install -e .
# Optional: include broadly supported extras
pip install -e ".[all]"
# Optional: include the MCP server extra
pip install -e ".[mcp]"
# Optional: include development tools (pytest, black, isort, mypy)
pip install -e ".[dev]"
Install with make (managed virtual environment)#
The provided Makefile creates a .venv virtual environment and installs the
runtime dependencies from requirements.txt. It does not install optional
pyproject extras such as .[intellikit] or .[all].
git clone https://github.com/AMD-AGI/Magpie.git
cd Magpie
# Create .venv and install runtime dependencies
make install
# Or install runtime + development tools
make install-dev
# Activate the environment
source .venv/bin/activate
# Optional: add broadly supported extras into the managed environment
pip install -e ".[all]"
Optional dependencies#
Some Magpie features rely on additional packages that are not installed by default. Install them based on the features you need:
GPU frameworks:
torch,triton,vllm, orsglangfor kernel compilation and framework benchmarks.AMD profiling:
rocprof-compute(version 3.40 or newer). See the rocprofiler-compute install guide.NVIDIA profiling:
ncu(Nsight Compute). See the Nsight Compute CLI documentation.IntelliKit integrations (human-readable AMD profiling metrics, AMD kernel correctness validation through HSA interception, and related ROCm tools):
pip install "magpie-eval[intellikit] @ git+https://github.com/AMD-AGI/Magpie.git@v0.2.0"
From a source checkout, use:
pip install -e ".[intellikit]"
Verify the installation#
After installing, confirm that the package imports and the CLI is available:
# Confirm the package imports
python -c "import Magpie; print('Magpie import OK')"
# Confirm the CLI is on your PATH
magpie --help
# Show detected GPU and toolchain information
magpie --gpu-info
Note
You can use python -m Magpie in place of the magpie CLI for the same
subcommands.
A successful magpie --gpu-info run prints the detected GPU vendor,
architecture, and device count. If no GPU is detected, kernel compilation and
profiling features are unavailable, but the CLI still installs and runs.
Get started with Magpie#
After installing Magpie, explore the following guides to get started.
Run your first evaluation with the Analyze and compare kernels with Magpie guide.
Benchmark an inference framework with the Benchmark frameworks with Magpie guide.
Browse the Magpie examples for end-to-end walkthroughs.