[LD] GPU weight packer + FIRST real-weight GPU run (Inkling trunk)
- ld::packer (feature hip): load_raw (tensor bytes -> DeviceBuf, dtype preserved) + load_bf16_as_f32 (BF16 norm weights upcast to f32 for the rms_norm kernel, matching the reference). The bridge from canonical IR to GPU-resident weights; the seam where the per-layer loading/precision policy (engine-side composition) will be applied. - FIRST REAL-WEIGHT GPU RUN: load the real Inkling trunk (~1.85 GB: embed + unembed [201024,2304] BF16, embed_norm + final_norm) and run embed -> embed_norm -> final_norm -> cast -> unembed on gfx1150, producing real logits over vocab 201024 + argmax token (20612, logit 27.77, all finite). Trunk-only skip-layer baseline — proves packer + executor + sampling on real data end-to-end. The full layered forward + Inkling parity refinements (AttnRes block-mix etc.) come next for correct generation. - ld: optional hip + rt deps, feature-gated (default workspace stays host-independent). Verified: RUSTFLAGS="-D warnings" cargo test --workspace = 97/97 PASS; lean proofs (4 files, 42 theorems) green; real-weight trunk run PASS (--features hip, --ignored).
This commit is contained in:
1 parent
1b3896bba9
commit
fb94f2321c
4 files changed
+102
-1
No files matched your search
@@ -14,6 +14,9 @@ pub mod inkling_ir;
|
||||
pub mod inkling_plan;
|
||||
pub mod inkling_graph;
|
||||
|
||||
#[cfg(feature = "hip")]
|
||||
pub mod packer;
|
||||
|
||||
use std::collections::{BTreeSet, HashMap};
|
||||
use std::fs::{self, File, OpenOptions};
|
||||
use std::os::unix::fs::FileExt;
|
||||
|
||||
Reference in new issue
Block a user