Optimum Library is an extension of the Hugging Face Transformers library, providing a framework to integrate third-party libraries from Hardware Partners and interface with their specific functionality.
Project description
Optimum Graphcore
🤗 Optimum Graphcore is the interface between the 🤗 Transformers library and Graphcore IPUs. It provides a set of tools enabling model parallelization and loading on IPUs, training and fine-tuning on all the tasks already supported by Transformers while being compatible with the Hugging Face Hub and every model available on it out of the box.
What is an Intelligence Processing Unit (IPU)?
Quote from the Hugging Face blog post:
IPUs are the processors that power Graphcore’s IPU-POD datacenter compute systems. This new type of processor is designed to support the very specific computational requirements of AI and machine learning. Characteristics such as fine-grained parallelism, low precision arithmetic, and the ability to handle sparsity have been built into our silicon.
Instead of adopting a SIMD/SIMT architecture like GPUs, Graphcore’s IPU uses a massively parallel, MIMD architecture, with ultra-high bandwidth memory placed adjacent to the processor cores, right on the silicon die.
This design delivers high performance and new levels of efficiency, whether running today’s most popular models, such as BERT and EfficientNet, or exploring next-generation AI applications.
Software plays a vital role in unlocking the IPU’s capabilities. Our Poplar SDK has been co-designed with the processor since Graphcore’s inception. Today it fully integrates with standard machine learning frameworks, including PyTorch and TensorFlow, as well as orchestration and deployment tools such as Docker and Kubernetes.
Making Poplar compatible with these widely used, third-party systems allows developers to easily port their models from their other compute platforms and start taking advantage of the IPU’s advanced AI capabilities.
Install
To install the latest release of this package:
pip install optimum[graphcore]
Optimum Graphcore is a fast-moving project, and you may want to install from source:
pip install git+https://github.com/huggingface/optimum-graphcore.git
Last but not least, don't forget to install requirements for every example:
cd <example-folder> pip install -r requirements.txt
Supported Models
Currently the following model architectures are supported:
- BERT (base and large)
- RoBERTa (base and large)
- Vision Transformer
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 Distribution
Built Distribution
Hashes for optimum_graphcore-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3c74420ca3d50ae006e758a3bf8f0fa0a8da763bf0c1ba6283924b8cfc01e3d6 |
|
MD5 | 24b34335d3024cd9ad09e4ed953df20c |
|
BLAKE2b-256 | 7cde1be9376036dd57d8de762f8084def60a853f50312f18db5d061829ee849f |