Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
d4d3a59
DeepSeek V4.1 Flash: configuration, Engram tables and resident weight…
akol1 Oct 13, 2026
3ef88cd
DeepSeek V4.1 Flash: Metal operators with fp64-dot references and the…
akol1 Oct 13, 2026
d9b30d3
THIRD_PARTY_NOTICES: the native DS4.1 reference follows DeepSeek-V4.1…
akol1 Oct 13, 2026
2e23371
DeepSeek V4.1 load: a shard contributes only the tensors the index ma…
akol1 Oct 13, 2026
c7dad8c
DeepSeek V4.1 load: the router gate and bias ride the pack's dtypes
akol1 Oct 13, 2026
91b8a68
DeepSeek V4.1 load: the Engram gate weights ride f32 or bf16
akol1 Oct 13, 2026
9ed1303
DeepSeek V4.1: the kept-dense EXL3 form, for rank-split repacks
akol1 Oct 13, 2026
79856d3
DeepSeek V4.1 reference: the kept-dense apply
akol1 Oct 13, 2026
af191ce
DeepSeek V4.1 load: the shard-plan tests pass the index-ownership arg…
akol1 Oct 14, 2026
dae11d3
DeepSeek V4.1: the rebase residue — one counters binding, the state-w…
akol1 Oct 14, 2026
35723cb
mHC fp64 ideal reference: the mix at rounding level, 1-ULP noise atte…
akol1 Oct 14, 2026
6a69841
CSA2 reference: FP64-ideal parameterization of the pool, RMS and spar…
akol1 Oct 14, 2026
e2dfb0c
csa2: FP64 stage harness, compressor pool + RMS, six adversarial inpu…
akol1 Oct 14, 2026
50f389a
csa2: FP64 stage harness over the sparse attention kernel, with kerne…
akol1 Oct 14, 2026
6154d85
csa2: indexer stage harness — FP32/FP64 score comparison and top-k se…
akol1 Oct 14, 2026
041d492
csa2: indexer stage receipts — carry the BF16 einsum/score boundaries…
akol1 Oct 14, 2026
13ca5c1
csa2: sparse stage reads its own FP32 rounding level before the BF16 …
akol1 Oct 14, 2026
fa1e5ca
csa2: per-stage harnesses for sinks, tile denominators, output mix an…
akol1 Oct 14, 2026
d3efdc9
csa2: measure how much score noise the top-k selection absorbs
akol1 Oct 14, 2026
0a2ab87
The fp64 harness ports: dedupe the shared math helpers, fix the shard…
akol1 Oct 14, 2026
1cae50b
The oracle records the indexer's selection margins while it teaches
akol1 Oct 14, 2026
0d77fac
The indexer-margin capture at depth: one diagnostic token's selection…
akol1 Oct 14, 2026
331e89b
the operator harnesses through zig fmt
akol1 Oct 14, 2026
a881b7f
DeepSeek V4.1: the sparse output accumulates each 64-column tile in c…
akol1 Oct 14, 2026
10fd1c1
The dense EXL3 apply accumulates its dot as a hi/lo FP32 pair
akol1 Oct 15, 2026
8ba0ee9
DeepSeek V4.1: the token map ships its table generator and its unit t…
akol1 Oct 18, 2026
5a3183f
DeepSeek V4.1: the family's comments on one line each, within the 120…
akol1 Oct 18, 2026
e3edac5
DeepSeek V4.1 reference: the operator harnesses split at their seams
akol1 Oct 18, 2026
28c93ef
DeepSeek V4.1: the reference and Metal comments on one line each
akol1 Oct 18, 2026
4cb1b17
DeepSeek V4.1 reference: the index tie fixture broadcasts row 0 into …
akol1 Oct 21, 2026
709574d
Pass the span metadata the counter recorder now requires
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
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 709574d36b3f39490aa400a2b9c3415a2d6f6168
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
Loading