A new nightly version has been released! ![]()
See the quickstart guide for installation instructions: Quickstart | MAX
MAX changelog updates:
Models
-
GLM-5.1, GLM-5.2, and GLM-5.3 now default
clear_thinkingtoFalse, which
keeps thereasoning_contenta client sends back for earlier turns in the
prompt. GLM-5.3 previously defaulted it toTrue, and GLM-5.1’s and
GLM-5.2’s templates clear earlier reasoning when it is unset. This matches
Z.ai’s Coding Plan endpoint, and
Z.ai’s thinking-mode guide
recommends it for coding and agent workloads. Passclear_thinking=Truein
the chat template options to drop earlier reasoning. -
InternVL and Gemma 3 multimodal models now return log probabilities, so
logprobsinmax serveandoutput_logprobsingenerate()work for
them.
Inference server
-
/v1/completionsnow returns a 400 error forechowithlogprobson a
server started without--enable-echo, when the model computes log
probabilities. The request used to crash the model worker. Other models
still return no log probabilities, andechowithoutlogprobshas no
effect. -
MAX Serve’s span attributes now sit under the entity they describe:
max.request_idis nowmax.request.id,max.batch_idismax.batch.id,
and the other request and batch attributes move undermax.request.*and
max.batch.*.kernel_agg:<name>spans carry the kernel name in
max.kernel.opinstead ofmax.kernel.name; per-kernel spans keep
max.kernel.name. Update trace queries that filter on the old names. -
Added
maxserve_request_client_disconnect_cancellations_total, which
counts streamed responses cut short by a client disconnect and completion
requests abandoned while waiting for a result, split byphase. A
mid-stream disconnect was previously invisible:
maxserve_request_count_totalrecords it under the status code already
sent.
max CLI
Python API
-
max.nn.Transformer,DistributedTransformer,logits_postprocess()and
distributed_logits_postprocess()return a
max.nn.graph_groups.DecoderOutputsof named groups instead of a tuple.
Read the logits as
outputs.logits["logits"]rather thanoutputs[1], and pass the outputs to
Graph.output(outputs)rather than unpacking them. The graph’s outputs keep
their order, andGraph.output_treereturns them by name. -
ops.matmul()takes anout_dtypekeyword argument that sets the result
dtype. The inputs keep their own dtypes and are no longer cast to a common
one, sobfloat16inputs without_dtype=DType.float32keep the float32
accumulator. Withoutout_dtype,ops.matmul(), the@operator and
max.experimental.functional’smatmul()require both inputs to share a
dtype, which the result keeps, somax.nn.Linearraises when its input and
weight dtypes differ.
max.experimental.nn.Linearcasts its input to the weight’s dtype, so a
float32 input to a bfloat16Linearnow gives bfloat16 instead of float32. -
Added
max.driver.Buffer.memset(value)to fill a contiguous buffer or
slice in place with a byte value, without allocating a source buffer. -
Added the
ops.CoordinateTransformModeandops.RoundModeenums.
ops.resize_linear,ops.resize_nearest, and theirmax.experimental
functional counterparts take them forcoordinate_transform_modeand
round_modein place of the integer codes 0-3. The integer codes still
work. -
Added
max.driver.float32_to_bfloat16_as_uint16(),
max.driver.bfloat16_as_uint16_to_float32(), and
max.driver.float32_array_to_buffer()for moving bfloat16 data between
NumPy and aBuffer.max.pipelines.libstill re-exports
float32_to_bfloat16_as_uint16()andfloat32_array_to_buffer(). -
Removed the
max.pipelines.lib.bfloat16_utilsmodule. Import its functions
frommax.driverinstead. -
Removed
GraphPipelineModel,ModuleV3PipelineModeland
MultiGraphPipelineModelWithKVCachefrommax.pipelines.lib. Subclass
PipelineModel, return the module fromgraph_specs()under
GraphRole.ENCODER, and load it withload_graphs()instead. -
Buffer.to(device)for a buffer on another queue of that device requires an
afterevent and no longer syncs implicitly. Mojo’sreassign_ownership_to()
is removed; useenqueue_wait_for()and keep buffers alive until synced. -
Removed
max.nn.FusedMLP. Usemax.nn.MLP, which takes the separate
gate_projandup_projweights a checkpoint ships and fuses their matmuls
in the graph. -
Removed
max_single_alloc_size()andrun_healthcheck()from the Mojo
DeviceContext. On NVIDIA and AMD GPUs the health check still runs when a
device context is created. Python’sDevice.max_single_alloc_sizeis
unchanged. -
generate(),GenerateIterator,AutoModel.generate()and
AutoModel.generate_iter()takemessagesandimages, so they run chat
and image prompts on models such as Gemma 3 and InternVL.
GenerateResult.prompt_lengthsgives each prompt’s length.AutoModel
turns the vision encoder cache off by default. -
Added
AutoProcessortomax.pipelines, which turns chat conversations
with inline images into themessagesandimagesthat
AutoModel.generate()takes. -
AutoPipelinenow takes a chat conversation, or a list of them, with
images inline, and returns only the new text for each one. -
Removed the
blocking_sync,disable_timingandinterprocessparameters
from the MojoDeviceContext.create_event(), along withEventFlags. Events
never record timing; useDeviceContext.execution_time()to time kernels.
C API
-
The deprecated
LayoutTensorandLayoutTensorItertypes have been removed
from thelayoutpackage, along with theto_layout_tensor()and
lt_to_tt()conversions. UseTileTensorandTileTensorIterinstead.
ThreadScopenow lives inlayout.tile_io. -
TileTensor.tile()on a nested layout now indexes each mode first leaf
first, ascrd2idxand the CuTelocal_tileoperation do: tilecof size
tstarts at elementc * tof the mode, and the tile keeps the leading
leaves it spans, with their strides. Before, it treated the first leaf of
each mode as the tile grid and the second as the fragment. To extract
fragments, put the fragment first in each mode, asblocked_product()does:
((3, 2), (4, 2))rather than((2, 3), (2, 4)). A tile size that doesn’t
split a nested mode on leaf boundaries is now a compile-time error. -
TileTensor.load_linear()andTileTensor.store_linear()have been removed.
UseTileTensor.load()andTileTensor.store()with aCoord, which also
work on nested layouts:t.load_linear[4](IndexList[2](r, c))becomes
t.load[4](Coord(r, c)). On CPU,load()andstore()default to the
element’s alignment rather than the full vector’s, so passalignment=to
keep a wider one. -
Removed the
max,min,sum,productandmeanoverloads in
max.algorithmthat take an input shape, aninput_fn, anoutput_fnand
areduce_dim. To reduce along an axis, use the graph ops (ops.sum,
ops.max,ops.min,ops.mean,ops.prod), or callmap_reduceonce
per row. TheSpanoverloads and the 1-Dsumandmeanoverloads that
take a length and aninput_fnare unchanged.
Tools
- Added the ability to install
max-serveandmax-benchmarkas Conda extras,
usingmax[extras=[serve]]andmax[extras=[benchmark]]respectively.
max[extras=[all]]installs both plusmojo. max servenow runs prompts given as token ids, with no images, on Gemma 3,
InternVL, Idefics3, Pixtral and Qwen 2.5 VL. These requests used to fail in
the tokenizer.
Mojo changelog updates:
- [stdlib] Add a non-owning BorrowedFileDescriptor type
- [stdlib] Make List, Span, StringSpan, Layout, and allocations nicheable
Raw MAX diff: https://github.com/modular/modular/compare/d0462d003e4d9a5e4309c5a76beec3b8c1eaa788...f85b9f5ef2f9986dbfdfab9c65534959deba8030
Current Mojo changelog: https://github.com/modular/modular/blob/main/Mojo/docs/site/nightly-changelog.md