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.75k stars 1.27k forks source link

use new q4_0 batch kernel #12396

Closed MeouSker77 closed 1 week ago

MeouSker77 commented 1 week ago

Description

new batch kernel supports more device, requires state_size % 128 == 0 instead of state_size % 256 == 0, remove output_size % 32 == 0, but it supports max batch to 48 instead of 64

1. Why the change?

2. User API changes

3. Summary of the change

4. How to test?