A new nightly version has been released! ![]()
See the quickstart guide for installation instructions: Quickstart | MAX
MAX changelog updates:
-
Added support for
poolside/Laguna-S-2.1-NVFP4
on theLagunaForCausalLMarchitecture. 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, sopoolside/Laguna-M.1-NVFP4keeps its
uniform layout. -
maxserve_batch_execution_time_millisecondsnow measures the executor
call when overlap is off. The former full scheduler-step duration is
available asmaxserve_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_msanddecode_batch_execution_time_ms
columns usemaxserve_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 raisesmax.graph.KernelRegistrationError, aValueError
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
DeviceContextargument 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 = Falseto keep every frame. Errors
thatModel.executeraises are nowmax.engine.ModelExecutionError, a
RuntimeErrorsubclass that is also aValueError, so existing
except ValueErrorhandlers keep working. -
Errors from
AutoModel.generate()andAutoModel.generate_iter()now name
AutoModel, notgenerate(). An image part that holds its own image, or
animage_urlpart, now raisesValueErrorpointing toAutoProcessor,
even whenimagesgives the row the right count. -
Added
generate_images()inmax.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
requestmax servebuilds for it, so the model’s defaults are the same as in
serve. -
AutoModelnow loads image generation models such as FLUX.2, and
AutoModel.generate(prompt=...)runs them and returns a
GenerateImagesResult. Text models keep the samegenerate()call and
result. An argument for the other kind of model raises aValueErrorthat
names it. Image models needmax_batch_size=1and no device graph capture.
AutoPipelineruns 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=...), andgenerate()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