[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
8ebaf955da
commit
0853b2cbb8
1 changed files with 2 additions and 0 deletions
|
|
@ -249,9 +249,11 @@ def test_abort_memo_key_includes_variant():
|
|||
src = _load_model_src()
|
||||
assert "_abort_memo_model" in src
|
||||
assert "hf_variant" in src and "gguf_path" in src
|
||||
|
||||
# Sanity: distinct variants produce distinct keys for the same model.
|
||||
def key(model, variant, gguf):
|
||||
return "\x00".join([model or "", variant or "", gguf or ""])
|
||||
|
||||
assert key("repo", "UD-Q6_K", None) != key("repo", "UD-Q4_K_XL", None)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue