Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
5faee4c
server: deadline_s ends a reply at its deadline with every token and …
jayleaton Nov 14, 2026
63b17b1
server: a reply the engine already ended keeps its finish when its de…
jayleaton Nov 15, 2026
d23932c
changelog: #3438 under Unreleased
ashhart Nov 20, 2026
b102264
h3: a picture's case, with no audio rows or tensors, for MiniMax-H3-I…
ashhart Nov 10, 2026
21eb13b
h3: an output head per step in a picture's case
ashhart Nov 10, 2026
f35b9bd
h3: MiniMax-H3-Image's transformer on Metal from a picture case (tf-h…
ashhart Nov 10, 2026
b701e80
docs: MiniMax-H3-Image's transformer on Metal, and picture cases in t…
ashhart Nov 10, 2026
f9a18b3
h3: one-line comments in the picture code
ashhart Nov 10, 2026
ec842e2
docs: no trailing space in the H3-Image recipe
ashhart Nov 10, 2026
7e77aaa
h3: MiniMax-H3-Image's VAE rules on the host, and Pillow's Lanczos-3 …
ashhart Nov 10, 2026
b827f42
moss_image: torch.randn draws chained on one generator, for pipelines…
ashhart Nov 10, 2026
0dc29c3
h3: MiniMax-H3-Image's edit reference rules on the host: sizes, crops…
ashhart Nov 10, 2026
42a591b
h3: MiniMax-H3-Image's edit encoder on Metal in fp32, tf-h3-image-enc…
ashhart Nov 10, 2026
28c49fd
docs: MiniMax-H3-Image's edit encoder in its recipe
ashhart Nov 10, 2026
e4764d7
h3: MiniMax-H3-Image's prompt rules on the host
ashhart Nov 10, 2026
961e663
h3: MiniMax-H3-Image's prompt path on Metal, on any Apple GPU
ashhart Nov 10, 2026
2db119c
docs: MiniMax-H3-Image's prompt path in its recipe; one line less in …
ashhart Nov 10, 2026
db6d74e
h3: the image decoder's host rules: its tensors, a tile's sequence an…
ashhart Nov 10, 2026
2604eb9
h3: the image decoder on Metal in bf16, and a float64 reference of it…
ashhart Nov 10, 2026
d60c38c
h3: tf-h3-image-decoder, a latent to a PNG on any Apple GPU, and its …
ashhart Nov 10, 2026
c0adc57
docs: MiniMax-H3-Image's decoder in its recipe; one line less in meta…
ashhart Nov 10, 2026
8989ff6
h3: MiniMax-H3-Image's text to image end to end: the prompt tool writ…
ashhart Nov 10, 2026
b27fb3f
picture: LANCZOS gives Pillow 13's bytes, shrinking, enlarging, both …
ashhart Nov 10, 2026
09f700b
h3: MiniMax-H3-Image's prompt encoder, transformer and decoder reside…
plotarmordev Nov 17, 2026
d18791b
docs: the resident H3-Image server in the Metal recipe
plotarmordev Nov 17, 2026
a79df7f
h3: tf-h3-image-encoder reads PNGs through core.picture, as #2779 does
ashhart Nov 20, 2026
195169e
changelog: #3718 under Unreleased
ashhart Nov 20, 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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Each release's page on GitHub has its notes and measurements. See [the 1.0.0 rel

## Unreleased

