Non-autoregressive System 1 decision engine. Typed choice, score and yes/no decisions over any text in a single forward pass, in 100+ languages, with a router that picks the right checkpoint per request.
Python calibrationclassificationdecision-modelhuggingfacejevmodernbertmultilingualnlppythonpytorchroutingtyped-decisionszero-shot
laya-go: pin that a scanned PredictLong writes no gate field
Adeshina Lasisidbb12dfab4ba
diff --git a/laya-go/agent/gate_test.go b/laya-go/agent/gate_test.goindex acc11110..903898c9 100644--- a/laya-go/agent/gate_test.go+++ b/laya-go/agent/gate_test.go@@ -115,3 +115,17 @@ func TestPredictLongWritesNoGateField(t *testing.T) {t.Fatalf("PredictLong carries a gate field: %s", s)}}++func TestPredictLongScanWritesNoGateField(t *testing.T) {+ a, _ := open(t, longConfig)+ lp, err := a.PredictLong(context.Background(), longState(900), questions(t), agent.WithMinConfidence(1))+ if err != nil {+ t.Fatal(err)+ }+ if lp.Usage.Windows < 3 {+ t.Fatalf("not a scanned state: %d windows", lp.Usage.Windows)+ }+ if s := jsonOf(t, lp.Prediction); strings.Contains(s, "abstention") || strings.Contains(s, "low_confidence") {+ t.Fatalf("a scanned PredictLong carries a gate field: %s", s)+ }+}