{"id":40088010,"url":"https://github.com/rbln-sw/optimum-rbln","last_synced_at":"2026-05-22T15:04:00.941Z","repository":{"id":275535956,"uuid":"916019032","full_name":"RBLN-SW/optimum-rbln","owner":"RBLN-SW","description":"⚡ A seamless integration of HuggingFace Transformers \u0026 Diffusers with RBLN SDK for efficient inference on RBLN NPUs.","archived":false,"fork":false,"pushed_at":"2026-01-15T12:58:05.000Z","size":3823,"stargazers_count":16,"open_issues_count":13,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-15T15:35:36.139Z","etag":null,"topics":["ai-accelerator","atom","deep-learning","diffusers","huggingface","inference","language-model","npu","rbln","rebel","rebellions-ai","transformers"],"latest_commit_sha":null,"homepage":"https://docs.rbln.ai/software/optimum/optimum_rbln.html","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RBLN-SW.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-13T09:54:36.000Z","updated_at":"2026-01-15T09:53:12.000Z","dependencies_parsed_at":"2025-02-24T14:35:37.867Z","dependency_job_id":"600f037b-4e76-45b0-9098-9bba1a93a634","html_url":"https://github.com/RBLN-SW/optimum-rbln","commit_stats":null,"previous_names":["rebellions-sw/optimum-rbln","rbln-sw/optimum-rbln"],"tags_count":112,"template":false,"template_full_name":null,"purl":"pkg:github/RBLN-SW/optimum-rbln","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RBLN-SW%2Foptimum-rbln","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RBLN-SW%2Foptimum-rbln/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RBLN-SW%2Foptimum-rbln/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RBLN-SW%2Foptimum-rbln/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RBLN-SW","download_url":"https://codeload.github.com/RBLN-SW/optimum-rbln/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RBLN-SW%2Foptimum-rbln/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-accelerator","atom","deep-learning","diffusers","huggingface","inference","language-model","npu","rbln","rebel","rebellions-ai","transformers"],"created_at":"2026-01-19T10:00:50.093Z","updated_at":"2026-05-22T15:04:00.933Z","avatar_url":"https://github.com/RBLN-SW.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Optimum RBLN\n\n\u003cdiv align=\"center\"\u003e\n\n\u003cimg src=\"assets/rbln_logo.png\" width=\"60%\"/\u003e\n\n[![PyPI version](https://badge.fury.io/py/optimum-rbln.svg)](https://badge.fury.io/py/optimum-rbln)\n[![License](https://img.shields.io/github/license/rbln-sw/optimum-rbln)](https://github.com/rbln-sw/optimum-rbln/blob/main/LICENSE)\n[![Documentation](https://img.shields.io/badge/docs-available-brightgreen)](https://docs.rbln.ai/software/optimum/optimum_rbln.html)\n[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)\n\n\n\u003c/div\u003e\n\n🤗 Optimum RBLN provides an interface between HuggingFace libraries ([Transformers](https://huggingface.co/docs/transformers), [Diffusers](https://huggingface.co/docs/diffusers/index)) and RBLN NPUs, including [ATOM](https://rebellions.ai/rebellions-product/rbln-ca25/) and [REBEL](https://rebellions.ai/rebellions-product/rebel/).\n\nThis library enables seamless integration between the HuggingFace ecosystem and RBLN NPUs through a comprehensive toolkit for model loading and inference across single and multi-NPU environments. While we maintain a list of [officially validated models and tasks](https://docs.rbln.ai/software/optimum/optimum_rbln.html), users can easily adapt other models and tasks with minimal modifications.\n\n## Key Features\n\n🚀 **High Performance Inference**\n- Optimized model execution on RBLN NPUs through RBLN SDK compilation\n- Support for both single and multi-NPU inference\n- Integrated with RBLN Runtime for optimal performance\n\n🔧 **Easy Integration**\n- Seamless compatibility with HuggingFace Model Hub\n- Drop-in replacement for existing HuggingFace pipelines\n- Minimal code changes required for NPU acceleration\n\n\n## Seamless Replacement for Existing HuggingFace Code\n\n```diff\n- from diffusers import StableDiffusionXLPipeline\n+ from optimum.rbln import RBLNStableDiffusionXLPipeline\n\n# Load model\nmodel_id = \"stabilityai/stable-diffusion-xl-base-1.0\"\nprompt = \"Astronaut in a jungle, cold color palette, muted colors, detailed, 8k\"\n- pipe = StableDiffusionXLPipeline.from_pretrained(model_id)\n+ pipe = RBLNStableDiffusionXLPipeline.from_pretrained(model_id, export=True)\n\n# Generate image\nimage = pipe(prompt).images[0]\n\n# Save image result\nimage.save(\"image.png\")\n\n+ # (Optional) Save compiled artifacts to skip the compilation step in future runs\n+ pipe.save_pretrained(\"compiled_sdxl\")\n```\n\n## Documentation\n\nCheck out [the documentation of Optimum RBLN](https://docs.rbln.ai/software/optimum/optimum_rbln.html) for more advanced usage.\n\n## Getting Started\n\n\u003e **Note:** The `rebel-compiler` library, which is required for running `optimum-rbln`, is only available for approved users. Please refer to the [installation guide](https://docs.rbln.ai/getting_started/installation_guide.html) for instructions on accessing and installing `rebel-compiler`.\n\n### Install from PyPI\n\nTo install the latest release of this package:\n```bash\npip install optimum-rbln --extra-index-url https://download.pytorch.org/whl/cpu\n```\n\n### Install from source\n\n#### Prerequisites\n\n- Install [uv](https://docs.astral.sh/uv/) (refer to [this link](https://docs.astral.sh/uv/getting-started/installation/) for detailed commands)\n\nThe below command installs `optimum-rbln` along with its dependencies.\n\n```bash\ngit clone https://github.com/rbln-sw/optimum-rbln.git\ncd optimum-rbln\n./scripts/uv-sync.sh\n```\n\n### Need Help?\n\n- Join discussions and get answers in our [Developer Community](https://discuss.rebellions.ai/)\n- Contact maintainers at [support@rebellions.ai](mailto:support@rebellions.ai)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbln-sw%2Foptimum-rbln","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frbln-sw%2Foptimum-rbln","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frbln-sw%2Foptimum-rbln/lists"}