- MiniMax-H3-Image on Metal: `tf-h3-image-server` loads the prompt encoder, transformer and decoder once and serves one text-to-image request per input line, keeping the weights resident between pictures (#3718). Thanks to @plotarmordev.

- Server: chat and legacy completions requests take `deadline_s` (seconds, more than 0 and at most 1,000,000; any other value is refused before the engine): at that time the server cancels the engine itself and the reply ends with `finish_reason: "deadline"`, keeping every token the engine gave and its usage; a reply the engine ended first, or a cancel that came first, keeps its own ending, and without the field nothing changes (#3438). Thanks to @jayleaton.

- GLM-5.3-Flash on CUDA at tensor-parallel widths where a rank's fused KDA input is not a multiple of eight columns (TP=3, 5, 6 or 7): the stack is padded at load to its own width rounded up to eight columns and stays row-major bf16, so prompt windows take the staged B16 tiles with every byte as before; `TF_GLM_KDA_PAD=1` still tiles the stack for glm_mm (#3697, for #3516). Thanks to @ultradaoto.

- Windows: the native CUDA product compiles again: Muse Spark, which needs two TP ranks over the POSIX-only TP fabric, is refused by name on Windows (TP across ranks runs on Linux only) instead of breaking the build, and CI now type-checks the Windows CUDA product (`zig build compile-native-cuda-windows`, #4171, fixes #4105).
Expand Down
2 changes: 2 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ pub fn build(b: *std.Build) void {
@import("zig/build/qwen35_cache_host.zig").compileHost(b, step5_mods.metal, step5_mods.engine, step5_mods.lanes);
}
@import("zig/build/h3_host.zig").tests(b, target, test_step);
@import("zig/build/h3_image_prompt.zig").tests(b, target, test_step);
@import("zig/build/h3_image_decoder.zig").compileHost(b, target);
@import("zig/build/ling_host.zig").tests(b, target, test_step);
@import("zig/build/inkling2_host.zig").tests(b, target, test_step);
@import("zig/build/gpt_oss_host.zig").tests(b, test_step);
Expand Down
1 change: 1 addition & 0 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ delete runs gets 503, an id that is not a number 400, and an id the graph does n
| `reasoning_effort` | `none`, `minimal`, `low`, `medium`, `high`, `xhigh` or `max` | Both |
| `thinking_budget` | Token-count limit inside reasoning | Both |
| `priority` | `background` yields to foreground requests | Both |
| `deadline_s` | Seconds, more than 0 and at most 1,000,000, on chat and legacy completions: at that time the server cancels the engine itself and the reply ends with `finish_reason: "deadline"`, keeping every token the engine gave, usage and token ids. A reply that ends first, or a [cancel](#cancel-a-request) that came first, keeps its own ending; without the field nothing changes | Native |
| `return_token_ids` | The reply's token ids in the response's `tensorfold.token_ids`, the tokens its `token_sha256` hashes | Native |

`n` must be 1; multiple choices receive HTTP 400.
Expand Down
351 changes: 351 additions & 0 deletions docs/recipes/minimax-h3-image-metal.md

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions docs/recipes/minimax-h3-metal.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,10 @@ On macOS, `zig build compile-h3-host` compiles the actual tool with embedded sha
shaders. Device and reference-output checks still need a Mac with the Metal toolchain.

The reader accepts six, seven or eight nonnegative geometry counts. The seventh is held picture/video rows; the eighth
is held audio, from zero through the total audio count. Text and held picture rows may be empty. Both audio and generated
video must have rows for this tool's unconditional buffers and dispatches. Tiles hold one through 64 rows each; their
is held audio, from zero through the total audio count. Text and held picture rows may be empty. A clip's case needs both audio
and generated video rows for this tool's unconditional buffers and dispatches. A case without `audio_in.weight` is a
picture's (MiniMax-H3-Image, [minimax-h3-image-metal.md](minimax-h3-image-metal.md)): it carries no audio tensor
and no audio rows, and may hold an output head per step. Tiles hold one through 64 rows each; their
unique slots must match the prefix/video partition. Keep may be zero through the generated-video tile count.

Malformed counts, tensor shapes, tile maps, table indices, schedule sizes and overflowing byte products return named
Expand Down
1 change: 1 addition & 0 deletions zig/build/cuda_server_host.zig
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ pub fn steps(b: *std.Build, host: std.Build.ResolvedTarget, cuda: *std.Build.Mod
eos_policy.dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = mods.tokenizer, .filters = &.{"EOS policy:"} })).step);
eos_policy.dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = kolibri1Module(b, host, .debug, cuda, mods.core, mods.lanes), .filters = &.{"EOS policy:"} })).step);
b.step("test-serve-flags-host", "Serve flag parsing, the flat TOML reader and --config expansion, without a GPU").dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = server_tests, .filters = &.{ "--compact-at:", "flat TOML:", "serve --config:" } })).step);
b.step("test-request-deadline-host", "deadline_s: the server ends a reply at its deadline with usage and ids").dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = server_tests, .filters = &.{"request deadline:"} })).step);
b.step("test-dory-cli-host", "Dory CUDA loop option forwarding and invalid-value refusals").dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = server_tests, .filters = &.{"--device and --segments:"} })).step);
b.step("test-dory-chat-host", "Dory chat template, EOS, reasoning split and qwen3_coder call on the CPU").dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = server_tests, .filters = &.{"Dory chat:"} })).step);
b.step("test-embeddings-protocol-host", "Embedding request and response contracts without an admitted model or GPU").dependOn(&b.addRunArtifact(b.addTest(.{ .root_module = server_tests, .filters = &.{"embeddings protocol:"} })).step);
Expand Down
6 changes: 5 additions & 1 deletion zig/build/h3_host.zig
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@ pub fn tests(b: *std.Build, target: std.Build.ResolvedTarget, test_step: *std.Bu
metal.linkFramework("Foundation", .{});
metal.linkFramework("IOSurface", .{});
metal.linkSystemLibrary("objc", .{});
@import("h3_image_encoder.zig").compileHost(b, target, metal);
const sources = b.createModule(.{ .root_source_file = b.path("zig/kernels/metal/sources.zig") });
const kernels = b.createModule(.{ .root_source_file = b.path("zig/kernels/metal/h3/kernels.zig") });
const model = b.createModule(.{ .root_source_file = b.path("zig/src/families/h3/h3.zig"), .target = target, .optimize = .Debug, .link_libc = true, .imports = &.{ .{ .name = "metal", .module = metal }, .{ .name = "core", .module = core }, .{ .name = "kernel_sources", .module = sources }, .{ .name = "h3_kernels", .module = kernels } } });
const tool = b.addExecutable(.{ .name = "tf-h3-host-compile", .root_module = b.createModule(.{ .root_source_file = b.path("zig/tests/h3_dit.zig"), .target = target, .optimize = .Debug, .link_libc = true, .imports = &.{ .{ .name = "h3", .module = model }, .{ .name = "metal", .module = metal } } }) });
b.step("compile-h3-host", "Compile the actual H3 tool without compiling or executing shaders").dependOn(&tool.step);
const picture_tool = b.addExecutable(.{ .name = "tf-h3-image-host-compile", .root_module = b.createModule(.{ .root_source_file = b.path("zig/tests/h3_image.zig"), .target = target, .optimize = .Debug, .link_libc = true, .imports = &.{ .{ .name = "h3", .module = model }, .{ .name = "metal", .module = metal }, .{ .name = "core", .module = core } } }) });
const compile = b.step("compile-h3-host", "Compile the actual H3 tools (tf-h3-dit, tf-h3-image) without compiling or executing shaders");
compile.dependOn(&tool.step);
compile.dependOn(&picture_tool.step);
const modulation = b.createModule(.{ .root_source_file = b.path("zig/src/families/h3/modulation.zig"), .target = target, .optimize = .Debug, .link_libc = true, .imports = &.{ .{ .name = "metal", .module = metal }, .{ .name = "core", .module = core }, .{ .name = "kernel_sources", .module = sources }, .{ .name = "h3_kernels", .module = kernels } } });
const rounding = b.addRunArtifact(b.addTest(.{ .root_module = modulation, .filters = &.{"modulation bf16:"} }));
b.step("test-h3-modulation-bf16", "H3's host bf16 rounding against the copy it replaced, no GPU").dependOn(&rounding.step);
Expand Down
29 changes: 29 additions & 0 deletions zig/build/h3_image_decoder.zig
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//! MiniMax-H3-Image's image decoder: tf-h3-image-decoder on Metal, and a compile check needing no Metal compiler.
const std = @import("std");

/// The tool on `metal`: the decoder and its kernels' source, and the picture writer (PNG and resampler).
fn module(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.builtin.OptimizeMode, metal: *std.Build.Module) *std.Build.Module {
const core = b.createModule(.{ .root_source_file = b.path("zig/src/core/root.zig"), .target = target, .optimize = optimize, .link_libc = true });
const kernels = b.createModule(.{ .root_source_file = b.path("zig/kernels/metal/h3/image_decoder.zig") });
const decoder = b.createModule(.{ .root_source_file = b.path("zig/src/families/h3/image_decoder_metal.zig"), .target = target, .optimize = optimize, .link_libc = true, .imports = &.{ .{ .name = "metal", .module = metal }, .{ .name = "core", .module = core }, .{ .name = "h3_image_decoder_kernels", .module = kernels } } });
const writer = b.createModule(.{ .root_source_file = b.path("zig/src/picture_writer.zig"), .target = target, .optimize = optimize, .imports = &.{.{ .name = "core", .module = core }} });
return b.createModule(.{ .root_source_file = b.path("zig/tests/h3_image_decoder.zig"), .target = target, .optimize = optimize, .link_libc = true, .imports = &.{ .{ .name = "metal", .module = metal }, .{ .name = "h3_image_decoder", .module = decoder }, .{ .name = "picture_writer", .module = writer } } });
}

/// `zig build tf-h3-image-decoder` (metal_targets.zig): its shaders compile at load, on any Apple GPU.
pub fn tool(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.builtin.OptimizeMode, metal: *std.Build.Module) void {
const exe = b.addExecutable(.{ .name = "tf-h3-image-decoder", .root_module = module(b, target, optimize, metal) });
b.step("tf-h3-image-decoder", "MiniMax-H3-Image's image decoder on Metal: a latent to a PNG, or its self-test against the host").dependOn(&b.addInstallArtifact(exe, .{}).step);
}

/// `zig build compile-h3-image-decoder-host`: the tool compiled in Debug on macOS, no shader compiled or run.
pub fn compileHost(b: *std.Build, target: std.Build.ResolvedTarget) void {
if (target.result.os.tag != .macos) return;
const metal = b.createModule(.{ .root_source_file = b.path("zig/src/metal/metal.zig"), .target = target, .optimize = .Debug, .link_libc = true });
metal.linkFramework("Metal", .{});
metal.linkFramework("Foundation", .{});
metal.linkFramework("IOSurface", .{});
metal.linkSystemLibrary("objc", .{});
const exe = b.addExecutable(.{ .name = "tf-h3-image-decoder-host-compile", .root_module = module(b, target, .Debug, metal) });
b.step("compile-h3-image-decoder-host", "Compile tf-h3-image-decoder without compiling or executing shaders").dependOn(&exe.step);
}
22 changes: 22 additions & 0 deletions zig/build/h3_image_encoder.zig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//! MiniMax-H3-Image's edit encoder: `tf-h3-image-encoder`, whose Metal is compiled at load, and its host compile check.
const std = @import("std");

fn module(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.builtin.OptimizeMode, metal: *std.Build.Module) *std.Build.Module {
const core = b.createModule(.{ .root_source_file = b.path("zig/src/core/root.zig"), .target = target, .optimize = optimize, .link_libc = true });
const kernels = b.createModule(.{ .root_source_file = b.path("zig/kernels/metal/h3/image_encoder.zig") });
const encoder = b.createModule(.{ .root_source_file = b.path("zig/src/families/h3/image_encoder.zig"), .target = target, .optimize = optimize, .link_libc = true, .imports = &.{ .{ .name = "metal", .module = metal }, .{ .name = "core", .module = core }, .{ .name = "h3_image_encoder_kernels", .module = kernels } } });
const noise = b.createModule(.{ .root_source_file = b.path("zig/src/families/moss_image/noise.zig"), .target = target, .optimize = optimize });
return b.createModule(.{ .root_source_file = b.path("zig/tests/h3_image_encoder.zig"), .target = target, .optimize = optimize, .link_libc = true, .imports = &.{ .{ .name = "metal", .module = metal }, .{ .name = "h3_image_encoder", .module = encoder }, .{ .name = "core", .module = core }, .{ .name = "torch_noise", .module = noise } } });
}

/// `zig build tf-h3-image-encoder`: a reference picture to its clean rows, or `selftest`; needs no Metal compiler.
pub fn tool(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.builtin.OptimizeMode, metal: *std.Build.Module) void {
const exe = b.addExecutable(.{ .name = "tf-h3-image-encoder", .root_module = module(b, target, optimize, metal) });
b.step("tf-h3-image-encoder", "MiniMax-H3-Image's edit encoder on Metal: a reference to its clean rows, or its selftest").dependOn(&b.addInstallArtifact(exe, .{}).step);
}

/// `zig build compile-h3-image-encoder`: the tool compiled in Debug, no shader compiled or run.
pub fn compileHost(b: *std.Build, target: std.Build.ResolvedTarget, metal: *std.Build.Module) void {
const exe = b.addExecutable(.{ .name = "tf-h3-image-encoder-host-compile", .root_module = module(b, target, .Debug, metal) });
b.step("compile-h3-image-encoder", "Compile tf-h3-image-encoder without compiling or running its shaders").dependOn(&exe.step);
}
37 changes: 37 additions & 0 deletions zig/build/h3_image_prompt.zig
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
//! MiniMax-H3-Image's prompt path: its host rules' tests, a host compile of tf-h3-image-prompt, and the Metal tool.
const std = @import("std");

/// `test-h3-image-prompt` (the rules, no GPU) and on macOS `compile-h3-image-prompt` (the tool, no shader compiled).
pub fn tests(b: *std.Build, target: std.Build.ResolvedTarget, test_step: *std.Build.Step) void {
const core = b.createModule(.{ .root_source_file = b.path("zig/src/core/root.zig"), .target = target, .link_libc = true });
const root = b.createModule(.{ .root_source_file = b.path("zig/src/families/h3/picture_prompt_test.zig"), .target = target, .link_libc = true, .imports = &.{.{ .name = "core", .module = core }} });
const run = b.addRunArtifact(b.addTest(.{ .root_module = root }));
b.step("test-h3-image-prompt", "MiniMax-H3-Image's prompt rules: ids, tags, positions, rotary, Qwen copy sizes, configs").dependOn(&run.step);
test_step.dependOn(&run.step);
if (target.result.os.tag != .macos) return;
const metal = b.createModule(.{ .root_source_file = b.path("zig/src/metal/metal.zig"), .target = target, .optimize = .Debug, .link_libc = true });
metal.linkFramework("Metal", .{});
metal.linkFramework("Foundation", .{});
metal.linkFramework("IOSurface", .{});
metal.linkSystemLibrary("objc", .{});
const exe = b.addExecutable(.{ .name = "tf-h3-image-prompt-host-compile", .root_module = tool(b, target, .Debug, metal) });
b.step("compile-h3-image-prompt", "Compile tf-h3-image-prompt without compiling or executing shaders").dependOn(&exe.step);
}

/// `zig build tf-h3-image-prompt`: a prompt to the refiner's text rows on Metal, and its synthetic selftest.
pub fn install(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.builtin.OptimizeMode, metal: *std.Build.Module) void {
const exe = b.addExecutable(.{ .name = "tf-h3-image-prompt", .root_module = tool(b, target, optimize, metal) });
b.step("tf-h3-image-prompt", "MiniMax-H3-Image's prompt to its text rows on Metal: Qwen3-VL to layer 50, the token refiner").dependOn(&b.addInstallArtifact(exe, .{}).step);
}

fn tool(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.builtin.OptimizeMode, metal: *std.Build.Module) *std.Build.Module {
const core = b.createModule(.{ .root_source_file = b.path("zig/src/core/root.zig"), .target = target, .optimize = optimize, .link_libc = true });
const kernels = b.createModule(.{ .root_source_file = b.path("zig/kernels/metal/h3/prompt_kernels.zig") });
const prompt = b.createModule(.{ .root_source_file = b.path("zig/src/families/h3/prompt.zig"), .target = target, .optimize = optimize, .link_libc = true, .imports = &.{
.{ .name = "metal", .module = metal },
.{ .name = "core", .module = core },
.{ .name = "h3_prompt_kernels", .module = kernels },
} });
const tokenizer = b.createModule(.{ .root_source_file = b.path("zig/src/core/tokenizer/tokenizer.zig"), .target = target, .optimize = optimize, .link_libc = true });
return b.createModule(.{ .root_source_file = b.path("zig/tests/h3_image_prompt.zig"), .target = target, .optimize = optimize, .link_libc = true, .imports = &.{ .{ .name = "metal", .module = metal }, .{ .name = "h3_prompt", .module = prompt }, .{ .name = "tokenizer", .module = tokenizer }, .{ .name = "core", .module = core }, .{ .name = "moss_noise", .module = b.createModule(.{ .root_source_file = b.path("zig/src/families/moss_image/noise.zig"), .target = target, .optimize = optimize }) } } });
}
33 changes: 33 additions & 0 deletions zig/build/h3_image_server.zig
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//! `zig build tf-h3-image-server` (h3_metal.zig): MiniMax-H3-Image's three tools resident in one process.
const std = @import("std");

pub fn tool(b: *std.Build, target: std.Build.ResolvedTarget, optimize: std.builtin.OptimizeMode, metal: *std.Build.Module, h3_kernels: *std.Build.Module, sources: *std.Build.Module, test_step: *std.Build.Step) void {
const core = b.createModule(.{ .root_source_file = b.path("zig/src/core/root.zig"), .target = target, .optimize = optimize, .link_libc = true });
// the PNG writer and its resampler, which the decoder and the server's timing line read pictures through
const writer = b.createModule(.{ .root_source_file = b.path("zig/src/picture_writer.zig"), .target = target, .optimize = optimize, .link_libc = true, .imports = &.{.{ .name = "core", .module = core }} });
// one module over the transformer, prompt path and decoder: they share source files
const image = b.createModule(.{ .root_source_file = b.path("zig/src/families/h3/image.zig"), .target = target, .optimize = optimize, .link_libc = true, .imports = &.{
.{ .name = "metal", .module = metal },
.{ .name = "core", .module = core },
.{ .name = "h3_kernels", .module = h3_kernels },
.{ .name = "kernel_sources", .module = sources },
.{ .name = "h3_prompt_kernels", .module = b.createModule(.{ .root_source_file = b.path("zig/kernels/metal/h3/prompt_kernels.zig") }) },
.{ .name = "h3_image_decoder_kernels", .module = b.createModule(.{ .root_source_file = b.path("zig/kernels/metal/h3/image_decoder.zig") }) },
} });
const exe = b.addExecutable(.{ .name = "tf-h3-image-server", .root_module = b.createModule(.{ .root_source_file = b.path("zig/tests/h3_image_server.zig"), .target = target, .optimize = optimize, .link_libc = true, .imports = &.{
.{ .name = "metal", .module = metal },
.{ .name = "core", .module = core },
.{ .name = "h3", .module = image },
.{ .name = "h3_prompt", .module = image },
.{ .name = "h3_image_decoder", .module = image },
.{ .name = "keepalive", .module = b.createModule(.{ .root_source_file = b.path("zig/src/core/keepalive.zig"), .target = target, .optimize = optimize }) },
.{ .name = "tokenizer", .module = b.createModule(.{ .root_source_file = b.path("zig/src/core/tokenizer/tokenizer.zig"), .target = target, .optimize = optimize, .link_libc = true }) },
.{ .name = "moss_noise", .module = b.createModule(.{ .root_source_file = b.path("zig/src/families/moss_image/noise.zig"), .target = target, .optimize = optimize }) },
.{ .name = "picture_writer", .module = writer },
} }) });
b.step("tf-h3-image-server", "MiniMax-H3-Image resident: prompt encoder, transformer and decoder loaded once, one picture a stdin line").dependOn(&b.addInstallArtifact(exe, .{}).step);
const tests = b.addTest(.{ .root_module = exe.root_module });
const run = b.addRunArtifact(tests);
b.step("test-h3-image-server", "The resident server's binding reuse, failed-bind unwind and over-long line reader").dependOn(&run.step);
test_step.dependOn(&run.step);
}
Loading
Loading