A repository with neither GGUF nor safetensors (by the registry's summary or its tags) is hidden under "runs here", which is ticked by default, and counted with the architectures llama.cpp cannot load; unticked it is listed. An open repository's pickle files are not offered, only counted, and a repository of pickles only says to look for another version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4466d2d15a
commit
e84631ce3a
10 files changed
+105
-27
No files matched your search
@@ -5,6 +5,7 @@ import (
|
||||
"html/template"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"slices"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
@@ -286,6 +287,12 @@ func (p *AccountPages) exploreList(r *http.Request, d *adminMirrorData) {
|
||||
if e.Here && m.Params() > 0 && m.Params() < minParams {
|
||||
continue
|
||||
}
|
||||
// Nothing in it a node loads: no GGUF, no safetensors — pickles,
|
||||
// which nodes refuse, or a format no engine here reads.
|
||||
if e.Here && !loadable(m) {
|
||||
e.Hidden++
|
||||
continue
|
||||
}
|
||||
if e.Here && row.Verdict.Checked && !row.Verdict.Servable {
|
||||
e.Hidden++
|
||||
continue
|
||||
@@ -295,3 +302,12 @@ func (p *AccountPages) exploreList(r *http.Request, d *adminMirrorData) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// loadable reports whether a listed repository has weights a node loads:
|
||||
// GGUF or safetensors, by the registry's summary of them or its tags.
|
||||
func loadable(m hf.Model) bool {
|
||||
if m.GGUF != nil || m.Safetensors != nil {
|
||||
return true
|
||||
}
|
||||
return slices.Contains(m.Tags, "gguf") || slices.Contains(m.Tags, "safetensors")
|
||||
}
|
||||
Reference in new issue
Block a user