You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: detect decision models via <arch>.decision.type (#63)
Parse the "<architecture>.decision.type" metadata the llama.cpp
conversion tools write, mirroring common_get_decision_type: the
presence of the key alone marks a decision model serving
"POST /v1/systemone", whatever its value says.
Expose it as GGUFArchitecture.DecisionType and a presence-based
Decision flag on the llama.cpp estimates, plus a DECISION column in
the CLI table. The detection is independent of the attention
direction and outranks the reranking heuristics: general backbones
such as modern-bert carry classifier tensors and rank pooling that
would otherwise read as reranking.
Also fix reading a zero-length string value: the pooled buffer
grows a zero length to the default size, so the read swallowed the
rest of the file and a legal empty value broke the parse.
Cover both with offline fixture tests and the first-party Laya GGUF
via TEST_MODEL_PATH.
Signed-off-by: Yuxing Deng <15376837+orangedeng@users.noreply.github.com>