Peft safetensors.

Works by removing adapter_model.safetensors from being detected as the
core model file (which skips the real peft detection).
This commit is contained in:
Nicolas Patry 2023-12-20 08:20:25 +00:00
parent d077150eb7
commit d5db3433c8

View File

@ -48,6 +48,7 @@ def _weight_files_from_dir(d: Path, extension: str) -> List[str]:
if f.endswith(extension) if f.endswith(extension)
and "arguments" not in f and "arguments" not in f
and "args" not in f and "args" not in f
and "adapter" not in f
and "training" not in f] and "training" not in f]
return filenames return filenames