intel-extension-for-llm
intel-extension-for-llm is Intel's extension for running and tuning large
language models on Intel hardware — Intel Arc GPUs, Intel Data Center GPUs, and
Intel CPUs — through a unified Python API. It builds on the oneAPI software stack
(Intel Extension for PyTorch, SYCL/XPU runtime, oneDNN, oneCCL) to deliver
optimized inference and fine-tuning for popular transformer architectures without
changing your model code. It is for developers who want the best out-of-box LLM
performance on Intel XPU/CPU and a drop-in path from a Hugging Face model to a
hardware-accelerated serving pipeline.
Features
optimize(model, device="xpu")fuses IPEX kernels, applies AMP bf16, and enables XPU graph capture for faster decoder iterations on Arc and PVC GPUs.- Built-in quantization paths: weight-only INT8/INT4 via oneDNN and SmoothQuant/ AWQ-compatible pipelines, with calibrated accuracy hooks.
- Drop-in
transformersintegration: load withfrom_pretrained(..., device_map="xpu", use_ipex=True)and the extension wires SYCL kernels in. - CPU-optimized inference for Xeon with NUMA-aware threading and AVX-512 AMX acceleration where available.
serve(model, ...)helper launches an OpenAI-compatible endpoint on XPU or CPU, with continuous batching and KV-cache reuse.
Installation
pip install intel-extension-for-llm
# IPEX + oneAPI runtime for XPU
pip install "intel-extension-for-llm[xpu]"
# CPU-only path (Xeon)
pip install "intel-extension-for-llm[cpu]"
Quick start
import torch, intel_extension_for_llm as ill
from transformers import AutoModelForCausalLM, AutoTokenizer
dev = "xpu" if torch.xpu.is_available() else "cpu"
tok = AutoTokenizer.from_pretrained("meta-llama/Llama-3-8B")
model = AutoModelForCausalLM.from_pretrained(
"meta-llama/Llama-3-8B", torch_dtype=torch.bfloat16
).to(dev)
model = ill.optimize(model, device=dev, quantize="int8_weight_only")
ids = tok("Explain oneAPI in one sentence.", return_tensors="pt").to(dev)
print(tok.decode(model.generate(**ids, max_new_tokens=64)[0]))
API
ill.optimize(model, *, device, quantize=None, amp="bf16")— kernel fusion + optional quantization, returns the optimized model.ill.quantize(model, *, scheme, calibration_data=None)— INT8/INT4 quantization.ill.serve(model, *, host, port, batch_size)— OpenAI-compatible XPU/CPU server.
Configuration
Device selection honors IPEX_DEVICE (or device= args). XPU memory usage is
controlled via SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1 and the standard
ZE_* environment flags; see the oneAPI docs for the full set.
License
MIT
Metadata
Release files for intel-extension-for-llm 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| intel_extension_for_llm-0.1.0.tar.gz | 5.2 kB | Without provenance | Details for intel_extension_for_llm-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| intel_extension_for_llm-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for intel_extension_for_llm-0.1.0-py3-none-any.whl |
Total release size: 11.2 kB
Release files / intel_extension_for_llm-0.1.0.tar.gz
| Download URL | intel_extension_for_llm-0.1.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3ba40270430faa5b57e9a7fec5e3bf2e33767758a1bd221ec876e24cdba4734
|
|
BLAKE2b-256 checksum How to use checksums |
758860bdde3b2a6da87caf4d320d83c7991628ba352ee0208886e7ee854a2825
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / intel_extension_for_llm-0.1.0-py3-none-any.whl
| Download URL | intel_extension_for_llm-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1645341ea5d9c337b9d46dbcab468c67a09f921038df71a19d708bf00be34bee
|
|
BLAKE2b-256 checksum How to use checksums |
e995d56264424d4fcc1493df6c5ae25781836cc7da2368f2fa16e8b5cf5be56f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for intel-extension-for-llm 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.