Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Lightning ⚡ Intel Habana

lightning PyPI Status PyPI - Python Version PyPI Status Deploy Docs

General checks Build Status pre-commit.ci status

Habana® Gaudi® AI Processor (HPU) training processors are built on a heterogeneous architecture with a cluster of fully programmable Tensor Processing Cores (TPC) along with its associated development tools and libraries, and a configurable Matrix Math engine.

The TPC core is a VLIW SIMD processor with an instruction set and hardware tailored to serve training workloads efficiently. The Gaudi memory architecture includes on-die SRAM and local memories in each TPC and, Gaudi is the first DL training processor that has integrated RDMA over Converged Ethernet (RoCE v2) engines on-chip.

On the software side, the PyTorch Habana bridge interfaces between the framework and SynapseAI software stack to enable the execution of deep learning models on the Habana Gaudi device.

Gaudi offers a substantial price/performance advantage -- so you get to do more deep learning training while spending less.

For more information, check out Gaudi Architecture and Gaudi Developer Docs.


Installation

pip install -U lightning lightning-habana

Usage

To enable PyTorch Lightning to utilize the HPU accelerator, simply provide accelerator="hpu" parameter to the Trainer class.

from lightning import Trainer

# run on as many Gaudi devices as available by default
trainer = Trainer(accelerator="auto", devices="auto", strategy="auto")
# equivalent to
trainer = Trainer()

# run on one Gaudi device
trainer = Trainer(accelerator="hpu", devices=1)
# run on multiple Gaudi devices
trainer = Trainer(accelerator="hpu", devices=8)
# choose the number of devices automatically
trainer = Trainer(accelerator="hpu", devices="auto")

The devices>1 parameter with HPUs enables the Habana accelerator for distributed training. It uses HPUParallelStrategy internally which is based on DDP strategy with the addition of Habana's collective communication library (HCCL) to support scale-up within a node and scale-out across multiple nodes.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lightning-habana-1.0.0rc1.tar.gz (38.4 kB view details)

Uploaded Source

Built Distribution

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

lightning_habana-1.0.0rc1-py3-none-any.whl (53.6 kB view details)

Uploaded Python 3

File details

Details for the file lightning-habana-1.0.0rc1.tar.gz.

File metadata

  • Download URL: lightning-habana-1.0.0rc1.tar.gz
  • Upload date:
  • Size: 38.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for lightning-habana-1.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 55d77f865b4867586a887597fd0a6b39f60036f69977a2c65cce1c01cba1ed63
MD5 4001a21761db5bb2baf60bd6c9a880fd
BLAKE2b-256 c72efd3b984c6a9497c434dcfaac3881f3f26b4d5392729eeb69801e39a3cf60

See more details on using hashes here.

File details

Details for the file lightning_habana-1.0.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for lightning_habana-1.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 a9346b8424c5fc06ecf80ef77db796ef57e0ede8f2072037ce411b2b93ce7bca
MD5 dccac9395001530969692e5e569662a1
BLAKE2b-256 2aba203896efbe913c7e576d3a2c864cc281c8ca15cd8a193d0449984b320181

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