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 PR #1222

Nandakishor2291f64a9707
diff --cc laya-go/README.md
index 3332cfe0,85a47ed6..5685c09a
--- a/laya-go/README.md
+++ b/laya-go/README.md
@@@ -38,15 -41,17 +41,17 @@@ order-sensitive state. `Analyze` reads
## Layout
- No root package: the module path ends in `laya-go`, so tags are `laya-go/vX.Y.Z`.
- - The pure-Go packages are `lang`, `schema`, `sequence` and `tokenizer`; `router`, `presets` and
- `shortlist` come later.
- - cgo, if ever needed, lives only in a future `onnx` package, with a `//go:build !cgo` stub.
- Importing `lang` never compiles cgo.
- - `tokenizer` is public (`LoadFS`, `Parse`). `internal/unicodedata`, `internal/pyjson`,
+ - Every package in this module is pure Go: `lang`, `schema`, `sequence`, `tokenizer`, `infer` and
+ `agent` now, and `router`, `presets` and `shortlist` later.
+ - cgo lives only in `onnx`, a nested module with its own `go.mod`, so `go test ./...` here never
+ compiles it. `onnx` requires this module and `github.com/yalue/onnxruntime_go`; until this module has
+ a release tag, `onnx` builds only inside this repository (its `go.mod` points here with `replace`). Importing `lang` or `agent` never compiles cgo.
+ - `tokenizer` is public (`LoadFS`, `Parse`); `internal/unicodedata`, `internal/pyjson`,
- `internal/decode` and `internal/collate` stay internal. `infer.Batch` is the public name of
- what `collate` builds.
+ `internal/pyvalue`, `internal/decode` and `internal/collate` stay internal, and
- `internal/fixtures` and `internal/goldens` exist for the parity tests alone.
++ `internal/fixtures` and `internal/goldens` exist for the parity tests alone. `infer.Batch` is the
++ public name of what `collate` builds.
## Parity
-## Parity
Python is the source of truth. The tests compare against goldens recorded from it, and the Unicode
behaviour that decides an answer is compiled in from the reference instead of taken from the Go