Files
leleka/crates/cpu-worker/Cargo.toml
T
Pavlo RatushnyiandClaude Sonnet 5.5 c2a2166fa5 feat: add the CPU worker that serves gpt-oss-20b over the control plane's line protocol (STRA-199, STRA-217)
New crate leleka-cpu-worker (executable leleka-cpu-worker --serve --model <gguf>): loads the GGUF through
the read-only mapping, runs the gpt-oss decoder on the AVX2 / AVX-VNNI kernels, and speaks the stdin/stdout
protocol of Strata's --serve mode (READY, GEN with temperature, top_p and seed, STOP, QUIT, PP, REUSED, T,
DONE, ERR). Prefix reuse across requests, cancellation between prefill chunks and between tokens, a stale
STOP while idle is ignored, the end-of-generation marker is emitted as the last token.

leleka-gptoss gains sampling (greedy, or temperature and top-p over the 1,024 best logits, with a seeded
generator) and prefill_reuse_with (progress and cancellation). A stray NUL byte left in a doc comment by an
earlier shell edit is removed.

Tests: protocol parsing, the request loop against a mock decoder (stop token, length, reuse, STOP, QUIT,
engine failure, broken pipe), and an end-to-end run on the real model (needs LELEKA_GPTOSS_GGUF) that gets
llama.cpp's 16 greedy tokens for "The capital of France is" and reuses the prefix of a longer prompt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 19:14:31 +02:00

22 lines
563 B
TOML

[package]
name = "leleka-cpu-worker"
version = "0.1.0"
description = "Leleka CPU (AVX2 / AVX-VNNI) inference worker: serves the control plane's line protocol on stdin/stdout"
edition.workspace = true
license.workspace = true
rust-version.workspace = true
[[bin]]
name = "leleka-cpu-worker"
path = "src/main.rs"
[dependencies]
leleka-cpu-kernels = { path = "../cpu-kernels" }
leleka-cpu-sys = { path = "../cpu-sys" }
leleka-gguf = { path = "../gguf" }
leleka-gptoss = { path = "../gptoss" }
leleka-tokenizer = { path = "../tokenizer" }
[lints]
workspace = true