-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add LLMs quantization model list and recipes (#1504)
Signed-off-by: chensuyue <[email protected]>
- Loading branch information
Showing
7 changed files
with
48 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% set version = "2.4" %} | ||
{% set version = "2.4.1" %} | ||
{% set buildnumber = 0 %} | ||
package: | ||
name: neural-insights | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% set version = "2.4" %} | ||
{% set version = "2.4.1" %} | ||
{% set buildnumber = 0 %} | ||
package: | ||
name: neural-solution | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
LLM Quantization Models and Recipes | ||
--- | ||
|
||
Intel® Neural Compressor supported advanced large language models (LLMs) quantization technologies including SmoothQuant (SQ) and Weight-Only Quant (WOQ), | ||
and verified a list of LLMs on 4th Gen Intel® Xeon® Scalable Processor (codenamed Sapphire Rapids) with [PyTorch](https://pytorch.org/), | ||
[Intel® Extension for PyTorch](https://github.com/intel/intel-extension-for-pytorch) and [Intel® Extension for Transformers](https://github.com/intel/intel-extension-for-transformers). | ||
This document aims to publish the specific recipes we achieved for the popular LLMs and help users to quickly get an optimized LLM with limited 1% accuracy loss. | ||
|
||
> Notes: | ||
> - The quantization algorithms provide by [Intel® Neural Compressor](https://github.com/intel/neural-compressor) and the evaluate functions provide by [Intel® Extension for Transformers](https://github.com/intel/intel-extension-for-transformers). | ||
> - The model list are continuing update, please expect to find more LLMs in the future. | ||
## IPEX key models | ||
| Models | SQ INT8 | WOQ INT8 | WOQ INT4 | | ||
|:-------------------------:|---------|:--------:|:--------:| | ||
| EleutherAI/gpt-j-6b | ✔ | ✔ | ✔ | | ||
| facebook/opt-1.3b | ✔ | ✔ | ✔ | | ||
| facebook/opt-30b | ✔ | ✔ | ✔ | | ||
| meta-llama/Llama-2-7b-hf | ✔ | ✔ | ✔ | | ||
| meta-llama/Llama-2-13b-hf | ✔ | ✔ | ✔ | | ||
| meta-llama/Llama-2-70b-hf | ✔ | ✔ | ✔ | | ||
| tiiuae/falcon-40b | ✔ | ✔ | ✔ | | ||
|
||
**Detail recipes can be found [HERE](https://github.com/intel/intel-extension-for-transformers/examples/huggingface/pytorch/text-generation/quantization/llm_quantization_recipes.md).** | ||
> Notes: | ||
> - This model list comes from [IPEX](https://intel.github.io/intel-extension-for-pytorch/cpu/latest/tutorials/llm.html). | ||
> - WOQ INT4 recipes will be published soon. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters