ipex-llm/python/llm/example/CPU
Jin, Qiao c2efa264d9
Update LangChain examples to use upstream (#12388)
* Update LangChain examples to use upstream

* Update README and fix links

* Update LangChain CPU examples to use upstream

* Update LangChain CPU voice_assistant example

* Update CPU README

* Update GPU README

* Remove GPU Langchain vLLM example and fix comments

* Change langchain -> LangChain

* Add reference for both upstream llms and embeddings

* Fix comments

* Fix comments

* Fix comments

* Fix comments

* Fix comment
2024-11-26 16:43:15 +08:00
..
Applications Fix IPEX auto importer (#11192) 2024-06-04 16:57:18 +08:00
Deepspeed-AutoTP Fix IPEX auto importer (#11192) 2024-06-04 16:57:18 +08:00
HF-Transformers-AutoModels Limit trl version in example (#12332) 2024-11-05 14:50:10 +08:00
LangChain Update LangChain examples to use upstream (#12388) 2024-11-26 16:43:15 +08:00
LlamaIndex Update llamaindex examples (#11940) 2024-08-28 14:03:44 +08:00
ModelScope-Models LLM: Modify CPU Installation Command for most examples (#11049) 2024-05-17 15:52:20 +08:00
Native-Models Remove chatglm_C Module to Eliminate LGPL Dependency (#11178) 2024-05-31 17:03:11 +08:00
PyTorch-Models Limit trl version in example (#12332) 2024-11-05 14:50:10 +08:00
QLoRA-FineTuning Remove accelerate 0.23.0 install command in readme and docker (#11333) 2024-06-17 17:52:12 +08:00
Speculative-Decoding Miniconda/Anaconda -> Miniforge update in examples (#11194) 2024-06-04 10:14:02 +08:00
StableDiffusion Add Stable Diffusion examples on GPU and CPU (#11166) 2024-06-12 16:33:25 +08:00
vLLM-Serving LLM: Fix vLLM CPU version error (#11206) 2024-06-04 19:10:23 +08:00
README.md Add Stable Diffusion examples on GPU and CPU (#11166) 2024-06-12 16:33:25 +08:00

IPEX-LLM Examples on Intel CPU

This folder contains examples of running IPEX-LLM on Intel CPU:

  • HF-Transformers-AutoModels: running any Hugging Face Transformers model on IPEX-LLM (using the standard AutoModel APIs)
  • QLoRA-FineTuning: running QLoRA finetuning using IPEX-LLM on intel CPUs
  • vLLM-Serving: running vLLM serving framework on intel CPUs (with IPEX-LLM low-bit optimized models)
  • Deepspeed-AutoTP: running distributed inference using DeepSpeed AutoTP (with IPEX-LLM low-bit optimized models)
  • LangChain: running LangChain applications on IPEX-LLM
  • Applications: running LLM applications (such as agent, streaming-llm) on BigDl-LLM
  • PyTorch-Models: running any PyTorch model on IPEX-LLM (with "one-line code change")
  • Native-Models: converting & running LLM in llama/chatglm/bloom/gptneox/starcoder model family using native (cpp) implementation
  • Speculative-Decoding: running any Hugging Face Transformers model with self-speculative decoding on Intel CPUs
  • ModelScope-Models: running ModelScope model with IPEX-LLM on Intel CPUs
  • StableDiffusion-Models: running stable diffusion models on Intel CPUs.

System Support

Hardware:

  • Intel® Core™ processors
  • Intel® Xeon® processors

Operating System:

  • Ubuntu 20.04 or later (glibc>=2.17)
  • CentOS 7 or later (glibc>=2.17)
  • Windows 10/11, with or without WSL

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