ipex-llm/python/llm/example/CPU
Yang Wang 8153c3008e
Initial llama3 example (#10799)
* Add initial hf huggingface GPU example

* Small fix

* Add llama3 gpu pytorch model example

* Add llama 3 hf transformers CPU example

* Add llama 3 pytorch model CPU example

* Fixes

* Small fix

* Small fixes

* Small fix

* Small fix

* Add links

* update repo id

* change prompt tuning url

* remove system header if there is no system prompt

---------

Co-authored-by: Yuwen Hu <yuwen.hu@intel.com>
Co-authored-by: Yuwen Hu <54161268+Oscilloscope98@users.noreply.github.com>
2024-04-18 11:01:33 -07:00
..
Applications Upgrade to python 3.11 (#10711) 2024-04-09 17:41:17 +08:00
Deepspeed-AutoTP Upgrade to python 3.11 (#10711) 2024-04-09 17:41:17 +08:00
HF-Transformers-AutoModels Initial llama3 example (#10799) 2024-04-18 11:01:33 -07:00
LangChain Add tokenizer_id in Langchain (#10588) 2024-04-03 14:25:35 +08:00
LlamaIndex Llamaindex: add tokenizer_id and support chat (#10590) 2024-04-07 13:51:34 +08:00
ModelScope-Models Upgrade to python 3.11 (#10711) 2024-04-09 17:41:17 +08:00
Native-Models Upgrade to python 3.11 (#10711) 2024-04-09 17:41:17 +08:00
PyTorch-Models Initial llama3 example (#10799) 2024-04-18 11:01:33 -07:00
QLoRA-FineTuning Upgrade python to 3.11 in Docker Image (#10718) 2024-04-10 14:41:27 +08:00
Speculative-Decoding Fix short prompt for IPEX_CPU speculative decoding cause no_attr error (#10783) 2024-04-17 16:19:57 +08:00
vLLM-Serving Upgrade to python 3.11 (#10711) 2024-04-09 17:41:17 +08:00
README.md Update_document by heyang (#30) 2024-03-25 10:06:02 +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

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 ipex-llm
source ipex-llm-init