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
On this page
Latest version 0.32.2, released October 16, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
mlx-lm 0.32.0 breaking changes
- Removed
mlx_lm.benchmark.pipeline_load
mlx_lm.benchmark.pipeline_load was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.generate.ArraysCache
mlx_lm.generate.ArraysCache was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.generate.BatchKVCache
mlx_lm.generate.BatchKVCache was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.generate.BatchRotatingKVCache
mlx_lm.generate.BatchRotatingKVCache was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.generate.cache
mlx_lm.generate.cache was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.generate.CacheList.meta_state
CacheList.meta_state was removed in mlx-lm 0.32.0 pypi.org - 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 - 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 - Removed
mlx_lm.generate.GenerationBatch.state_machines
GenerationBatch.state_machines was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.generate.KVCache
mlx_lm.generate.KVCache was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.generate.PromptProcessingBatch.state_machines
PromptProcessingBatch.state_machines was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.generate.QuantizedKVCache.meta_state
QuantizedKVCache.meta_state was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.generate.RotatingKVCache
mlx_lm.generate.RotatingKVCache was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.generate.SequenceStateMachine
mlx_lm.generate.SequenceStateMachine was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.models.afm7.ConcatenateKVCache.meta_state
ConcatenateKVCache.meta_state was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.models.afmoe.RotatingKVCache.meta_state
RotatingKVCache.meta_state was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.models.baichuan_m1.ArraysCache.__new__
ArraysCache.__new__ was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.models.cache.ArraysCache.__new__
ArraysCache.__new__ was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.models.cache.BatchRotatingKVCache.meta_state
BatchRotatingKVCache.meta_state was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.models.cache.CacheList.meta_state
CacheList.meta_state was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.models.cache.ChunkedKVCache.meta_state
ChunkedKVCache.meta_state was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.models.cache.QuantizedKVCache.meta_state
QuantizedKVCache.meta_state was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.models.cache.RotatingKVCache.meta_state
RotatingKVCache.meta_state was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.models.deepseek_v32.DeepseekV32Model.num_layers
DeepseekV32Model.num_layers was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.models.glm.initialize_rope
mlx_lm.models.glm.initialize_rope was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.models.gpt_oss.swiglu
mlx_lm.models.gpt_oss.swiglu was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.models.internlm2.DynamicNTKScalingRoPE
mlx_lm.models.internlm2.DynamicNTKScalingRoPE was removed in mlx-lm 0.32.0 pypi.org - 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 - 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 - Removed
mlx_lm.models.llama4.ChunkedKVCache.meta_state
ChunkedKVCache.meta_state was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.models.mamba.MambaBlock.mixer_norm
MambaBlock.mixer_norm was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.server.GenerationContext.sequences
GenerationContext.sequences was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.server.Response.match
Response.match was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.server.Response.state
Response.state was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.server.SequenceStateMachine
mlx_lm.server.SequenceStateMachine was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.tokenizer_utils.BPEStreamingDetokenizer.__slots__
BPEStreamingDetokenizer.__slots__ was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.tokenizer_utils.BPEStreamingDetokenizer.clean_spaces
BPEStreamingDetokenizer.clean_spaces was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.tokenizer_utils.BPEStreamingDetokenizer.make_byte_decoder
BPEStreamingDetokenizer.make_byte_decoder was removed in mlx-lm 0.32.0 pypi.org - Removed
mlx_lm.tokenizer_utils.StreamingDetokenizer.__slots__
StreamingDetokenizer.__slots__ was removed in mlx-lm 0.32.0 pypi.org - Renamed
mlx_lm.generate.CacheList
Use mlx_lm.models.minimax_m3_vl.CacheList instead. pypi.org - Renamed
mlx_lm.models.gpt_oss.SwiGLU
Use mlx_lm.models.gpt_oss.SwigluOAI instead. pypi.org - Renamed
mlx_lm.models.internlm3.InternLM2Model
Use mlx_lm.models.internlm3.InternLM3Model instead. pypi.org - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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
And 75 more in this version. Sign up to see every change
mlx-lm 0.30.0 breaking changes
- Removed
mlx_lm.tokenizer_utils.BPEStreamingDetokenizer.clean_spaces
BPEStreamingDetokenizer.clean_spaces was removed in mlx-lm 0.30.0 pypi.org - Signature changed
mlx_lm.models.ministral3.LanguageModel
Was class LanguageModel(nn.Module); now class LanguageModel(PipelineMixin, nn.Module). pypi.org
mlx-lm 0.29.1 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 - Removed
mlx_lm.models.gemma3_text.ModelArgs.rope_traditional
ModelArgs.rope_traditional was removed in mlx-lm 0.29.1 pypi.org - Removed
mlx_lm.models.minicpm3.SuScaledRoPE.scale
SuScaledRoPE.scale was removed in mlx-lm 0.29.1 pypi.org - Removed
mlx_lm.models.nemotron_h.ModelArgs.residual_in_fp32
ModelArgs.residual_in_fp32 was removed in mlx-lm 0.29.1 pypi.org - Removed
mlx_lm.models.nemotron_h.ModelArgs.rms_norm_eps
ModelArgs.rms_norm_eps was removed in mlx-lm 0.29.1 pypi.org - Removed
mlx_lm.models.nemotron_h.NemotronHBlock.residual_in_fp32
NemotronHBlock.residual_in_fp32 was removed in mlx-lm 0.29.1 pypi.org - Removed
mlx_lm.models.rope_utils.SuScaledRoPE.scale
SuScaledRoPE.scale was removed in mlx-lm 0.29.1 pypi.org - 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 - 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 - 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
And 2 more in this version. Sign up to see every change
mlx-lm 0.29.0 breaking changes
- 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
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.