Skip to content

Commit f384c64

Browse files
committed
fix(model-loader): also skip .ckpt, .zip, and .tag files when scanning models
The local model directory scan treats every non-skipped file as a model config candidate. Sidecar artifacts that ship alongside checkpoints (checkpoint blobs, downloaded archives, ggml-style tag files) were slipping through and showing up as bogus models in the listing. Add their extensions to the suffix-skip list. Signed-off-by: Ettore Di Giacinto <mudler@localai.io> Assisted-by: Claude:claude-opus-4-7 [Claude Code]
1 parent e9d8e92 commit f384c64

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/model/loader.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ var knownModelsNameSuffixToSkip []string = []string{
193193
".bin",
194194
".gguf",
195195
".ggml",
196+
".ckpt",
197+
".zip",
198+
".tag",
196199
".partial",
197200
".tar.gz",
198201
}

0 commit comments

Comments
 (0)