deepspeed breaking changes
Updated December 4, 2026
On this page
Latest version 0.20.2, released November 28, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
deepspeed 0.20.2 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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
deepspeed 0.20.1 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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
And 18 more in this version. Sign up to see every change
deepspeed 0.20.0 breaking changes
- Behavior changed
Graph capture for HybridEngine no longer turns on automatically; users must explicitly opt in for their accelerator. github.com - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - Signature changed
deepspeed.ops.adagrad.DeepSpeedCPUAdagrad
Was class DeepSpeedCPUAdagrad(torch.optim.Optimizer); now class DeepSpeedCPUAdagrad(DeepSpeedCPUOptimizer). pypi.org
And 14 more in this version. Sign up to see every change
deepspeed 0.19.9 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 - 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 - 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 - 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 - 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
deepspeed 0.19.8 breaking changes
- Removed
Graph harvesting is deprecated and removed. github.com - Removed
Elastic training has been removed. github.com - Removed
Progressive Layer Dropping (PLD) support has been removed. github.com - Removed
TiledLoss
The older TiledLoss has been removed. github.com - Removed
UlyssesSPFwdLossBwdWithLogits
The older UlyssesSPFwdLossBwdWithLogits has been removed. github.com - Behavior changed
DeepSpeedCPUAdam
DeepSpeedCPUAdam raises an error when amsgrad is set instead of silently ignoring it. Remove amsgrad from your configuration. github.com - 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 - 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 - 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 - 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
And 45 more in this version. Sign up to see every change
deepspeed 0.19.7 breaking changes
- Behavior changed
Inference and HybridEngine now validate max output tokens and reject non-positive values. github.com - Behavior changed
The curriculum schedule now starts at min_difficulty instead of below it, which changes training schedules. github.com - Behavior changed
The caller's config dict is no longer changed by elasticity batch overrides. github.com - Behavior changed
Code that catches AssertionError for this case must now catch ValueError. github.com - Behavior changed
Muon
Muon at ZeRO stage 0, the default, now runs Newton-Schulz, which changes its updates. github.com - Default changed
--lr_range_test_staircase
The staircase behavior is now off unless the flag is passed explicitly. github.com - 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 - 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 - 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 - 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
And 63 more in this version. Sign up to see every change
Older versions
34 older versions, each with its first changes. Sign up to see every change
Show 34 older versions
deepspeed 0.19.6 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 - 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
And 48 more in this version.
deepspeed 0.19.5 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 - Signature changed
deepspeed.checkpoint.zero_checkpoint.ZeROCheckpoint.__init__
Was def __init__(self, dir); now def __init__(self, dir, source_3d=None). pypi.org
And 5 more in this version.
deepspeed 0.19.4 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 - 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
And 36 more in this version.
deepspeed 0.19.3 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 - 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
And 34 more in this version.
deepspeed 0.19.2 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 - 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
And 9 more in this version.
deepspeed 0.19.1 breaking changes
- 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
deepspeed 0.19.0 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 - Signature changed
deepspeed.accelerator.DeepSpeedAccelerator.range_pop
Was def range_pop(self); now def range_pop(self, domain=None). pypi.org
And 13 more in this version.
deepspeed 0.18.9 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 - 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
And 2 more in this version.
deepspeed 0.18.8 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 - 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
And 1 more in this version.
deepspeed 0.18.7 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 - 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
And 2 more in this version.
deepspeed 0.18.6 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 - 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
And 7 more in this version.
deepspeed 0.18.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 - 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
And 3 more in this version.
deepspeed 0.18.4 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 - 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
deepspeed 0.18.3 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 - 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
And 13 more in this version.
deepspeed 0.18.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 - 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
deepspeed 0.18.1 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 - 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
And 14 more in this version.
deepspeed 0.18.0 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 - 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
And 10 more in this version.
deepspeed 0.17.6 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 - 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
And 29 more in this version.
deepspeed 0.17.5 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 - 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
deepspeed 0.17.3 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 - 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
And 6 more in this version.
deepspeed 0.17.2 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 - 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
And 32 more in this version.
deepspeed 0.17.1 breaking changes
- Signature changed
deepspeed.inference.engine.TorchCheckpointEngine.commit
Was def commit(self, tag); now def commit(self, info: CheckpointCommitInfo). pypi.org - Signature changed
deepspeed.inference.engine.TorchCheckpointEngine.create
Was def create(self, tag); now def create(self, info: CheckpointCommitInfo). pypi.org
And 18 more in this version.
deepspeed 0.17.0 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 - 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
And 1 more in this version.
deepspeed 0.16.9 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 - 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
deepspeed 0.16.6 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 - 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
And 6 more in this version.
deepspeed 0.16.5 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 - 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
And 6 more in this version.
deepspeed 0.16.4 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 - 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
And 23 more in this version.
deepspeed 0.16.3 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 - 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
And 19 more in this version.
deepspeed 0.16.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 - 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
deepspeed 0.16.1 breaking changes
- 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
deepspeed 0.16.0 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 - 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
And 10 more in this version.
deepspeed 0.15.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 - Signature changed
deepspeed.runtime.engine.DeepSpeedZeRoOffload.get_param_coordinator
Was def get_param_coordinator(self, training); now def get_param_coordinator(self). pypi.org
And 2 more in this version.
deepspeed 0.15.3 breaking changes
- 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
deepspeed 0.15.2 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 - 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
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, 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.