Supported hardware
lean is one binary per platform. The same file runs on NVIDIA GPUs, AMD GPUs,
and a mix of both in one machine, and falls back to the CPU when it finds
neither. The CPU is fine for lean pull and lean verify, but far too slow to
serve these models.
lean tune detects your GPUs, RAM and free disk, and reports which models
fit and what settings they will use. Run it before a large download.
Operating systems
Section titled “Operating systems”| Linux | x86_64 |
| Windows | Windows 11, 64-bit. Windows 10 is untested. |
| macOS | No build. lean exists to run models larger than your VRAM by streaming experts off disk, and it has no Metal backend, so a Mac build would be CPU-only. |
NVIDIA
Section titled “NVIDIA”| cards | status |
|---|---|
| GeForce RTX 30 and 40 series, and their workstation counterparts | Supported, flash attention included |
| GeForce RTX 50 series | Expected to run, without flash attention for now (long prompts a few percent slower). Not yet verified on a card. |
| Older generations | Untested |
AMD GPU code does not carry over to architectures it was not built for, so this list is exact: a card not on it cannot run lean’s AMD backend.
| architecture | cards |
|---|---|
| RDNA 4 | Radeon AI PRO R9700 · RX 9070 XT, 9070, 9070 GRE · RX 9060 XT, 9060 |
| RDNA 3 | Radeon PRO W7900, W7800, W7700 · RX 7900 XTX, 7900 XT · RX 7800 XT, 7700 XT · RX 7650 GRE, 7600 XT, 7600 |
Not supported: the RX 6000 series (RDNA 2), Ryzen AI integrated graphics, and Instinct data-center cards.
What to install besides lean
Section titled “What to install besides lean”Windows: only the graphics driver. The GeForce or Radeon driver provides
the base GPU runtime. The first time lean uses the GPU, it downloads the
libraries the driver does not include: NVIDIA’s CUDA libraries (about 330 MB)
or AMD’s HIP libraries (65 to 185 MB, depending on the card). It verifies them
against checksums built into lean and keeps them in
%USERPROFILE%\.leanmodels\runtime, so this happens once. If you already have
the CUDA Toolkit or the AMD HIP SDK installed, lean uses those instead of
downloading. To prevent the download, set LEAN_NO_RUNTIME_DOWNLOAD to any
value and install the Toolkit or SDK yourself.
The Microsoft Visual C++ runtime lean needs ships inside the download, next to
lean.exe.
Linux: the driver and the vendor’s runtime libraries.
- NVIDIA: cuBLAS, cuRAND and NVRTC from the CUDA Toolkit 12 or your distribution’s packages. The display driver alone does not include them.
- AMD: ROCm,
for the HIP runtime, hiprtc and hipBLAS. Your user must be in the
renderandvideogroups.
The installer checks for these and names anything missing. Without them lean still starts, on the CPU, and tells you which library it could not load.
More than one GPU
Section titled “More than one GPU”When a model does not fit one card, lean splits its layers across every GPU in
the machine, including a mix of NVIDIA and AMD cards. Each card’s share is
sized by its measured speed and the bandwidth of the PCIe slot it sits in, so a
faster card, or one on a wider link, carries more of the model. When the model
fits one card, lean runs it on one card, because a single sequence decodes
faster on one GPU than split across two. --gpu picks the card and
--pipeline forces the split (CLI reference).
Memory and disk
Section titled “Memory and disk”The models are larger than most cards’ VRAM by design. lean keeps the most-used experts in VRAM, more in system RAM, and streams the rest from disk, so a fast NVMe drive matters more than it does for a model that fits. How the memory model works explains the tiers, and each model page lists what it needs.