From 256a4e1fedd18c3e7af04392f4bde80bc0bc04cf Mon Sep 17 00:00:00 2001 From: lalalapotter Date: Thu, 11 Jul 2024 10:52:45 +0800 Subject: [PATCH] fix comments. --- python/llm/src/ipex_llm/transformers/convert.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/python/llm/src/ipex_llm/transformers/convert.py b/python/llm/src/ipex_llm/transformers/convert.py index 31405577240..42a9acfd7a2 100644 --- a/python/llm/src/ipex_llm/transformers/convert.py +++ b/python/llm/src/ipex_llm/transformers/convert.py @@ -332,8 +332,6 @@ def _replace_with_low_bit_linear(model, qtype, modules_to_not_convert=None, optimize_lm_head = os.environ.get("IPEX_LLM_LAST_LM_HEAD", None) == "1" elif os.environ.get("IPEX_LLM_LOW_MEM", None) is not None: optimize_lm_head = os.environ.get("IPEX_LLM_LOW_MEM", None) == "1" - else: - optimize_lm_head = False with init_empty_weights(): new_linear = None is_gptq = is_gptq_linear(module)