MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

Functiontest_module_compile_failure_cleans_native_state_once_before_destroy
(monkeypatch)
tests/unit/compile/test_zero3_grad_dtype.py:420
Functiontest_module_import_is_modal_free
()
ci/test_torch_latest.py:332
Methodtest_module_list_mixed_expert_requires_grad_flags_are_rejected
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:2201
Methodtest_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:2944
Methodtest_module_list_replacement_preserves_frozen_experts_and_trainable_router
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:2125
Methodtest_module_list_sources_are_this_ranks_local_experts
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:2929
Methodtest_module_list_zero_source_gathers_all_experts_in_global_order
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:2155
Methodtest_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
Methodtest_moe_backward_compat_bool
(self)
tests/unit/inference/test_inference_config.py:86
Functiontest_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:84
Functiontest_moe_gather_normalize_scales
()
tests/unit/inference/v2/kernels/ragged_ops/test_moe_gather.py:105
Functiontest_moe_residual_matmul
(hidden_dim, c, dtype)
tests/unit/ops/transformer/inference/test_moe_res_matmult.py:31
Functiontest_moe_scatter
(n_tokens, n_experts, n_top_k, do_padding)
tests/unit/inference/v2/kernels/ragged_ops/test_moe_scatter.py:32
Methodtest_mom
(self, min_mom, max_mom, decay_rate, step_size)
tests/unit/runtime/test_lr_schedulers.py:400
Functiontest_moq_and_pld_config_is_rejected
(config_key, value)
tests/unit/runtime/test_ds_config_dict.py:235
Methodtest_move_to_accelerator
(self)
tests/unit/linear/test_quant_param.py:39
Methodtest_mp1_gpu1_node1_zero1
(self)
tests/model/Megatron_GPT2/run_func_test.py:72
Methodtest_mp1_gpu1_node1_zero2
(self)
tests/model/Megatron_GPT2/run_func_test.py:144
Methodtest_mp1_gpu1_node1_zero2_ds_offload
(self)
tests/model/Megatron_GPT2/run_func_test.py:226
Methodtest_mp1_gpu1_node1_zero2_torch_offload
(self)
tests/model/Megatron_GPT2/run_func_test.py:332
Methodtest_mp1_gpu2_load_gpu1_node1_with_zero1
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:127
Methodtest_mp1_gpu2_load_gpu1_node1_with_zero2
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:173
Methodtest_mp1_gpu2_load_gpu1_node1_with_zero2_offload
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:196
Methodtest_mp1_gpu2_load_gpu4_node1_with_zero1
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:150
Methodtest_mp1_gpu2_load_gpu4_node1_with_zero2
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:220
Methodtest_mp1_gpu2_load_gpu4_node1_with_zero2_offload
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:243
Methodtest_mp1_gpu2_node1_fp16
(self)
tests/model/Megatron_GPT2/run_func_test.py:54
Methodtest_mp1_gpu2_node1_zero1
(self)
tests/model/Megatron_GPT2/run_func_test.py:90
Methodtest_mp1_gpu2_node1_zero2
(self)
tests/model/Megatron_GPT2/run_func_test.py:162
Methodtest_mp1_gpu2_node1_zero2_ds_offload
(self)
tests/model/Megatron_GPT2/run_func_test.py:244
Methodtest_mp1_gpu2_node1_zero2_torch_offload
(self)
tests/model/Megatron_GPT2/run_func_test.py:352
Methodtest_mp2_gpu2_load_gpu4_node1_with_zero1
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:290
Methodtest_mp2_gpu2_load_gpu4_node1_with_zero2
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:360
Methodtest_mp2_gpu2_load_gpu4_node1_with_zero2_offload
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:383
Methodtest_mp2_gpu4_load_gpu2_node1_with_zero1
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:267
Methodtest_mp2_gpu4_load_gpu2_node1_with_zero2
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:313
Methodtest_mp2_gpu4_load_gpu2_node1_with_zero2_offload
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:336
Methodtest_mp2_gpu4_node1_with_zero1
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:60
Methodtest_mp2_gpu4_node1_with_zero2
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:82
Methodtest_mp2_gpu4_node1_with_zero2_offload
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:104
Methodtest_mp2_gpu4_node1_without_zero
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:407
Methodtest_mp2_gpu4_node1_zero1
(self)
tests/model/Megatron_GPT2/run_func_test.py:108
Methodtest_mp2_gpu4_node1_zero2
(self)
tests/model/Megatron_GPT2/run_func_test.py:180
Methodtest_mp2_gpu4_node1_zero2_ds_offload
(self)
tests/model/Megatron_GPT2/run_func_test.py:284
Methodtest_mp2_gpu4_node1_zero2_gas
(self)
tests/model/Megatron_GPT2/run_func_test.py:262
Methodtest_mp2_gpu4_node1_zero2_torch_offload
(self)
tests/model/Megatron_GPT2/run_func_test.py:372
Methodtest_mp4_gpu4_node1_zero1
(self)
tests/model/Megatron_GPT2/run_func_test.py:126
Methodtest_mp4_gpu4_node1_zero2
(self)
tests/model/Megatron_GPT2/run_func_test.py:203
Methodtest_mp4_gpu4_node1_zero2_ds_offload
(self)
tests/model/Megatron_GPT2/run_func_test.py:308
Methodtest_mp4_gpu4_node1_zero2_torch_offload
(self)
tests/model/Megatron_GPT2/run_func_test.py:397
Functiontest_mpich_runner
(runner_info)
tests/unit/launcher/test_multinode_runner.py:58
Methodtest_mpt_alibi_covers_every_head_of_an_uneven_split
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:617
Methodtest_multi_backward_across_multiple_steps
(self, zero_stage)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:127
Methodtest_multi_backward_bit_exact
(self, zero_stage, contiguous_gradients, overlap_comm)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:127
Methodtest_multi_backward_matches_no_offload
(self, zero_stage)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:114
Methodtest_multi_block
(self, zero_stage, use_reentrant, dtype, param_persistence_threshold)
tests/unit/v1/zero/test_zero_user_backward.py:1759
Methodtest_multi_bucket_flush
(self, zero_stage)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:141
Functiontest_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:91
Methodtest_multi_image_replacement
Two separate runs of context tokens correspond to two images.
deepspeed/sequence/test_autosp.py:575
Methodtest_multi_image_replacement
Two vision blocks are handled independently.
deepspeed/sequence/test_autosp.py:685
Methodtest_multi_image_splice
Two placeholders per sample → visual tokens split evenly between them.
deepspeed/sequence/test_autosp.py:449
Methodtest_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
Methodtest_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
Functiontest_multi_parameter_layer
()
tests/unit/inference/v2/model_implementations/parameters/test_multi_parameter_layer.py:36
Functiontest_multi_sequence
(head_size: int)
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_kv_copy.py:82
Functiontest_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
Functiontest_multi_sequences
(trained_emb: bool, head_size: int)
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_rotary_emb.py:223
Methodtest_multi_step_no_state_leak
(self, zero_stage)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:198
Methodtest_multi_tensor_leaf
(self, zero_stage, use_reentrant, dtype, param_persistence_threshold)
tests/unit/v1/zero/test_zero_user_backward.py:1786
Methodtest_multimodal_model_wraps_both_branches
Both ViT and LLM attention layers must be replaced in a combined model.
deepspeed/sequence/test_autosp.py:255
Methodtest_multimodal_outer_config_keeps_kv_head_split
(self)
tests/unit/v1/autotp/test_autotp_multiple_models.py:93
Functiontest_multiple_all_gather_handles_wait_passes_dependency_by_keyword
()
tests/unit/runtime/zero/test_zero_context.py:65
Methodtest_multiple_ctxts
(self, zero_stage, dtype)
tests/unit/runtime/test_no_sync_ctxt.py:118
Methodtest_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
Methodtest_multiple_patterns
(self)
tests/unit/module_inject/test_tp_plan_converter.py:78
Functiontest_multiple_prompts
Test multiple prompts in a single batch.
tests/unit/inference/v2/modules/test_blocked_attn.py:140
Functiontest_multiple_prompts
Test multiple prompts in a single batch.
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_flash.py:142
Functiontest_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
Functiontest_multiple_request_boundaries_host_accumulator
(tmp_path, accumulation_dtype, checkpointed)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:299
Functiontest_multiple_sequences
Validate support on more multi-sequence inputs.
tests/unit/inference/v2/kernels/ragged_ops/test_logits_gather.py:55
Methodtest_multiple_subgroups
Test that different subgroups maintain independent state.
tests/unit/ops/adam/test_cpu_adam.py:539
Methodtest_muon_adam_learning_rate_overrides
(self, optimizer_params, expected_muon_lr, expected_adam_lr)
tests/unit/v1/ops/muon/test_muon_partial_training.py:197
Methodtest_muon_aux_adam_backend_dispatch
(self, adam_w_mode, expected_optimizer)
tests/unit/v1/ops/muon/test_muon_partial_training.py:223
Functiontest_muon_aux_adam_falls_back_to_inline_update
(adam_w_mode, optimizer_class)
tests/unit/v1/ops/muon/test_muon_partial_training.py:274
Functiontest_muon_aux_adam_falls_back_when_backend_initialization_fails
()
tests/unit/v1/ops/muon/test_muon_partial_training.py:296
Functiontest_muon_aux_adam_loads_legacy_inline_state_with_backend_defaults
()
tests/unit/v1/ops/muon/test_muon_partial_training.py:367
Functiontest_muon_aux_adam_matches_torch
(optimizer_class)
tests/unit/v1/ops/muon/test_muon_partial_training.py:249
Functiontest_muon_aux_adam_passes_step_id_to_sequential_zenflow
()
tests/unit/v1/ops/muon/test_muon_partial_training.py:311
Functiontest_muon_aux_adam_rebinds_zero_parameter_groups
()
tests/unit/v1/ops/muon/test_muon_partial_training.py:332
Functiontest_muon_lr_and_adam_lr_still_override_the_shared_lr
()
tests/unit/runtime/zero/test_muon_param_groups.py:43
Methodtest_muon_update_is_called
(self, zero_init)
tests/unit/runtime/zero/test_muon_use_muon_under_zero_init.py:85
Methodtest_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:65
Methodtest_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:141
Methodtest_muon_with_optimizer_offload
(self, zero_stage)
tests/unit/v1/ops/muon/test_muon.py:191
Methodtest_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:96
Functiontest_mvapich_runner
(runner_info)
tests/unit/launcher/test_multinode_runner.py:151
Methodtest_n1_inside_context
(self, zero_stage)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:219
Functiontest_names_resolve_and_fall_back
()
tests/unit/utils/test_debug_name_maps.py:43
Methodtest_narrow_dtypes_preserved
(self, dtype)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:119
Methodtest_narrow_dtypes_preserved
(self, zero_stage, dtype)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:178
← previousnext →12,901–13,000 of 14,579, ranked by callers