mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 04:14:52 +00:00
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:
parent
d077150eb7
commit
d5db3433c8
@ -48,6 +48,7 @@ def _weight_files_from_dir(d: Path, extension: str) -> List[str]:
|
||||
if f.endswith(extension)
|
||||
and "arguments" not in f
|
||||
and "args" not in f
|
||||
and "adapter" not in f
|
||||
and "training" not in f]
|
||||
return filenames
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user