code wiki / _hdl_build / nx_builder_authors_autograd.nx

nx_builder_authors_autograd.nx source

↩ module page · 19 lines · 1168 B

1// nx_builder_authors_autograd.nx -- the BUILDER authors the L1 TRAINING-SUBSTRATE rung 1 (tape 2// reverse-mode autograd on the team's own sovereign f32 tower). This is the shared keystone of the 3// Nishi code LLM (S7) and the sovereign pixel engine -- the rung that moves TRAINING (not just 4// inference) into the team's hands. Claude tutored the architecture 5// (knowledge/specs/2026-06-09-tutoring-training-substrate-rung1.md); the Builder authors; the 6// Engineer gates via nx_sov_build_run; gates: gradcheck vs mathematics, a model that provably 7// learns, and BIT-EXACT reproducible training (the S-class-EXCEED axis from day one). 8// license_tier: ORIGINAL 9import "nx_module_author.nx" 10import "nx_syscalls.nx" 11func _b(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } 12func main() -> i64 { 13 _b("BUILDER authors the L1 autograd rung (reverse-mode tape on sovereign f32)\n" as *u8) 14 let fd: i64 = sys_openat_wr("runtime/_hdl_build/_autograd_authored.nx" as *u8, 0x1a4) 15 ma_emit_autograd(fd) 16 sys_close(fd) 17 _b(" -> _autograd_authored.nx authored; Engineer verifies next\n" as *u8) 18 sys_exit(0); return 0 19}