MAX Nightly 25.4.0.dev2025052318 Released

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

Update to the latest nightly using Magic via
magic init --format mojoproject -c conda-forge -c https://conda.modular.com/max-nightly/
or add https://conda.modular.com/max-nightly/ as a channel to mojoproject.toml

MAX changelog updates:

  • Added a strict parameter to the load_state_dict method in
    max.nn.Module. When strict=True (default), an error is raised
    if the state_dict contains unused keys. When strict=False,
    extra keys are ignored. This helps model developers identify missing
    implementations in their models.

    codebase. In addition to this, many types from the max.tensor package have
    been removed:

    • Tensor
    • TensorShape
    • TensorSpec

    Please replace usage with LayoutTensor.

Mojo changelog updates:

  • [mojo-lang] Fixed incorrect folding of unsigned comparison

Raw MAX diff: https://github.com/modular/modular/compare/df6e62db6a9343b9c9553b427f0ad9d5f6dea081...07263fab593abf80b0383dd17d4ac8971e2d399d
Current Mojo changelog: https://github.com/modular/modular/blob/main/mojo/docs/changelog.md