Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

PyTorch RBLN

PyTorch RBLN

PyPI version License Documentation Contributor Covenant

About

PyTorch RBLN (torch-rbln) is a PyTorch extension that allows natural use of Rebellions NPU compute within PyTorch. By implementing eager mode, which operates in a define-by-run fashion, it supports the full lifecycle of model development, deployment, and serving in the PyTorch ecosystem. It is also convenient for debugging and related workflows.

The same interface style as CPU and GPU applies — the rbln device, torch.rbln, and torch.compile — so developers and customers can target RBLN NPUs with familiar APIs. Operations on rbln tensors are integrated via PyTorch’s out-of-tree extension path; execution is coordinated with the RBLN compiler and runtime (rebel-compiler).

PyTorch RBLN is currently in beta and under active development. APIs may change between releases, backward compatibility is not guaranteed, and production use is not recommended yet. For the full notice, architecture, supported operators, and tutorials, see PyTorch RBLN — Overview in the RBLN SDK documentation. For wheels, rebel-compiler, and building from source, see Installation.

Getting started

Prerequisites

Install pre-built wheels

torch-rbln (public wheel). Install torch from the PyTorch CPU index first, then torch-rbln from PyPI.

pip3 install torch==2.11.0+cpu --index-url https://download.pytorch.org/whl/cpu
pip3 install torch-rbln

For rebel-compiler and the rest of the setup, see Prerequisites above and Installation.

Build from source

  1. Install uv (see Installation — Prerequisites in the SDK docs).
  2. Configure access to the RBLN package index (see Authenticate to the RBLN package index below).
  3. Follow Build from source (venv, rebel-compiler, editable build, manual steps).
git clone https://github.com/RBLN-SW/torch-rbln.git
cd torch-rbln
uv venv .venv && source .venv/bin/activate
./tools/dev-setup.sh pypi

rebel-compiler must be available in the same environment before the torch-rbln build finishes (see Prerequisites).

Authenticate to the RBLN package index

rebel-compiler is installed from the RBLN package index (pypi.rbln.ai), which requires an RBLN Portal account. Without credentials, ./tools/dev-setup.sh pypi fails with:

❌ Cannot reach any rbln pypi index (no permission or network error).

Add your RBLN Portal credentials to ~/.netrc so pip/uv can authenticate:

machine pypi.rbln.ai
login <your-rbln-portal-id>
password <your-rbln-portal-password>

Then restrict its permissions (tools refuse a world-readable .netrc):

chmod 600 ~/.netrc

Re-run ./tools/dev-setup.sh pypi once the file is in place.

Documentation

RBLN SDK (hosted)

This repository

Contributing

See docs/CONTRIBUTING.md.

License

Apache License 2.0 — see LICENSE and NOTICE.

Contact

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

torch_rbln-0.3.0rc0-cp313-cp313-manylinux_2_34_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

torch_rbln-0.3.0rc0-cp312-cp312-manylinux_2_34_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

torch_rbln-0.3.0rc0-cp311-cp311-manylinux_2_34_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

torch_rbln-0.3.0rc0-cp310-cp310-manylinux_2_34_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

File details

Details for the file torch_rbln-0.3.0rc0-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for torch_rbln-0.3.0rc0-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 20c7135e96d7fb30bc9eb6a382e78ccacc963214cc3c6548d21fc840bfd2eaf1
MD5 fd1bb1c6cb46aee24a1fd056834c4d32
BLAKE2b-256 6beaa2e6397a1abaf52805890ce862d36da87705d4d4c5cb02ae99918603a497

See more details on using hashes here.

File details

Details for the file torch_rbln-0.3.0rc0-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for torch_rbln-0.3.0rc0-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 e2210fcb89b01598d3992a5a10d8733d6f02287f9b8f789a0bc6f29942e86812
MD5 479bc723df49e90a7a497eb2f6b96390
BLAKE2b-256 72af0dadc2c7b2e3bb2f9d96bfc1950e7c24024446f3067032a65535b6bbdad7

See more details on using hashes here.

File details

Details for the file torch_rbln-0.3.0rc0-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for torch_rbln-0.3.0rc0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3c1bcdd2ee80e5f9029c5ab657c6079b769f32eccd19b05762f852143a204e29
MD5 e9afe2db5c5fa27b6c53e076603d106f
BLAKE2b-256 992f07ee99604b5fe0ae7fa2b021c3213b64f63321e942c4859edfcf5fe9d696

See more details on using hashes here.

File details

Details for the file torch_rbln-0.3.0rc0-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for torch_rbln-0.3.0rc0-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6472591e877fc83abe9bd9bfa2953b7105d2f528e8a58fd9856c7a3dbea4e49e
MD5 79b0942b6e25f48ed8067555cec7d95b
BLAKE2b-256 a16e76e1a4831d34694f236c8c0273fddec203b9a1568035ad0459de1e9db0d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page