Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
9627c3da
Unverified
Commit
9627c3da
authored
Aug 21, 2023
by
Younes Belkada
Committed by
GitHub
Aug 21, 2023
Browse files
Fix PEFT integration failures on nightly CI (#25624)
fix PEFT integration failures
parent
f92cc703
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/transformers/utils/peft_utils.py
src/transformers/utils/peft_utils.py
+3
-1
No files found.
src/transformers/utils/peft_utils.py
View file @
9627c3da
...
...
@@ -59,7 +59,9 @@ def find_adapter_config_file(
are on HuggingFace Hub. You might need to call `huggingface-cli login` and paste your tokens to cache it.
"""
adapter_cached_filename
=
None
if
os
.
path
.
isdir
(
model_id
):
if
model_id
is
None
:
return
None
elif
os
.
path
.
isdir
(
model_id
):
list_remote_files
=
os
.
listdir
(
model_id
)
if
ADAPTER_CONFIG_NAME
in
list_remote_files
:
adapter_cached_filename
=
os
.
path
.
join
(
model_id
,
ADAPTER_CONFIG_NAME
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment