Skip to main content

Optimum RBLN is the interface between the Hugging Face Transformers and Diffusers libraries and RBLN accelerators. It provides a set of tools enabling easy model loading and inference on single and multiple rbln device settings for different downstream tasks.

Project description

Optimum RBLN

PyPI version License

🤗 Optimum RBLN provides an interface between Hugging Face libraries (Transformers, Diffusers) and RBLN Accelerators, including ATOM and REBEL.

This library enables seamless integration between the Hugging Face ecosystem and RBLN's NPU acceleration through a comprehensive toolkit for model loading and inference across single- and multi-Accelerator environments. While we maintain a list of officially validated models and tasks, users can easily adapt other models and tasks with minimal modifications.

Key Features

🚀 High Performance Inference

  • Optimized model execution on RBLN NPUs through RBLN SDK compilation
  • Support for both single-NPU and multi-NPU inference
  • Integrated with RBLN Runtime for optimal performance

🔧 Easy Integration

  • Seamless compatibility with Huggingface model hub
  • Drop-in replacement for existing Huggingface pipelines
  • Minimal code changes required for NPU acceleration

Documentation

Check out the documentation of Optimum RBLN for more advanced usage.

Getting Started

Install from PyPI

To install the latest release of this package:

  • Export environment variables to access to RBLN private PyPI.

    export REBEL_PYPI_USERNAME=<username>
    export REBEL_PYPI_PASSWORD=<password>
    
  • Install optimum-rbln package:

    pip install --index-url https://pypi.rebellions.in/simple optimum-rbln
    

Install from source

Prerequisites

The below command installs optimum-rbln along with its dependencies.

git clone https://github.com/rebellions-sw/optimum-rbln.git
cd optimum-rbln
./scripts/uv-sync.sh

If you want to install local rebel-compiler as editable mode in uv environment,

uv pip install -e /path/to/rebel_compiler/python

Need Help?

Project details


Release history Release notifications | RSS feed

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 Distribution

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

optimum_rbln-0.1.15-py3-none-any.whl (212.8 kB view details)

Uploaded Python 3

File details

Details for the file optimum_rbln-0.1.15-py3-none-any.whl.

File metadata

  • Download URL: optimum_rbln-0.1.15-py3-none-any.whl
  • Upload date:
  • Size: 212.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for optimum_rbln-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 eab0353eb6e1816c6c42d20d6685a17c61db1be9bf1b3ec2fbdaed81b100f0cb
MD5 a642c62c80c97a328b04df6eb0c6aea1
BLAKE2b-256 e0fcd7a104e072a7e2f0ac3bbb4fc1d28378644c084e4afc258b0ea25ba5a7bb

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 Pingdom Monitoring Sentry Error logging StatusPage Status page