intel-analytics / ipex-llm

Accelerate local LLM inference and finetuning (LLaMA, Mistral, ChatGLM, Qwen, Mixtral, Gemma, Phi, MiniCPM, Qwen-VL, MiniCPM-V, etc.) on Intel XPU (e.g., local PC with iGPU and NPU, discrete GPU such as Arc, Flex and Max); seamlessly integrate with llama.cpp, Ollama, HuggingFace, LangChain, LlamaIndex, vLLM, GraphRAG, DeepSpeed, Axolotl, etc
Apache License 2.0
6.73k stars 1.27k forks source link

fix ipex 2.3 bug #12366

Closed MeouSker77 closed 2 weeks ago

MeouSker77 commented 2 weeks ago

Description

ipex 2.3 will replace some transformers's functions, which may cause error

insert a fake module before importing ipex to avoid it

1. Why the change?

2. User API changes

3. Summary of the change

4. How to test?

MeouSker77 commented 2 weeks ago

PR validation: https://github.com/intel-analytics/ipex-llm-workflow/actions/runs/11735734976