Skip to content

armgit / laya

Public Imported from GitHub
0

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.

Merge pull request #789 from Yi-111-a/fix/load-checkpoint-aliases

Nandakishor60c4bb57b8e7
diff --cc laya/router.py
index a291127e,fd401129..33bb0aee
--- a/laya/router.py
+++ b/laya/router.py
@@@ -34,9 -34,9 +34,9 @@@ import o
import threading
import time
from collections.abc import Sequence as SequenceABC
- from typing import Any, Dict, List, Optional, Sequence, Union
+ from typing import Any, Dict, List, Optional, Sequence, Tuple, Union
-from .confidence import check_min_confidence, flag_low_confidence
+from .confidence import apply_confidence_gate, check_min_confidence
from .hooks import (
HookRegistry, PredictContext, aggregate_usage, compose_hooks, dispatch, normalise_hooks,
validate_timeout,