ipex-llm/python/llm/example/CPU
hxsz1997 a5f35757a4 Migrate langchain rag cpu example to gpu (#10450)
* add langchain rag on gpu

* add rag example in readme

* add trust_remote_code in TransformersEmbeddings.from_model_id

* add trust_remote_code in TransformersEmbeddings.from_model_id in cpu
2024-03-21 15:20:46 +08:00
..
Applications Update AutoGen README (#10255) 2024-02-28 11:34:45 +08:00
Deepspeed-AutoTP remove benchmarkwrapper form deepspeed example (#10079) 2024-02-04 15:42:15 +08:00
HF-Transformers-AutoModels fix pad_token_id issue (#10425) 2024-03-18 23:30:28 -07:00
LangChain Migrate langchain rag cpu example to gpu (#10450) 2024-03-21 15:20:46 +08:00
LlamaIndex Fix llamaindex AutoTokenizer bug (#10345) 2024-03-08 16:24:50 +08:00
ModelScope-Models LLM: update modelscope version (#10367) 2024-03-11 16:18:27 +08:00
Native-Models LLM: update example layout (#9046) 2023-10-09 15:36:39 +08:00
PyTorch-Models fix pad_token_id issue (#10425) 2024-03-18 23:30:28 -07:00
QLoRA-FineTuning LLM: remove CPU english_quotes dataset and update docker example (#10399) 2024-03-18 10:45:14 +08:00
Speculative-Decoding Speculative Starcoder on CPU (#10138) 2024-02-27 09:57:29 +08:00
vLLM-Serving Add vLLM bf16 support (#10278) 2024-02-29 16:33:42 +08:00
README.md LLM: add Modelscope model example (#10126) 2024-02-08 11:18:07 +08:00

BigDL-LLM Examples on Intel CPU

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

  • HF-Transformers-AutoModels: running any Hugging Face Transformers model on BigDL-LLM (using the standard AutoModel APIs)
  • QLoRA-FineTuning: running QLoRA finetuning using BigDL-LLM on intel CPUs
  • vLLM-Serving: running vLLM serving framework on intel CPUs (with BigDL-LLM low-bit optimized models)
  • Deepspeed-AutoTP: running distributed inference using DeepSpeed AutoTP (with BigDL-LLM low-bit optimized models)
  • LangChain: running LangChain applications on BigDL-LLM
  • Applications: running LLM applications (such as agent, streaming-llm) on BigDl-LLM
  • PyTorch-Models: running any PyTorch model on BigDL-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 BigDL-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 BigDL-LLM:

pip install bigdl-llm
source bigdl-llm-init