From c6ed1c412dfc096b747753465f1326ae4df7bc82 Mon Sep 17 00:00:00 2001 From: "Huang, Xinshengzi" Date: Thu, 22 Aug 2024 11:26:49 +0800 Subject: [PATCH] fix typos --- python/llm/src/ipex_llm/transformers/models/baichuan.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/llm/src/ipex_llm/transformers/models/baichuan.py b/python/llm/src/ipex_llm/transformers/models/baichuan.py index 21d86b06..a4be00ba 100644 --- a/python/llm/src/ipex_llm/transformers/models/baichuan.py +++ b/python/llm/src/ipex_llm/transformers/models/baichuan.py @@ -119,7 +119,8 @@ def baichuan_model_7b_forward( elif inputs_embeds is not None: batch_size, seq_length, _ = inputs_embeds.shape else: - raise ValueError("You have to specify either decoder_input_ids or decoder_inputs_embeds") + log4Error.invalidInputError("You have to specify either decoder_input_ids \ + or decoder_inputs_embeds") seq_length_with_past = seq_length past_key_values_length = 0