Skip to content

nemotron: drop the Living Weights copies the 10-17 revert left behind - #3707

Merged
ashhart merged 2 commits into
ashhart:mainfrom
jschmied:dup-living
Nov 19, 2026
Merged

ashhart merged 2 commits into
ashhart:mainfrom
jschmied:dup-living

Conversation

@jschmied

Copy link
Copy Markdown
Contributor

Head ab7976ea4c on main 038e4a2787.

What

5a4987b moved the learner, pocket and fit files into zig/src/living/. The revert cc62636 moved them back
into families/nemotron/. The restore 9e7f502 brought living/ back but left 15 files in nemotron. Ten of them
are byte-identical to living/: editor, router, subspace, choice, pocket_joint, pocket_dump, pocket_pack,
pocket_clock, train_mode and lesson_route. The other five are older forks: pocket_fit, probe, pocket_prefix,
pocket_forget and pocket_forget_test. Since 10-17 only the living/ side has been edited.

Reachability

  • No build root and no @import reaches 14 of the 15 files. They only import each other.
  • The one live edge is cuda_pages.zig -> local lesson_route.zig, which reads one value, max_slots.
    max_slots is 64 in both copies. The revert repointed this import and the restore did not put it back.
  • This PR deletes the 15 files and points cuda_pages at @import("living").lesson_route, like every other
    nemotron file. That is 16 files, +1/-2504.

Equal to main (built against main, same path)

  • Deletion alone: native -Dsm=121 -Doptimize=ReleaseFast in the same worktree path is md5-equal to main
    (4b080ab3), fatbins included.
  • Full branch (f800e324): every loaded section is byte-equal to main. That covers .text, .rodata,
    .data.rel.ro and the embedded fatbins. Only the non-loaded symbol table and debug info differ: two __anon_N
    symbols are renumbered, because one interned file is gone. The behaviour is therefore identical, so no served or
    speed rows are attached.
  • Main is not bit-reproducible: in 6 builds, main gave 4b080ab3 3 times and c4d14a28 3 times. The branch gave
    f800e324 in all 3 of its builds.

Tests and checks

All of these are green on this head:

  • test-living-host, test-living-shards-host
  • test-nemotron-learning-host, test-nemotron-copies-host, test-nemotron-grants-host
  • test-pocket-device-host, test-cuda-host, compile-cuda-tests, test-load-prefetch-host
  • native, fatbins

lean: 221 vs 221, 0 new. pr_check: 0 errors.

Coverage

  • Seeded, resume and concurrency: not run. All loaded code is byte-equal to main, so there is no behaviour to compare.
  • Control: the deletion-only build doubles as a control, md5-equal to main.
  • Refusal: none added.

Left alone

  • kolibri1 and spark25 cuda_load_prefetch.zig are identical 8-line per-family adapters from 7916d80, and
    zig/load_prefetch_host.zig tests each family's adapter by path. Folding them is your call.
  • h3/load_barrier_test.zig and native/load_barrier_test.zig are an identical 18-line test helper in different
    modules.

Proposed CHANGELOG line: - nemotron: the Living Weights copies left by the 10-17 revert are gone; pages read living's lesson_route.

@ashhart

ashhart commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Thanks @jschmied. LAND. The removed copies have only one live incoming import, and that caller reads the same 64-slot constant from Living Weights. The canonical implementations and tests remain. This removes dead copies without changing the serving arithmetic.

  • Synthena

@ashhart
ashhart merged commit c1a5cbe into ashhart:main Nov 19, 2026
2 of 11 checks passed
@ashhart

ashhart commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Thank you @jschmied. This is merged into main with your commits under your own name, so you're listed as a TensorFold contributor. It ships in the next release, credited to you in the changelog and the release notes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants