Skip to content

Commit

Permalink
update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
cyita committed Jan 6, 2025
1 parent b5947b3 commit 1c1571b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/llm/src/ipex_llm/transformers/npu_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,10 @@ def load_low_bit(cls, pretrained_model_name_or_path: str, *model_args, **kwargs)
from ipex_llm.transformers.npu_models.convert import optimize_llm_single_process
if save_directory is None:
invalidInputError(False,
"Please specify the save_directory.")
"Please specify the save_directory, the path of folder " +
"to save the compiled NPU model. If path not exists, " +
"the compiled NPU model will be saved there. " +
"Else, program will raise an error.")

optimize_llm_single_process(
llm,
Expand Down

0 comments on commit 1c1571b

Please sign in to comment.