Installation¶
Install torch-rbln from pre-built wheels or build it from source. To compile models for RBLN NPUs, install rebel-compiler separately.
Use import torch as usual—torch-rbln autoloads as an out-of-tree extension.
For version history, see the release notes.
Quickstart¶
Create a virtual environment, install the packages, then verify the import.
Build from source (advanced)¶
Repository: torch-rbln
Requirements¶
- Python: 3.10–3.13
- PyTorch (CPU wheels)
rebel-compiler(required; installed separately)
Note
An RBLN Portal account is required to install rebel-compiler.
Prerequisites¶
- Git
- A C/C++ toolchain (GCC 13 on Linux) for building the
torch-rblnextension - CMake 3.18+ and Ninja
uv(optional). See the uv installation guide.
Get the source¶
Clone the repository and create a virtual environment:
Using dev-setup.sh (recommended)¶
Run the setup script from the repository root:
Verify the installation using the command in Quickstart.
Build manually¶
From the repository root:
Verify the installation using the command in Quickstart.