Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel

## Unreleased

- DeepSeek-V4.1 on Metal: EXL3 routed experts run on Metal with exact up and down kernels, a short descriptor table is refused before launch, and planted controls cover both kernels (#5063). Thanks to @BlivionIaG.
- Nemotron on pre-M5 Metal: with `TF_NEMOTRON_METAL_KV_PAGES=1`, drafted verification computes attention one row at a time, as plain decoding does, so drafted output stays byte-identical to plain; the attention contracts now compare every output byte, NaN payloads included (refs #5223).

- CUDA: Linux release archives include Thor (sm_110) SASS and apply the Qwen3.8-27B-only admission rules when serving on Thor (#2319).
- Inkling 2 Mini on Metal: `--drafter` takes a DFlash 2 drafter, and drafted output stays byte-identical to plain decoding (#4917). Thanks to @cwschroeder.

- DeepSeek-V4.1 on Metal: EXL3 routed experts run on Metal with exact up and down kernels, a short descriptor table is refused before launch, and planted controls cover both kernels (#5063). Thanks to @BlivionIaG.

- CUDA: Linux release archives include Thor (sm_110) SASS and apply the Qwen3.8-27B-only admission rules when serving on Thor (#2319).

- CUDA: Kolibri 1.1 (`kolibri1_1`) serves up to 2,048 tokens, exact, and capabilities, model information and managed benchmarks list every CUDA-only alias with its family's formats (#4941, refs #4846). Thanks to @jschmied.

Expand All @@ -20,8 +22,6 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel

- Changelog: Unreleased is tidied for 1.3.6: #4907's line moves out of 1.3.5 into Unreleased with its number, three bullets that repeated another PR's line are removed (#4918, #4931, #5003), and #5042's line thanks its author (#5196).



- Server: `--listen-fd N` serves on the Unix socket the parent process passed, only to that process, taking the socket once before the model loads (#5183, refs #5175). Thanks to @kotevcode.
- Server: `serve --listen-fd N` serves the Unix stream socket the parent process passed as descriptor N, and only that process: a connection from any other is closed. It is refused beside `--unix-socket`, `--host`, `--port` and the API key options, and `--execution-witness` accepts it in place of a key; macOS and Linux (#5175)
- Flash Next on CUDA: the expert loader reads the multiprocessor count of the current context's device, so the NVFP4, FP8 and tiled expert residency caps follow the selected GPU instead of device 0 (fixes #4952).
Expand Down
1 change: 1 addition & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ pub fn build(b: *std.Build) void {
_ = ids_files.addCopyFile(b.path("zig/src/families/nemotron/draft_ids.txt"), "draft_ids.txt");
const draft_ids = b.createModule(.{ .root_source_file = ids_files.add("draft_ids.zig", "pub const text = @embedFile(\"draft_ids.txt\");\n") });
const test_step = b.step("test", "Unit tests (macOS includes available Metal device checks)");
@import("zig/build/nemotron_decode_host.zig").steps(b);
@import("zig/build/gguf_host.zig").steps(b, test_step);
@import("zig/build/glm_ocr.zig").hostTests(b, test_step);
@import("zig/build/dots_mocr.zig").hostTests(b, test_step);
Expand Down
5 changes: 5 additions & 0 deletions zig/build/metal_cost_host.zig
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@ pub fn compile(b: *std.Build, draft_ids: *std.Build.Module) void {
const object = b.addObject(.{ .name = "metal-cost-adapters", .root_module = root });
_ = object.getEmittedBin();
b.step("check-metal-cost-adapters-host", "Compile actual Metal cost adapter bodies as a Darwin object without linking or GPU execution").dependOn(&object.step);
const probe = b.createModule(.{ .root_source_file = b.path("zig/tests/contract/nemotron_verify_probes.zig"), .target = target, .link_libc = true, .imports = &.{ .{ .name = "metal", .module = metal }, .{ .name = "tensorfold", .module = engine }, .{ .name = "kernel_sources", .module = sources }, .{ .name = "contract", .module = @import("kernel_contract.zig").module(b, target, .debug) } } });
const decode_root = b.createModule(.{ .root_source_file = b.path("zig/nemotron_decode_compile.zig"), .target = target, .optimize = .debug, .link_libc = true, .imports = &.{ .{ .name = "tensorfold", .module = engine }, .{ .name = "probe", .module = probe } } });
const decode = b.addObject(.{ .name = "nemotron-decode-attention-host", .root_module = decode_root });
_ = decode.getEmittedBin();
b.step("check-nemotron-decode-attention-host", "Compile actual Metal verify and one-row contract without linking or device work").dependOn(&decode.step);
}
16 changes: 16 additions & 0 deletions zig/build/nemotron_decode_host.zig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//! Focused launch recording for Nemotron's pre-M5 verify attention.
const std = @import("std");
pub fn steps(b: *std.Build) void {
const metal = b.createModule(.{ .root_source_file = b.addWriteFiles().add("decode-record-metal.zig", "pub const Buffer = usize; pub const Pipeline = usize;\n"), .target = b.graph.host });
const decode = b.createModule(.{ .root_source_file = b.path("zig/src/families/nemotron/decode_attention.zig"), .target = b.graph.host, .imports = &.{.{ .name = "metal", .module = metal }} });
const root = b.createModule(.{ .root_source_file = b.path("zig/nemotron_decode_host.zig"), .target = b.graph.host, .optimize = .debug, .imports = &.{.{ .name = "decode", .module = decode }} });
b.step("test-nemotron-decode-attention-host", "Record one-row verify attention extents, offsets and pages without devices").dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = root })).step);
const cases = b.createModule(.{ .root_source_file = b.path("zig/tests/contract/nemotron_decode_cases.zig"), .target = b.graph.host, .optimize = .debug, .imports = &.{.{ .name = "contract", .module = @import("kernel_contract.zig").module(b, b.graph.host, .debug) }} });
b.step("test-nemotron-decode-cases-host", "Verify served-width coverage and reduced-precision stress controls without devices").dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = cases })).step);
const verify = b.createModule(.{ .root_source_file = b.path("zig/nemotron_verify_contract_host.zig"), .target = b.graph.host, .optimize = .debug, .imports = &.{ .{ .name = "decode", .module = decode }, .{ .name = "contract", .module = @import("kernel_contract.zig").module(b, b.graph.host, .debug) } } });
b.step("test-nemotron-verify-contract-host", "Legacy versus serial attention arms, plain expert row dispatch and forced M1 test selection").dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = verify })).step);
const opts = b.addOptions();
opts.addOption(bool, "class_only", b.option(bool, "attention-nonfinite-class-only", "Negative host control: use the previous class-only gate") orelse false);
const nonfinite = b.createModule(.{ .root_source_file = b.path("zig/nemotron_nonfinite_host.zig"), .target = b.graph.host, .optimize = .debug, .imports = &.{ .{ .name = "contract", .module = @import("kernel_contract.zig").module(b, b.graph.host, .debug) }, .{ .name = "nonfinite_test_options", .module = opts.createModule() } } });
b.step("test-nemotron-nonfinite-host", "Class-preserving finite/NaN controls against actual nonfinite gate and attention exact check").dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = nonfinite })).step);
}
Loading
Loading