From 6c38ca612b19c9a207a6412640e4f962f56bb4fa Mon Sep 17 00:00:00 2001 From: danbider Date: Mon, 14 Aug 2023 20:18:10 +0000 Subject: [PATCH] format string --- scripts/eval/eval.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/eval/eval.py b/scripts/eval/eval.py index 7a49e6ae4b..60c8656b5e 100644 --- a/scripts/eval/eval.py +++ b/scripts/eval/eval.py @@ -32,9 +32,8 @@ def load_peft_model(model_cfg: DictConfig, tokenizer: PreTrainedTokenizerBase, from peft import PeftModel except ImportError as e: raise ImportError( - 'Error importing from peft. Please verify that peft and peft utils ' - 'are installed by running `pip install -e .[gpu,peft]` from `llm-foundry/`.' - f'Error encountered: {e}') + f'Error importing from peft. Run `pip install -e .[gpu,peft]`. \n {e}' + ) model_registry = { 'mpt_causal_lm': MPTForCausalLM,