Fixing the lora adaptation on docker.

This commit is contained in:
Nicolas Patry 2023-08-28 09:11:50 +00:00
parent e605c2a43e
commit 9011a3dd40

View File

@ -125,6 +125,9 @@ def download_weights(
try:
adapter_config_filename = hf_hub_download(model_id, revision=revision, filename="adapter_config.json")
utils.download_and_unload_peft(model_id, revision, trust_remote_code=trust_remote_code)
is_local_model = True
utils.weight_files(model_id, revision, extension)
return
except (utils.LocalEntryNotFoundError, utils.EntryNotFoundError):
pass