From d6c68ae1a5c17e3b4f1805233db3479d6033eaeb Mon Sep 17 00:00:00 2001 From: Aitor Gamarra <60578201+aitor-gamarra@users.noreply.github.com> Date: Wed, 29 Mar 2023 21:03:39 +0200 Subject: [PATCH] Show CONFIG_NAME instead of "config.json" --- src/peft/utils/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/peft/utils/config.py b/src/peft/utils/config.py index 3e2cf5b..2be3817 100644 --- a/src/peft/utils/config.py +++ b/src/peft/utils/config.py @@ -98,7 +98,7 @@ class PeftConfigMixin(PushToHubMixin): try: config_file = hf_hub_download(pretrained_model_name_or_path, CONFIG_NAME) except Exception: - raise ValueError(f"Can't find config.json at '{pretrained_model_name_or_path}'") + raise ValueError(f"Can't find '{CONFIG_NAME}' at '{pretrained_model_name_or_path}'") loaded_attributes = cls.from_json_file(config_file)