Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ functions
Functions
14,579 in github.com/deepspeedai/DeepSpeed
⨍
Functions
14,579
◇
Types & classes
2,353
↳
Endpoints
92
Method
test_save_load_same_ep_and_metadata
(self, tmpdir)
tests/unit/v1/moe/test_autoep_checkpoint.py:421
Method
test_save_original_weight
(self, tp_size: int, zero_stage: int)
tests/unit/v1/autotp/test_autotp_training.py:1888
Method
test_save_tensor_clone
(self, tmpdir, zero_stage, use_cpu_device)
tests/unit/checkpoint/test_zero_optimizer.py:664
Function
test_saved_view_minimum_size_uses_the_allocation_it_releases
A cheap view copy can release an allocation above the offload floor.
tests/unit/v1/compile/test_offload_activation.py:663
Function
test_saves_no_full_vocabulary_float32_tensor
Backward may keep only the given logits and per-row values, not an FP32 copy the size of the logits.
tests/unit/v1/runtime/test_chunked_cross_entropy.py:282
Method
test_scalar_plan_crosses_processes
(self, batched)
tests/unit/checkpoint/test_affine_transfer_executor.py:93
Method
test_scalar_plan_preserves_storage_offsets_and_guards
(self, batched)
tests/unit/checkpoint/test_affine_transfer_executor.py:436
Method
test_scale_backward_matches_ddp
Test that engine.scale(loss).backward() produces same gradients as DDP
tests/unit/v1/zero/test_zero_user_backward.py:951
Method
test_scale_backward_matches_engine_backward
Test that engine.scale(loss).backward() produces same gradients as engine.backward(loss)
tests/unit/v1/zero/test_zero_user_backward.py:913
Function
test_scale_matches_eager_after_recompiling
(branch, ns_method, device)
tests/unit/v1/ops/muon/test_muon_scale_compile.py:47
Function
test_scale_power_gives_each_state_its_own_factor
The moments' factors are the inverse and inverse square of the parameter's. Verified at the arithmetic level because `rebuild` refuses a scaled o
tests/unit/checkpoint/test_affine_shard_map.py:807
Function
test_scale_round_trip_is_exact_for_power_of_two_world_sizes
Dividing by a power of two only shifts the exponent, so no bias precision is lost.
tests/unit/checkpoint/test_affine_shard_map.py:297
Function
test_scale_round_trips_through_both_directions
A row-parallel bias is replicated pre-divided by the world size, so a piece scales it. `shard == full * scale`, so extracting multiplies and rebu
tests/unit/checkpoint/test_affine_shard_map.py:266
Method
test_scale_validates_scalar_loss
Test that scale() validates the input is a scalar loss tensor
tests/unit/v1/zero/test_zero_user_backward.py:1219
Method
test_scale_with_gradient_accumulation
Test that engine.scale() works correctly with gradient accumulation
tests/unit/v1/zero/test_zero_user_backward.py:982
Method
test_scale_with_torch_autocast
Test that scale() works correctly with torch.autocast and fp16
tests/unit/v1/zero/test_zero_user_backward.py:1242
Function
test_scaled_global_norm_does_not_turn_cpu_offload_sentinel_into_one
()
tests/unit/v1/zero/test_invalid_grad_norm.py:72
Function
test_scaled_optimizer_state_is_refused
Correct moments are not enough: Adam's lr and eps live in the source coordinate. Converting them without rescaling `lr / scale` and `eps * scale`
tests/unit/checkpoint/test_affine_shard_map.py:836
Function
test_scaled_parameter_still_round_trips
The parameter itself converts through a scaled piece, which is the supported case.
tests/unit/checkpoint/test_affine_shard_map.py:821
Method
test_scatter_halftype
(self)
tests/unit/runtime/zero/test_zero_context.py:201
Method
test_scatter_to_tensor_parallel_region
(self, kind)
tests/unit/module_inject/test_tp_autograd_reduce.py:54
Method
test_scattered_init_dist
(self)
tests/unit/runtime/zero/test_zero_context.py:195
Function
test_schedule_prefetch_skips_when_memory_profile_incomplete
(monkeypatch)
tests/unit/v1/compile/test_list_schedule.py:501
Function
test_schedule_written_with_callables_is_validated
(builtin_registry)
tests/unit/compile/test_pass_contract.py:215
Function
test_scheduler_admits_fifo_and_respects_capacity
()
tests/unit/runtime/rollout/test_continuous_batching.py:14
Function
test_scheduler_admits_pending_request_after_retirement
()
tests/unit/runtime/rollout/test_continuous_batching.py:43
Function
test_scheduler_advance_retires_by_budget
()
tests/unit/runtime/rollout/test_continuous_batching.py:57
Function
test_scheduler_compacts_survivors_and_admits_pending_request
()
tests/unit/runtime/rollout/test_continuous_batching.py:28
Function
test_scheduler_debug_env_flag_values
(monkeypatch)
tests/unit/v1/compile/test_list_schedule.py:116
Function
test_scheduler_rejects_invalid_transitions
()
tests/unit/runtime/rollout/test_continuous_batching.py:69
Function
test_score_accuracy
Validate expert scores are correct.
tests/unit/inference/v2/kernels/ragged_ops/test_top_k_gating.py:150
Method
test_score_application_and_combine
(self)
tests/unit/v1/moe/test_autoep_unit.py:1478
Method
test_score_correction_bias_location_and_registration
(self, monkeypatch, owner_path, bias_kind, persistent)
tests/unit/v1/moe/test_autoep_unit.py:2337
Method
test_score_correction_bias_multiple_locations_are_rejected
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:2371
Method
test_second_model_does_not_reshard_the_first
(self)
tests/unit/v1/sequence_parallelism/test_ulysses.py:577
Function
test_segmented_map_refuses_widths_that_do_not_add_up
A width list that misses elements would describe a layout nothing produced.
tests/unit/checkpoint/test_affine_shard_map.py:1093
Function
test_selection_modes_and_path_validation
()
ci/test_torch_latest.py:352
Function
test_selection_rejects_duplicate_symlink_size_count_and_controls
()
ci/test_torch_latest.py:386
Function
test_selective_adamw_loads_counter_without_losing_precision
(optimizer_cls, counter_dtype)
tests/unit/runtime/zenflow/test_zf.py:46
Function
test_selective_adamw_resumed_counter_advances_past_old_limit
(dtype, boundary)
tests/unit/runtime/zenflow/test_zf.py:64
Function
test_selective_adamw_step_counter_keeps_advancing
(dtype, steps)
tests/unit/runtime/zenflow/test_zf.py:28
Function
test_selective_gather_caps_profiled_headroom_by_current_available_memory
(monkeypatch)
tests/unit/v1/compile/test_selective_gather.py:155
Function
test_selective_gather_sets_persistent_params_when_transient_headroom_exists
(monkeypatch)
tests/unit/v1/compile/test_selective_gather.py:71
Function
test_selective_gather_skips_persistence_when_memory_profile_incomplete
(monkeypatch)
tests/unit/v1/compile/test_selective_gather.py:198
Function
test_selective_gather_uses_profiled_headroom_instead_of_current_available_memory
(monkeypatch)
tests/unit/v1/compile/test_selective_gather.py:112
Function
test_selector_uses_selected_replica_address
()
tests/unit/checkpoint/test_affine_transfer_plan.py:192
Method
test_selects_deepep
(self)
tests/unit/module_inject/test_auto_ep_comm.py:40
Method
test_separate_loss_function
Test that separate loss function works correctly by comparing with PyTorch DDP
tests/unit/v1/zero/test_zero_user_backward.py:649
Method
test_seq_to_head_parallel
(self, batch_dim_idx, seq_world_size)
tests/unit/v1/sequence_parallelism/test_ulysses.py:197
Function
test_sequence_length_is_capped_to_sliding_window
()
tests/unit/inference/v2/model_implementations/test_exaone4_5.py:82
Method
test_sequence_length_preserved
Output length must equal input length (1-to-1 replacement).
deepspeed/sequence/test_autosp.py:535
Method
test_sequence_length_preserved
Output length must equal input length (1-to-1 replacement).
deepspeed/sequence/test_autosp.py:645
Method
test_sequence_loss_local_gathered_and_mean
(self)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:228
Function
test_sequence_tiled_compute_shard_boundaries
(batch_size, seqlen, shards, output_reduction)
tests/unit/ulysses_alst/test_tiled_compute.py:225
Function
test_serialisation_holds_only_plain_scalars
Nothing torch-specific may reach the file, so the map stays readable on its own.
tests/unit/checkpoint/test_affine_shard_map.py:414
Function
test_serialisation_preserves_scale
A scaled piece must survive the file, or a restored bias would be off by the divisor.
tests/unit/checkpoint/test_affine_shard_map.py:432
Function
test_serialisation_round_trips
The stored form must rebuild the same parameter as the map it came from.
tests/unit/checkpoint/test_affine_shard_map.py:401
Method
test_set_checkpoint_interval
(self, mixed_param_model)
tests/unit/pipe/test_pipe_module.py:128
Method
test_set_full_grad_between_backwards
(self, scenario)
tests/unit/v1/zero/test_zero_offload_accum_precision.py:155
Method
test_set_gradient_accumulation_boundary_rejected
set_gradient_accumulation_boundary() is unsupported in unmanaged mode (caller owns the boundary).
tests/unit/v1/zero/test_zero_user_backward.py:2048
Function
test_set_leaf_modules_by_name
()
tests/unit/runtime/zero/test_zero_leaf_module.py:172
Function
test_set_leaf_modules_by_name_missing
()
tests/unit/runtime/zero/test_zero_leaf_module.py:183
Function
test_set_leaf_modules_by_suffix
()
tests/unit/runtime/zero/test_zero_leaf_module.py:193
Function
test_set_leaf_modules_by_suffix_missing
()
tests/unit/runtime/zero/test_zero_leaf_module.py:204
Function
test_set_leaf_modules_no_raise_when_missing
()
tests/unit/runtime/zero/test_zero_leaf_module.py:162
Function
test_set_leaf_modules_with_fully_qualified_name
()
tests/unit/runtime/zero/test_zero_leaf_module.py:149
Method
test_set_leaf_modules_with_subclass
(self)
tests/unit/runtime/zero/test_zero_leaf_module.py:436
Method
test_set_module_by_name_deep
(self)
deepspeed/sequence/test_autosp.py:241
Method
test_set_module_by_name_shallow
(self)
deepspeed/sequence/test_autosp.py:235
Method
test_set_no_match_class
(self)
tests/unit/runtime/zero/test_zero_leaf_module.py:447
Method
test_set_unset_leaf_modules
(self)
tests/unit/runtime/zero/test_zero_leaf_module.py:425
Method
test_setter_honors_non_reentrant_when_the_config_disables_checkpointing
(self, mixed_param_model, simp
tests/unit/pipe/test_pipe_module.py:178
Method
test_setter_keeps_reentrant_input_grads
(self, mixed_param_model, simple_config)
tests/unit/pipe/test_pipe_module.py:146
Method
test_setup_context_stores_autocast_attrs
setup_context must store _fwd_used_autocast and _dtype on ctx.
tests/unit/v1/zero/test_zero_functorch_linear.py:218
Method
test_sgd_update_matches_reference
(self, world_size, tp_size, ep_size, zero_stage, zero_init, clip_ratio)
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:550
Function
test_shape_mismatch_raises
()
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:109
Method
test_shape_survives_a_step
(self, case)
tests/unit/runtime/zero/test_zero_numel_param_shape.py:130
Method
test_shape_survives_initialize
(self, case)
tests/unit/runtime/zero/test_zero_numel_param_shape.py:122
Function
test_shape_that_does_not_divide_is_skipped
A projection whose output dim is not a multiple of the head count is not that layout.
tests/unit/runtime/zero/test_per_head_muon.py:243
Function
test_shard_element_count_mismatch_is_value_error
()
tests/unit/checkpoint/test_affine_shard_map.py:489
Method
test_shard_offsets_for_divisible_sequence_length
(self, seq_len, expected)
tests/unit/v1/compile/test_compile_autosp.py:861
Method
test_shard_offsets_reject_non_divisible_sequence_length
(self)
tests/unit/v1/compile/test_compile_autosp.py:864
Function
test_shard_size_refuses_to_guess_subgroup_rank
(monkeypatch)
tests/unit/module_inject/test_tp_shard.py:80
Function
test_shard_that_disagrees_with_the_map_is_refused
A shard longer than the map describes would be silently truncated to its prefix.
tests/unit/checkpoint/test_affine_shard_map.py:771
Method
test_sharded_experts_count_once
The global norm must not depend on how experts are spread over ranks. Rank-averaging the per-rank norms only reconstructs a global norm when
tests/unit/runtime/test_runtime_utils.py:57
Method
test_shards_cover_the_full_parameter
Every element of the full tensor is held by some rank, so it can be rebuilt.
tests/unit/checkpoint/test_affine_shard_map.py:183
Method
test_shards_reassemble_to_full_fused
Gathering all ranks' output shards must equal the single-device fused sequence (modulo padding zeros).
tests/unit/v1/sequence_parallelism/test_autosp_equivalence.py:169
Method
test_shards_reassemble_to_full_fused
Gathering all ranks' output shards must equal the single-device fused sequence (modulo padding zeros).
tests/unit/v1/sequence_parallelism/test_autosp_equivalence.py:268
Method
test_shards_reassemble_to_full_fused
Gathering all ranks' output shards must equal the single-device fused sequence (modulo padding zeros).
tests/unit/v1/sequence_parallelism/test_autosp_equivalence.py:365
Function
test_shared_change_selects_all_importers
()
ci/test_tests_fetcher.py:135
Function
test_shared_fixture_runs_all
()
ci/test_tests_fetcher.py:172
Method
test_shared_plan_batch_keeps_distinct_payloads_and_revalidates
(self)
tests/unit/checkpoint/test_affine_transfer_executor.py:135
Method
test_shared_plan_uses_each_buffer_and_rechecks_each_call
(self)
tests/unit/checkpoint/test_affine_transfer_executor.py:267
Function
test_shared_prefill_fallback_repeats_prompt_cache
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1533
Function
test_shared_prefill_hooks_reduce_prompt_and_expand_output
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1461
Function
test_shared_prefill_rejects_graph_capture
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1524
Method
test_shared_tail_and_router_logits_are_preserved
(self)
tests/unit/module_inject/test_auto_ep_comm.py:658
Function
test_short_partition
()
tests/unit/runtime/utils/test_partition.py:124
Function
test_short_partition_uniform
()
tests/unit/runtime/utils/test_partition.py:116
Method
test_shutdown_in_nesting_init
(self)
tests/unit/runtime/zero/test_zero_nesting_init.py:56
← previous
next →
13,601–13,700 of 14,579, ranked by callers