Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
bda4834
DeepSeek V4.1: the Engram token map built in Zig, byte-identical to t…
akol1 Oct 14, 2026
b1effbb
DeepSeek V4.1 Flash: configuration, Engram tables and resident weight…
akol1 Oct 13, 2026
c51e6aa
DeepSeek V4.1 Flash: Metal operators with fp64-dot references and the…
akol1 Oct 13, 2026
2a22d68
THIRD_PARTY_NOTICES: the native DS4.1 reference follows DeepSeek-V4.1…
akol1 Oct 13, 2026
c408cb7
DeepSeek V4.1 load: a shard contributes only the tensors the index ma…
akol1 Oct 13, 2026
d52f9cd
DeepSeek V4.1 load: the router gate and bias ride the pack's dtypes
akol1 Oct 13, 2026
73eb0fb
DeepSeek V4.1 load: the Engram gate weights ride f32 or bf16
akol1 Oct 13, 2026
e630d73
DeepSeek V4.1: the kept-dense EXL3 form, for rank-split repacks
akol1 Oct 13, 2026
9fe64f8
DeepSeek V4.1 reference: the kept-dense apply
akol1 Oct 13, 2026
a6d7f86
DeepSeek V4.1 load: the shard-plan tests pass the index-ownership arg…
akol1 Oct 14, 2026
84386c9
DeepSeek V4.1: the rebase residue — one counters binding, the state-w…
akol1 Oct 14, 2026
d3c94ee
mHC fp64 ideal reference: the mix at rounding level, 1-ULP noise atte…
akol1 Oct 14, 2026
bb4cbc3
CSA2 reference: FP64-ideal parameterization of the pool, RMS and spar…
akol1 Oct 14, 2026
7b19ae1
csa2: FP64 stage harness, compressor pool + RMS, six adversarial inpu…
akol1 Oct 14, 2026
20e3880
csa2: FP64 stage harness over the sparse attention kernel, with kerne…
akol1 Oct 14, 2026
16e101b
csa2: indexer stage harness — FP32/FP64 score comparison and top-k se…
akol1 Oct 14, 2026
4bbb896
csa2: indexer stage receipts — carry the BF16 einsum/score boundaries…
akol1 Oct 14, 2026
585cd5a
csa2: sparse stage reads its own FP32 rounding level before the BF16 …
akol1 Oct 14, 2026
d33f74c
csa2: per-stage harnesses for sinks, tile denominators, output mix an…
akol1 Oct 14, 2026
75cbd19
csa2: measure how much score noise the top-k selection absorbs
akol1 Oct 14, 2026
edf9c7a
The fp64 harness ports: dedupe the shared math helpers, fix the shard…
akol1 Oct 14, 2026
1f0aed0
The oracle records the indexer's selection margins while it teaches
akol1 Oct 14, 2026
ed7ba76
The indexer-margin capture at depth: one diagnostic token's selection…
akol1 Oct 14, 2026
4006c85
DeepSeek V4.1: lane slots, each with its own caches and Engram cursor
akol1 Oct 13, 2026
10026d4
tf-dsv41-run: the counters read the full rusage_info_v4
akol1 Oct 13, 2026
c1f7e63
DeepSeek V4.1: the lane backend, a stream a slot
akol1 Oct 13, 2026
7ba5fa6
DeepSeek V4.1: the lane host behind the native server
akol1 Oct 13, 2026
34811b7
serve: --engram-table-dir reaches the native engine
akol1 Oct 13, 2026
b51503d
DeepSeek V4.1: the lane host builds the token map when it is missing
akol1 Oct 14, 2026
5f62bb6
DeepSeek V4.1: the family guide
akol1 Oct 14, 2026
9e8269a
the operator harnesses through zig fmt
akol1 Oct 14, 2026
81b013b
DeepSeek V4.1: the token map ships its table generator and its unit t…
akol1 Oct 18, 2026
a2a2874
DeepSeek V4.1 reference: the operator harnesses split at their seams
akol1 Oct 18, 2026
589937c
DeepSeek V4.1: the reference, family, native and Metal comments on on…
akol1 Oct 18, 2026
b7b23ba
DeepSeek V4.1: the lane runner accepts and documents its context argu…
akol1 Oct 18, 2026
1ccd7bc
DeepSeek V4.1: the FP32 and FP64 oracles run side by side
akol1 Oct 19, 2026
99c7c54
DeepSeek V4.1 reference: the FP64 narrowing keeps NaN, and the FP32 o…
akol1 Oct 19, 2026
34d6eb9
DeepSeek V4.1 reference: the index tie fixture broadcasts row 0 into …
akol1 Oct 21, 2026
c55c246
DeepSeek V4.1 reference: the FP32 sign packing matches the consumer w…
akol1 Oct 21, 2026
c379221
Pass the span metadata the counter recorder now requires
akol1 Oct 21, 2026
3032baa
DeepSeek V4.1: Metal targets onto 1.1.2's build modules
akol1 Oct 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Pass the span metadata the counter recorder now requires
beginSpan gained a metadata argument, so the four call sites in the Metal
counter consumer no longer compiled. zig build test does not build that
consumer, so nothing caught it.

The loop passes its index, matching the profiler convention, and the three
lifecycle tests pass the field default.
  • Loading branch information
akol1 committed Oct 21, 2026
commit c379221c340b77323e6aea331dfb02c6abb979f8
8 changes: 4 additions & 4 deletions zig/src/metal_counter_consumer.zig
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ pub const Consumer = struct {
const scales = [_]f32{ 2, 1, 0.5 };
const biases = [_]f32{ 1, -3, 2 };
for (classes, 0..) |kind, i| {
try recorder.beginSpan(&encoder, kind);
try recorder.beginSpan(&encoder, kind, @intCast(i));
const input = if (i % 2 == 0) self.a else self.b;
const output = if (i % 2 == 0) self.b else self.a;
encoder.setPipeline(self.pipeline);
Expand Down Expand Up @@ -207,11 +207,11 @@ test "bounded recorder rejects nesting, overflow, open spans and premature reuse
try std.testing.expectError(error.CounterEncoderStillOpen, recorder.discardAfterCompletion());
try std.testing.expectError(error.CounterRecordingInFlight, recorder.beginCommand(cb));
try std.testing.expectError(error.NoActiveCounterSpan, recorder.endSpan(&encoder));
try recorder.beginSpan(&encoder, .dense);
try std.testing.expectError(error.NestedCounterSpan, recorder.beginSpan(&encoder, .copy));
try recorder.beginSpan(&encoder, .dense, 0);
try std.testing.expectError(error.NestedCounterSpan, recorder.beginSpan(&encoder, .copy, 0));
try std.testing.expectError(error.UnclosedCounterSpan, recorder.finishEncoding(&encoder));
try recorder.endSpan(&encoder);
try std.testing.expectError(error.CounterSpanCapacityExceeded, recorder.beginSpan(&encoder, .copy));
try std.testing.expectError(error.CounterSpanCapacityExceeded, recorder.beginSpan(&encoder, .copy, 0));
try recorder.finishEncoding(&encoder);
try std.testing.expectError(error.CounterCommandNotCompleted, recorder.readAfterCompletion());
try recorder.cancelEncoding(&encoder);
Expand Down