[HIP][Docs] embed_bf16 + gemm_bf16 kernels (GPU-verified) + newcomer orientation guide
- 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).
This commit is contained in:
1 parent
bd0d4f2a63
commit
356f9c458e
5 files changed
+313
No files matched your search
@@ -4,6 +4,8 @@
|
||||
|
||||
Built from the measured hardware physics and engineering lessons of our hardened C++/HIP baseline ([`strata`](http://192.168.50.18:3000/iz0eyj/strata)), targeting unified-memory AMD RDNA 3.5 APUs (**Sogliola**: Ryzen AI 9 HX 370 / Radeon 890M `gfx1150`, 48 GiB VRAM carveout + 96 GiB UMA, 81.7 GB/s DRAM, 44 TFLOP/s INT8 WMMA, dual Gen4 NVMe) with optional LAN co-processing on **Lyra** (2.5 Gbps Ethernet).
|
||||
|
||||
> **New here?** If you come from vLLM / llama.cpp / SGLang, read [`docs/ORIENTATION.md`](docs/ORIENTATION.md) first — it explains the mental model, the crate map, the honest current state, and the road to the goal.
|
||||
|
||||
## Core Design Principles
|
||||
|
||||
1. **MoE-first on UMA (`gfx1150`):** designed vertically around sparse Mixture-of-Experts architectures (Transformer SWA/Full + Vision, Hybrid GDN+GQA, native MTP / Block-Diffusion). Large dense *decoder* LMs are out of scope (bandwidth physics); small fully-resident utility **encoders** (BGE-M3 embedder lane, M1.5) are in.
|
||||
|
||||
Reference in new issue
Block a user