- kernels/hip: k_embed_bf16_gather (BF16 table -> f32 token rows, exact) and
k_gemm_bf16 (y[M,N] = x[M,K] @ w[N,K]^T, BF16 in / f32 accumulate,
correctness-first per-element; WMMA tiling is the later performance pass).
C ABI + safe Rust wrappers (embed_bf16_gather, gemm_bf16) + DeviceBuf
byte-level h2d/d2h.
- Verified LIVE on gfx1150: embed exact, gemm max_rel_err 0.0 across
(2,8,16)/(4,32,64)/(1,128,256), rms_norm ~1e-6. Three kernels now cover the
trunk + projection compute path (embed, norm, gemm).
- docs/ORIENTATION.md: a guide for newcomers arriving from vLLM/llama.cpp/
SGLang — what this engine is, the five ideas behind the mental-model shift
(microkernel+services, models compiled to .vbundle, forward pass as a
Lean-proven validated plan, proof-first, parity discipline), the crate map,
the honest current state (CPU pipeline done, GPU begun, no token yet), and
the ordered road to the first agent chat and beyond. Linked from README.
Verified: RUSTFLAGS="-D warnings" cargo test --workspace = 97/97 PASS;
lean proofs (4 files, 42 theorems) green; GPU parity 4/4 (--features hip).
- 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.