Skip to content

Commit

Permalink
Fix optimize lm head error (#11899)
Browse files Browse the repository at this point in the history
  • Loading branch information
gc-fu authored Aug 22, 2024
1 parent c5b51d4 commit 278b191
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/llm/src/ipex_llm/transformers/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ def convert_vllm(module, qtype, in_features, out_features, mp_group, cur_qtype,
from vllm.model_executor.layers.vocab_parallel_embedding import ParallelLMHead
from ipex_llm.transformers.low_bit_linear import LowBitLinear, \
FP16Linear, BF16Linear, vLLMLowBitLinear, vLLMFP16Linear, vLLMBF16Linear
# Currently, vLLM does not support optimize_lm_head = True
optimize_lm_head = False
if isinstance(module, ParallelLMHead):
if qtype == ggml_tensor_qtype["fp16"]:
new_linear = FP16Linear(
Expand Down

0 comments on commit 278b191

Please sign in to comment.