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-rbln --extra-index-url https://download.pytorch.org/whl/cpu

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

Alternatively, if you are using uv, you can provide the credentials via environment variables instead of ~/.netrc:

export UV_INDEX_RBLN_USERNAME=<your-rbln-portal-id>
export UV_INDEX_RBLN_PASSWORD=<your-rbln-portal-password>

Re-run ./tools/dev-setup.sh pypi once the credentials are in place.

Documentation

RBLN SDK (hosted)

This repository

Contributing

See docs/CONTRIBUTING.md.

License

Apache License 2.0 — see LICENSE and NOTICE.

Contact

Metadata

Release files for torch-rbln 0.5.0rc2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for torch-rbln 0.5.0rc2
File
torch_rbln-0.5.0rc2-cp314-cp314-manylinux_2_34_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.34+ x86-64 Details
torch_rbln-0.5.0rc2-cp313-cp313-manylinux_2_34_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ x86-64 Details
torch_rbln-0.5.0rc2-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details
torch_rbln-0.5.0rc2-cp311-cp311-manylinux_2_34_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.34+ x86-64 Details
torch_rbln-0.5.0rc2-cp310-cp310-manylinux_2_34_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.34+ x86-64 Details

Total release size: 6.7 MB

Release files / torch_rbln-0.5.0rc2-cp314-cp314-manylinux_2_34_x86_64.whl

Download URL torch_rbln-0.5.0rc2-cp314-cp314-manylinux_2_34_x86_64.whl
Size 1.3 MB
Tags CPython 3.14 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
21573f8a96d979317b1efa01f9afd77d212b30debf6a1183104dc7c38d6abd70
BLAKE2b-256 checksum
How to use checksums
17497ba49a2bff2dda0c25e3625608463ca74827107f533b6c23e5eced26c29a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / torch_rbln-0.5.0rc2-cp313-cp313-manylinux_2_34_x86_64.whl

Download URL torch_rbln-0.5.0rc2-cp313-cp313-manylinux_2_34_x86_64.whl
Size 1.3 MB
Tags CPython 3.13 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
9ad29d564e3f9e518aa51dc58e7619048086d6f03d378e04d9a25cf856788a7a
BLAKE2b-256 checksum
How to use checksums
cc25113e24ff1657ac62105bf2cc13afd44c37020ff44ad73c23cf0819e18def
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / torch_rbln-0.5.0rc2-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL torch_rbln-0.5.0rc2-cp312-cp312-manylinux_2_34_x86_64.whl
Size 1.3 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
48e4341f787d4e3c95a9ada26bc382b50e615bfb258bcee3160dc09c6e60c3fd
BLAKE2b-256 checksum
How to use checksums
68566576c6c7d9b61d9510c9d7f1e003a378609510512993c9155108ef2f3d2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / torch_rbln-0.5.0rc2-cp311-cp311-manylinux_2_34_x86_64.whl

Download URL torch_rbln-0.5.0rc2-cp311-cp311-manylinux_2_34_x86_64.whl
Size 1.3 MB
Tags CPython 3.11 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
b439e95709d78eac64fd61b7ccd979d1c39511108b2abfce93b6a0d980407f4b
BLAKE2b-256 checksum
How to use checksums
b34c9830a85319a9f48e45ba1fe0535b4733a89f6cc5d5091ddf5414f0ba19ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14

Release files / torch_rbln-0.5.0rc2-cp310-cp310-manylinux_2_34_x86_64.whl

Download URL torch_rbln-0.5.0rc2-cp310-cp310-manylinux_2_34_x86_64.whl
Size 1.3 MB
Tags CPython 3.10 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
7b41eedd9e8c24ef70e81df1a0c00155cca6495f71c03771344a5e50822eb5c0
BLAKE2b-256 checksum
How to use checksums
5d4682d9150fc1a2b5c118af3938f99981f0f001ccfce666e6622cedf93fbdfb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.14
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page