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

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.1a0
File Actions
torch_rbln-0.12.1a0-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.12.1a0-cp314-cp314-manylinux_2_34_x86_64.whl
torch_rbln-0.12.1a0-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.12.1a0-cp313-cp313-manylinux_2_34_x86_64.whl
torch_rbln-0.12.1a0-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.12.1a0-cp312-cp312-manylinux_2_34_x86_64.whl
torch_rbln-0.12.1a0-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.12.1a0-cp311-cp311-manylinux_2_34_x86_64.whl
torch_rbln-0.12.1a0-cp310-cp310-manylinux_2_34_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.34+ x86-64 Details for torch_rbln-0.12.1a0-cp310-cp310-manylinux_2_34_x86_64.whl

Total release size: 7.6 MB

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

Download URL torch_rbln-0.12.1a0-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
e3eba01197c49c1312a4058a44f9ea7f935ba4f3581d29cf4bb6f5c1987cfbdd
BLAKE2b-256 checksum
How to use checksums
075d10fd0211a06ef972ff8d6c6382bb3b0a278e7b859e9f8136c24e809bca0d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL torch_rbln-0.12.1a0-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
4b86cbb5f2358e17de4b933c08dabeb09ef38c9a7b2561c332a42a1a850baf64
BLAKE2b-256 checksum
How to use checksums
da6a9fa41c7b2141bb9af67cd114e6dc9f275fd837f0f16fc5db50a06a30fcb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL torch_rbln-0.12.1a0-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
0f6dfff6a08f4c116d6dcbd5f284ad14e9247464d3c7b1f43aa37770563beec9
BLAKE2b-256 checksum
How to use checksums
988354cc5a724844ec9042f6a973c0ec4cc46a6afd73d9b1a306a70eff6eb7c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

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

Download URL torch_rbln-0.12.1a0-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
a5bda70c6049d464611d3f64835253af46efeb14297aa3f7ff5f6611b518ef3b
BLAKE2b-256 checksum
How to use checksums
375aac1e16e1ead59f67b0530603de759c36c9a40a0a523ccdeee484ee1beebc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / torch_rbln-0.12.1a0-cp310-cp310-manylinux_2_34_x86_64.whl

Download URL torch_rbln-0.12.1a0-cp310-cp310-manylinux_2_34_x86_64.whl
Size 1.5 MB
Tags CPython 3.10 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
aae9d7f8d19428335c3f6e19802c79a37a20255ed5743967cfe43e3b84901ffc
BLAKE2b-256 checksum
How to use checksums
f861fa3200193c7ed52fd9c2c441c9762cc84d64d8047a164fd993c2d0759924
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for torch-rbln 0.12.1a0

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