Files
leleka/crates/shm
Pavlo RatushnyiandClaude Sonnet 5.5 204ec34fbd feat: add the NPU service: OpenVINO C binding, shared-memory mappings and a matmul service for gpt-oss weights (STRA-207)
Decision (owner, 2026-10-15): the NPU is used through a separate service process so that the CPU runtime never
loads OpenVINO (STRA-199 v2 D1, E8).
- leleka-shm: read-only file mapping and a read-write region two processes map (recorded unsafe exception)
- leleka-openvino: OpenVINO C API loaded at run time (recorded unsafe exception, NPU runtime only)
- leleka-npu-service: reads the GGUF itself, expands Q8_0/MXFP4 blocks to int8 + half group scales, runs
  y = x . W^T on the device with the weights as run-time inputs, activations through the shared region
- tested against an f64 reference with real weights on CPU and NPU devices: relative rms error 2e-4 to 3e-4

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-15 10:56:29 +02:00
..