nx_f32_lora_linear.nx
buildroot/runtime/nx_f32_lora_linear.nx
about
nx_f32_lora_linear.nx -- sovereign LoRA-adapted linear (the Aligned-LoRA / fine-tune-fewer-images lever).
From DiT-IC's "Aligned LoRA Adaptation" (ingested 2026-07-01): fine-tune a frozen weight W [out,in] with a
low-rank adapter B [out,r], A [r,in] (r << in,out). Forward: out = W x + B (A x). Only r*(in+out) params
train instead of in*out -> huge param/VRAM/data saving (the "fewer images, faster training" lever), and
LoRA merges into W for zero-overhead inference. Gate: LoRA forward == (W + B@A) x within f32 tolerance.
license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_f32.nxnx_f32_div.nxnx_f32_cvt.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 12 | const K_MAGIC_100000: i64 = 100000 |
functions
| 15 | func nx_f32_lora_forward(W: *i64, B: *i64, A: *i64, x: *i64, in_dim: i64, out_dim: i64, rank: i64, |
| 41 | func lo_close(x: i64, e: i64, tol: i64) -> i64 |
| 49 | func main() -> i64 |