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.

523 B
Raw Blame

Prediction hook examples

Small, runnable hooks. See docs/hooks/index.md for the full reference.

  • audit.py: log every decision and optionally ship it to an external service.
  • redact.py: strip emails/phones from the state before inference.
  • cache.py: cache decisions and skip the forward pass on a hit.
  • otel.py: counters and a latency histogram per decision.

Each example loads a real checkpoint, so the first run downloads it.