leleka-gptoss reads the model hyper-parameters from the GGUF header and views the weights in place in the memory-mapped file; only norms, biases, router and sinks are copied. One-token forward pass: RMSNorm (f64 sum), attention with grouped KV heads, learned sinks and alternating sliding/full layers, YaRN RoPE in NeoX pairing, router with softmax over the selected logits, MXFP4 experts with the clamped gated activation, Q8_0 attention and output head. Row-parallel matrix-vector products; f32 KV cache. Greedy generation. Tests: unit tests of each operation against f64 formulas, and an end-to-end test on a tiny synthetic gpt-oss (ggml-quantized random weights) against an independent f64 implementation: worst relative logit difference about 1e-7 over three seeds, identical logits at every instruction-set level and thread count. Whether the maths equals the real model's is NOT yet tested: that needs the llama.cpp oracle (STRA-212 acceptance criteria). leleka-cpu-sys gains a safe read-only file mapping (Windows and Linux). The benchmark script now reproduces Bionic's server flags, supports concurrent requests and reports aggregate speed. No speed claim is made. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
16 lines
520 B
TOML
16 lines
520 B
TOML
[workspace]
|
|
resolver = "3"
|
|
members = ["crates/backend-api", "crates/cpu-kernels", "crates/cpu-sys", "crates/gguf", "crates/gptoss", "crates/tokenizer", "control-plane", "desktop-core"]
|
|
default-members = ["crates/backend-api", "crates/cpu-kernels", "crates/cpu-sys", "crates/gguf", "crates/gptoss", "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"
|