ipex-llm/python/llm/example/CPU/HF-Transformers-AutoModels/Model
ZehuaCao 56cb992497
LLM: Modify CPU Installation Command for most examples (#11049)
* init

* refine

* refine

* refine

* modify hf-agent example

* modify all CPU model example

* remove readthedoc modify

* replace powershell with cmd

* fix repo

* fix repo

* update

* remove comment on windows code block

* update

* update

* update

* update

---------

Co-authored-by: xiangyuT <xiangyu.tian@intel.com>
2024-05-17 15:52:20 +08:00
..
aquila LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
aquila2 LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
baichuan LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
baichuan2 LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
bluelm LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
chatglm LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
chatglm2 LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
chatglm3 LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
codegemma LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
codellama LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
codeshell LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
cohere LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
deciLM-7b LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
deepseek LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
deepseek-moe LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
distil-whisper LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
dolly_v1 LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
dolly_v2 LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
falcon LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
flan-t5 LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
fuyu LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
gemma LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
internlm LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
internlm-xcomposer LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
internlm2 LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
llama2 LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
llama3 LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
mistral LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
mixtral LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
moss LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
mpt LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
phi-1_5 LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
phi-2 LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
phi-3 LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
phixtral LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
phoenix LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
qwen LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
qwen-vl LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
qwen1.5 LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
redpajama LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
replit LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
skywork LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
solar LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
stablelm LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
starcoder LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
vicuna LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
whisper LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
wizardcoder-python LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
yi LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
yuan2 LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
ziya LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
README.md LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00

IPEX-LLM Transformers INT4 Optimization for Large Language Model

You can use IPEX-LLM to run any Huggingface Transformer models with INT4 optimizations on either servers or laptops. This directory contains example scripts to help you quickly get started using IPEX-LLM to run some popular open-source models in the community. Each model has its own dedicated folder, where you can find detailed instructions on how to install and run it.

To run the examples, we recommend using Intel® Xeon® processors (server), or >= 12th Gen Intel® Core™ processor (client).

For OS, IPEX-LLM supports Ubuntu 20.04 or later (glibc>=2.17), CentOS 7 or later (glibc>=2.17), and Windows 10/11.

Best Known Configuration on Linux

For better performance, it is recommended to set environment variables on Linux with the help of IPEX-LLM:

pip install --pre --upgrade ipex-llm[all] --extra-index-url https://download.pytorch.org/whl/cpu
source ipex-llm-init