MAX Nightly 26.8.0.dev2026102405 (Mojo 1.3.0.dev2026102405) Released

:astronaut: A new nightly version has been released! :astronaut:

See the quickstart guide for installation instructions: Quickstart | MAX

MAX changelog updates:

  • Added support for
    poolside/Laguna-S-2.1-NVFP4
    on the LagunaForCausalLM architecture. The checkpoint interleaves 12
    full-attention layers with 36 sliding-window layers on a 512-token window,
    gates attention output per head rather than per element, and mixes expert
    precisions: NVFP4 routed experts in layers 1-39 and bfloat16 ones in layers
    40-47, with the dense first layer and every shared expert in bfloat16
    throughout. Attention type, query-head count, RoPE scaling and MLP precision
    are now all resolved per layer, so poolside/Laguna-M.1-NVFP4 keeps its
    uniform layout.

  • maxserve_batch_execution_time_milliseconds now measures the executor
    call when overlap is off. The former full scheduler-step duration is
    available as maxserve_scheduler_batch_step_time_milliseconds. Batch
    throughput uses the executor interval and counts returned output tokens,
    including prefill outputs and accepted speculative tokens. See the
    batch timing contract for overlap timing.
    Intermediate prefill chunks returning no tokens now contribute zero to
    the CE generation-throughput histogram, shifting its distribution on
    chunked-prefill workloads. The benchmark harness’s
    prefill_batch_execution_time_ms and decode_batch_execution_time_ms
    columns use maxserve_batch_execution_time_milliseconds, so MAX’s
    synchronous values now exclude scheduler work; comparisons with older
    builds are not like for like.

  • A custom op whose Mojo kernel is registered wrong, or doesn’t match its
    call, now raises max.graph.KernelRegistrationError, a ValueError
    subclass. The message points at the Mojo code the way the Mojo compiler
    does: the file, line and column, the source line and a caret. A custom op
    package’s kernels are now checked when it loads, so a misplaced
    DeviceContext argument fails there instead of while compiling the
    generated code.

  • Source tracebacks (InferenceSession.debug.source_tracebacks) now stop at
    your code’s call into the graph API, so errors point at the lines that
    created each op rather than at MAX’s implementation of it. Set
    source_tracebacks_hide_internal = False to keep every frame. Errors
    that Model.execute raises are now max.engine.ModelExecutionError, a
    RuntimeError subclass that is also a ValueError, so existing
    except ValueError handlers keep working.

  • Errors from AutoModel.generate() and AutoModel.generate_iter() now name
    AutoModel, not generate(). An image part that holds its own image, or
    an image_url part, now raises ValueError pointing to AutoProcessor,
    even when images gives the row the right count.

  • Added generate_images() in max.pipelines.lib.generate_images, which runs
    an image generation pipeline such as FLUX.2 in your own process and returns
    one list of PIL images per prompt, in prompt order. Each prompt runs as the
    request max serve builds for it, so the model’s defaults are the same as in
    serve.

  • AutoModel now loads image generation models such as FLUX.2, and
    AutoModel.generate(prompt=...) runs them and returns a
    GenerateImagesResult. Text models keep the same generate() call and
    result. An argument for the other kind of model raises a ValueError that
    names it. Image models need max_batch_size=1 and no device graph capture.
    AutoPipeline runs image models too, through
    AutoModel.generate(prompt=...), and returns a prompt’s list of images.
    On an image model, AutoModel.generate_iter() points to
    AutoModel.generate(prompt=...), and generate() points to
    generate_images().

Mojo changelog updates:

  • [stdlib] Abort on negative integer powers, compute literal ones exactly
  • [External] [Mojo] add changelog entry for negative literal patterns (#106134)

Raw MAX diff: https://github.com/modular/modular/compare/da0db31d422e19ad5952d8d106b6da1d6899cf0a...b2d6b83ba7e17ddaf1c31acdf926c25194e44b2a
Current Mojo changelog: https://github.com/modular/modular/blob/main/Mojo/docs/site/nightly-changelog.md