[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:
adm committed 2026-12-01 14:19:54 +01:00
1 parent 1b3896bba9
commit fb94f2321c
4 files changed
+102 -1

No files matched your search

Generated
+2
View File
@@ -45,6 +45,8 @@ name = "vetta-infer-ld"
version = "0.1.0"
dependencies = [
"vetta-infer-abi",
"vetta-infer-hip",
"vetta-infer-rt",
]
[[package]]