[ABI][KN][LD][CC][RT][LAB][SP][NT][TM][GW][Proofs][Docs] M0.5: realign workspace to vetta-infer-* microkernel architecture
Dissolve the M0 crates (core/io/proto/telemetry/hip/cli) into the approved service layout abi/kn/ld/cc/rt/lab/sp/nt/tm/gw (docs/ARCHITECTURE.md). - kn: Lean-verified control bus + service registry (bus_lifecycle.lean, 14 thms) and SlabRing/UMA broker; rt: PrefixState + hybrid checkpoint pool. - sp: faithful throughput-aware Adaptive-K port of clover_policy.h (cooldowns, probes, throughput guards) with scenario parity tests. - gw: strata-ctl-compatible wire emitters + serve session FSM (serve_session.lean, 10 thms); abi::serve accepts image= (Vision delta closed). - abi: pure contracts, checked JSON/VTC1/GEN parsers, zero-alloc sampler. - ld/cc: checked safetensors reader + write-once VTC1 writer / O_RDONLY reader. - tm: lock-free telemetry; nt: LyraRpc; lab shares the rt executor core. - Docs: ARCHITECTURE.md decision-complete spec (MoE-only scope, .vbundle, .vplan->CompiledPlan, wire contract, migration map); AGENTS.md Lean rule + tandem/review workflow. Verified live: cargo test --workspace -D warnings = 46/46 PASS; lean proofs = 34 theorems (slab_ring_dma 10, bus_lifecycle 14, serve_session 10), 0 sorryAx, standard axioms only; vetta-infer info on Inkling = 1244 tensors, 18.18 GiB, checked bounds.
This commit is contained in:
1 parent
63b1668a92
commit
7b50f1c07c
49 files changed
+3211
-1208
No files matched your search
@@ -18,19 +18,24 @@ Built from the measured hardware physics and engineering lessons of our hardened
|
||||
|
||||
| Path | Responsibility |
|
||||
| --- | --- |
|
||||
| `crates/vetta-core` | Domain types, `WeightStore` / `DraftProvider` / `PrefetchAdvisor` traits, `SlabRing` DMA state machine, `PrefixState` typestate, zero-alloc sampler & Leviathan verifier, Hot/Cold MoE cache policy |
|
||||
| `crates/vetta-io` | Overflow-safe `.safetensors` reader (`index.json`, `pread`, strict bounds) and unified write-once `O_RDONLY` NVMe disk cache |
|
||||
| `crates/vetta-proto` | Wire protocol (`--serve`, compatible with `strata-ctl`: `INFO/READY/GEN/RESUME/PP/T/DONE/ERR/STOP/QUIT`, `GEN 0` pre-warm) + Lyra RPC message schemas |
|
||||
| `crates/vetta-telemetry` | Lock-free inference telemetry collector (MoE routing histograms, `L -> L+1` transition matrix, speculative stats, JSONL sink) |
|
||||
| `crates/vetta-hip` | Thin HIP FFI + `PinnedUmaBuf` fence-guarded ownership + CPU mock backend for headless unit tests |
|
||||
| `crates/vetta-cli` | `vetta-infer` CLI binary (`info`, `serve`, `bench`, `stats`) |
|
||||
| `crates/vetta-infer-abi` | Shared contracts: domain types, bus messages, `.vplan` opcodes, wire parsing, checked JSON/VTC1 parsers, zero-alloc sampler & Leviathan verifier, `DraftProvider`/`PrefetchAdvisor` traits (zero deps) |
|
||||
| `crates/vetta-infer-kn` | Pure microkernel: control bus, service registry & lifecycle (Lean-verified), UMA/DMA broker (`SlabRing` + `UmaSlabPool`) |
|
||||
| `crates/vetta-infer-ld` | Loader & compiler: checked `.safetensors` reader, write-once `VTC1` atomic writer; dual-step → `.vbundle/` (M1) |
|
||||
| `crates/vetta-infer-cc` | Cache & storage: Hot/Cold MoE expert policy, `O_RDONLY` cache reload; `io_uring O_DIRECT` streaming (M2) |
|
||||
| `crates/vetta-infer-rt` | Operational runtime: `PrefixState` typestate + hybrid checkpoint pool; `CompiledPlan` executor + HIP FFI (M1) |
|
||||
| `crates/vetta-infer-lab` | Laboratory runtime: same executor core as `rt` + `probe.vplan` hooks |
|
||||
| `crates/vetta-infer-sp` | Speculative coordinator: faithful throughput-aware Adaptive-K (port of `clover_policy.h`) |
|
||||
| `crates/vetta-infer-nt` | Lyra LAN bridge: `LyraRpc` (remote drafting, domain hints) |
|
||||
| `crates/vetta-infer-tm` | Telemetry: lock-free routing/Zipf/domain/spec stats, async JSONL sink |
|
||||
| `crates/vetta-infer-gw` | Gateway & CLI: `strata-ctl`-compatible wire emitters, `vetta-infer` binary (`info`, `version`; `serve`/`bench`/`stats` with M1) |
|
||||
| `kernels/hip` | Minimal reusable RDNA 3.5 HIP microkernels (`Q8_G64_T16`, `Q4_G64_T16` SWAR, Chunkwise GDN, FlashAttn/GQA, MoE route/WMMA, GPU top-64 sampling) |
|
||||
| `proofs/` | Lean 4 formal contracts (`0 sorryAx`, audited axioms) |
|
||||
|
||||
## Milestones
|
||||
|
||||
- **M0 (Foundation — current):** Workspace, Lean 4 contracts (`slab_ring_dma.lean`), `vetta-core`, `vetta-io`, `vetta-proto`, `vetta-telemetry`, HIP ABI skeleton, full CPU test suite.
|
||||
- **M1 (Resident MoE End-to-End — Target 1: `Inkling-2-Mini`):** `vetta-hip` RDNA 3.5 microkernels, NVFP4/MXFP8 + `Q8_G64_T16` trunk, Vision WMMA, write-once NVMe cache, `strata-ctl` drop-in `--serve` parity & speed vs C++ baseline (`>= 18 tok/s`, `< 4 s` reload).
|
||||
- **M0 (Foundation — done):** Workspace skeleton, Lean contracts (`slab_ring_dma.lean`), checked IO, serve parsing, telemetry, HIP ABI, full CPU test suite.
|
||||
- **M0.5 (Architecture realignment — done):** approved microkernel design fixed in `docs/ARCHITECTURE.md`; crates realigned to `vetta-infer-*` (abi/kn/ld/cc/rt/lab/sp/nt/tm/gw); bus lifecycle Lean-verified (`bus_lifecycle.lean`); faithful Adaptive-K port; `strata-ctl` wire emitters + `image=` key.
|
||||
- **M1 (Resident MoE End-to-End — Target 1: `Inkling-2-Mini`):** `rt` HIP RDNA 3.5 microkernels, NVFP4/MXFP8 + `Q8_G64_T16` trunk, Vision WMMA, write-once `.vbundle`, `strata-ctl` drop-in `--serve` parity & speed vs C++ baseline (`>= 18 tok/s`, `< 4 s` reload).
|
||||
- **M2 (Hybrid GDN + NVMe Zero-Copy DMA Streaming):** Chunkwise Parallel GDN (WY-representation, target `250–350+ ppts`), `Clover-35B-A3B` & MTP MoE support, `io_uring O_DIRECT` + `hipHostRegister` `SlabRing`, Hot/Cold expert cache + lookahead prefetch.
|
||||
- **M3 (Distributed Control Plane — Lyra + Sogliola):** Remote `DraftProvider` + domain `PrefetchAdvisor` over 2.5 Gbps LAN + live telemetry-driven domain expert pre-warming.
|
||||
|
||||
|
||||
Reference in new issue
Block a user