[LD][ABI] Inkling plan foundations: physical schedule + scratch arenas + graph emitter (trunk)
- ld::inkling_plan: physical_schedule() unrolls the looped core (verified against the reference logical->physical mapping; Inkling = 6 + 3x12 + 6 = 48 physical steps over 24 logical layers). scratch_layout()/scratch_plan() lay out the decode activation arenas (residual/q/k/v/attn_out/moe/logits), 4 KiB-aligned with checked offsets, validated by abi::arena. - ld::inkling_graph: GraphBuilder accumulates arena decls (scratch=0, weights=1, inputs=2) + a flat op sequence and validates the whole plan (no overlap, checked bounds, no use-before-write) via abi::arena. emit_trunk() emits the first complete sub-graph: embed(+embed_norm fused) -> final norm -> unembed, arena-validated. The per-layer k1->k4 body plugs into the same builder next. - abi::vplan: add GemmBf16 opcode (BF16 trunk/unembed GEMM). - docs/inkling-forward-design.md: forward blueprint grounded in the strata reference (k1->k4 stage order from kernel numbering, real scratch buffer set, loop structure, two forward paths main-LLM + MTP DSpark). Verified live: RUSTFLAGS="-D warnings" cargo test --workspace = 96/96 PASS; 4 ignored live tests pass; lean proofs (4 files, 42 theorems) green.
This commit is contained in:
1 parent
465315ae94
commit
d478787863
5 files changed
+459
-1
No files matched your search
@@ -11,6 +11,8 @@
|
||||
pub mod bundle;
|
||||
pub mod inkling;
|
||||
pub mod inkling_ir;
|
||||
pub mod inkling_plan;
|
||||
pub mod inkling_graph;
|
||||
|
||||
use std::collections::{BTreeSet, HashMap};
|
||||
use std::fs::{self, File, OpenOptions};
|
||||
|
||||
Reference in new issue
Block a user