mlx breaking changes
Updated December 4, 2026
On this page
Latest version 0.32.5, released November 25, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
mlx 0.32.5 breaking changes
- Behavior changed
broadcast_arrays
Code that expects a list from broadcast_arrays must now handle a tuple. github.com - Configuration changed
gated_delta_update
Users who set MLX_ENABLE_TF32 will see gated_delta_update follow that setting. github.com - Signature changed
mlx.core.add
Was def add(a: scalar | array, b: scalar | array, stream: StreamOrDevice = None) -> array; now def add(a: scalar | array, b: scalar | array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.array_equal
Was def array_equal(a: scalar | array, b: scalar | array, equal_nan: bool = False, stream: StreamOrDevice = None) -> array; now def array_equal(a: scalar | array, b: scalar | array, *, equal_nan: bool = False, stream: StreamOrDevice =... pypi.org - Signature changed
mlx.core.astype
Was def astype(a: array, dtype: Dtype, /, *, stream: StreamOrDevice = None) -> array; now def astype(a: array, /, dtype: Dtype, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.bitwise_and
Was def bitwise_and(a: scalar | array, b: scalar | array, stream: StreamOrDevice = None) -> array; now def bitwise_and(a: scalar | array, b: scalar | array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.bitwise_invert
Was def bitwise_invert(a: scalar | array, stream: StreamOrDevice = None) -> array; now def bitwise_invert(a: scalar | array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.bitwise_or
Was def bitwise_or(a: scalar | array, b: scalar | array, stream: StreamOrDevice = None) -> array; now def bitwise_or(a: scalar | array, b: scalar | array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.bitwise_xor
Was def bitwise_xor(a: scalar | array, b: scalar | array, stream: StreamOrDevice = None) -> array; now def bitwise_xor(a: scalar | array, b: scalar | array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.count_nonzero
Was def count_nonzero(a: array, /, *, axis: None | int | Sequence[int] = None, keepdims: bool = False, stream: StreamOrDevice = None) -> array; now def count_nonzero(a: array, /, axis: None | int | Sequence[int] = None, *, keepdims: bool =... pypi.org - Signature changed
mlx.core.divide
Was def divide(a: scalar | array, b: scalar | array, stream: StreamOrDevice = None) -> array; now def divide(a: scalar | array, b: scalar | array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.divmod
Was def divmod(a: scalar | array, b: scalar | array, stream: StreamOrDevice = None) -> array; now def divmod(a: scalar | array, b: scalar | array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.equal
Was def equal(a: scalar | array, b: scalar | array, stream: StreamOrDevice = None) -> array; now def equal(a: scalar | array, b: scalar | array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.fast.scaled_dot_product_attention
Was def scaled_dot_product_attention(q: array, k: array, v: array, *, scale: float, mask: None | str | array = None, sinks: array | None = None, force_fused: bool = False, stream: StreamOrDevice = None) -> array; now def... pypi.org - Signature changed
mlx.core.floor_divide
Was def floor_divide(a: scalar | array, b: scalar | array, stream: StreamOrDevice = None) -> array; now def floor_divide(a: scalar | array, b: scalar | array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.greater
Was def greater(a: scalar | array, b: scalar | array, stream: StreamOrDevice = None) -> array; now def greater(a: scalar | array, b: scalar | array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.greater_equal
Was def greater_equal(a: scalar | array, b: scalar | array, stream: StreamOrDevice = None) -> array; now def greater_equal(a: scalar | array, b: scalar | array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.hadamard_transform
Was def hadamard_transform(a: array, scale: float | None = None, stream: StreamOrDevice = None) -> array; now def hadamard_transform(a: array, scale: float | None = None, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.isfinite
Was def isfinite(a: array, stream: StreamOrDevice = None) -> array; now def isfinite(a: array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.isinf
Was def isinf(a: array, stream: StreamOrDevice = None) -> array; now def isinf(a: array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.isnan
Was def isnan(a: array, stream: StreamOrDevice = None) -> array; now def isnan(a: array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.isneginf
Was def isneginf(a: array, stream: StreamOrDevice = None) -> array; now def isneginf(a: array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.isposinf
Was def isposinf(a: array, stream: StreamOrDevice = None) -> array; now def isposinf(a: array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.left_shift
Was def left_shift(a: scalar | array, b: scalar | array, stream: StreamOrDevice = None) -> array; now def left_shift(a: scalar | array, b: scalar | array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.less
Was def less(a: scalar | array, b: scalar | array, stream: StreamOrDevice = None) -> array; now def less(a: scalar | array, b: scalar | array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.less_equal
Was def less_equal(a: scalar | array, b: scalar | array, stream: StreamOrDevice = None) -> array; now def less_equal(a: scalar | array, b: scalar | array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.multiply
Was def multiply(a: scalar | array, b: scalar | array, stream: StreamOrDevice = None) -> array; now def multiply(a: scalar | array, b: scalar | array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.not_equal
Was def not_equal(a: scalar | array, b: scalar | array, stream: StreamOrDevice = None) -> array; now def not_equal(a: scalar | array, b: scalar | array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.remainder
Was def remainder(a: scalar | array, b: scalar | array, stream: StreamOrDevice = None) -> array; now def remainder(a: scalar | array, b: scalar | array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.right_shift
Was def right_shift(a: scalar | array, b: scalar | array, stream: StreamOrDevice = None) -> array; now def right_shift(a: scalar | array, b: scalar | array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.roll
Was def roll(a: array, shift: int | tuple[int], axis: None | int | tuple[int] = None, /, *, stream: StreamOrDevice = None) -> array; now def roll(a: array, /, shift: int | tuple[int], axis: None | int | tuple[int] = None, *, stream... pypi.org - Signature changed
mlx.core.round
Was def round(a: array, /, decimals: int = 0, stream: StreamOrDevice = None) -> array; now def round(a: array, /, decimals: int = 0, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.save_gguf
Was def save_gguf(file: file | str | pathlib.Path, arrays: dict[str, array], metadata: dict[str, array | str | list[str]]); now def save_gguf(file: file | str | pathlib.Path, arrays: dict[str, array], metadata: dict[str, array | str |... pypi.org - Signature changed
mlx.core.std
Was def std(a: array, /, axis: None | int | Sequence[int] = None, keepdims: bool = False, ddof: int = 0, *, stream: StreamOrDevice = None) -> array; now def std(a: array, /, axis: None | int | Sequence[int] = None, keepdims: bool = False... pypi.org - Signature changed
mlx.core.subtract
Was def subtract(a: scalar | array, b: scalar | array, stream: StreamOrDevice = None) -> array; now def subtract(a: scalar | array, b: scalar | array, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.var
Was def var(a: array, /, axis: None | int | Sequence[int] = None, keepdims: bool = False, ddof: int = 0, *, stream: StreamOrDevice = None) -> array; now def var(a: array, /, axis: None | int | Sequence[int] = None, keepdims: bool = False... pypi.org - Signature changed
mlx.core.vecdot
Was def vecdot(a: array, b: array, /, *, axis: int = -1, stream: StreamOrDevice = None) -> array; now def vecdot(a: array, b: array, /, axis: int = -1, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.view
Was def view(a: scalar | array, dtype: Dtype, stream: StreamOrDevice = None) -> array; now def view(a: scalar | array, dtype: Dtype, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.nn.layers.positional_encoding.RoPE.__init__
Was def __init__(self, dims: int, traditional: bool = False, base: float = 10000, scale: float = 1.0); now def __init__(self, dims: int, traditional: bool = False, base: float = 10000, scale: float = 1.0, freqs: Optional[mx.array] = None... pypi.org - Signature changed
mlx.nn.RoPE.__init__
Was def __init__(self, dims: int, traditional: bool = False, base: float = 10000, scale: float = 1.0); now def __init__(self, dims: int, traditional: bool = False, base: float = 10000, scale: float = 1.0, freqs: Optional[mx.array] = None... pypi.org
mlx 0.32.4 breaking changes
- Behavior changed
mx.array
Passing a non-aligned pointer when creating an mx.array now raises an error instead of being accepted. Code that relied on unaligned buffers must copy the data into aligned memory first. github.com - Signature changed
mlx.core.arctan2
Was def arctan2(a: array, b: array, /, *, stream: StreamOrDevice = None) -> array; now def arctan2(a: scalar | array, b: scalar | array, /, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.degrees
Was def degrees(a: array, /, *, stream: StreamOrDevice = None) -> array; now def degrees(a: scalar | array, /, *, stream: StreamOrDevice = None) -> array. pypi.org - Signature changed
mlx.core.radians
Was def radians(a: array, /, *, stream: StreamOrDevice = None) -> array; now def radians(a: scalar | array, /, *, stream: StreamOrDevice = None) -> array. pypi.org
mlx 0.32.3 breaking changes
- Behavior changed
unstack
unstack now returns a tuple rather than a list. Code that relies on list-specific behavior must convert the result or adjust. github.com - Signature changed
mlx.core.array.__getitem__
Was def __getitem__(self, arg: object | None) -> array; now def __getitem__(self, arg: object | None, /) -> array. pypi.org - Signature changed
mlx.core.array.__setitem__
Was def __setitem__(self, arg0: object | None, arg1: bool | int | float | array | Annotated[NDArray, dict(writable=False)] | complex | ArrayLike) -> None; now def __setitem__(self, arg0: object | None, arg1: bool | int | float | array |... pypi.org - Signature changed
mlx.core.array.std
Was def std(self, axis: int | Sequence[int] | None = None, keepdims: bool = False, ddof: int = 0, *, stream: Stream | ThreadLocalStream | Device | DeviceType | None = None) -> array; now def std(self, axis: int | Sequence[int] | None =... pypi.org - Signature changed
mlx.core.array.var
Was def var(self, axis: int | Sequence[int] | None = None, keepdims: bool = False, ddof: int = 0, *, stream: Stream | ThreadLocalStream | Device | DeviceType | None = None) -> array; now def var(self, axis: int | Sequence[int] | None =... pypi.org - Signature changed
mlx.core.distributed.array.__getitem__
Was def __getitem__(self, arg: object | None) -> array; now def __getitem__(self, arg: object | None, /) -> array. pypi.org - Signature changed
mlx.core.distributed.array.__setitem__
Was def __setitem__(self, arg0: object | None, arg1: bool | int | float | array | Annotated[NDArray, dict(writable=False)] | complex | ArrayLike) -> None; now def __setitem__(self, arg0: object | None, arg1: bool | int | float | array |... pypi.org - Signature changed
mlx.core.distributed.array.std
Was def std(self, axis: int | Sequence[int] | None = None, keepdims: bool = False, ddof: int = 0, *, stream: Stream | ThreadLocalStream | Device | DeviceType | None = None) -> array; now def std(self, axis: int | Sequence[int] | None =... pypi.org - Signature changed
mlx.core.distributed.array.var
Was def var(self, axis: int | Sequence[int] | None = None, keepdims: bool = False, ddof: int = 0, *, stream: Stream | ThreadLocalStream | Device | DeviceType | None = None) -> array; now def var(self, axis: int | Sequence[int] | None =... pypi.org - Signature changed
mlx.core.gather_mm
Was def gather_mm(a: array, b: array, /, lhs_indices: array, rhs_indices: array, *, sorted_indices: bool = False, stream: StreamOrDevice = None) -> array; now def gather_mm(a: array, b: array, /, lhs_indices: array | None = None... pypi.org
And 11 more in this version. Sign up to see every change
mlx 0.32.2 breaking changes
- Behavior changed
Subnormal float values are preserved when cast to bool, so they become True instead of False. Code relying on the old result must be updated. github.com - Behavior changed
Normalization layers now raise an error when eps is negative. Code passing a negative eps must use a non-negative value. github.com - Behavior changed
Invalid optimizer betas now raise an error when the optimizer is constructed. Code passing invalid betas must fix them. github.com - Behavior changed
mxfp8 block scales are now rounded up to avoid saturation, so quantized outputs can differ from earlier versions. github.com - Behavior changed
Adam
Adam now raises an error at construction when eps is invalid. Code passing an invalid eps must fix its value. github.com - Behavior changed
synchronize
Errors from the CPU stream are now raised when synchronize is called, where they were previously not raised. Code calling synchronize may now see exceptions. github.com - Signature changed
DLPackCompatible
DLPackCompatible protocol members are declared as methods rather than settable attributes. Code that assigns to them must be changed. github.com - Signature changed
mlx.core.DLPackCompatible.__dlpack__
Was __dlpack__: Callable[..., Any]; now def __dlpack__(self, *args: Any, **kwargs: Any) -> Any. pypi.org - Signature changed
mlx.core.DLPackCompatible.__dlpack_device__
Was __dlpack_device__: Callable[..., Any]; now def __dlpack_device__(self, *args: Any, **kwargs: Any) -> Any. pypi.org - Signature changed
mlx.core.fast.scaled_dot_product_attention
Was def scaled_dot_product_attention(q: array, k: array, v: array, *, scale: float, mask: None | str | array = None, sinks: array | None = None, stream: StreamOrDevice = None) -> array; now def scaled_dot_product_attention(q: array, k... pypi.org
And 2 more in this version. Sign up to see every change
mlx 0.32.1 breaking changes
- Behavior changed
arctan2
Complex inputs to these functions now raise an error instead of being computed. github.com - Behavior changed
broadcast_to
Negative dimensions in shapes passed to broadcast_to and the random functions now raise an error. github.com - Behavior changed
clip_grad_norm
Passing a negative max_norm now raises an error, so callers must pass a non-negative value. github.com - Behavior changed
erf
Complex inputs to erf and erfinv now raise an error, so callers passing complex values must convert them first. github.com - Behavior changed
erfinv
Complex inputs to erf and erfinv now raise an error, so callers passing complex values must convert them first. github.com - Behavior changed
expm1
Complex inputs to these functions now raise an error instead of being computed. github.com - Behavior changed
meshgrid
Code that relies on the return value being a list must convert or index it as a tuple. github.com - Behavior changed
remainder
Complex inputs to remainder now raise an error, so callers must pass real values. github.com - Behavior changed
sigmoid
Complex inputs to these functions now raise an error instead of being computed. github.com - Configuration changed
Projects that build against MLX through CMake must compile with C++20. github.com
And 5 more in this version. Sign up to see every change
mlx 0.32.0 breaking changes
- Behavior changed
arange
Calling arange with step == 0 now raises instead of having undefined behavior. Code that passed step 0 must be changed. github.com - Behavior changed
mlx launch
mlx launch no longer adds python automatically in front of the command. Scripts relying on that must include python explicitly. github.com - Behavior changed
nn.GroupNorm
GroupNorm now rejects invalid inputs that were previously accepted, so calls with bad arguments will fail. github.com - Behavior changed
nn.InstanceNorm
InstanceNorm now rejects invalid inputs that were previously accepted, so calls with bad arguments will fail. github.com - Behavior changed
step
The step activation now treats the threshold value differently, so outputs at the threshold change. github.com - Default changed
The Metal backend is now on by default on iOS builds, which changes the default device behavior there. github.com - Configuration changed
Building with NAX support now requires setting the macOS deployment target to 26.2 in the build environment. github.com - Signature changed
mlx.nn.HardShrink.__call__
Was __call__: Callable; now def __call__(self, x). pypi.org - Signature changed
mlx.nn.HardShrink.__init__
Was def __init__(self); now def __init__(self, lambd=0.5). pypi.org
Older versions
8 older versions, each with its first changes. Sign up to see every change
Show 8 older versions
mlx 0.31.2 breaking changes
- Behavior changed
Code that relied on a single default stream shared across threads may now see different stream behavior; review any multi-threaded code that uses the default stream. github.com - Signature changed
mlx.core.array.abs
Was def abs(self, *, stream: Stream | Device | None = None) -> array; now def abs(self, *, stream: Stream | ThreadLocalStream | Device | None = None) -> array. pypi.org
And 106 more in this version.
mlx 0.31.1 breaking changes
- Removed
The release removes the custom fp4/fp8 classes. Code that imports or constructs them must be updated; the release notes name no replacement. github.com - Signature changed
mlx.nn.average_gradients
Was def average_gradients(gradients: Any, group: Optional[mx.distributed.Group] = None, all_reduce_size: int = 32 * 1024 ** 2, communication_type: Optional[mx.Dtype] = None, communication_stream: Optional[mx.Stream] = None); now def... pypi.org
And 1 more in this version.
mlx 0.31.0 breaking changes
- Behavior changed
Enable passing GPU architecture string via env var in mlx 0.31.0 github.com - Behavior changed
mx.conv3d
conv3d gains a new implicit matmul pathway on Metal; results should be unchanged but execution path differs. github.com
And 14 more in this version.
mlx 0.30.5 breaking changes
- Behavior changed
Causal mask alignment was changed to lower-right everywhere, so attention results may differ from earlier versions for inputs where query and key lengths differ. Check code that relies on the previous alignment. github.com - Signature changed
mlx.nn.ALiBi.create_alibi_matrix
Was @classmethod def create_alibi_matrix(cls, q_sequence_length: int, k_sequence_length: int, num_heads: int, offset: int, dtype=mx.float32); now @staticmethod def create_alibi_matrix(q_sequence_length: int, k_sequence_length: int... pypi.org
And 3 more in this version.
mlx 0.30.4 breaking changes
- Signature changed
mlx.core.checkpoint
Was def checkpoint(fun: Callable) -> Callable; now def checkpoint(fun: Callable[P, R]) -> Callable[P, R]. pypi.org - Signature changed
mlx.core.compile
Was def compile(fun: Callable, inputs: Optional[object] = None, outputs: Optional[object] = None, shapeless: bool = False) -> Callable; now def compile(fun: Callable[P, R], inputs: Optional[object] = None, outputs: Optional[object] = None... pypi.org
And 3 more in this version.
mlx 0.30.3 breaking changes
- Renamed
MLX_IBV_COORDINATOR
Set MLX_JACCL_COORDINATOR instead of MLX_IBV_COORDINATOR for distributed coordination. github.com - Behavior changed
Loading safetensors no longer converts fp8 values automatically; convert them explicitly if your code relies on that. github.com
And 14 more in this version.
mlx 0.30.1 breaking changes
- Removed
The minimum supported Python version is raised, so older Python versions are no longer supported. github.com - Behavior changed
Layer norm throws when input dimensions do not match, so code that passed mismatched dimensions will now fail. github.com
And 50 more in this version.
mlx 0.30.0 breaking changes
- Behavior changed
Sorting on the CPU and Metal backends now behaves differently to match NumPy and JAX. Check code that depends on the previous sort order. github.com - Signature changed
mx.dequantize
The Python signature of dequantize was changed, including the default for dtype. Check calls that rely on the default dtype. github.com
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.