ipex-llm/python/llm/example/CPU/HF-Transformers-AutoModels
yb-peng a2c1675546 Add CPU and GPU examples for Yuan2-2B-hf (#9946)
* Add a new CPU example of Yuan2-2B-hf

* Add a new CPU generate.py of Yuan2-2B-hf example

* Add a new GPU example of Yuan2-2B-hf

* Add Yuan2 to README table

* In CPU example:1.Use English as default prompt; 2.Provide modified files in yuan2-2B-instruct

* In GPU example:1.Use English as default prompt;2.Provide modified files

* GPU example:update README

* update Yuan2-2B-hf in README table

* Add CPU example for Yuan2-2B in Pytorch-Models

* Add GPU example for Yuan2-2B in Pytorch-Models

* Add license in generate.py; Modify README

* In GPU Add license in generate.py; Modify README

* In CPU yuan2 modify README

* In GPU yuan2 modify README

* In CPU yuan2 modify README

* In GPU example, updated the readme for Windows GPU supports

* In GPU torch example, updated the readme for Windows GPU supports

* GPU hf example README modified

* GPU example README modified
2024-02-23 14:09:30 +08:00
..
Advanced-Quantizations Fix Mixtral GGUF Wrong Output Issue (#9930) 2024-01-18 14:11:27 +08:00
Model Add CPU and GPU examples for Yuan2-2B-hf (#9946) 2024-02-23 14:09:30 +08:00
More-Data-Types LLM: update example layout (#9046) 2023-10-09 15:36:39 +08:00
Save-Load LLM: update example layout (#9046) 2023-10-09 15:36:39 +08:00
README.md Update readme (#9788) 2023-12-26 19:46:11 +08:00

Running Hugging Face Transformers model using BigDL-LLM on Intel CPU

This folder contains examples of running any Hugging Face Transformers model on BigDL-LLM (using the standard AutoModel APIs):

  • Model: examples of running Hugging Face Transformers models (e.g., LLaMA2, ChatGLM2, Falcon, MPT, Baichuan2, etc.) using INT4 optimizations
  • More-Data-Types: examples of applying other low bit optimizations (NF4/INT5/INT8, etc.)
  • Save-Load: examples of saving and loading low-bit models
  • Advanced-Quantizations: examples of loading GGUF/AWQ/GPTQ models