From cf45ff7232ee5027f190f5026c8b8d74ce6614cd Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Sun, 15 Mar 2026 07:36:40 +0000 Subject: [PATCH] studio: fix downloaded check -- compare basename not full path The variant filename includes a subfolder prefix (e.g. UD-Q4_K_XL/Kimi-K2.5-UD-Q4_K_XL-00001-of-00013.gguf) but rglob returns just the filename. Use Path.name for the comparison. --- studio/backend/routes/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/studio/backend/routes/models.py b/studio/backend/routes/models.py index 4633bd26fe..34069cffc6 100644 --- a/studio/backend/routes/models.py +++ b/studio/backend/routes/models.py @@ -583,7 +583,7 @@ async def get_gguf_variants( filename = v.filename, quant = v.quant, size_bytes = v.size_bytes, - downloaded = v.filename in cached_files, + downloaded = Path(v.filename).name in cached_files, ) for v in variants ],