We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32e3e48 commit 09d8032Copy full SHA for 09d8032
packages/hub/src/lib/parse-safetensors-metadata.ts
@@ -14,6 +14,7 @@ export const SAFETENSORS_INDEX_FILE = "model.safetensors.index.json";
14
/// but in some situations safetensors weights have different filenames.
15
export const RE_SAFETENSORS_FILE = /\.safetensors$/;
16
export const RE_SAFETENSORS_INDEX_FILE = /\.safetensors\.index\.json$/;
17
+export const RE_SAFETENSORS_SHARD_FILE = /\d{5}-of-\d{5}\.safetensors$/;
18
const PARALLEL_DOWNLOADS = 5;
19
const MAX_HEADER_LENGTH = 25_000_000;
20
0 commit comments