Repository navigation
tools(dsv41): the kit rebuild's jit table sees the family's namespace subpackage (aot_pack died on the drafter's _bias) - #14
Merged
Conversation
…kage from disk (cuda/ has no __init__.py, so pkgutil skipped its markov.py and aot_pack died on the first recorded launch there)
…instead of a bare KeyError
bertholomus
added a commit
that referenced
this pull request
Oct 24, 2026
… subpackage (#14) TensorFold #14 on this line. pkgutil.walk_packages misses a subpackage without __init__.py, and the family's cuda/ is one: its markov.py (the drafter's _bias, _score, ...) never reached the jit table, and aot_pack.py died on the first recorded launch there. zrec_fixtures.py now imports the two prefixes' modules from disk, and aot_pack.py names a function the table lacks. This line keeps aot_pack.py at tools/dsv41-zig/kit/ (TensorFold 1.0.2's copy, which 1.0.12 moved); the change is #14's, line for line. (cherry picked from commit dfc8fe5, with aot_pack.py's path moved) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
bertholomus
added a commit
that referenced
this pull request
Oct 24, 2026
….7.1) The README's fork note: v0.7.0's nine changes on the four-node branch's v0.3.1, then v0.7.1's seven (the shared DSML reader and the streamed-prose fix with #25's tests, TF_DS_PROMPT_ALIAS, the stopped-rank watch, the GPU-context stop, #14 and the test addresses), the merge of the four-node branch's v0.3.2 and the fix that keeps cache_salt on compaction notes; the two-node recipe's pool of 2,097,152 positions and its v0.7.1. NOTICE names v0.3.2's cache_salt and the DSML reader with their tests among the new files and compact_test.zig among the changed ones, and ATTRIBUTION.md's #25 row names the two commits that carry #25's tests. ATTRIBUTION.md adds two reports, @den13501's (two-node recipe issue #15: the kit rebuild's mapping error, which #14 fixes) and @plyldavid-maker's (issue #25: the ranks that waited on each other), and says what the export changed in v0.7.1's messages. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root cause
zrec_fixtures.py'sjit_table()collected its modules withpkgutil.walk_packages, which reports a subpackage only when the directory has an__init__.py. The family'scuda/has none (PEP 420 namespace package), so the walk never entered it:jit.jsongot only the moduleszrec_fixtures.pyitself imports (kernels.pythroughmodel.py) and missed every other engine module —markov.pyfirst of all (the drafter's_bias,_score,_finish,_pick). The first recorded launch in those modules then killedaot_pack.pywith a bareKeyError(recipe issue #15'scuda.markov._biasmapping error). Verified on a CPU-only container: the unpatched table has 0 markov keys whileimport tensorfold.families.deepseek_v41.cuda.markovsucceeds.Fix
jit_table()imports the two prefixes' modules from disk (os.walkover each base's__path__, same set the walk covered plus the namespace dirs) and fails loudly, naming the module, when one cannot be imported — a silently incomplete table is what made the crash cryptic.aot_pack.pynames the missing function and the fix instead of raising a bareKeyError.Receipt (CPU-only, python:3.12-slim, torch 2.14.1+cpu, triton 3.7.1, the deepseek-v41-tp2 package)
aot_pack.pyon a_biasrecording fixture exitsKeyError: 'tensorfold.families.deepseek_v41.cuda.markov._bias'._bias'sdo_not_specialize=[t_stride, o_row, n_rows, n_cols, seg0]from the real source.triton_aot_manifest.py build+ the newaot_pack.pyon a synthetic_biasrecording produces an aot.json entry equal to the shipped v0.6.1 kit's_biasentry (same hash1d5c14f5, params, div16/nospec flags, consts, shared, pdl).zig build test: 19/19 steps on this branch (Zig 0.17.0, x86_64, no GPU).Not run (needs two GB10s): a real recording packed end to end; the packed cubins are the recording's own, so the packing logic is what this changes — a rebuild on real hardware is the last confirmation.