summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorslaren <slarengh@gmail.com>2024-04-10 15:23:12 +0200
committerGitHub <noreply@github.com>2024-04-10 15:23:12 +0200
commit65c64dc36f9bca5b3f100614cdd02bf12d6b3e49 (patch)
tree5505f36478d4458c4e18c79b0575d90af1d92eb0
parent67fac4b95fcccfda8ab965e9ba4992a9ddf3a25f (diff)
convert.py : add consolidated.safetensors for mixtral 8x22b (#6587)
-rwxr-xr-xconvert.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/convert.py b/convert.py
index e860ac89..24df0a4d 100755
--- a/convert.py
+++ b/convert.py
@@ -1350,7 +1350,7 @@ def load_some_model(path: Path) -> ModelPlus:
# Be extra-friendly and accept either a file or a directory:
if path.is_dir():
# Check if it's a set of safetensors files first
- globs = ["model-00001-of-*.safetensors", "model.safetensors"]
+ globs = ["model-00001-of-*.safetensors", "model.safetensors", "consolidated.safetensors"]
files = [file for glob in globs for file in path.glob(glob)]
if not files:
# Try the PyTorch patterns too, with lower priority