---
title: "mlx-lm 0.32.0 Breaking Changes on PyPI | Since.dev"
description: "What each mlx-lm release removed, renamed or changed: 140 breaking changes in 4 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/mlx-lm
last_updated: 2026-12-04
---

# mlx-lm breaking changes

mlx-lm 0.32.0 (October 1, 2026) is its newest release with breaking changes, 125 of them. The first: Removed mlx_lm.benchmark.pipeline_load. Every breaking API change we have recorded in mlx-lm on PyPI: 140 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.32.2`, released October 16, 2026. [Source repository](https://github.com/ml-explore/mlx-lm)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [0.29.0](#v-0-29-0) to [0.32.0](#v-0-32-0): 139 breaking changes in 3 versions.

## mlx-lm 0.32.0 breaking changes

mlx-lm 0.32.0, released October 1, 2026: 125 breaking changes.

- **Removed** `mlx_lm.benchmark.pipeline_load`  

mlx_lm.benchmark.pipeline_load was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.generate.ArraysCache`  

mlx_lm.generate.ArraysCache was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.generate.BatchKVCache`  

mlx_lm.generate.BatchKVCache was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.generate.BatchRotatingKVCache`  

mlx_lm.generate.BatchRotatingKVCache was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.generate.cache`  

mlx_lm.generate.cache was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.generate.CacheList.meta_state`  

CacheList.meta_state was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.generate.GenerationBatch.Response.current_state`  

mlx_lm.generate.GenerationBatch.Response.current_state was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.generate.GenerationBatch.Response.match_sequence`  

mlx_lm.generate.GenerationBatch.Response.match_sequence was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.generate.GenerationBatch.state_machines`  

GenerationBatch.state_machines was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.generate.KVCache`  

mlx_lm.generate.KVCache was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.generate.PromptProcessingBatch.state_machines`  

PromptProcessingBatch.state_machines was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.generate.QuantizedKVCache.meta_state`  

QuantizedKVCache.meta_state was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.generate.RotatingKVCache`  

mlx_lm.generate.RotatingKVCache was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.generate.SequenceStateMachine`  

mlx_lm.generate.SequenceStateMachine was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.models.afm7.ConcatenateKVCache.meta_state`  

ConcatenateKVCache.meta_state was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.models.afmoe.RotatingKVCache.meta_state`  

RotatingKVCache.meta_state was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.models.baichuan_m1.ArraysCache.__new__`  

ArraysCache.\_\_new\_\_ was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.models.cache.ArraysCache.__new__`  

ArraysCache.\_\_new\_\_ was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.models.cache.BatchRotatingKVCache.meta_state`  

BatchRotatingKVCache.meta_state was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.models.cache.CacheList.meta_state`  

CacheList.meta_state was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.models.cache.ChunkedKVCache.meta_state`  

ChunkedKVCache.meta_state was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.models.cache.QuantizedKVCache.meta_state`  

QuantizedKVCache.meta_state was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.models.cache.RotatingKVCache.meta_state`  

RotatingKVCache.meta_state was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.models.deepseek_v32.DeepseekV32Model.num_layers`  

DeepseekV32Model.num_layers was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.models.glm.initialize_rope`  

mlx_lm.models.glm.initialize_rope was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.models.gpt_oss.swiglu`  

mlx_lm.models.gpt_oss.swiglu was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.models.internlm2.DynamicNTKScalingRoPE`  

mlx_lm.models.internlm2.DynamicNTKScalingRoPE was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.models.lfm2-vl.create_attention_mask`  

mlx_lm.models.lfm2-vl.create_attention_mask was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.models.lfm2-vl.scaled_dot_product_attention`  

mlx_lm.models.lfm2-vl.scaled_dot_product_attention was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.models.llama4.ChunkedKVCache.meta_state`  

ChunkedKVCache.meta_state was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.models.mamba.MambaBlock.mixer_norm`  

MambaBlock.mixer_norm was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.server.GenerationContext.sequences`  

GenerationContext.sequences was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.server.Response.match`  

Response.match was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.server.Response.state`  

