Commit Graph
17 Commits
Author SHA1 Message Date
Pavlo RatushnyiandClaude Sonnet 5.5 f96074c360 perf(startup): verify shards and archive in parallel with read-ahead, verification stamps, attested sealed archive, parallel memfd fill, leleka verify
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-24 01:28:11 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 c969796616 test(kar): windows beyond 2^32 elements decode against a direct u64 format oracle
A virtual 8.6e9-element expert bank (group 96, section above 4 GiB) is never
allocated: archive bytes are a hash of the absolute offset, the planner and
kernel model decode first/middle/last-expert windows and the final partial
group, and every element is compared bit for bit with a per-element decode
written straight from the format definition. No defect found.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 16:57:38 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 da7b9c6762 test(kar): recomputed-integrity directory fuzz must only admit GPU-consistent records
Every header field and directory byte is mutated with the directory digest and
header CRC recomputed so the structural validators are what is under test.
Whatever the inspector admits must also pass the nested-descriptor validator,
plan only ranges inside its own section, stage cleanly, run the kernel model
without panic, and equal the file-backed CPU oracle at level 2.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 16:56:27 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 7466426ed7 style: cargo fmt model-format and desktop-core
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 15:37:19 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 7847306434 test(model-format): exercise multi-chunk stream safety via a test-only stream buffer seam
Production buffers GGUF spans in 16 MiB chunks (3c20d1a), so 128 KiB tiles
arrive as one chunk. Keep the abort/re-seek/size-mutation/retained-fd checks
by shrinking the stream buffer to 64 KiB per-thread in tests, and assert the
production single-chunk delivery explicitly.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 15:36:55 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 801a19992d Merge branch 'claude/port-serving' into claude/port-main (conversation cache + async PLE reader); model-format: autotests=false for #[path] test modules
Known: 4 model-format tests expect 64 KiB chunks but streaming uses 16 MiB buffers since 3c20d1a (stale tests, pre-existing).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 15:35:43 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 44a851648e feat(model-format): expose a positional row-table source for verified shards
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 15:31:06 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 7e24f41e34 feat(runtime): KAR routed-expert weight source wired into Load and the MoE stage
KarExpertSource (pinned base + optional overlay, levels 2..=5) verifies whole
archives on the retained descriptor, validates the 48-layer expert map at load,
stages exact ranges and runs one-drain device expert FFNs; ModelBinding gains a
consuming with_kar_expert_source builder, MoeExpertStage routes experts through
it (shared expert/combine unchanged, MMQ cache refused), and NativeBackendConfig
gets kar_expert_source with identity-mixed mode digest and a Load-time probe.
The pure selection, stager, expert map and CPU reference move to model-format
so they run on macOS; the CUDA program gains a SwiGLU entry and a per-context
cached module. Linux-target type-checked only; nvcc/GPU unverified, PTX unpinned.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 14:55:34 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 664d434fca feat(model-format): KAR level-decode kernel model and nested record descriptor
Adds KarNestedRecord (section layout of a NESTED record, validated with the
inspector's formulas) and a literal CPU transcription of the planned CUDA
level-decode and F32 row-multiply kernels (window planning, packet layout,
thread/block decomposition, plane word and group scale addressing) for runtime
levels 2..=5. Randomized tests compare it with a transcription of the CPU
decode oracle, including partial last groups, word-unaligned ranges, expert
row windows and overlay-style per-archive dials. Verifies the specification
only; no CUDA build or GPU run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 14:42:42 +02:00
Pavlo RatushnyiandClaude Sonnet 5.5 7f896a8bb8 import: Original-literal source-port snapshot (frozen 2026-10-12 06:36, uncompiled together, no GPU run)
Snapshot of target/stra169-direct-port-integration/source-port (without target/), now the tracked base for the full Strata Rust port.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 14:38:46 +02:00
Pavlo Ratushnyi ff5241fdb2 Verify sealed KAR SHA and section CRC in one scan 2026-10-10 02:53:06 +02:00
Pavlo Ratushnyi cad2a2776f fix(runtime): read bounded MoE row tiles from retained weight spans 2026-10-10 01:28:54 +02:00
Pavlo Ratushnyi 61b14828d0 feat(runtime): bind explicit KAR PLE mode to qualified fixed CUDA assets 2026-10-09 22:00:08 +02:00
Pavlo Ratushnyi 0be23fdbdc fix(model): match verified second shard identity 2026-10-09 20:40:29 +02:00
Pavlo Ratushnyi 74b50fd1ef fix(model): stream verified rank-one float vectors 2026-10-09 20:09:56 +02:00
Pavlo Ratushnyi dfe8781dfe test(model-format): cover production split admission precedence 2026-10-09 14:41:10 +02:00
Pavlo Ratushnyi b1300329ff feat(model): bind pinned Qwen topology and bounded tensor rows [skip ci] 2026-10-08 18:47:09 +02:00