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

# deepspeed breaking changes

deepspeed 0.20.2 (November 28, 2026) is its newest release with breaking changes, 9 of them. The first: Requesting a different tensor parallel layout from a later engine now raises in deepspeed 0.20.2. Every breaking API change we have recorded in deepspeed on PyPI: 641 breaking changes in 40 versions. Below, its 40 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.20.2`, released November 28, 2026. [Source repository](https://github.com/deepspeedai/DeepSpeed)

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

- From [0.15.2](#v-0-15-2) to [0.20.2](#v-0-20-2): 606 breaking changes in 39 versions.

## deepspeed 0.20.2 breaking changes

deepspeed 0.20.2, released November 28, 2026: 9 breaking changes.

- **Behavior changed**  

A later engine that asks for another tensor parallel layout now raises an error instead of proceeding, so code that relied on the earlier behavior must be adjusted. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.20.2)
- **Behavior changed**  

qgZ gradients are now averaged over every rank rather than only across nodes, so gradient values can change for existing training runs. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.20.2)
- **Behavior changed**  

The ZeRO-1/2 predivide postscale is now applied when sequence parallelism is enabled, which changes gradient scaling for those runs. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.20.2)
- **Behavior changed**  

ZeRO-3 gradient averaging is now scaled by the sequence parallel size, which changes gradient values when sequence parallelism is used. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.20.2)
- **Signature changed** `deepspeed.runtime.superoffload.superoffload_stage3.SuperOffloadCPUOptimizer.__init__`  

Was def \_\_init\_\_(self, optimizer_config: Dict\[str, Any\], cpuadam_cores_perc: float = 0.8, max_grad_numel: int = 1000000, pin_memory: bool = True) -> None; now def \_\_init\_\_(self, optimizer_config: Dict\[str, Any\], cpuadam_cores_perc: float =... [pypi.org](https://pypi.org/project/deepspeed/0.20.2/)
- **Signature changed** `deepspeed.runtime.superoffload.superoffload_stage3.SuperOffloadCPUOptimizer.async_step`  

Was def async_step(self, param_group_id: int, sub_group_id: int, fp32_param: torch.Tensor, fp32_grad: torch.Tensor, rollback: bool = False, lr: float = None) -> None; now def async_step(self, param_group_id: int, sub_group_id: int... [pypi.org](https://pypi.org/project/deepspeed/0.20.2/)
- **Signature changed** `deepspeed.runtime.superoffload.superoffload_utils.superoffload_optimizer_worker`  

Was def superoffload_optimizer_worker(param_queue: mp.SimpleQueue, result_queue: mp.SimpleQueue, optimizer_config: Dict\[str, Any\], max_grad_numel: int, pin_memory: bool = True) -> None; now def superoffload_optimizer_worker(param_queue... [pypi.org](https://pypi.org/project/deepspeed/0.20.2/)
- **Signature changed** `deepspeed.runtime.superoffload.superoffload_utils.SuperOffloadCPUOptimizer.__init__`  

Was def \_\_init\_\_(self, optimizer_config: Dict\[str, Any\], cpuadam_cores_perc: float = 0.8, max_grad_numel: int = 1000000, pin_memory: bool = True) -> None; now def \_\_init\_\_(self, optimizer_config: Dict\[str, Any\], cpuadam_cores_perc: float =... [pypi.org](https://pypi.org/project/deepspeed/0.20.2/)
- **Signature changed** `deepspeed.runtime.superoffload.superoffload_utils.SuperOffloadCPUOptimizer.async_step`  

Was def async_step(self, param_group_id: int, sub_group_id: int, fp32_param: torch.Tensor, fp32_grad: torch.Tensor, rollback: bool = False, lr: float = None) -> None; now def async_step(self, param_group_id: int, sub_group_id: int... [pypi.org](https://pypi.org/project/deepspeed/0.20.2/)

## deepspeed 0.20.1 breaking changes

deepspeed 0.20.1, released November 24, 2026: 28 breaking changes.

- **Behavior changed**  

Swapped-out ZeRO-3 parameter partitions are now stored in the model's dtype rather than their previous dtype. Code that inspects or depends on the dtype of offloaded partitions may need to be checked. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.20.1)
- **Behavior changed**  

Muon optimizer updates for convolution weights now keep their shapes and scaling, which changes the numerical results of training runs that use Muon with convolutions. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.20.1)
- **Behavior changed**  

The latest checkpoint tag file is now written only after every rank has finished saving, which changes the timing of when the tag becomes visible. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.20.1)
- **Signature changed** `deepspeed.module_inject.auto_ep_comm.deepep_dispatch`  

Was def deepep_dispatch(exchange: DeepEPExchange, tokens: torch.Tensor, topk_idx: torch.Tensor, topk_weights: torch.Tensor, replay: DeepEPCheckpointReplay | None = None); now def deepep_dispatch(exchange: DeepEPExchange, tokens... [pypi.org](https://pypi.org/project/deepspeed/0.20.1/)
- **Signature changed** `deepspeed.module_inject.auto_ep_config.AutoEPConfig.__init__`  

Was def \_\_init\_\_(self, enabled: bool = False, autoep_size: int = 1, expert_tensor_parallel_size: int = 1, validate_folding_routing: bool = False, async_split_plan: bool = False, preset_model: str | None = None, moe_layer_pattern: str |... [pypi.org](https://pypi.org/project/deepspeed/0.20.1/)
- **Signature changed** `deepspeed.module_inject.auto_ep_layer.deepep_dispatch`  

Was def deepep_dispatch(exchange: DeepEPExchange, tokens: torch.Tensor, topk_idx: torch.Tensor, topk_weights: torch.Tensor, replay: DeepEPCheckpointReplay | None = None); now def deepep_dispatch(exchange: DeepEPExchange, tokens... [pypi.org](https://pypi.org/project/deepspeed/0.20.1/)
- **Signature changed** `deepspeed.module_inject.auto_ep_layer.GroupedExperts.forward`  

Was def forward(self, x: torch.Tensor, num_tokens_per_expert: torch.Tensor) -> torch.Tensor; now def forward(self, x: torch.Tensor, num_tokens_per_expert: torch.Tensor, weight_grad_slot: ExpertWeightGradSlot | None = None, dw_staging... [pypi.org](https://pypi.org/project/deepspeed/0.20.1/)
- **Signature changed** `deepspeed.module_inject.auto_ep_presets.base.AutoEPConfig.__init__`  

Was def \_\_init\_\_(self, enabled: bool = False, autoep_size: int = 1, expert_tensor_parallel_size: int = 1, validate_folding_routing: bool = False, async_split_plan: bool = False, preset_model: str | None = None, moe_layer_pattern: str |... [pypi.org](https://pypi.org/project/deepspeed/0.20.1/)
- **Signature changed** `deepspeed.moe.ep_experts.ExpertActivation.__init__`  

Was def \_\_init\_\_(self, fn: Callable\[\[torch.Tensor, torch.Tensor, float, float\], torch.Tensor\], fused_fn: Callable\[\[torch.Tensor, torch.Tensor, float, float\], torch.Tensor\] | None = None, uses_alpha: bool = False, uses_limit: bool = False... [pypi.org](https://pypi.org/project/deepspeed/0.20.1/)
- **Signature changed** `deepspeed.moe.ep_experts.GroupedExperts.forward`  

Was def forward(self, x: torch.Tensor, num_tokens_per_expert: torch.Tensor) -> torch.Tensor; now def forward(self, x: torch.Tensor, num_tokens_per_expert: torch.Tensor, weight_grad_slot: ExpertWeightGradSlot | None = None, dw_staging... [pypi.org](https://pypi.org/project/deepspeed/0.20.1/)

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

## deepspeed 0.20.0 breaking changes

deepspeed 0.20.0, released November 12, 2026: 24 breaking changes.

- **Behavior changed**  

Graph capture for HybridEngine no longer turns on automatically; users must explicitly opt in for their accelerator. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.20.0)
- **Behavior changed**  

fp32 master weights are restored for ZeRO-3 and the ZeRO-1 BF16 optimizer, which changes the master copy dtype those optimizers hold. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.20.0)
- **Behavior changed**  

Gradients are now kept across request boundaries until the optimizer step, so code that relied on clearing them between requests may see different results. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.20.0)
- **Behavior changed**  

Parameters that a model names for fp32 now stay in fp32 under ZeRO-3 instead of being converted. Check code that assumed the previous dtype. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.20.0)
- **Signature changed** `deepspeed.inference.engine.AutoTP.__init__`  

Was def \_\_init\_\_(self, module, all_reduce_linears, prefix, state_dict, linear_layer_setting, orig_layer_impl, keep_module_on_host=False, partition_config: Optional\[AutoTPConfig\] = None, vocab_parallel_lm_head=False, model_config=None... [pypi.org](https://pypi.org/project/deepspeed/0.20.0/)
- **Signature changed** `deepspeed.inference.engine.AutoTPMeta.__init__`  

Was def \_\_init\_\_(self, num_kv_heads: Optional\[int\] = None, num_attention_heads: Optional\[int\] = None, n_embd: Optional\[int\] = None, tp_grain_size: int = 1) -> None; now def \_\_init\_\_(self, num_kv_heads: Optional\[int\] = None... [pypi.org](https://pypi.org/project/deepspeed/0.20.0/)
- **Signature changed** `deepspeed.inference.engine.AutoTPMeta.from_model_config`  

Was @classmethod def from_model_config(cls, model_config, tp_grain_size: int = 1) -> AutoTPMeta; now @classmethod def from_model_config(cls, model_config, tp_grain_size: int = 1, training: Optional\[bool\] = None) -> AutoTPMeta. [pypi.org](https://pypi.org/project/deepspeed/0.20.0/)
- **Signature changed** `deepspeed.module_inject.auto_ep_config.validate_autoep_config`  

Was def validate_autoep_config(config: AutoEPConfig, world_size: int, pp_size: int, tp_size: int, sp_size: int, \*, zero_stage: int = 0, deepcompile_enabled: bool = False, tp_preset_model: str | None = None, use_data_before_expert_parallel... [pypi.org](https://pypi.org/project/deepspeed/0.20.0/)
- **Signature changed** `deepspeed.module_inject.auto_ep_folding.validate_folding_global`  

Was def validate_folding_global(spec: ParallelFoldingSpec, \*, zero_stage: int = 0, sp_size: int = 1, deepcompile_enabled: bool = False, use_data_before_expert_parallel: bool = False, mpu=None, autoep_enabled: bool = True, tp_preset: str |... [pypi.org](https://pypi.org/project/deepspeed/0.20.0/)
- **Signature changed** `deepspeed.ops.adagrad.DeepSpeedCPUAdagrad`  

Was class DeepSpeedCPUAdagrad(torch.optim.Optimizer); now class DeepSpeedCPUAdagrad(DeepSpeedCPUOptimizer). [pypi.org](https://pypi.org/project/deepspeed/0.20.0/)

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

## deepspeed 0.19.9 breaking changes

deepspeed 0.19.9, released October 29, 2026: 5 breaking changes.

- **Signature changed** `deepspeed.checkpoint.universal_checkpoint.load_hp_checkpoint_state`  

Was def load_hp_checkpoint_state(self, folder, tp_rank, tp_world_size, ep_rank=0, ep_size=1); now def load_hp_checkpoint_state(self, folder, tp_rank, tp_world_size, ep_rank=0, ep_size=1, load_optimizer_states=True). [pypi.org](https://pypi.org/project/deepspeed/0.19.9/)
- **Signature changed** `deepspeed.comm.comm.init_distributed`  

Was def init_distributed(dist_backend: Optional\[str\] = None, auto_mpi_discovery: bool = True, distributed_port: int = TORCH_DISTRIBUTED_DEFAULT_PORT, verbose: bool = True, timeout: timedelta = default_pg_timeout, init_method: Optional\[str\]... [pypi.org](https://pypi.org/project/deepspeed/0.19.9/)
- **Signature changed** `deepspeed.init_distributed`  

Was def init_distributed(dist_backend: Optional\[str\] = None, auto_mpi_discovery: bool = True, distributed_port: int = TORCH_DISTRIBUTED_DEFAULT_PORT, verbose: bool = True, timeout: timedelta = default_pg_timeout, init_method: Optional\[str\]... [pypi.org](https://pypi.org/project/deepspeed/0.19.9/)
- **Signature changed** `deepspeed.runtime.base_optimizer.ZeROOptimizer.load_hp_checkpoint_state_from_checkpoint_dir`  

Was def load_hp_checkpoint_state_from_checkpoint_dir(self, lp_groups_name: str, checkpoint_dir: str) -> None; now def load_hp_checkpoint_state_from_checkpoint_dir(self, lp_groups_name: str, checkpoint_dir: str, load_optimizer_states: bool... [pypi.org](https://pypi.org/project/deepspeed/0.19.9/)
- **Signature changed** `deepspeed.runtime.bf16_optimizer.ZeROOptimizer.load_hp_checkpoint_state_from_checkpoint_dir`  

Was def load_hp_checkpoint_state_from_checkpoint_dir(self, lp_groups_name: str, checkpoint_dir: str) -> None; now def load_hp_checkpoint_state_from_checkpoint_dir(self, lp_groups_name: str, checkpoint_dir: str, load_optimizer_states: bool... [pypi.org](https://pypi.org/project/deepspeed/0.19.9/)

## deepspeed 0.19.8 breaking changes

deepspeed 0.19.8, released October 20, 2026: 55 breaking changes.

- **Removed**  

Graph harvesting is deprecated and removed. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.8)
- **Removed**  

Elastic training has been removed. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.8)
- **Removed**  

Progressive Layer Dropping (PLD) support has been removed. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.8)
- **Removed** `TiledLoss`  

The older TiledLoss has been removed. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.8)
- **Removed** `UlyssesSPFwdLossBwdWithLogits`  

The older UlyssesSPFwdLossBwdWithLogits has been removed. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.8)
- **Behavior changed** `DeepSpeedCPUAdam`  

DeepSpeedCPUAdam raises an error when amsgrad is set instead of silently ignoring it. Remove amsgrad from your configuration. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.8)
- **Signature changed** `deepspeed.checkpoint.autoep_universal.consolidate_autoep_expert_files`  

Was def consolidate_autoep_expert_files(checkpoint_dir, output_dir, autoep_layers_metadata); now def consolidate_autoep_expert_files(checkpoint_dir, output_dir, autoep_layers_metadata, fp32_fallback_param_names=None... [pypi.org](https://pypi.org/project/deepspeed/0.19.8/)
- **Signature changed** `deepspeed.checkpoint.autoep_universal.consolidate_autoep_zero12_expert_states`  

Was def consolidate_autoep_zero12_expert_states(temp_dir, output_dir, expert_param_info, slice_shapes, dp_degree, tp_degree, use_data_before_expert_parallel); now def consolidate_autoep_zero12_expert_states(temp_dir, output_dir... [pypi.org](https://pypi.org/project/deepspeed/0.19.8/)
- **Signature changed** `deepspeed.checkpoint.autoep_zero3_metadata.validate_autoep_zero3_partitioned_metadata`  

Was def validate_autoep_zero3_partitioned_metadata(autoep_metadata, require_partitioned=True, expected_expert_prefixes=None, version_context='This DeepSpeed build'); now def validate_autoep_zero3_partitioned_metadata(autoep_metadata... [pypi.org](https://pypi.org/project/deepspeed/0.19.8/)
- **Signature changed** `deepspeed.checkpoint.ds_to_universal.validate_autoep_zero3_partitioned_metadata`  

Was def validate_autoep_zero3_partitioned_metadata(autoep_metadata, require_partitioned=True, expected_expert_prefixes=None, version_context='This DeepSpeed build'); now def validate_autoep_zero3_partitioned_metadata(autoep_metadata... [pypi.org](https://pypi.org/project/deepspeed/0.19.8/)

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

## deepspeed 0.19.7 breaking changes

deepspeed 0.19.7, released September 16, 2026: 73 breaking changes.

- **Behavior changed**  

Inference and HybridEngine now validate max output tokens and reject non-positive values. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.7)
- **Behavior changed**  

The curriculum schedule now starts at min_difficulty instead of below it, which changes training schedules. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.7)
- **Behavior changed**  

The caller's config dict is no longer changed by elasticity batch overrides. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.7)
- **Behavior changed**  

Code that catches AssertionError for this case must now catch ValueError. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.7)
- **Behavior changed** `Muon`  

Muon at ZeRO stage 0, the default, now runs Newton-Schulz, which changes its updates. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.7)
- **Default changed** `--lr_range_test_staircase`  

The staircase behavior is now off unless the flag is passed explicitly. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.7)
- **Signature changed** `deepspeed.comm.all_to_all`  

Was def all_to_all(output_tensor_list, input_tensor_list, group=None, async_op=False); now def all_to_all(output_tensor_list, input_tensor_list, group=None, async_op=False, prof=False, log_name='all_to_all', debug=get_caller_func()). [pypi.org](https://pypi.org/project/deepspeed/0.19.7/)
- **Signature changed** `deepspeed.comm.broadcast_object_list`  

Was def broadcast_object_list(object_list, src, group=None, device=None); now def broadcast_object_list(object_list, src, group=None, device=None, prof=False, log_name='broadcast_object_list', debug=get_caller_func()). [pypi.org](https://pypi.org/project/deepspeed/0.19.7/)
- **Signature changed** `deepspeed.comm.ccl.CCLBackend.barrier`  

Was def barrier(self, group=None, async_op=False); now def barrier(self, group=None, async_op=False, device_ids=None). [pypi.org](https://pypi.org/project/deepspeed/0.19.7/)
- **Signature changed** `deepspeed.comm.CCLBackend.barrier`  

Was def barrier(self, group=None, async_op=False); now def barrier(self, group=None, async_op=False, device_ids=None). [pypi.org](https://pypi.org/project/deepspeed/0.19.7/)

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

## Older versions

34 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### deepspeed 0.19.6 breaking changes

deepspeed 0.19.6, released August 27, 2026: 50 breaking changes.

- **Removed** `grad_hooks`  

The grad_hooks ZeRO option was documented but never existed, and it has been dropped from the docs. Remove any config that sets it. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.6)
- **Behavior changed** `DeepSpeedConfig`  

DeepSpeedConfig no longer writes max_grad_norm back into the config dictionary passed in by the caller. Code that read max_grad_norm from that dict afterward will not see it. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.6)

And 48 more in this version.

### deepspeed 0.19.5 breaking changes

deepspeed 0.19.5, released August 10, 2026: 7 breaking changes.

- **Default changed**  

Async gradient offload and pinned offload buffers are now on by default in ZeRO-3. Code that relied on the previous defaults should set these options explicitly if it needs the old behavior. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.5)
- **Signature changed** `deepspeed.checkpoint.zero_checkpoint.ZeROCheckpoint.__init__`  

Was def \_\_init\_\_(self, dir); now def \_\_init\_\_(self, dir, source_3d=None). [pypi.org](https://pypi.org/project/deepspeed/0.19.5/)

And 5 more in this version.

### deepspeed 0.19.4 breaking changes

deepspeed 0.19.4, released August 6, 2026: 38 breaking changes.

- **Behavior changed** `OneCycle`  

The OneCycle stair count settings previously had no effect; they now alter the schedule, so existing runs may train differently. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.4)
- **Behavior changed** `PipelineModule.set_checkpoint_interval`  

Calls to set_checkpoint_interval previously did not change the interval; they now do, so checkpointing frequency will differ from before. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.4)

And 36 more in this version.

### deepspeed 0.19.3 breaking changes

deepspeed 0.19.3, released July 23, 2026: 36 breaking changes.

- **Behavior changed** `fp16`  

fp16 dynamic loss scaling parameters must now be positive, and invalid values raise an error. Check that existing configs use positive values. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.3)
- **Behavior changed** `Muon`  

Using the Muon optimizer with reduce_scatter under ZeRO-1 or ZeRO-2 now raises an error. Remove reduce_scatter or use a different optimizer. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.3)

And 34 more in this version.

### deepspeed 0.19.2 breaking changes

deepspeed 0.19.2, released June 16, 2026: 11 breaking changes.

- **Behavior changed**  

Parameter and buffer dtype casting under mixed precision now follows a per-policy rule, and fp32 buffers are kept as fp32. Code that relied on buffers being cast to the training dtype may see different results. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.2)
- **Signature changed** `deepspeed.checkpoint.universal_checkpoint.load_hp_checkpoint_state`  

Was def load_hp_checkpoint_state(self, folder, tp_rank, tp_world_size); now def load_hp_checkpoint_state(self, folder, tp_rank, tp_world_size, ep_rank=0, ep_size=1). [pypi.org](https://pypi.org/project/deepspeed/0.19.2/)

And 9 more in this version.

### deepspeed 0.19.1 breaking changes

deepspeed 0.19.1, released May 30, 2026: 1 breaking change.

- **Signature changed** `deepspeed.runtime.zero.linear.LinearFunctionForZeroStage3.forward`  

Was @staticmethod def forward(ctx, input, weight, bias=None); now @staticmethod def forward(input, weight, bias=None). [pypi.org](https://pypi.org/project/deepspeed/0.19.1/)

### deepspeed 0.19.0 breaking changes

deepspeed 0.19.0, released May 6, 2026: 15 breaking changes.

- **Behavior changed**  

The release changed how sequence parallelism selects modules, from an allow list to a deny list. Code that relied on the previous allow-list selection may see different modules parallelized. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.19.0)
- **Signature changed** `deepspeed.accelerator.DeepSpeedAccelerator.range_pop`  

Was def range_pop(self); now def range_pop(self, domain=None). [pypi.org](https://pypi.org/project/deepspeed/0.19.0/)

And 13 more in this version.

### deepspeed 0.18.9 breaking changes

deepspeed 0.18.9, released March 30, 2026: 4 breaking changes.

- **Signature changed** `deepspeed.runtime.superoffload.superoffload_stage3.DeepSpeedZeroOptimizer_Stage3.__init__`  

Was def \_\_init\_\_(self, module, init_optimizer, param_names, timers, ds_config, static_loss_scale=1.0, dynamic_loss_scale=False, dynamic_loss_args=None, verbose=True, contiguous_gradients=True, reduce_bucket_size=500000000... [pypi.org](https://pypi.org/project/deepspeed/0.18.9/)
- **Signature changed** `deepspeed.runtime.superoffload.superoffload_stage3.SuperOffloadCPUOptimizer.async_step`  

Was def async_step(self, param_group_id: int, sub_group_id: int, fp32_param: torch.Tensor, fp32_grad: torch.Tensor, rollback: bool = False) -> None; now def async_step(self, param_group_id: int, sub_group_id: int, fp32_param: torch.Tensor... [pypi.org](https://pypi.org/project/deepspeed/0.18.9/)

And 2 more in this version.

### deepspeed 0.18.8 breaking changes

deepspeed 0.18.8, released March 13, 2026: 3 breaking changes.

- **Behavior changed** `fp16.loss_scale`  

The fp16.loss_scale config value is now validated, so configs that set a negative or non-finite loss scale will be rejected. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.18.8)
- **Behavior changed** `see_memory_usage`  

The release suppresses see_memory_usage log output, so code that relied on those logs appearing will no longer see them. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.18.8)

And 1 more in this version.

### deepspeed 0.18.7 breaking changes

deepspeed 0.18.7, released March 5, 2026: 4 breaking changes.

- **Removed** `amp`  

The amp() method was removed from the abstract accelerator. Code calling it on the accelerator object must stop doing so. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.18.7)
- **Behavior changed**  

XPU devices now run on stock PyTorch rather than Intel Extension for PyTorch. Users relying on that extension for XPU may need to adjust their setup. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.18.7)

And 2 more in this version.

### deepspeed 0.18.6 breaking changes

deepspeed 0.18.6, released February 12, 2026: 9 breaking changes.

- **Behavior changed**  

Sequence parallel operations are no longer run during eval. Code that depends on them running in eval mode may behave differently. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.18.6)
- **Signature changed** `deepspeed.inference.engine.AutoTP.__init__`  

Was def \_\_init\_\_(self, module, all_reduce_linears, prefix, state_dict, linear_layer_setting, orig_layer_impl, keep_module_on_host=False); now def \_\_init\_\_(self, module, all_reduce_linears, prefix, state_dict, linear_layer_setting... [pypi.org](https://pypi.org/project/deepspeed/0.18.6/)

And 7 more in this version.

### deepspeed 0.18.5 breaking changes

deepspeed 0.18.5, released January 30, 2026: 5 breaking changes.

- **Behavior changed** `GatheredParameters`  

Editing parameters in place inside GatheredParameters without setting modifier_rank now raises a clear error. Code that made such edits must pass modifier_rank. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.18.5)
- **Signature changed** `deepspeed.runtime.engine.DeepSpeedZeroOptimizer.reduce_ipg_grads`  

Was def reduce_ipg_grads(self); now def reduce_ipg_grads(self, comm_dtype=None). [pypi.org](https://pypi.org/project/deepspeed/0.18.5/)

And 3 more in this version.

### deepspeed 0.18.4 breaking changes

deepspeed 0.18.4, released January 7, 2026: 2 breaking changes.

- **Behavior changed**  

The engine now scales gradients only when scale_wrt_gas is True. Code that relied on gradient scaling with scale_wrt_gas off may see different gradients. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.18.4)
- **Signature changed** `deepspeed.runtime.superoffload.superoffload_stage3.SuperOffloadOptimizer_Stage3.__init__`  

Was def \_\_init\_\_(self, module, init_optimizer, timers, ds_config, \*\*kwargs); now def \_\_init\_\_(self, module, init_optimizer, param_names, timers, ds_config, \*\*kwargs). [pypi.org](https://pypi.org/project/deepspeed/0.18.4/)

### deepspeed 0.18.3 breaking changes

deepspeed 0.18.3, released December 9, 2025: 15 breaking changes.

- **Default changed**  

ZeRO stage 1-2 now skips memory pinning when it is not set in the config. Users who relied on the previous pinned-memory default must enable pinning explicitly. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.18.3)
- **Signature changed** `deepspeed.DeepSpeedEngine.compile`  

Was def compile(self, backend=get_accelerator().get_compile_backend(), compile_kwargs={}, schedule=None) -> None; now def compile(self, backend=get_accelerator().get_compile_backend(), compile_kwargs={}, schedule=None... [pypi.org](https://pypi.org/project/deepspeed/0.18.3/)

And 13 more in this version.

### deepspeed 0.18.2 breaking changes

deepspeed 0.18.2, released November 5, 2025: 2 breaking changes.

- **Signature changed** `deepspeed.runtime.sequence_parallel.ulysses_sp.UlyssesSPAttentionHF.__init__`  

Was def \_\_init\_\_(self, attn, local_seq_length: int, global_seq_length: int, batch_size: int, attn_head_count: int, attn_head_size: int, kv_head_count: int, num_hidden_layers: int, process_group: dist.ProcessGroup, seq_length_is_variable... [pypi.org](https://pypi.org/project/deepspeed/0.18.2/)
- **Signature changed** `deepspeed.runtime.sequence_parallel.ulysses_sp.UlyssesSPAttentionHF.register_with_transformers`  

Was @classmethod def register_with_transformers(cls, model_name_or_path, core_attn_implementation, sequence_parallel_size, max_length, micro_batch_size, seq_length_is_variable=True); now @classmethod def register_with_transformers(cls... [pypi.org](https://pypi.org/project/deepspeed/0.18.2/)

### deepspeed 0.18.1 breaking changes

deepspeed 0.18.1, released October 23, 2025: 16 breaking changes.

- **Behavior changed**  

Muon is no longer used for the embedding and lm_head layers, so those parameters are handled differently than before. Users who relied on Muon for them should check their training setup. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.18.1)
- **Signature changed** `deepspeed.compile.init_z3.DeepSpeedZeRoOffload.__init__`  

Was def \_\_init\_\_(self, module, timers, ds_config, overlap_comm=True, prefetch_bucket_size=50000000, max_reuse_distance=1000000000, max_live_parameters=1000000000, param_persistence_threshold=100000, model_persistence_threshold=sys.maxsize... [pypi.org](https://pypi.org/project/deepspeed/0.18.1/)

And 14 more in this version.

### deepspeed 0.18.0 breaking changes

deepspeed 0.18.0, released October 7, 2025: 12 breaking changes.

- **Renamed** `current_device`  

The accelerator method current_device() was changed to current_device_name(). Code calling current_device() must switch to current_device_name(). [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.18.0)
- **Signature changed** `deepspeed.compile.backend.get_wrapped_partitioner`  

Was def get_wrapped_partitioner(param_indices: List\[Tuple\[int, int, torch.Size\]\]); now def get_wrapped_partitioner(z3_partition: bool, param_indices: List\[Tuple\[int, int, torch.Size\]\], partition_fn). [pypi.org](https://pypi.org/project/deepspeed/0.18.0/)

And 10 more in this version.

### deepspeed 0.17.6 breaking changes

deepspeed 0.17.6, released September 19, 2025: 31 breaking changes.

- **Signature changed** `deepspeed.compile.backend.run_opt_passes`  

Was def run_opt_passes(opt_passes: List\[Callable\], gm: GraphModule, graph_id: int, graph_order: List\[int\], profiling_results, create_inputs_fn, mem_budget: float, param_manager, bwd: bool, debug_log=False) -> None; now def... [pypi.org](https://pypi.org/project/deepspeed/0.17.6/)
- **Signature changed** `deepspeed.compile.passes.offload_activation.offload_activation_fwd`  

Was def offload_activation_fwd(graph: Graph, graph_id: int, nodes_to_offload_with_names: List\[Tuple\[str, Node\]\], graph_order: List\[int\], mem_budget: float, param_manager: DSGraphParamManager) -> Graph; now def offload_activation_fwd(graph... [pypi.org](https://pypi.org/project/deepspeed/0.17.6/)

And 29 more in this version.

### deepspeed 0.17.5 breaking changes

deepspeed 0.17.5, released August 20, 2025: 2 breaking changes.

- **Signature changed** `deepspeed.runtime.engine.DeepSpeedZeroOptimizer.__init__`  

Was def \_\_init\_\_(self, init_optimizer, param_names, timers, static_loss_scale=1.0, dynamic_loss_scale=False, dynamic_loss_args=None, verbose=True, contiguous_gradients=True, reduce_bucket_size=500000000... [pypi.org](https://pypi.org/project/deepspeed/0.17.5/)
- **Signature changed** `deepspeed.runtime.zero.stage_1_and_2.DeepSpeedZeroOptimizer.__init__`  

Was def \_\_init\_\_(self, init_optimizer, param_names, timers, static_loss_scale=1.0, dynamic_loss_scale=False, dynamic_loss_args=None, verbose=True, contiguous_gradients=True, reduce_bucket_size=500000000... [pypi.org](https://pypi.org/project/deepspeed/0.17.5/)

### deepspeed 0.17.3 breaking changes

deepspeed 0.17.3, released July 28, 2025: 8 breaking changes.

- **Signature changed** `deepspeed.checkpoint.deepspeed_checkpoint.DeepSpeedCheckpoint.get_zero_checkpoint_state`  

Was def get_zero_checkpoint_state(self, pp_index, tp_index, dp_index) -> dict; now def get_zero_checkpoint_state(self, pp_index, tp_index, dp_index, strip_tensor_paddings: bool = True) -> dict. [pypi.org](https://pypi.org/project/deepspeed/0.17.3/)
- **Signature changed** `deepspeed.checkpoint.DeepSpeedCheckpoint.get_zero_checkpoint_state`  

Was def get_zero_checkpoint_state(self, pp_index, tp_index, dp_index) -> dict; now def get_zero_checkpoint_state(self, pp_index, tp_index, dp_index, strip_tensor_paddings: bool = True) -> dict. [pypi.org](https://pypi.org/project/deepspeed/0.17.3/)

And 6 more in this version.

### deepspeed 0.17.2 breaking changes

deepspeed 0.17.2, released July 7, 2025: 34 breaking changes.

- **Behavior changed** `WarmupLR`  

When WarmupLR is created without a learning rate, it now takes the optimizer's lr instead of the previous value. Code relying on the old default should pass the learning rate explicitly. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.17.2)
- **Signature changed** `deepspeed.compile.backend.make_backend`  

Was def make_backend(backend, compile_kwargs={}, free_activation=False, debug_log=False); now def make_backend(backend, compile_config, compile_kwargs={}). [pypi.org](https://pypi.org/project/deepspeed/0.17.2/)

And 32 more in this version.

### deepspeed 0.17.1 breaking changes

deepspeed 0.17.1, released June 9, 2025: 20 breaking changes.

- **Signature changed** `deepspeed.inference.engine.TorchCheckpointEngine.commit`  

Was def commit(self, tag); now def commit(self, info: CheckpointCommitInfo). [pypi.org](https://pypi.org/project/deepspeed/0.17.1/)
- **Signature changed** `deepspeed.inference.engine.TorchCheckpointEngine.create`  

Was def create(self, tag); now def create(self, info: CheckpointCommitInfo). [pypi.org](https://pypi.org/project/deepspeed/0.17.1/)

And 18 more in this version.

### deepspeed 0.17.0 breaking changes

deepspeed 0.17.0, released June 2, 2025: 3 breaking changes.

- **Signature changed** `deepspeed.runtime.activation_checkpointing.checkpointing.move_to_device`  

Was def move_to_device(item, device, criterion_func); now def move_to_device(item, device, criterion_func=None). [pypi.org](https://pypi.org/project/deepspeed/0.17.0/)
- **Signature changed** `deepspeed.runtime.utils.move_to_device`  

Was def move_to_device(item, device, criterion_func); now def move_to_device(item, device, criterion_func=None). [pypi.org](https://pypi.org/project/deepspeed/0.17.0/)

And 1 more in this version.

### deepspeed 0.16.9 breaking changes

deepspeed 0.16.9, released May 22, 2025: 2 breaking changes.

- **Behavior changed**  

The license check was disabled until the new license situation is sorted out, so builds no longer run it. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.16.9)
- **Signature changed** `deepspeed.runtime.swap_tensor.optimizer_utils.OptimizerStateSwapInfo.set_swap_buffers`  

Was def set_swap_buffers(self, buffers); now def set_swap_buffers(self, buffers, aligned_numel). [pypi.org](https://pypi.org/project/deepspeed/0.16.9/)

### deepspeed 0.16.6 breaking changes

deepspeed 0.16.6, released April 16, 2025: 8 breaking changes.

- **Signature changed** `deepspeed.DeepSpeedEngine.compile`  

Was def compile(self, backend=get_accelerator().get_compile_backend(), compile_kwargs={}) -> None; now def compile(self, backend=get_accelerator().get_compile_backend(), compile_kwargs={}, schedule=None) -> None. [pypi.org](https://pypi.org/project/deepspeed/0.16.6/)
- **Signature changed** `deepspeed.runtime.domino.transformer.CoreAttention.__init__`  

Was def \_\_init\_\_(self, config, layer_number, mpu, attn_mask_type=AttnMaskType.causal); now def \_\_init\_\_(self, config, tp_world_size, attn_mask_type=AttnMaskType.causal). [pypi.org](https://pypi.org/project/deepspeed/0.16.6/)

And 6 more in this version.

### deepspeed 0.16.5 breaking changes

deepspeed 0.16.5, released March 27, 2025: 8 breaking changes.

- **Signature changed** `deepspeed.DeepSpeedEngine.backward`  

Was def backward(self, loss, release_loss=False, retain_graph=False, scale_wrt_gas=True); now def backward(self, loss, retain_graph=False, scale_wrt_gas=True). [pypi.org](https://pypi.org/project/deepspeed/0.16.5/)
- **Signature changed** `deepspeed.runtime.bf16_optimizer.BF16_Optimizer.__init__`  

Was def \_\_init\_\_(self, init_optimizer, param_names, mpu=None, clip_grad=0.0, norm_type=2, allgather_bucket_size=5000000000, dp_process_group=None, timers=None, grad_acc_dtype=None, graph_harvesting=False, immediate_grad_update=False... [pypi.org](https://pypi.org/project/deepspeed/0.16.5/)

And 6 more in this version.

### deepspeed 0.16.4 breaking changes

deepspeed 0.16.4, released February 20, 2025: 25 breaking changes.

- **Renamed** `aio_thread_count`  

The aio_thread_count setting was renamed to intra_op_parallelism. Code and configs that use the old name must switch to the new one. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.16.4)
- **Signature changed** `deepspeed.linear.config.QuantizationConfig.__init__`  

Was def \_\_init\_\_(self, q_bits: int = 8, mantissa_bits: int = 3, group_size: int = 512) -> None; now def \_\_init\_\_(self, q_bits: int = 8, mantissa_bits: int = 3, group_size: int = 512, q_dtype: torch.dtype = torch.uint8) -> None. [pypi.org](https://pypi.org/project/deepspeed/0.16.4/)

And 23 more in this version.

### deepspeed 0.16.3 breaking changes

deepspeed 0.16.3, released January 21, 2025: 21 breaking changes.

- **Signature changed** `deepspeed.inference.engine.AutoTP.__init__`  

Was def \_\_init\_\_(self, module, all_reduce_linears, prefix, state_dict, linear_layer_setting, orig_layer_impl); now def \_\_init\_\_(self, module, all_reduce_linears, prefix, state_dict, linear_layer_setting, orig_layer_impl... [pypi.org](https://pypi.org/project/deepspeed/0.16.3/)
- **Signature changed** `deepspeed.module_inject.auto_tp.AutoTP.__init__`  

Was def \_\_init\_\_(self, module, all_reduce_linears, prefix, state_dict, linear_layer_setting, orig_layer_impl); now def \_\_init\_\_(self, module, all_reduce_linears, prefix, state_dict, linear_layer_setting, orig_layer_impl... [pypi.org](https://pypi.org/project/deepspeed/0.16.3/)

And 19 more in this version.

### deepspeed 0.16.2 breaking changes

deepspeed 0.16.2, released December 18, 2024: 2 breaking changes.

- **Signature changed** `deepspeed.runtime.zero.mics.DeepSpeedZeroOptimizer_Stage3.__init__`  

Was def \_\_init\_\_(self, module, init_optimizer, timers, ds_config, static_loss_scale=1.0, dynamic_loss_scale=False, dynamic_loss_args=None, verbose=True, contiguous_gradients=True, reduce_bucket_size=500000000... [pypi.org](https://pypi.org/project/deepspeed/0.16.2/)
- **Signature changed** `deepspeed.runtime.zero.stage3.DeepSpeedZeroOptimizer_Stage3.__init__`  

Was def \_\_init\_\_(self, module, init_optimizer, timers, ds_config, static_loss_scale=1.0, dynamic_loss_scale=False, dynamic_loss_args=None, verbose=True, contiguous_gradients=True, reduce_bucket_size=500000000... [pypi.org](https://pypi.org/project/deepspeed/0.16.2/)

### deepspeed 0.16.1 breaking changes

deepspeed 0.16.1, released December 5, 2024: 1 breaking change.

- **Signature changed** `deepspeed.sequence.layer.DistributedAttention.forward`  

Was def forward(self, query: Tensor, key: Tensor, value: Tensor, batch_dim_idx: int, \*args: Any, \*\*kwargs) -> Tensor; now def forward(self, query: Tensor, key: Tensor, value: Tensor, batch_dim_idx: int, rotary_pos_emb=None, \*args: Any... [pypi.org](https://pypi.org/project/deepspeed/0.16.1/)

### deepspeed 0.16.0 breaking changes

deepspeed 0.16.0, released November 25, 2024: 12 breaking changes.

- **Signature changed** `deepspeed.DeepSpeedEngine.backward`  

Was def backward(self, loss, allreduce_gradients=True, release_loss=False, retain_graph=False, scale_wrt_gas=True); now def backward(self, loss, release_loss=False, retain_graph=False, scale_wrt_gas=True). [pypi.org](https://pypi.org/project/deepspeed/0.16.0/)
- **Signature changed** `deepspeed.runtime.engine.DeepSpeedEngine.backward`  

Was def backward(self, loss, allreduce_gradients=True, release_loss=False, retain_graph=False, scale_wrt_gas=True); now def backward(self, loss, release_loss=False, retain_graph=False, scale_wrt_gas=True). [pypi.org](https://pypi.org/project/deepspeed/0.16.0/)

And 10 more in this version.

### deepspeed 0.15.4 breaking changes

deepspeed 0.15.4, released November 8, 2024: 4 breaking changes.

- **Removed**  

The release switches the set of supported Python versions. Users on Python versions no longer supported should upgrade their interpreter before installing. [github.com](https://github.com/deepspeedai/DeepSpeed/releases/tag/v0.15.4)
- **Signature changed** `deepspeed.runtime.engine.DeepSpeedZeRoOffload.get_param_coordinator`  

Was def get_param_coordinator(self, training); now def get_param_coordinator(self). [pypi.org](https://pypi.org/project/deepspeed/0.15.4/)

And 2 more in this version.

### deepspeed 0.15.3 breaking changes

deepspeed 0.15.3, released October 22, 2024: 1 breaking change.

- **Signature changed** `deepspeed.utils.zero_to_fp32.convert_zero_checkpoint_to_fp32_state_dict`  

Was def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir, output_file, tag=None, exclude_frozen_parameters=False); now def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir, output_dir, max_shard_size='5GB'... [pypi.org](https://pypi.org/project/deepspeed/0.15.3/)

### deepspeed 0.15.2 breaking changes

deepspeed 0.15.2, released October 9, 2024: 35 breaking changes.

- **Signature changed** `deepspeed.inference.engine.DeepSpeedSelfAttention.compute_attention`  

Was def compute_attention(self, qkv_out, input_mask, layer_past, alibi); now def compute_attention(self, qkv_out, input_mask, layer_past, alibi, is_prompt, token_idx, position_ids). [pypi.org](https://pypi.org/project/deepspeed/0.15.2/)
- **Signature changed** `deepspeed.inference.engine.DeepSpeedSelfAttention.forward`  

Was def forward(self, input, input_mask, head_mask=None, layer_past=None, get_present=False, encoder_hidden_states=None, encoder_attention_mask=None, output_attentions=False, norm_w=None, norm_b=None, alibi=None); now def forward(self... [pypi.org](https://pypi.org/project/deepspeed/0.15.2/)

And 33 more in this version.

## 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.
