Repository navigation
Conversation
This was referenced Nov 14, 2026
6 of 8 tasks
ashhart
force-pushed
the
lead/dsv41-layer-hash
branch
3 times, most recently
from
November 22, 2026 01:14
e8185ca to
941ad52
Compare
…plit from #2030) TF_DSV41_LAYER_HASH=PREFIX attaches a writer on every rank that records the existing per-layer BF16 trace outputs as JSONL version 1 in a fresh PREFIX.rankN.jsonl: a header, request records (sequence, slot, SHA-256 of the prompt's token ids, shared by rank zero over the plan link) and layer records (window, phase, rows, layer, window-token and stream SHA-256). Traced programs run eagerly, so the hash path cannot reproduce a failure confined to graph replay; compare hashes on and off with TF_DSV41_GRAPHS=0. Unset or empty attaches no writer and adds no trace launches, device copies or synchronizations, which the host tests check with a failing allocator. This is the layer-hash half of #2030. The serving-arm start-up receipt is left out: main's serve_line.zig already logs each rank's settings (#1395).
ashhart
force-pushed
the
lead/dsv41-layer-hash
branch
from
November 26, 2026 22:12
941ad52 to
cdba2e7
Compare
This branch has not been deployed
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.
Split from #2030: only the per-layer hash half, which has no overlap with main.
TF_DSV41_LAYER_HASH=PREFIX(DeepSeek-V4.1 on CUDA, experimental, unset by default) writes each rank's per-layer trace hashes toPREFIX.rankN.jsonl. When two TP=2 runs part on a repeat, they can then be compared layer by layer. Traced programs run eagerly while it is set; unset, nothing changes.layer_hash.zig,layer_hash_forward.zig,layer_hash_test.zig(six tests) and thetest-dsv41-layer-hash-hoststep.TF_DSV41_LAYER_HASHpath rule inplatform/environment.zig.serve_arm.zig) is left out, because main'sserve_line.zig(DeepSeek-V4.1 (TP=2): repeating the same 32k-token prompt can give a different reply than its first run #1395) already covers start-up.Lean 341 with nothing new, no file over 600 lines, fmt clean. One CHANGELOG line under Unreleased.