[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
12183e0656
commit
e885d7308e
1 changed files with 5 additions and 2 deletions
|
|
@ -181,8 +181,11 @@ class LlamaCppBackend:
|
|||
if m:
|
||||
prefix, _, num_total = m.group(1), m.group(2), m.group(3)
|
||||
sibling_pat = re.compile(
|
||||
r"^" + re.escape(prefix) + r"-\d{5}-of-"
|
||||
+ re.escape(num_total) + r"\.gguf$"
|
||||
r"^"
|
||||
+ re.escape(prefix)
|
||||
+ r"-\d{5}-of-"
|
||||
+ re.escape(num_total)
|
||||
+ r"\.gguf$"
|
||||
)
|
||||
for sibling in main.parent.iterdir():
|
||||
if sibling != main and sibling_pat.match(sibling.name):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue