Repository navigation
Conversation
…top importing step5 flint, llama, minimax_m3, ricursive, spark25 and hy4_flash took their logprob row from families/step5/backend.zig. The helper is now lanes.logprob.bf16Row, next to Row itself; step5 and the six families alias it as before. Same code, no logic change.
|
I tested One inherited macOS host failure showed up: Igor Lessio - AIFLOW LABS |
|
Thank you, @jschmied. The BF16 conversion, normalizer and insertion sequence are unchanged, and the six family edits only replace the alias. The moved test and relevant Metal build results are recorded. This looks ready to land; the inherited standalone test-module issue remains separate.
|
What this changes
Head:
ab60da2e66(one commit on maina0f809ea09).Six families took their logprob row from another family's backend:
flint,llama,minimax_m3,ricursive,spark25(metal_backend.zig) andhy4_flash(serve_metal.zig) each hadconst row = @import("../step5/backend.zig").row;. This is the second cleanup named in #4804 ("step5'srowhelper, used by six families' backends, moves to core").row(bf16 logits →LogprobRow: fp64 normalizer,countbest ids, ties to the lower id) moves fromfamilies/step5/backend.zigtocore/lanes/logprob.zigasbf16Row, next toRowandRow.fromWords. Its test moves with it.const row = lanes.logprob.bf16Row;. Every call site is unchanged.topis nowmax_top(the same constant,logprob.zigis where it lives) and step5's privatelogitisbf16there. No logic change.native/xpu_logrow.zighas an f32 one, which this does not touch.Not included:
step5andgemma4also importqwen3_5/backend.zigfordraw. That is not the same kind of helper:drawis Qwen's wrapper over core'slanes.sampling_row.drawthat renames the errors (NonfiniteQwenLogits,NoAllowedQwenToken). Pointing step5/gemma4 at core directly would change their error names, so it stays for a separate decision.Structure check (
zig_deslop.py, the #4804 checker), before and afterBefore (main
a0f809ea09):After (
ab60da2e66):No
-> families/step5lines remain; the module cycle is unchanged (1 group of 8, not touched here).Verification on
ab60da2e66zig build -Dfixed-cpu test-host test test-golden test-kernel-contract test-server-security test-pull-security fuzz-cortheon check-release-paths,check-native-cuda-host compile-cuda-tests,tools/pr_check.py,zig fmt --check build.zig zig,git diff --check, lean): X86-ALL-GREEN.Build Summary: 2535/2535 steps succeeded; 26669/26832 tests passed (163 skipped), cuda-host 17/17, pr_check lean 165 vs 165 with 0 new, fmt and diff-check clean.zig build nativeof maina0f809ea09and of this head, both built in the same worktree path, give the sametensorfold-native: md5d5ca6a3f63f8for both. The build is deterministic only at a fixed path: the same commit built in another worktree path gives a different md5 (checked on the first head3ea80bd2dc: same path as mainb557b90de594= main, other path47f65ed984be).-Dcpu=apple_m1):zig build native: 66/66 steps on this head and 66/66 on maina0f809ea09, same session and flags.compile-step5-host,test-flint-draft-hostandtest-core-laneare green too (83/83 tests).test-step5-hostdoes not compile, on this head or on main:zig/src/core/checkpoint_metal.zig:5:20and6:28, "no module named 'core' available within module 'root'" (rootzig/step5_family_tests.zig). On maina0f809ea09alone it fails with the same two errors (8/11 steps). Those imports came in withec277c16b; the step5 test module has nocore. Not from this PR; it needscoreadded to that test module, which I'll leave to a separate fix unless you want it here.3ea80bd2dc, not committed):bf16Rowchanged tobf16RowXin flint and hy4_flash.zig build nativegoes red with exactly those two,flint/backend.zig:9:26andhy4_flash/serve_metal.zig:600:26"no member named 'bf16RowX'".zig build tensorfoldstays green with the plant, sonativeis the step that compiles these files; the Linux cross-build never analyzes them either.core/lanes/logprob.zigand now runs in every lanes test build (the x86teststep above).a0f809ea09; the first head3ea80bd2dcwas on0b39f4d64e. One conflict, minimax_m3's import block (main addedround_costs); both lines kept.rebase-gates.pysaid DEVICE (Metal), so the Mac native build, x86 and native md5 above were all rerun onab60da2e66.Not applicable
No new kernel, refusal, env flag, opt-in path or served behaviour: this is an import move. The equality against main is the byte-identical
tensorfold-nativeabove, so seeded, resume and concurrency runs, a parity-controls line and speed rows do not apply; the planted control is the compile one above.Proposed CHANGELOG line (Unreleased, Changed):
- Core: the bf16 logprob row moved from step5 into lanes.logprob; six families no longer import step5's backend (#4950).Refs #4804, #2251