ipex-llm/python/llm/example/CPU/Speculative-Decoding/Self-Speculation
2024-05-29 13:15:27 -07:00
..
baichuan2 Reconstruct Speculative Decoding example directory (#11136) 2024-05-29 13:15:27 -07:00
chatglm3 Reconstruct Speculative Decoding example directory (#11136) 2024-05-29 13:15:27 -07:00
llama2 Reconstruct Speculative Decoding example directory (#11136) 2024-05-29 13:15:27 -07:00
llama3 Reconstruct Speculative Decoding example directory (#11136) 2024-05-29 13:15:27 -07:00
mistral Reconstruct Speculative Decoding example directory (#11136) 2024-05-29 13:15:27 -07:00
mixtral Reconstruct Speculative Decoding example directory (#11136) 2024-05-29 13:15:27 -07:00
qwen Reconstruct Speculative Decoding example directory (#11136) 2024-05-29 13:15:27 -07:00
starcoder Reconstruct Speculative Decoding example directory (#11136) 2024-05-29 13:15:27 -07:00
vicuna Reconstruct Speculative Decoding example directory (#11136) 2024-05-29 13:15:27 -07:00
ziya Reconstruct Speculative Decoding example directory (#11136) 2024-05-29 13:15:27 -07:00
README.md Reconstruct Speculative Decoding example directory (#11136) 2024-05-29 13:15:27 -07:00

Self-Speculative Decoding for Large Language Model BF16 Inference using IPEX-LLM on Intel CPUs

You can use IPEX-LLM to run BF16 inference for any Huggingface Transformer model with self-speculative decoding on Intel CPUs. This directory contains example scripts to help you quickly get started to run some popular open-source models using self-speculative decoding. Each model has its own dedicated folder, where you can find detailed instructions on how to install and run it.

Verified Hardware Platforms

  • Intel Xeon SPR server

To run these examples with IPEX-LLM, we have some recommended requirements for your machine, please refer to here for more information. Make sure you have installed ipex-llm before:

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

Moreover, install IPEX 2.1.0, which can be done through pip install intel_extension_for_pytorch==2.1.0.