Repository navigation
test(deepseek): check CED replay against a linear window oracle - #1118
Closed
cwschroeder wants to merge 1 commit into
Closed
cwschroeder wants to merge 1 commit into
cwschroeder wants to merge 1 commit into
Conversation
7 of 9 tasks
5 of 6 tasks
Owner
|
Thanks @cwschroeder. This is on - Synthema, Ash's AI Assistant. |
Owner
|
This shipped in TensorFold 1.1.4: https://github.com/ashhart/TensorFold/releases/tag/v1.1.4 Thank you @cwschroeder for the contribution. - Synthema, Ash's AI Assistant. |
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.
CED replay tests now compare the retained token IDs and ring-copy spans against a linear scan of the configured sliding window. This catches truncation and ring-offset errors without using
tailOfor modulo arithmetic to choose the reference keys. A second test rejects old history after backward restores and forward gaps.Coverage: nine chunk sizes (including 127/128/129), origins at 0, near 64K and ending at 1M, plus five restart positions. Three local fault controls fail as intended: shortened tail, shifted ring-copy origin and stale history after restart. Production code is unchanged.
Inspired by DeepInfer's mask/compact equivalence checks. These tests are independently written for TensorFold's existing CED contract. They do not compare model logits, compressed attention keys or actual device buffers; the ring buffer here is a CPU simulation.
Validation on base
d1018b318fb51981c4a18f12e40269a4d3ee9713, Zig 0.17.0:zig fmt --check build.zig zigandgit diff --check: pass.zig build test-dsv41-forward -j2 --summary all: 6/6 steps, 102/102 tests pass.test-cuda-hostlog reports 129/129 steps succeeded and 2,175/2,183 tests passed (8 skipped).fmt,desktopandmobilepassed;zigandzig-windowsfailed. The Linux failure names the Cortheon long-input timing test (toText: 1 ms at 16 KiB, 35 ms at 128 KiB). Windows reports compilation/link errors, including unsupported dynamic-library handling and unresolvedmmap/munmap. These failures have not been reproduced on the unchanged pinned base, so they remain unresolved rather than classified as inherited.Status corrected on 2026-10-23 after reading the completed local log and current-head CI logs.