Intel Makes Open-Source Its Python NPU Acceleration Library

Written by Michael Larabel in Intel on 1 March 2024 at 11:45 AM EST. 4 Comments
INTEL
Intel has made open-source its NPU Acceleration Library (intel-npu-acceleration-library) as a user-space library for Windows and Linux systems for interfacing with the Neural Processing Unit (NPU) found initially on their new Meteor Lake laptops.

Intel has long been developing the iVPU Linux kernel driver that is upstream in the kernel for supporting the Intel NPUs (formerly known as VPUs) beginning with Meteor Lake. This NPU Acceleration Library is a convenient Python library for leveraging the NPU's potential.

Intel Core Ultra laptop with Ubuntu Linux


The Intel Neural Processing Unit library supports 8-bit quantization, Float16 support, torch.compile support, static shape inference, and other features. The NPU Acceleration Library can be downloaded from GitHub or conveniently installed via PIP.

The Intel NPU Acceleration Library GitHub page has Python code samples showing a single matrix multiply on the NPU, compiling a model for the NPU, and even running a Tiny-Llama model on the NPU. The v1.0 release marks the initial stable release for this library that will become increasingly more important in the AI era and as the NPUs work their way into more Intel processors.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week