Commit d7b9291
committed
fix(llamacpp): resolve --model-dir to the top-level GGUF, not a nested draft
find_gguf globbed **/*.gguf recursively and returned the lexically-first match, so a
--model-dir pointing at a directory that also holds the draft/MTP GGUF in a subdirectory
resolved the model to the draft (e.g. an object-store FUSE prefix carrying both
Model.gguf and MTP/draft.gguf -- "MTP" sorts before the model name). Download mode never
hit this because model and draft are separate artifacts in separate mount dirs; fuse
delivery surfaces them under one prefix. Prefer GGUFs directly in the given directory and
only recurse when none are found there; sharded-shard and nested-only layouts are
unaffected.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Michael Hotan <mike@union.ai>1 parent 3e2a605 commit d7b9291
2 files changed
Lines changed: 17 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
40 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
34 | 43 | | |
35 | 44 | | |
36 | 45 | | |
| |||
0 commit comments