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>
16 lines
598 B
TOML
16 lines
598 B
TOML
[workspace]
|
|
resolver = "3"
|
|
members = ["crates/backend-api", "crates/cpu-kernels", "crates/cpu-sys", "crates/cpu-worker", "crates/gguf", "crates/gptoss", "crates/harmony", "crates/tokenizer", "control-plane", "desktop-core"]
|
|
default-members = ["crates/backend-api", "crates/cpu-kernels", "crates/cpu-sys", "crates/cpu-worker", "crates/gguf", "crates/gptoss", "crates/harmony", "crates/tokenizer", "control-plane", "desktop-core"]
|
|
|
|
[workspace.package]
|
|
edition = "2024"
|
|
license = "Apache-2.0"
|
|
rust-version = "1.99"
|
|
|
|
[workspace.lints.rust]
|
|
unsafe_code = "forbid"
|
|
|
|
[workspace.lints.clippy]
|
|
all = "warn"
|