MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Methodtest_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
Methodtest_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:186
Methodtest_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
Methodtest_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
Methodtest_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
Functiontest_shared_change_selects_all_importers
()
ci/test_tests_fetcher.py:135
Functiontest_shared_fixture_runs_all
()
ci/test_tests_fetcher.py:172
Methodtest_shared_plan_batch_keeps_distinct_payloads_and_revalidates
(self)
tests/unit/checkpoint/test_affine_transfer_executor.py:168
Functiontest_shared_plan_counts_once_per_request
()
tests/unit/checkpoint/test_affine_transfer_analysis.py:65
Methodtest_shared_plan_uses_each_buffer_and_rechecks_each_call
(self)
tests/unit/checkpoint/test_affine_transfer_executor.py:478
Functiontest_shared_prefill_fallback_repeats_prompt_cache
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1627
Functiontest_shared_prefill_hooks_reduce_prompt_and_expand_output
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1555
Functiontest_shared_prefill_rejects_graph_capture
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1618
Methodtest_shared_tail_and_router_logits_are_preserved
(self)
tests/unit/module_inject/test_auto_ep_comm.py:676
Functiontest_short_partition
()
tests/unit/runtime/utils/test_partition.py:124
Functiontest_short_partition_uniform
()
tests/unit/runtime/utils/test_partition.py:116
Methodtest_shutdown_in_nesting_init
(self)
tests/unit/runtime/zero/test_zero_nesting_init.py:56
Functiontest_side_effect_ops_survive_stock_inductor
()
tests/unit/v1/compile/test_offload_opt_states.py:141
Functiontest_silent_when_rank_has_one_core
(monkeypatch, cores)
tests/unit/ops/adam/test_cpu_adam_threads.py:47
Functiontest_silent_when_threads_are_set
(monkeypatch, cores, omp)
tests/unit/ops/adam/test_cpu_adam_threads.py:37
Methodtest_silu_gated_experts_pass_the_check
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:1137
Methodtest_silu_mul_matches_reference
(self)
tests/unit/module_inject/test_segment_ki_kernels.py:773
Functiontest_simple_moe_layer
()
tests/unit/inference/v2/model_implementations/parameters/test_parameter_list.py:38
Methodtest_single_backward_across_multiple_steps
(self, zero_stage)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:133
Methodtest_single_backward_unchanged
(self, zero_stage)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:121
Functiontest_single_boundary_offload_avoids_auxiliary_storage_and_copy
(monkeypatch, low_precision)
tests/unit/v1/zero/test_zero2_gradient_safety.py:170
Functiontest_single_device_muon_training_preserves_loss_scale
The same invariant through a real optimizer step rather than the kernel alone.
tests/unit/v1/ops/muon/test_muon_gram_normalization.py:50
Methodtest_single_exchange_derives_rank_splits
(self, monkeypatch, scenario, ep_rank)
tests/unit/v1/moe/test_autoep_unit.py:1769
Functiontest_single_expert
Validate that the GEMM kernel produces identical results for a single GEMM instance.
tests/unit/inference/v2/kernels/cutlass_ops/test_moe_gemm.py:30
Functiontest_single_head_reproduces_the_full_matrix_path
num_heads=1 is the whole projection, so it has to agree with the existing behaviour.
tests/unit/runtime/zero/test_per_head_muon.py:98
Methodtest_single_image_fused_shape
One image placeholder per sample → fused length = text_len - 1 + num_visual.
deepspeed/sequence/test_autosp.py:407
Methodtest_single_input
(self)
tests/unit/runtime/comm/test_coalesced_collectives.py:22
Functiontest_single_mapping_gating
Evaluate our expert stacking behavior in complete isolation. This ensures all tokens mapped to the same expert are getting unique offsets and
tests/unit/inference/v2/kernels/ragged_ops/test_top_k_gating.py:97
Functiontest_single_process_uses_all_cores
(monkeypatch, cores)
tests/unit/ops/adam/test_cpu_adam_threads.py:54
Functiontest_single_prompt
(n_tokens: int)
tests/unit/inference/v2/modules/test_blocked_attn.py:129
Functiontest_single_prompt
(n_tokens: int)
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_flash.py:135
Methodtest_single_rank_gradient_accumulation_matches_one_large_micro_batch
(self)
tests/unit/v1/ops/muon/test_muon_zero3_grad_accum.py:141
Methodtest_single_rank_offloaded_gradient_accumulation_matches_one_large_micro_batch
(self)
tests/unit/v1/ops/muon/test_muon_zero3_grad_accum.py:155
Functiontest_single_sequence
(seq_params)
tests/unit/inference/v2/kernels/ragged_ops/test_atom_builder.py:23
Functiontest_single_sequence_batch
Test we successfully construct single sequence batches and the on device metadata is accurate.
tests/unit/inference/v2/ragged/test_ragged_wrapper.py:34
Functiontest_single_sequence_multiple_blocks
Validate that the copy works correctly
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_kv_copy.py:55
Functiontest_single_sequence_multiple_blocks
Validate that the copy works correctly
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_rotary_emb.py:186
Functiontest_single_sequence_single_block
Validate that the copy works correctly
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_kv_copy.py:22
Functiontest_single_sequence_single_block
Validate that the copy works correctly
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_rotary_emb.py:143
Functiontest_singleton_stride_contiguous_layout_round_trips
()
tests/unit/checkpoint/test_affine_shard_map.py:476
Functiontest_singleton_stride_out_of_bounds_is_refused
()
tests/unit/checkpoint/test_affine_shard_map.py:469
Functiontest_singleton_stride_overlap_is_refused
()
tests/unit/checkpoint/test_affine_shard_map.py:462
Methodtest_skip_recompute_combine_attaches_each_layer_to_its_decoder_layer
(self)
tests/unit/v1/moe/test_autoep_unit.py:2127
Methodtest_skip_recompute_combine_defaults_off_and_requires_the_deepep_route
(self)
tests/unit/v1/moe/test_autoep_unit.py:351
Methodtest_skip_recompute_combine_is_limited_to_checked_presets
(self)
tests/unit/v1/moe/test_autoep_unit.py:1563
Methodtest_skip_recompute_combine_rejects_pattern_overrides_even_with_supported_presets
(self, preset_model, pattern)
tests/unit/v1/moe/test_autoep_unit.py:381
Methodtest_skipped_step_does_not_reuse_invalid_gradient
(self)
tests/unit/v1/zero/test_reflow.py:2241
Methodtest_skipping_the_recomputed_combine_matches_the_normal_recompute
(self, row_weighting_impl, skewed_routing)
tests/unit/v1/moe/test_autoep_deepep_parity.py:796
Methodtest_skips_already_converted
(self)
tests/unit/runtime/zero/test_zero_late_module_attach.py:95
Functiontest_sliced_embedding_publishes_row_partition_metadata
(monkeypatch, vocab_parallel_lm_head)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:718
Methodtest_slot_runs_once_after_the_expert_backward
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:740
Methodtest_slow_gradient_copy_keeps_its_source
(self, precision, reduce_scatter, accumulation_steps, mixed_sizes)
tests/unit/v1/zero/test_reflow.py:2092
Functiontest_slurm_runner
(runner_info)
tests/unit/launcher/test_multinode_runner.py:65
Functiontest_slurm_runner_num_nodes_and_gpus
(runner_info, resource_flag, expected_srun_flag, expected_process_count)
tests/unit/launcher/test_multinode_runner.py:108
Functiontest_slurm_runner_rejects_unsupported_filter
(runner_info, resource_filter, expected_error)
tests/unit/launcher/test_multinode_runner.py:94
Functiontest_slurm_runner_resource_filter
(runner_info, resource_filter, expected_hosts, expected_node_count, expe
tests/unit/launcher/test_multinode_runner.py:77
Methodtest_sm_budget_and_qp_margin_are_configurable
(self)
tests/unit/module_inject/test_auto_ep_comm.py:69
Methodtest_small_gradient_and_update_relative_error
(self, field, multiplier)
tests/unit/v1/moe/test_autoep_grad_parity.py:376
Methodtest_small_parameter_model_output
(self, q_bits)
tests/unit/linear/test_quant_param.py:64
Methodtest_small_positive_topk_ratio
(self, stage)
tests/unit/runtime/zenflow/test_zf.py:188
Methodtest_smoke
(self, zero_stage)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:306
Functiontest_softmax
(batch, sequence, channels, dtype, use_triton_ops)
tests/unit/ops/transformer/inference/test_softmax.py:39
Methodtest_some_overflow
(self, zero_stage, offload_optimizer)
tests/unit/runtime/half_precision/test_zero_optim_overflow.py:148
Methodtest_some_overflow
(self)
tests/unit/runtime/half_precision/test_dynamic_loss_scale.py:105
Methodtest_some_overflow
(self)
tests/unit/runtime/half_precision/test_dynamic_loss_scale.py:245
Methodtest_source_and_target_ranks_do_not_overlap
(self, world_size)
tests/unit/checkpoint/test_affine_transfer_executor.py:282
Methodtest_sources_split_across_groups_raise
``module_list`` storage packs one grouped tensor from one weight per expert. If the caller put those weights in different param groups the rep
tests/unit/v1/moe/test_autoep_unit.py:2932
Methodtest_sp_loss_backward_stability
Regression test for Issue #7672. Verifies that using all_reduce for loss aggregation is stable when sequence_parallel_size <
tests/unit/v1/sequence_parallelism/test_ulysses.py:615
Functiontest_sparse_attention_config_is_rejected
()
tests/unit/runtime/test_ds_config_dict.py:319
Methodtest_sparse_dispatch_matches_dense
(self, k)
tests/unit/v1/moe/test_moe.py:395
Functiontest_sparse_gradients_config_is_rejected
()
tests/unit/runtime/test_ds_config_dict.py:344
Functiontest_sparse_mla_at_glm52_sizes
64 heads, top-k 2048 (32 index blocks of 64 per row) and 16,384 tokens, the shapes of a GLM-5.2 run. The float32 reference is evaluated on 256 ran
tests/unit/v1/models/test_glm_moe_dsa.py:416
Functiontest_sparse_mla_matches_reference
(heads)
tests/unit/v1/models/test_glm_moe_dsa.py:51
Methodtest_sparse_top2_routing
(self)
tests/unit/v1/moe/test_moe.py:423
Methodtest_sparse_topk_routing
(self)
tests/unit/v1/moe/test_moe.py:431
Functiontest_split_affinity
(cores, perc, expected_zf, expected_pt)
tests/unit/runtime/zenflow/test_zf.py:207
Methodtest_split_and_unsplit_gradients_match_the_global_reference
(self, zero_stage, micro_batches)
tests/unit/v1/half_precision/test_bf16.py:599
Methodtest_split_matches_whole_sequence
(self)
tests/unit/v1/models/test_glm_moe_dsa.py:357
Functiontest_split_qkv_architectures_tag_only_qkv
Real HF configs rather than a stand-in, so the leaf names are the ones models actually use.
tests/unit/runtime/zero/test_per_head_muon.py:270
Functiontest_splits_count_against_the_budget
()
tests/unit/checkpoint/test_affine_replica_policy.py:338
Functiontest_squad
()
tests/model/run_sanity_check.py:43
Functiontest_ssm_cloudwatch_output_is_incremental_paginated_and_not_replayed_at_terminal
()
ci/test_torch_latest.py:1236
Functiontest_ssm_cloudwatch_read_failure_preserves_test_result_and_cleanup
()
ci/test_torch_latest.py:1363
Functiontest_ssm_diagnostic_paths_redact_known_instance_and_command_ids
()
ci/test_torch_latest.py:1200
Functiontest_ssm_slow_log_reads_do_not_turn_success_into_timeout
()
ci/test_torch_latest.py:1318
Functiontest_stage3_autotp_universal_conversion_reassembles_full_weight
(tmp_path)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:731
Functiontest_stage3_autotp_universal_conversion_replicated_param
(tmp_path)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:830
Functiontest_stage3_autotp_universal_conversion_uneven_tp
(tmp_path)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:767
Functiontest_stage3_no_tp_universal_conversion_unchanged
(tmp_path)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:803
Functiontest_stage3_overflow_state_is_reset_for_next_non_fp16_step
()
tests/unit/v1/zero/test_invalid_grad_norm.py:102
Functiontest_stage3_raw_overflow_replaces_stale_global_norm
()
tests/unit/v1/zero/test_invalid_grad_norm.py:110
Functiontest_stage3_rejects_invalid_group_norm_before_optimizer_step
()
tests/unit/v1/zero/test_invalid_grad_norm.py:83
Methodtest_stage_3_output_type
(self, output_type)
tests/unit/runtime/zero/test_zero_context_return.py:171
Functiontest_stage_enum_accepts_int_and_enum
`stage` can be passed as either an int or the ZeroStageEnum.
tests/unit/runtime/zenflow/test_zf_config.py:14
Methodtest_stage_to_global
(self)
tests/unit/runtime/pipe/test_topology.py:190
← previousnext →14,501–14,600 of 15,468, ranked by callers