Response.state was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.server.SequenceStateMachine`  

mlx_lm.server.SequenceStateMachine was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.tokenizer_utils.BPEStreamingDetokenizer.__slots__`  

BPEStreamingDetokenizer.\_\_slots\_\_ was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.tokenizer_utils.BPEStreamingDetokenizer.clean_spaces`  

BPEStreamingDetokenizer.clean_spaces was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.tokenizer_utils.BPEStreamingDetokenizer.make_byte_decoder`  

BPEStreamingDetokenizer.make_byte_decoder was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Removed** `mlx_lm.tokenizer_utils.StreamingDetokenizer.__slots__`  

StreamingDetokenizer.\_\_slots\_\_ was removed in mlx-lm 0.32.0 [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Renamed** `mlx_lm.generate.CacheList`  

Use mlx_lm.models.minimax_m3_vl.CacheList instead. [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Renamed** `mlx_lm.models.gpt_oss.SwiGLU`  

Use mlx_lm.models.gpt_oss.SwigluOAI instead. [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Renamed** `mlx_lm.models.internlm3.InternLM2Model`  

Use mlx_lm.models.internlm3.InternLM3Model instead. [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Signature changed** `mlx_lm.batch_generate`  

Was def batch_generate(model, tokenizer, prompts: List\[List\[int\]\], prompt_caches: Optional\[List\[List\[Any\]\]\] = None, max_tokens: Union\[int, List\[int\]\] = 128, verbose: bool = False, return_prompt_caches: bool = False, \*\*kwargs) ->... [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Signature changed** `mlx_lm.benchmark.sharded_load`  

Was def sharded_load(repo, pipeline_group: Optional\[mx.distributed.Group\] = None, tensor_group: Optional\[mx.distributed.Group\] = None, return_config: bool = False, \*, tokenizer_config: Optional\[Dict\[str, Any\]\] = None); now def... [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Signature changed** `mlx_lm.cache_prompt.generate_step`  

Was def generate_step(prompt: mx.array, model: nn.Module, \*, max_tokens: int = 256, sampler: Optional\[Callable\[\[mx.array\], mx.array\]\] = None, logits_processors: Optional\[List\[Callable\[\[mx.array, mx.array\], mx.array\]\]\] = None, max_kv_size... [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Signature changed** `mlx_lm.cache_prompt.save_prompt_cache`  

Was def save_prompt_cache(file_name: str, cache: List\[Any\], metadata: Dict\[str, str\] = {}); now def save_prompt_cache(file_name: str, cache: List\[Any\], metadata: Optional\[Dict\[str, str\]\] = None). [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Signature changed** `mlx_lm.chat.make_sampler`  

Was def make_sampler(temp: float = 0.0, top_p: float = 0.0, min_p: float = 0.0, min_tokens_to_keep: int = 1, top_k: int = 0, xtc_probability: float = 0.0, xtc_threshold: float = 0.0, xtc_special_tokens: List\[int\] = \[\]) ->... [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Signature changed** `mlx_lm.convert.convert`  

Was def convert(hf_path: str, mlx_path: str = 'mlx_model', quantize: bool = False, q_group_size: Optional\[int\] = None, q_bits: Optional\[int\] = None, q_mode: str = 'affine', dtype: Optional\[str\] = None, upload_repo: str = None, revision... [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Signature changed** `mlx_lm.generate.batch_generate`  

Was def batch_generate(model, tokenizer, prompts: List\[List\[int\]\], prompt_caches: Optional\[List\[List\[Any\]\]\] = None, max_tokens: Union\[int, List\[int\]\] = 128, verbose: bool = False, return_prompt_caches: bool = False, \*\*kwargs) ->... [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)
- **Signature changed** `mlx_lm.generate.BatchGenerator.__init__`  

Was def \_\_init\_\_(self, model: nn.Module, \*, max_tokens: int = 128, stop_tokens: Optional\[Sequence\[Sequence\[int\]\]\] = None, sampler: Optional\[Callable\[\[mx.array\], mx.array\]\] = None, logits_processors: Optional\[List\[Callable\[\[mx.array... [pypi.org](https://pypi.org/project/mlx-lm/0.32.0/)

And 75 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## mlx-lm 0.30.0 breaking changes

mlx-lm 0.30.0, released December 18, 2025: 2 breaking changes.

- **Removed** `mlx_lm.tokenizer_utils.BPEStreamingDetokenizer.clean_spaces`  

BPEStreamingDetokenizer.clean_spaces was removed in mlx-lm 0.30.0 [pypi.org](https://pypi.org/project/mlx-lm/0.30.0/)
- **Signature changed** `mlx_lm.models.ministral3.LanguageModel`  

Was class LanguageModel(nn.Module); now class LanguageModel(PipelineMixin, nn.Module). [pypi.org](https://pypi.org/project/mlx-lm/0.30.0/)

## mlx-lm 0.29.1 breaking changes

mlx-lm 0.29.1, released December 16, 2025: 12 breaking changes.

- **Removed** `mlx_lm.models.gemma3_text.ModelArgs.rope_global_base_freq`  

ModelArgs.rope_global_base_freq was removed in mlx-lm 0.29.1 [pypi.org](https://pypi.org/project/mlx-lm/0.29.1/)
- **Removed** `mlx_lm.models.gemma3_text.ModelArgs.rope_traditional`  

ModelArgs.rope_traditional was removed in mlx-lm 0.29.1 [pypi.org](https://pypi.org/project/mlx-lm/0.29.1/)
- **Removed** `mlx_lm.models.minicpm3.SuScaledRoPE.scale`  

SuScaledRoPE.scale was removed in mlx-lm 0.29.1 [pypi.org](https://pypi.org/project/mlx-lm/0.29.1/)
- **Removed** `mlx_lm.models.nemotron_h.ModelArgs.residual_in_fp32`  

ModelArgs.residual_in_fp32 was removed in mlx-lm 0.29.1 [pypi.org](https://pypi.org/project/mlx-lm/0.29.1/)
- **Removed** `mlx_lm.models.nemotron_h.ModelArgs.rms_norm_eps`  

ModelArgs.rms_norm_eps was removed in mlx-lm 0.29.1 [pypi.org](https://pypi.org/project/mlx-lm/0.29.1/)
- **Removed** `mlx_lm.models.nemotron_h.NemotronHBlock.residual_in_fp32`  

NemotronHBlock.residual_in_fp32 was removed in mlx-lm 0.29.1 [pypi.org](https://pypi.org/project/mlx-lm/0.29.1/)
- **Removed** `mlx_lm.models.rope_utils.SuScaledRoPE.scale`  

SuScaledRoPE.scale was removed in mlx-lm 0.29.1 [pypi.org](https://pypi.org/project/mlx-lm/0.29.1/)
- **Signature changed** `mlx_lm.models.gemma3_text.ModelArgs.__init__`  

Was def \_\_init\_\_(self, model_type: str, hidden_size: int = 1152, num_hidden_layers: int = 26, intermediate_size: int = 6912, num_attention_heads: int = 4, head_dim: int = 256, rms_norm_eps: float = 1e-06, vocab_size: int = 262144... [pypi.org](https://pypi.org/project/mlx-lm/0.29.1/)
- **Signature changed** `mlx_lm.models.nemotron_h.MambaRMSNormGated.__call__`  

Was def \_\_call\_\_(self, hidden_states: mx.array, gate: mx.array = None) -> mx.array; now def \_\_call\_\_(self, x: mx.array, gate: mx.array = None) -> mx.array. [pypi.org](https://pypi.org/project/mlx-lm/0.29.1/)
- **Signature changed** `mlx_lm.models.nemotron_h.MambaRMSNormGated.__init__`  

Was def \_\_init\_\_(self, hidden_size: int, eps: float = 1e-06); now def \_\_init\_\_(self, hidden_size: int, eps: float, group_size: int). [pypi.org](https://pypi.org/project/mlx-lm/0.29.1/)

And 2 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## mlx-lm 0.29.0 breaking changes

mlx-lm 0.29.0, released December 16, 2025: 1 breaking change.

- **Default changed**  

The server now defaults the repetition penalty to 0.0. Code that relied on the previous default should set the penalty explicitly. [github.com](https://github.com/ml-explore/mlx-lm/releases/tag/v0.29.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
