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.12.0rc1

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.12.0rc1
File
torch_rbln-0.12.0rc1-cp314-cp314-manylinux_2_34_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.34+ x86-64 Details
torch_rbln-0.12.0rc1-cp313-cp313-manylinux_2_34_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ x86-64 Details
torch_rbln-0.12.0rc1-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details
torch_rbln-0.12.0rc1-cp311-cp311-manylinux_2_34_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.34+ x86-64 Details
torch_rbln-0.12.0rc1-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.9 MB

Release files / torch_rbln-0.12.0rc1-cp314-cp314-manylinux_2_34_x86_64.whl

Download URL torch_rbln-0.12.0rc1-cp314-cp314-manylinux_2_34_x86_64.whl
Size 1.4 MB
Tags CPython 3.14 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
5f675d300e2bddd87f12c00f361ee0897d6c1ce71e638f59addf6515a5a228d5
BLAKE2b-256 checksum
How to use checksums
f8098d7f05b1c632a1efdc4774a5dfbff3ec3fecb369626462bd27623e9f29f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / torch_rbln-0.12.0rc1-cp313-cp313-manylinux_2_34_x86_64.whl

Download URL torch_rbln-0.12.0rc1-cp313-cp313-manylinux_2_34_x86_64.whl
Size 1.4 MB
Tags CPython 3.13 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
742053b95e7b6f31e4d856ad13f7fa5187112b8b2d1f907a3f634c2725b967a3
BLAKE2b-256 checksum
How to use checksums
f782111c1bdbed31d12aade5645fab65e22d2840caeecdc2a3b8871dbea8b7ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / torch_rbln-0.12.0rc1-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL torch_rbln-0.12.0rc1-cp312-cp312-manylinux_2_34_x86_64.whl
Size 1.4 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
187c169ad5ba3a1242d90f20bfd1de7a23925fea1aa754eec8a412ccbf41a90e
BLAKE2b-256 checksum
How to use checksums
917becafcf82d7df68b3885442ab88bc1c9666f21f09a1a3c6a2a0bdce575d79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / torch_rbln-0.12.0rc1-cp311-cp311-manylinux_2_34_x86_64.whl

Download URL torch_rbln-0.12.0rc1-cp311-cp311-manylinux_2_34_x86_64.whl
Size 1.4 MB
Tags CPython 3.11 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
13d40bdda30b9b5717e52e294fa5738150b3bb57471e254e1ea00761dcfa5ad6
BLAKE2b-256 checksum
How to use checksums
b855a1c3adec431fd99a05a352c3561876b392c503ba9880f7a3180de3c57b30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Release files / torch_rbln-0.12.0rc1-cp310-cp310-manylinux_2_34_x86_64.whl

Download URL torch_rbln-0.12.0rc1-cp310-cp310-manylinux_2_34_x86_64.whl
Size 1.4 MB
Tags CPython 3.10 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
ca8d2afeada1a400b0ca1b908fc3baaecbeb42bc33c15474799aa9bbab403a0e
BLAKE2b-256 checksum
How to use checksums
43fecdd3226adf086fe06fba8a6a6b9c2ea985f7b50d2163883b548ad4d2845c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5
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