ipex-llm/python/llm/example/GPU/HF-Transformers-AutoModels
Zijie Li bfa1367149
Add CPU and GPU example for MiniCPM (#11202)
* Change installation address

Change former address: "https://docs.conda.io/en/latest/miniconda.html#" to new address: "https://conda-forge.org/download/" for 63 occurrences under python\llm\example

* Change Prompt

Change "Anaconda Prompt" to "Miniforge Prompt" for 1 occurrence

* Create and update model minicpm

* Update model minicpm

Update model minicpm under GPU/PyTorch-Models

* Update readme and generate.py

change "prompt = tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=False)" and delete "pip install transformers==4.37.0
"

* Update comments for minicpm GPU

Update comments for generate.py at minicpm GPU

* Add CPU example for MiniCPM

* Update minicpm README for CPU

* Update README for MiniCPM and Llama3

* Update Readme for Llama3 CPU Pytorch

* Update and fix comments for MiniCPM
2024-06-05 18:09:53 +08:00
..
Advanced-Quantizations Miniconda/Anaconda -> Miniforge update in examples (#11194) 2024-06-04 10:14:02 +08:00
Model Add CPU and GPU example for MiniCPM (#11202) 2024-06-05 18:09:53 +08:00
More-Data-Types Upgrade to python 3.11 (#10711) 2024-04-09 17:41:17 +08:00
Save-Load Remove oneAPI pip install command in related examples (#11030) 2024-05-16 10:46:29 +08:00
README.md Update readme (#10665) 2024-04-05 18:01:57 +08:00

Running HuggingFace transformers model using IPEX-LLM on Intel GPU

This folder contains examples of running any HuggingFace transformers model on IPEX-LLM (using the standard AutoModel APIs):

  • Model: examples of running HuggingFace transformers models (LLaMA, Mistral, ChatGLM, Qwen, Baichuan, Mixtral, Gemma, etc.) using INT4 optimizations
  • More-Data-Types: examples of applying other low bit optimizations (FP8/INT8/FP4, etc.)
  • Save-Load: examples of saving and loading low-bit models
  • Advanced-Quantizations: examples of loading GGUF/AWQ/GPTQ models