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
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:186
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:168
Function
test_shared_plan_counts_once_per_request
()
tests/unit/checkpoint/test_affine_transfer_analysis.py:65
Method
test_shared_plan_uses_each_buffer_and_rechecks_each_call
(self)
tests/unit/checkpoint/test_affine_transfer_executor.py:478
Function
test_shared_prefill_fallback_repeats_prompt_cache
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1627
Function
test_shared_prefill_hooks_reduce_prompt_and_expand_output
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1555
Function
test_shared_prefill_rejects_graph_capture
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1618
Method
test_shared_tail_and_router_logits_are_preserved
(self)
tests/unit/module_inject/test_auto_ep_comm.py:676
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
Function
test_side_effect_ops_survive_stock_inductor
()
tests/unit/v1/compile/test_offload_opt_states.py:141
Function
test_silent_when_rank_has_one_core
(monkeypatch, cores)
tests/unit/ops/adam/test_cpu_adam_threads.py:47
Function
test_silent_when_threads_are_set
(monkeypatch, cores, omp)
tests/unit/ops/adam/test_cpu_adam_threads.py:37
Method
test_silu_gated_experts_pass_the_check
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:1137
Method
test_silu_mul_matches_reference
(self)
tests/unit/module_inject/test_segment_ki_kernels.py:773
Function
test_simple_moe_layer
()
tests/unit/inference/v2/model_implementations/parameters/test_parameter_list.py:38
Method
test_single_backward_across_multiple_steps
(self, zero_stage)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:133
Method
test_single_backward_unchanged
(self, zero_stage)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:121
Function
test_single_boundary_offload_avoids_auxiliary_storage_and_copy
(monkeypatch, low_precision)
tests/unit/v1/zero/test_zero2_gradient_safety.py:170
Function
test_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
Method
test_single_exchange_derives_rank_splits
(self, monkeypatch, scenario, ep_rank)
tests/unit/v1/moe/test_autoep_unit.py:1769
Function
test_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
Function
test_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
Method
test_single_image_fused_shape
One image placeholder per sample → fused length = text_len - 1 + num_visual.
deepspeed/sequence/test_autosp.py:407
Method
test_single_input
(self)
tests/unit/runtime/comm/test_coalesced_collectives.py:22
Function
test_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
Function
test_single_process_uses_all_cores
(monkeypatch, cores)
tests/unit/ops/adam/test_cpu_adam_threads.py:54
Function
test_single_prompt
(n_tokens: int)
tests/unit/inference/v2/modules/test_blocked_attn.py:129
Function
test_single_prompt
(n_tokens: int)
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_flash.py:135
Method
test_single_rank_gradient_accumulation_matches_one_large_micro_batch
(self)
tests/unit/v1/ops/muon/test_muon_zero3_grad_accum.py:141
Method
test_single_rank_offloaded_gradient_accumulation_matches_one_large_micro_batch
(self)
tests/unit/v1/ops/muon/test_muon_zero3_grad_accum.py:155
Function
test_single_sequence
(seq_params)
tests/unit/inference/v2/kernels/ragged_ops/test_atom_builder.py:23
Function
test_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
Function
test_single_sequence_multiple_blocks
Validate that the copy works correctly
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_kv_copy.py:55
Function
test_single_sequence_multiple_blocks
Validate that the copy works correctly
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_rotary_emb.py:186
Function
test_single_sequence_single_block
Validate that the copy works correctly
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_kv_copy.py:22
Function
test_single_sequence_single_block
Validate that the copy works correctly
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_rotary_emb.py:143
Function
test_singleton_stride_contiguous_layout_round_trips
()
tests/unit/checkpoint/test_affine_shard_map.py:476
Function
test_singleton_stride_out_of_bounds_is_refused
()
tests/unit/checkpoint/test_affine_shard_map.py:469
Function
test_singleton_stride_overlap_is_refused
()
tests/unit/checkpoint/test_affine_shard_map.py:462
Method
test_skip_recompute_combine_attaches_each_layer_to_its_decoder_layer
(self)
tests/unit/v1/moe/test_autoep_unit.py:2127
Method
test_skip_recompute_combine_defaults_off_and_requires_the_deepep_route
(self)
tests/unit/v1/moe/test_autoep_unit.py:351
Method
test_skip_recompute_combine_is_limited_to_checked_presets
(self)
tests/unit/v1/moe/test_autoep_unit.py:1563
Method
test_skip_recompute_combine_rejects_pattern_overrides_even_with_supported_presets
(self, preset_model, pattern)
tests/unit/v1/moe/test_autoep_unit.py:381
Method
test_skipped_step_does_not_reuse_invalid_gradient
(self)
tests/unit/v1/zero/test_reflow.py:2241
Method
test_skipping_the_recomputed_combine_matches_the_normal_recompute
(self, row_weighting_impl, skewed_routing)
tests/unit/v1/moe/test_autoep_deepep_parity.py:796
Method
test_skips_already_converted
(self)
tests/unit/runtime/zero/test_zero_late_module_attach.py:95
Function
test_sliced_embedding_publishes_row_partition_metadata
(monkeypatch, vocab_parallel_lm_head)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:718
Method
test_slot_runs_once_after_the_expert_backward
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:740
Method
test_slow_gradient_copy_keeps_its_source
(self, precision, reduce_scatter, accumulation_steps, mixed_sizes)
tests/unit/v1/zero/test_reflow.py:2092
Function
test_slurm_runner
(runner_info)
tests/unit/launcher/test_multinode_runner.py:65
Function
test_slurm_runner_num_nodes_and_gpus
(runner_info, resource_flag, expected_srun_flag, expected_process_count)
tests/unit/launcher/test_multinode_runner.py:108
Function
test_slurm_runner_rejects_unsupported_filter
(runner_info, resource_filter, expected_error)
tests/unit/launcher/test_multinode_runner.py:94
Function
test_slurm_runner_resource_filter
(runner_info, resource_filter, expected_hosts, expected_node_count, expe
tests/unit/launcher/test_multinode_runner.py:77
Method
test_sm_budget_and_qp_margin_are_configurable
(self)
tests/unit/module_inject/test_auto_ep_comm.py:69
Method
test_small_gradient_and_update_relative_error
(self, field, multiplier)
tests/unit/v1/moe/test_autoep_grad_parity.py:376
Method
test_small_parameter_model_output
(self, q_bits)
tests/unit/linear/test_quant_param.py:64
Method
test_small_positive_topk_ratio
(self, stage)
tests/unit/runtime/zenflow/test_zf.py:188
Method
test_smoke
(self, zero_stage)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:306
Function
test_softmax
(batch, sequence, channels, dtype, use_triton_ops)
tests/unit/ops/transformer/inference/test_softmax.py:39
Method
test_some_overflow
(self, zero_stage, offload_optimizer)
tests/unit/runtime/half_precision/test_zero_optim_overflow.py:148
Method
test_some_overflow
(self)
tests/unit/runtime/half_precision/test_dynamic_loss_scale.py:105
Method
test_some_overflow
(self)
tests/unit/runtime/half_precision/test_dynamic_loss_scale.py:245
Method
test_source_and_target_ranks_do_not_overlap
(self, world_size)
tests/unit/checkpoint/test_affine_transfer_executor.py:282
Method
test_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
Method
test_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
Function
test_sparse_attention_config_is_rejected
()
tests/unit/runtime/test_ds_config_dict.py:319
Method
test_sparse_dispatch_matches_dense
(self, k)
tests/unit/v1/moe/test_moe.py:395
Function
test_sparse_gradients_config_is_rejected
()
tests/unit/runtime/test_ds_config_dict.py:344
Function
test_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
Function
test_sparse_mla_matches_reference
(heads)
tests/unit/v1/models/test_glm_moe_dsa.py:51
Method
test_sparse_top2_routing
(self)
tests/unit/v1/moe/test_moe.py:423
Method
test_sparse_topk_routing
(self)
tests/unit/v1/moe/test_moe.py:431
Function
test_split_affinity
(cores, perc, expected_zf, expected_pt)
tests/unit/runtime/zenflow/test_zf.py:207
Method
test_split_and_unsplit_gradients_match_the_global_reference
(self, zero_stage, micro_batches)
tests/unit/v1/half_precision/test_bf16.py:599
Method
test_split_matches_whole_sequence
(self)
tests/unit/v1/models/test_glm_moe_dsa.py:357
Function
test_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
Function
test_splits_count_against_the_budget
()
tests/unit/checkpoint/test_affine_replica_policy.py:338
Function
test_squad
()
tests/model/run_sanity_check.py:43
Function
test_ssm_cloudwatch_output_is_incremental_paginated_and_not_replayed_at_terminal
()
ci/test_torch_latest.py:1236
Function
test_ssm_cloudwatch_read_failure_preserves_test_result_and_cleanup
()
ci/test_torch_latest.py:1363
Function
test_ssm_diagnostic_paths_redact_known_instance_and_command_ids
()
ci/test_torch_latest.py:1200
Function
test_ssm_slow_log_reads_do_not_turn_success_into_timeout
()
ci/test_torch_latest.py:1318
Function
test_stage3_autotp_universal_conversion_reassembles_full_weight
(tmp_path)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:731
Function
test_stage3_autotp_universal_conversion_replicated_param
(tmp_path)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:830
Function
test_stage3_autotp_universal_conversion_uneven_tp
(tmp_path)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:767
Function
test_stage3_no_tp_universal_conversion_unchanged
(tmp_path)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:803
Function
test_stage3_overflow_state_is_reset_for_next_non_fp16_step
()
tests/unit/v1/zero/test_invalid_grad_norm.py:102
Function
test_stage3_raw_overflow_replaces_stale_global_norm
()
tests/unit/v1/zero/test_invalid_grad_norm.py:110
Function
test_stage3_rejects_invalid_group_norm_before_optimizer_step
()
tests/unit/v1/zero/test_invalid_grad_norm.py:83
Method
test_stage_3_output_type
(self, output_type)
tests/unit/runtime/zero/test_zero_context_return.py:171
Function
test_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
Method
test_stage_to_global
(self)
tests/unit/runtime/pipe/test_topology.py:190
← previous
next →
14,501–14,600 of 15,468, ranked by callers