Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ functions
Functions
15,468 in github.com/deepspeedai/DeepSpeed
⨍
Functions
15,468
◇
Types & classes
2,493
↳
Endpoints
106
Function
test_module_compile_failure_cleans_native_state_once_before_destroy
(monkeypatch)
tests/unit/compile/test_zero3_grad_dtype.py:420
Function
test_module_import_is_modal_free
()
ci/test_torch_latest.py:332
Method
test_module_list_mixed_expert_requires_grad_flags_are_rejected
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:2272
Method
test_module_list_rejects_a_source_it_cannot_index
Matches the assertion the other two module_list repack helpers already make.
tests/unit/v1/moe/test_autoep_unit.py:3015
Method
test_module_list_replacement_preserves_frozen_experts_and_trainable_router
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:2196
Method
test_module_list_sources_are_this_ranks_local_experts
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:3000
Method
test_module_list_zero_source_gathers_all_experts_in_global_order
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:2226
Method
test_module_only_dp_world_size_4to2_fixed_ep_size
(self, autoep_topology_baseline_ws4_ep2, tmpdir)
tests/unit/v1/moe/test_autoep_checkpoint.py:921
Method
test_moe_backward_compat_bool
(self)
tests/unit/inference/test_inference_config.py:86
Function
test_moe_gather
(n_tokens: int, n_experts: int, n_top_k: int, do_padding: bool)
tests/unit/inference/v2/kernels/ragged_ops/test_moe_gather.py:89
Function
test_moe_gather_normalize_scales
()
tests/unit/inference/v2/kernels/ragged_ops/test_moe_gather.py:110
Function
test_moe_residual_matmul
(hidden_dim, c, dtype)
tests/unit/ops/transformer/inference/test_moe_res_matmult.py:31
Function
test_moe_scatter
(n_tokens, n_experts, n_top_k, do_padding)
tests/unit/inference/v2/kernels/ragged_ops/test_moe_scatter.py:37
Method
test_mom
(self, min_mom, max_mom, decay_rate, step_size)
tests/unit/runtime/test_lr_schedulers.py:400
Function
test_moq_and_pld_config_is_rejected
(config_key, value)
tests/unit/runtime/test_ds_config_dict.py:235
Method
test_move_to_accelerator
(self)
tests/unit/linear/test_quant_param.py:39
Method
test_mp1_gpu1_node1_zero1
(self)
tests/model/Megatron_GPT2/run_func_test.py:72
Method
test_mp1_gpu1_node1_zero2
(self)
tests/model/Megatron_GPT2/run_func_test.py:144
Method
test_mp1_gpu1_node1_zero2_ds_offload
(self)
tests/model/Megatron_GPT2/run_func_test.py:226
Method
test_mp1_gpu1_node1_zero2_torch_offload
(self)
tests/model/Megatron_GPT2/run_func_test.py:332
Method
test_mp1_gpu2_load_gpu1_node1_with_zero1
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:127
Method
test_mp1_gpu2_load_gpu1_node1_with_zero2
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:173
Method
test_mp1_gpu2_load_gpu1_node1_with_zero2_offload
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:196
Method
test_mp1_gpu2_load_gpu4_node1_with_zero1
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:150
Method
test_mp1_gpu2_load_gpu4_node1_with_zero2
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:220
Method
test_mp1_gpu2_load_gpu4_node1_with_zero2_offload
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:243
Method
test_mp1_gpu2_node1_fp16
(self)
tests/model/Megatron_GPT2/run_func_test.py:54
Method
test_mp1_gpu2_node1_zero1
(self)
tests/model/Megatron_GPT2/run_func_test.py:90
Method
test_mp1_gpu2_node1_zero2
(self)
tests/model/Megatron_GPT2/run_func_test.py:162
Method
test_mp1_gpu2_node1_zero2_ds_offload
(self)
tests/model/Megatron_GPT2/run_func_test.py:244
Method
test_mp1_gpu2_node1_zero2_torch_offload
(self)
tests/model/Megatron_GPT2/run_func_test.py:352
Method
test_mp2_gpu2_load_gpu4_node1_with_zero1
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:290
Method
test_mp2_gpu2_load_gpu4_node1_with_zero2
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:360
Method
test_mp2_gpu2_load_gpu4_node1_with_zero2_offload
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:383
Method
test_mp2_gpu4_load_gpu2_node1_with_zero1
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:267
Method
test_mp2_gpu4_load_gpu2_node1_with_zero2
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:313
Method
test_mp2_gpu4_load_gpu2_node1_with_zero2_offload
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:336
Method
test_mp2_gpu4_node1_with_zero1
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:60
Method
test_mp2_gpu4_node1_with_zero2
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:82
Method
test_mp2_gpu4_node1_with_zero2_offload
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:104
Method
test_mp2_gpu4_node1_without_zero
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:407
Method
test_mp2_gpu4_node1_zero1
(self)
tests/model/Megatron_GPT2/run_func_test.py:108
Method
test_mp2_gpu4_node1_zero2
(self)
tests/model/Megatron_GPT2/run_func_test.py:180
Method
test_mp2_gpu4_node1_zero2_ds_offload
(self)
tests/model/Megatron_GPT2/run_func_test.py:284
Method
test_mp2_gpu4_node1_zero2_gas
(self)
tests/model/Megatron_GPT2/run_func_test.py:262
Method
test_mp2_gpu4_node1_zero2_torch_offload
(self)
tests/model/Megatron_GPT2/run_func_test.py:372
Method
test_mp4_gpu4_node1_zero1
(self)
tests/model/Megatron_GPT2/run_func_test.py:126
Method
test_mp4_gpu4_node1_zero2
(self)
tests/model/Megatron_GPT2/run_func_test.py:203
Method
test_mp4_gpu4_node1_zero2_ds_offload
(self)
tests/model/Megatron_GPT2/run_func_test.py:308
Method
test_mp4_gpu4_node1_zero2_torch_offload
(self)
tests/model/Megatron_GPT2/run_func_test.py:397
Function
test_mpich_runner
(runner_info)
tests/unit/launcher/test_multinode_runner.py:58
Method
test_mpt_alibi_covers_every_head_of_an_uneven_split
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:746
Method
test_multi_backward_across_multiple_steps
(self, zero_stage)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:127
Method
test_multi_backward_bit_exact
(self, zero_stage, contiguous_gradients, overlap_comm)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:127
Method
test_multi_backward_matches_no_offload
(self, zero_stage)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:114
Method
test_multi_block
(self, zero_stage, use_reentrant, dtype, param_persistence_threshold)
tests/unit/v1/zero/test_zero_user_backward.py:1759
Method
test_multi_bucket_flush
(self, zero_stage)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:141
Function
test_multi_expert
Validate for multi-expert GEMM instances that the output is identical to the reference.
tests/unit/inference/v2/kernels/cutlass_ops/test_moe_gemm.py:96
Method
test_multi_image_replacement
Two separate runs of context tokens correspond to two images.
deepspeed/sequence/test_autosp.py:575
Method
test_multi_image_replacement
Two vision blocks are handled independently.
deepspeed/sequence/test_autosp.py:685
Method
test_multi_image_splice
Two placeholders per sample → visual tokens split evenly between them.
deepspeed/sequence/test_autosp.py:449
Method
test_multi_output_leaf_module_thread_safety
Test that leaf modules returning multiple tensors work correctly with autograd multithreading. This tests the fix for https://github.com/deep
tests/unit/runtime/zero/test_zero_leaf_module.py:345
Method
test_multi_output_non_leaf_module_thread_safety
Ensure non-leaf modules returning multiple tensors remain thread-safe. This covers the multi-output autograd multithreading case without mark
tests/unit/runtime/zero/test_zero_leaf_module.py:385
Function
test_multi_parameter_layer
()
tests/unit/inference/v2/model_implementations/parameters/test_multi_parameter_layer.py:36
Function
test_multi_sequence
(head_size: int)
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_kv_copy.py:87
Function
test_multi_sequence_batch
Test sequentially adding new tokens to a batch and validate device data structures hold the appropriate data.
tests/unit/inference/v2/ragged/test_ragged_wrapper.py:68
Function
test_multi_sequences
(trained_emb: bool, head_size: int)
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_rotary_emb.py:228
Method
test_multi_step_no_state_leak
(self, zero_stage)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:198
Method
test_multi_tensor_leaf
(self, zero_stage, use_reentrant, dtype, param_persistence_threshold)
tests/unit/v1/zero/test_zero_user_backward.py:1786
Method
test_multimodal_model_wraps_both_branches
Both ViT and LLM attention layers must be replaced in a combined model.
deepspeed/sequence/test_autosp.py:255
Method
test_multimodal_outer_config_keeps_kv_head_split
(self)
tests/unit/v1/autotp/test_autotp_multiple_models.py:93
Function
test_multiple_all_gather_handles_wait_passes_dependency_by_keyword
()
tests/unit/runtime/zero/test_zero_context.py:65
Method
test_multiple_ctxts
(self, zero_stage, dtype)
tests/unit/runtime/test_no_sync_ctxt.py:118
Method
test_multiple_engines_combined_loss
Test that multiple engines work with combined loss.backward() without manual _backward_epilogue() This test compares the behavior with PyTorc
tests/unit/v1/zero/test_zero_user_backward.py:533
Method
test_multiple_patterns
(self)
tests/unit/module_inject/test_tp_plan_converter.py:78
Function
test_multiple_prompts
Test multiple prompts in a single batch.
tests/unit/inference/v2/modules/test_blocked_attn.py:140
Function
test_multiple_prompts
Test multiple prompts in a single batch.
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_flash.py:146
Function
test_multiple_request_boundaries_before_step
(tmp_path, zero_stage, cpu_offload, accumulation_dtype, checkpointed)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:283
Function
test_multiple_request_boundaries_host_accumulator
(tmp_path, accumulation_dtype, checkpointed)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:299
Function
test_multiple_sequences
Validate support on more multi-sequence inputs.
tests/unit/inference/v2/kernels/ragged_ops/test_logits_gather.py:60
Method
test_multiple_subgroups
Test that different subgroups maintain independent state.
tests/unit/ops/adam/test_cpu_adam.py:669
Method
test_muon_adam_learning_rate_overrides
(self, optimizer_params, expected_muon_lr, expected_adam_lr)
tests/unit/v1/ops/muon/test_muon_partial_training.py:199
Method
test_muon_aux_adam_backend_dispatch
(self, adam_w_mode, expected_optimizer)
tests/unit/v1/ops/muon/test_muon_partial_training.py:225
Function
test_muon_aux_adam_falls_back_to_inline_update
(adam_w_mode, optimizer_class)
tests/unit/v1/ops/muon/test_muon_partial_training.py:276
Function
test_muon_aux_adam_falls_back_when_backend_initialization_fails
()
tests/unit/v1/ops/muon/test_muon_partial_training.py:298
Function
test_muon_aux_adam_loads_legacy_inline_state_with_backend_defaults
()
tests/unit/v1/ops/muon/test_muon_partial_training.py:369
Function
test_muon_aux_adam_matches_torch
(optimizer_class)
tests/unit/v1/ops/muon/test_muon_partial_training.py:251
Function
test_muon_aux_adam_passes_step_id_to_sequential_zenflow
()
tests/unit/v1/ops/muon/test_muon_partial_training.py:313
Function
test_muon_aux_adam_rebinds_zero_parameter_groups
()
tests/unit/v1/ops/muon/test_muon_partial_training.py:334
Function
test_muon_lr_and_adam_lr_still_override_the_shared_lr
()
tests/unit/runtime/zero/test_muon_param_groups.py:43
Method
test_muon_update_is_called
(self, zero_init)
tests/unit/runtime/zero/test_muon_use_muon_under_zero_init.py:85
Method
test_muon_with_all_trainable_params
Test when all parameters are trainable. This should work fine as both Muon and AdamW parameter groups will be non-empty.
tests/unit/v1/ops/muon/test_muon_partial_training.py:67
Function
test_muon_with_aux_adam_orthogonalizes_a_tagged_projection_per_head
`MuonWithAuxAdam.step` is the path taken with no ZeRO optimizer to do the work.
tests/unit/runtime/zero/test_per_head_muon.py:890
Method
test_muon_with_mixed_trainable_params
Test when trainable parameters use both optimizers. This is the normal case where: - Some trainable params have use_muon=Tru
tests/unit/v1/ops/muon/test_muon_partial_training.py:143
Method
test_muon_with_optimizer_offload
(self, zero_stage)
tests/unit/v1/ops/muon/test_muon.py:191
Method
test_muon_with_partial_trainable_params_same_optimizer
Test the bug scenario: all trainable params use the same optimizer. This is the bug case where: - All trainable parameters h
tests/unit/v1/ops/muon/test_muon_partial_training.py:98
Function
test_mvapich_runner
(runner_info)
tests/unit/launcher/test_multinode_runner.py:151
Method
test_n1_inside_context
(self, zero_stage)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:219
Function
test_names_resolve_and_fall_back
()
tests/unit/utils/test_debug_name_maps.py:43
Method
test_narrow_dtypes_preserved
(self, dtype)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:119
← previous
next →
13,601–13,700 of 15,468, ranked by callers