mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-01 18:51:14 +06:00
Fix PEFT integration failures on nightly CI (#25624)
fix PEFT integration failures
This commit is contained in:
parent
f92cc7034a
commit
9627c3da4a
@ -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.
|
are on HuggingFace Hub. You might need to call `huggingface-cli login` and paste your tokens to cache it.
|
||||||
"""
|
"""
|
||||||
adapter_cached_filename = None
|
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)
|
list_remote_files = os.listdir(model_id)
|
||||||
if ADAPTER_CONFIG_NAME in list_remote_files:
|
if ADAPTER_CONFIG_NAME in list_remote_files:
|
||||||
adapter_cached_filename = os.path.join(model_id, ADAPTER_CONFIG_NAME)
|
adapter_cached_filename = os.path.join(model_id, ADAPTER_CONFIG_NAME)
|
||||||
|
Loading…
Reference in New Issue
Block a user