mirror of
https://github.com/wassname/peft.git
synced 2026-10-30 13:21:29 +08:00
Show CONFIG_NAME instead of "config.json"
This commit is contained in:
1 parent
df71b84341
commit
d6c68ae1a5
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user