Resident GEN/STOP/QUIT service (strata-ctl contract) composing the three verified pieces:
- ld::layer::forward_inkling_with_state (48-visit autoregressive forward, persistent KV/ShortConv);
- abi::sampler (hardened zero-alloc greedy/top-k/p/min-p + penalties, non-finite tracking);
- gw::session::ServeSession (proofs/serve_session.lean FSM: GEN 0 pre-warm, STOP->DONE drain).
serve_gen is a pure orchestration fn (engine + ParsedGen + stop flag + emit closure), GPU-integration-tested. run_serve adds a stdin reader thread raising stop/quit atomics so STOP interrupts decode and drains to DONE. Token-id based (no tokenizer needed). gw 'hip' feature default OFF keeps the gateway host-independent.
Measured: live binary over pipe -> READY 8192 stop; 'The capital of France is' -> T 152717 (' Paris', exact ref) T 13 T 198 T 3967; DONE length. STOP after 2 tokens -> DONE 2 ... stop, no further tokens (Theorem 4/9). QUIT exits clean.
Verified: cargo test --workspace green (-D warnings), gw hip 10 default + 2 GPU serve tests green, 5 Lean files 0 sorryAx.
19 lines
560 B
TOML
19 lines
560 B
TOML
[package]
|
|
name = "vetta-infer-gw"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[[bin]]
|
|
name = "vetta-infer"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
vetta-infer-abi = { path = "../vetta-infer-abi" }
|
|
vetta-infer-ld = { path = "../vetta-infer-ld" }
|
|
vetta-infer-hip = { path = "../vetta-infer-hip", optional = true }
|
|
|
|
[features]
|
|
# Real GPU `serve`/`gen` (links the HIP backend via ld). Default OFF keeps the
|
|
# gateway host-independent (wire protocol + session are CPU-testable alone).
|
|
hip = ["vetta-infer-ld/hip", "dep:vetta-infer-hip"] |