The explorer lists only what a node loads

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:
Ilker ManapandClaude Opus 5.5 committed 2026-10-26 13:00:28 +01:00
1 parent 4466d2d15a
commit e84631ce3a
10 files changed
+105 -27

No files matched your search

+14 -10
View File
@@ -14,7 +14,7 @@ import (
"sync"
"time"
"gitea.mynodes.xyz/ilker/llmgw/internal/agent/weights"
weightspkg "gitea.mynodes.xyz/ilker/llmgw/internal/agent/weights"
"gitea.mynodes.xyz/ilker/llmgw/internal/control/adminapi"
"gitea.mynodes.xyz/ilker/llmgw/internal/control/catalog"
"gitea.mynodes.xyz/ilker/llmgw/internal/gguf"
@@ -175,10 +175,13 @@ type adminMirrorData struct {
// Card is the open repository's model card, rendered.
Card template.HTML
// RepoURL is the open repository on the registry's own site.
RepoURL string
Repo *hf.Repo
RepoSets []repoSet
RegistryErr string
RepoURL string
Repo *hf.Repo
RepoSets []repoSet
// PickleHidden is how many of the open repository's weights files were
// left out for being in a pickle format, which nodes refuse.
PickleHidden int
RegistryErr string
Message string
Error string
@@ -789,6 +792,12 @@ func (p *AccountPages) openRepo(r *http.Request, d *adminMirrorData, repo string
d.Card = renderCard(got.Card, d.RepoURL+"/blob/"+revOrMain(got.Revision)+"/")
var weights []hf.File
for _, f := range got.Files {
// Pickles run code when loaded and a node refuses them unless a
// model says allow_pickle: not offered, only counted.
if weightspkg.Pickled(f.Path) {
d.PickleHidden++
continue
}
if !f.IsWeights() {
// Thirty files of which four are worth gigabytes. The rest are
// a README and a tokenizer, and listing them buries the ones
@@ -877,11 +886,6 @@ func defaultModelName(repoID string) string { return hf.ModelName(repoID) }
// verdictFor judges a registry file set by the repository's architecture. A
// vision projector is its own architecture whatever the repository says.
func (p *AccountPages) verdictFor(l *Lang, arch, name string) gguf.Verdict {
// Not refused here — the mirror keeps what it is given — but a node
// refuses to fetch it for a model without allow_pickle.
if weights.Pickled(name) {
return gguf.Verdict{Checked: true, Reason: l.T("card.pickle")}
}
if strings.Contains(strings.ToLower(name), "mmproj") {
return gguf.LlamaCpp(p.llamaVersion, "clip")
}