Repository navigation
fix(studio): dedupe custom-folder GGUF entries by directory index - #9306
Souravrajvi0 wants to merge 3 commits into
Conversation
|
Confirmed the custom-folder scan in studio/backend/routes/models.py lists the directory and the sibling .gguf as separate rows, and that the embeddings monitor still echoes the raw request model instead of _monitor_active_model(). Could you split the monitor-id change out and replace the prefix match in _dedupe_sibling_gguf_folder_entries with a check that the file is actually indexed by that directory, plus a real behaviour test instead of the inspect.getsource assertion? |
|
Addressed review feedback:
|
|
Thanks, the monitor-id change is out in #9346 and the dedupe now checks the directory actually indexes the file rather than matching on name prefix, with the behaviour tests replacing the getsource assertion. Will get this reviewed. |
…tor ids Custom-folder scans listed both a model directory (bge-m3/) and a sibling standalone .gguf (bge-m3-q8_0.gguf), producing duplicate picker rows (unslothai#9128). Also show the loaded public model id in the API monitor for /embeddings and /v1/completions instead of echoing the raw client-supplied alias.
Drop standalone .gguf picker rows only when a directory entry actually indexes that file (file lives in the dir, or a same-named sibling copy exists beside a dir that contains it). Remove the name-prefix match. Split the embeddings/completions monitor-id change out of this PR.
76719cd to
09572cb
Compare
|
Rebased onto latest This branch is dedupe-only now — monitor-id change remains in #9346 per review.
Suggest merging #9346 first, then this one. Ready when you have a moment. |
|
Closing as superseded by merged #9975 (Imagineer99, 2026-08-30): That covers the same bge-m3 directory + sibling |
Follow-up to #9128 / #9149.
Problem
@3-ark reported redundant model IDs in custom folders: the picker listed both
bge-m3/(directory) andbge-m3-q8_0.gguffor the same weights.Changes
routes/models.py:_dedupe_sibling_gguf_folder_entries()drops standalone.ggufrows only when a directory entry actually indexes that file — the file lives inside the directory, or a same-named sibling copy sits beside a directory that contains it. Name-prefix matching is gone.Split out
The embeddings/completions monitor-id normalization lives in #9346.
Test plan