Skip to content

Commit bccf1db

Browse files
authored
r2.6 backport (#3520)
1 parent 20fce87 commit bccf1db

File tree

15 files changed

+553
-487
lines changed

15 files changed

+553
-487
lines changed

README.md

+44-42
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Intel® Extension for PyTorch\*
55

66
</div>
77

8-
**CPU** [💻main branch](https://github.com/intel/intel-extension-for-pytorch/tree/main)&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;[🌱Quick Start](https://intel.github.io/intel-extension-for-pytorch/cpu/latest/tutorials/getting_started.html)&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;[📖Documentations](https://intel.github.io/intel-extension-for-pytorch/cpu/latest/)&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;[🏃Installation](https://intel.github.io/intel-extension-for-pytorch/index.html#installation?platform=cpu&version=v2.5.0%2Bcpu)&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;[💻LLM Example](https://github.com/intel/intel-extension-for-pytorch/tree/main/examples/cpu/llm) <br>
8+
**CPU** [💻main branch](https://github.com/intel/intel-extension-for-pytorch/tree/main)&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;[🌱Quick Start](https://intel.github.io/intel-extension-for-pytorch/cpu/latest/tutorials/getting_started.html)&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;[📖Documentations](https://intel.github.io/intel-extension-for-pytorch/cpu/latest/)&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;[🏃Installation](https://intel.github.io/intel-extension-for-pytorch/index.html#installation?platform=cpu&version=v2.6.0%2Bcpu)&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;[💻LLM Example](https://github.com/intel/intel-extension-for-pytorch/tree/main/examples/cpu/llm) <br>
99
**GPU** [💻main branch](https://github.com/intel/intel-extension-for-pytorch/tree/xpu-main)&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;[🌱Quick Start](https://intel.github.io/intel-extension-for-pytorch/xpu/latest/tutorials/getting_started.html)&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;[📖Documentations](https://intel.github.io/intel-extension-for-pytorch/xpu/latest/)&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;[🏃Installation](https://intel.github.io/intel-extension-for-pytorch/index.html#installation?platform=gpu)&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;[💻LLM Example](https://github.com/intel/intel-extension-for-pytorch/tree/xpu-main/examples/gpu/llm)<br>
1010

1111
Intel® Extension for PyTorch\* extends PyTorch\* with up-to-date features optimizations for an extra performance boost on Intel hardware. Optimizations take advantage of Intel® Advanced Vector Extensions 512 (Intel® AVX-512) Vector Neural Network Instructions (VNNI) and Intel® Advanced Matrix Extensions (Intel® AMX) on Intel CPUs as well as Intel X<sup>e</sup> Matrix Extensions (XMX) AI engines on Intel discrete GPUs. Moreover, Intel® Extension for PyTorch* provides easy GPU acceleration for Intel discrete GPUs through the PyTorch* xpu device.
@@ -18,46 +18,49 @@ In the current technological landscape, Generative AI (GenAI) workloads and mode
1818

1919
| MODEL FAMILY | MODEL NAME (Huggingface hub) | FP32 | BF16 | Static quantization INT8 | Weight only quantization INT8 | Weight only quantization INT4 |
2020
|:---:|:---:|:---:|:---:|:---:|:---:|:---:|
21-
|LLAMA| meta-llama/Llama-2-7b-hf | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
22-
|LLAMA| meta-llama/Llama-2-13b-hf | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
23-
|LLAMA| meta-llama/Llama-2-70b-hf | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
24-
|LLAMA| meta-llama/Meta-Llama-3-8B | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
25-
|LLAMA| meta-llama/Meta-Llama-3-70B | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
26-
|LLAMA| meta-llama/Meta-Llama-3.1-8B-Instruct | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
27-
|LLAMA| meta-llama/Llama-3.2-3B-Instruct | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
28-
|LLAMA| meta-llama/Llama-3.2-11B-Vision-Instruct | 🟩 | 🟩 | | 🟩 | |
29-
|GPT-J| EleutherAI/gpt-j-6b | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
30-
|GPT-NEOX| EleutherAI/gpt-neox-20b | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
31-
|DOLLY| databricks/dolly-v2-12b | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
32-
|FALCON| tiiuae/falcon-7b | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
33-
|FALCON| tiiuae/falcon-11b | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
34-
|FALCON| tiiuae/falcon-40b | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
35-
|OPT| facebook/opt-30b | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
36-
|OPT| facebook/opt-1.3b | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
37-
|Bloom| bigscience/bloom-1b7 | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
38-
|CodeGen| Salesforce/codegen-2B-multi | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
39-
|Baichuan| baichuan-inc/Baichuan2-7B-Chat | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
40-
|Baichuan| baichuan-inc/Baichuan2-13B-Chat | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
41-
|Baichuan| baichuan-inc/Baichuan-13B-Chat | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
42-
|ChatGLM| THUDM/chatglm3-6b | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
43-
|ChatGLM| THUDM/chatglm2-6b | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
44-
|GPTBigCode| bigcode/starcoder | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
45-
|T5| google/flan-t5-xl | 🟩 | 🟩 | 🟩 | 🟩 | |
46-
|MPT| mosaicml/mpt-7b | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
47-
|Mistral| mistralai/Mistral-7B-v0.1 | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
48-
|Mixtral| mistralai/Mixtral-8x7B-v0.1 | 🟩 | 🟩 | | 🟩 | 🟩 |
49-
|Stablelm| stabilityai/stablelm-2-1_6b | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
50-
|Qwen| Qwen/Qwen-7B-Chat | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
51-
|Qwen| Qwen/Qwen2-7B | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
52-
|LLaVA| liuhaotian/llava-v1.5-7b | 🟩 | 🟩 | | 🟩 | 🟩 |
53-
|GIT| microsoft/git-base | 🟩 | 🟩 | | 🟩 | |
54-
|Yuan| IEITYuan/Yuan2-102B-hf | 🟩 | 🟩 | | 🟩 | |
55-
|Phi| microsoft/phi-2 | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
56-
|Phi| microsoft/Phi-3-mini-4k-instruct | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
57-
|Phi| microsoft/Phi-3-mini-128k-instruct | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
58-
|Phi| microsoft/Phi-3-medium-4k-instruct | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
59-
|Phi| microsoft/Phi-3-medium-128k-instruct | 🟩 | 🟩 | 🟩 | 🟩 | 🟩 |
60-
|Whisper| openai/whisper-large-v2 | 🟩 | 🟩 | 🟩 | 🟩 | |
21+
|LLAMA| meta-llama/Llama-2-7b-hf ||||||
22+
|LLAMA| meta-llama/Llama-2-13b-hf ||||||
23+
|LLAMA| meta-llama/Llama-2-70b-hf ||||||
24+
|LLAMA| meta-llama/Meta-Llama-3-8B ||||||
25+
|LLAMA| meta-llama/Meta-Llama-3-70B ||||||
26+
|LLAMA| meta-llama/Meta-Llama-3.1-8B-Instruct ||||||
27+
|LLAMA| meta-llama/Llama-3.2-3B-Instruct ||||||
28+
|LLAMA| meta-llama/Llama-3.2-11B-Vision-Instruct ||| |||
29+
|GPT-J| EleutherAI/gpt-j-6b ||||||
30+
|GPT-NEOX| EleutherAI/gpt-neox-20b ||||||
31+
|DOLLY| databricks/dolly-v2-12b ||||||
32+
|FALCON| tiiuae/falcon-7b ||||||
33+
|FALCON| tiiuae/falcon-11b ||||||
34+
|FALCON| tiiuae/falcon-40b ||||||
35+
|OPT| facebook/opt-30b ||||||
36+
|OPT| facebook/opt-1.3b ||||||
37+
|Bloom| bigscience/bloom-1b7 ||||||
38+
|CodeGen| Salesforce/codegen-2B-multi ||||||
39+
|Baichuan| baichuan-inc/Baichuan2-7B-Chat ||||||
40+
|Baichuan| baichuan-inc/Baichuan2-13B-Chat ||||||
41+
|Baichuan| baichuan-inc/Baichuan-13B-Chat ||||||
42+
|ChatGLM| THUDM/chatglm3-6b ||||||
43+
|ChatGLM| THUDM/chatglm2-6b ||||||
44+
|GPTBigCode| bigcode/starcoder ||||||
45+
|T5| google/flan-t5-xl ||||||
46+
|MPT| mosaicml/mpt-7b ||||||
47+
|Mistral| mistralai/Mistral-7B-v0.1 ||||||
48+
|Mixtral| mistralai/Mixtral-8x7B-v0.1 ||| |||
49+
|Stablelm| stabilityai/stablelm-2-1_6b ||||||
50+
|Qwen| Qwen/Qwen-7B-Chat ||||||
51+
|Qwen| Qwen/Qwen2-7B ||||||
52+
|LLaVA| liuhaotian/llava-v1.5-7b ||| |||
53+
|GIT| microsoft/git-base ||| |||
54+
|Yuan| IEITYuan/Yuan2-102B-hf ||| || |
55+
|Phi| microsoft/phi-2 ||||||
56+
|Phi| microsoft/Phi-3-mini-4k-instruct ||||||
57+
|Phi| microsoft/Phi-3-mini-128k-instruct ||||||
58+
|Phi| microsoft/Phi-3-medium-4k-instruct ||||||
59+
|Phi| microsoft/Phi-3-medium-128k-instruct ||||||
60+
|Whisper| openai/whisper-large-v2 ||||||
61+
|Maira| microsoft/maira-2 ||| |||
62+
|Jamba| ai21labs/Jamba-v0.1 ||| |||
63+
|DeepSeek| deepseek-ai/DeepSeek-V2.5-1210 ||| |||
6164

6265
*Note*: The above verified models (including other models in the same model family, like "codellama/CodeLlama-7b-hf" from LLAMA family) are well supported with all optimizations like indirect access KV cache, fused ROPE, and customized linear kernels.
6366
We are working in progress to better support the models in the tables with various data types. In addition, more models will be optimized in the future.
@@ -80,4 +83,3 @@ See Intel's [Security Center](https://www.intel.com/content/www/us/en/security-c
8083
for information on how to report a potential security issue or vulnerability.
8184

8285
See also: [Security Policy](SECURITY.md)
83-

docker/Dockerfile.prebuilt

+5-5
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 100
3535

3636
WORKDIR /root
3737

38-
ARG IPEX_VERSION=2.5.0
39-
ARG TORCHCCL_VERSION=2.5.0
40-
ARG PYTORCH_VERSION=2.5.0
41-
ARG TORCHAUDIO_VERSION=2.5.0
42-
ARG TORCHVISION_VERSION=0.20.0
38+
ARG IPEX_VERSION=2.6.0
39+
ARG TORCHCCL_VERSION=2.6.0
40+
ARG PYTORCH_VERSION=2.6.0
41+
ARG TORCHAUDIO_VERSION=2.6.0
42+
ARG TORCHVISION_VERSION=0.21.0
4343
RUN python -m venv venv && \
4444
. ./venv/bin/activate && \
4545
python -m pip --no-cache-dir install --upgrade \

0 commit comments

Comments
 (0)