Skip to content

Installation

Install from PyPI

To install the latest release of optimum-rbln:

1
2
3
$ pip install \
  --extra-index-url https://download.pytorch.org/whl/cpu \
  optimum-rbln==0.12.0

Install from source

The following command installs optimum-rbln along with its dependencies:

1
2
3
$ git clone https://github.com/RBLN-SW/optimum-rbln.git
$ cd optimum-rbln
$ ./scripts/uv-sync.sh

uv-sync.sh installs optimum-rbln and its Python dependencies into .venv, but not the RBLN Compiler (rebel-compiler), which needs an RBLN Portal account (see RBLN Compiler Installation). Without it, import optimum.rbln fails with No module named 'rebel'. Install it into the same environment, choosing the version that pairs with your optimum-rbln in the version matrix:

$ source .venv/bin/activate
$ uv pip install --extra-index-url https://pypi.rbln.ai/simple rebel-compiler