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.13.0a0

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.13.0a0
File Actions
torch_rbln-0.13.0a0-cp314-cp314-manylinux_2_34_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.34+ x86-64 Details for torch_rbln-0.13.0a0-cp314-cp314-manylinux_2_34_x86_64.whl
torch_rbln-0.13.0a0-cp313-cp313-manylinux_2_34_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ x86-64 Details for torch_rbln-0.13.0a0-cp313-cp313-manylinux_2_34_x86_64.whl
torch_rbln-0.13.0a0-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details for torch_rbln-0.13.0a0-cp312-cp312-manylinux_2_34_x86_64.whl
torch_rbln-0.13.0a0-cp311-cp311-manylinux_2_34_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.34+ x86-64 Details for torch_rbln-0.13.0a0-cp311-cp311-manylinux_2_34_x86_64.whl

Total release size: 6.0 MB

Release files / torch_rbln-0.13.0a0-cp314-cp314-manylinux_2_34_x86_64.whl

Download URL torch_rbln-0.13.0a0-cp314-cp314-manylinux_2_34_x86_64.whl
Size 1.5 MB
Tags CPython 3.14 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
2d74f5c2fc4ed977fcf6948c188af8d2869ae5ca68b8f24c45deb3f155ab0a97
BLAKE2b-256 checksum
How to use checksums
a260ead7b03d81d6f06a66ee1448efcca2145e1a6e782c149cfe57ea8c0b0a67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / torch_rbln-0.13.0a0-cp313-cp313-manylinux_2_34_x86_64.whl

Download URL torch_rbln-0.13.0a0-cp313-cp313-manylinux_2_34_x86_64.whl
Size 1.5 MB
Tags CPython 3.13 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
f600c70f3ff263676235f4fce091e9bf1867365d08f51d990093532b39306a06
BLAKE2b-256 checksum
How to use checksums
79b38a8d35c44d9aef6d405ca458d7752f13d8621c18f9b5733a2fe29921af9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / torch_rbln-0.13.0a0-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL torch_rbln-0.13.0a0-cp312-cp312-manylinux_2_34_x86_64.whl
Size 1.5 MB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
51282c232de65ebe611cffdd28eb14a8e0afde29fc05d5306451df48f946663d
BLAKE2b-256 checksum
How to use checksums
bdc8b7ad8cf2f75e1f45156e849156d01efb2a11430c8a12edb879e02ddd5097
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / torch_rbln-0.13.0a0-cp311-cp311-manylinux_2_34_x86_64.whl

Download URL torch_rbln-0.13.0a0-cp311-cp311-manylinux_2_34_x86_64.whl
Size 1.5 MB
Tags CPython 3.11 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
9f858f2d2289d7b760c1f54ed8d540008c585288ea674af9c33f8cb9fdc27c3c
BLAKE2b-256 checksum
How to use checksums
a0b679e08d48845947db0e21f56f95d5d76fcaea03266e194d28579934e08a5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for torch-rbln 0.13.0a0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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