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
fix(realtime): gate scoring capacity by model usecase
Reserve llama.cpp scoring slots only for models that explicitly declare the score usecase, while allowing score to coexist with chat and completion. Reject incompatible unified-KV settings and classifier activation on models without scoring capacity.
Propagate application defaults when resolving realtime and preload pipeline stages so unset thread counts are resolved consistently without overriding explicit model settings.
Assisted-by: Codex:gpt-5
Signed-off-by: Richard Palethorpe <io@richiejp.com>
Copy file name to clipboardExpand all lines: core/config/backend_capabilities.go
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ const (
30
30
UsecaseFaceRecognition="face_recognition"
31
31
UsecaseSpeakerRecognition="speaker_recognition"
32
32
UsecaseTokenClassify="token_classify"
33
+
UsecaseScore="score"
33
34
)
34
35
35
36
// GRPCMethod identifies a Backend service RPC from backend.proto.
@@ -60,6 +61,7 @@ const (
60
61
MethodVoiceEmbedGRPCMethod="VoiceEmbed"
61
62
MethodVoiceAnalyzeGRPCMethod="VoiceAnalyze"
62
63
MethodTokenClassifyGRPCMethod="TokenClassify"
64
+
MethodScoreGRPCMethod="Score"
63
65
)
64
66
65
67
// UsecaseInfo describes a single known_usecase value and how it maps
@@ -192,6 +194,11 @@ var UsecaseInfoMap = map[string]UsecaseInfo{
192
194
GRPCMethod: MethodTokenClassify,
193
195
Description: "Per-token classification (NER) via the TokenClassify RPC — the PII detector tier. Declared explicitly via known_usecases; never auto-guessed, since the token-classification head is not useful as general generation or embeddings.",
194
196
},
197
+
UsecaseScore: {
198
+
Flag: FLAG_SCORE,
199
+
GRPCMethod: MethodScore,
200
+
Description: "Joint log-probability scoring of candidate continuations via the Score RPC. Declared explicitly via known_usecases and usable alongside generation usecases.",
201
+
},
195
202
}
196
203
197
204
// BackendCapability describes which gRPC methods and usecases a backend supports.
0 commit comments