Skip to content

Commit

Permalink
format string
Browse files Browse the repository at this point in the history
  • Loading branch information
danbider committed Aug 14, 2023
1 parent 47d9811 commit 6c38ca6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/eval/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6c38ca6

Please sign in to comment.