MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

Functiontest_side_effect_ops_survive_stock_inductor
()
tests/unit/v1/compile/test_offload_opt_states.py:141
Methodtest_silu_gated_experts_pass_the_check
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:625
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:1711
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:25
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:96
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:92
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:131
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:18
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:50
Functiontest_single_sequence_multiple_blocks
Validate that the copy works correctly
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_rotary_emb.py:181
Functiontest_single_sequence_single_block
Validate that the copy works correctly
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_kv_copy.py:17
Functiontest_single_sequence_single_block
Validate that the copy works correctly
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_rotary_emb.py:138
Functiontest_singleton_stride_contiguous_layout_round_trips
()
tests/unit/checkpoint/test_affine_shard_map.py:473
Functiontest_singleton_stride_out_of_bounds_is_refused
()
tests/unit/checkpoint/test_affine_shard_map.py:466
Functiontest_singleton_stride_overlap_is_refused
()
tests/unit/checkpoint/test_affine_shard_map.py:459
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:589
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:64
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:238
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:2861
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:479
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:268
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:695
Functiontest_stage3_autotp_universal_conversion_replicated_param
(tmp_path)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:794
Functiontest_stage3_autotp_universal_conversion_uneven_tp
(tmp_path)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:731
Functiontest_stage3_no_tp_universal_conversion_unchanged
(tmp_path)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:767
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
Functiontest_stale_registry_rank_lists_are_rejected
()
tests/unit/v1/moe/test_autoep_autotp_folding_groups.py:46
Methodtest_standard_comm_and_ep1_keep_the_existing_path
(self)
tests/unit/module_inject/test_auto_ep_comm.py:649
Methodtest_standard_cross_entropy_matches_unsharded_reference
(self)
tests/unit/v1/autotp/test_autotp_training.py:1379
Functiontest_start_method_safety
(method)
tests/unit/runtime/test_ds_initialize.py:29
Functiontest_state_increment
(Opt)
tests/unit/ops/adam/test_zf_torch_adam.py:139
Functiontest_static_cache_compact_identity_keeps_active_rows_and_clears_tail
()
tests/unit/utils/test_static_cache.py:147
Functiontest_static_cache_compact_preserves_rows_and_positions
()
tests/unit/utils/test_static_cache.py:128
Functiontest_static_cache_constructor_supports_max_batch_keyword
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:387
Functiontest_static_cache_falls_back_to_derived_head_dim
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1775
Functiontest_static_cache_memory_skips_layers_without_kv
()
tests/unit/utils/test_static_cache.py:204
Functiontest_static_cache_preallocates_with_config_head_dim
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1764
Functiontest_static_cache_query_offset_builds_native_causal_mask
(position, allowed)
tests/unit/utils/test_static_cache.py:31
Functiontest_static_cache_query_offset_precedes_current_write
(position, expected)
tests/unit/utils/test_static_cache.py:13
Functiontest_static_cache_query_offset_supports_graph_replay
()
tests/unit/utils/test_static_cache.py:52
Functiontest_static_cache_trim_left_shifts_values_and_clears_tail
()
tests/unit/utils/test_static_cache.py:166
Functiontest_static_graph_capture_receives_a_prebuilt_4d_mask
The captured decode forward must not get a 2-D attention_mask. Transformers builds its SDPA mask from a 2-D mask with host-side checks (``padding
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1782
Functiontest_static_graph_matches_native_llama_generation
(attn_implementation)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:198
Functiontest_static_graph_rejects_flash_attention
(graph_capture_accelerator)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:148
Functiontest_static_graph_uses_prefill_kv_shape
(local_heads, monkeypatch)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:80
Functiontest_static_layer_accepts_active_prefix_of_cache_rows
()
tests/unit/utils/test_static_cache.py:192
Functiontest_static_layer_per_row_positions_support_graph_replay
()
tests/unit/utils/test_static_cache.py:87
Functiontest_static_layer_rejects_mismatched_per_row_positions
()
tests/unit/utils/test_static_cache.py:183
Functiontest_static_layer_rejects_out_of_bounds_per_row_positions
(position)
tests/unit/utils/test_static_cache.py:120
Functiontest_static_layer_supports_per_row_decode_positions
()
tests/unit/utils/test_static_cache.py:71
Methodtest_static_scale_and_zero_grad_after_step
(self)
tests/unit/runtime/test_ds_initialize.py:250
Functiontest_static_scaler_is_quiet_without_overflow
(warnings)
tests/unit/runtime/half_precision/test_static_loss_scale_overflow.py:31
Functiontest_static_scaler_reports_the_skipped_step
(warnings)
tests/unit/runtime/half_precision/test_static_loss_scale_overflow.py:22
Methodtest_step
(self, batch, batch_idx)
tests/lightning/test_simple.py:43
Methodtest_step_always_applies_update
Every step() applies an optimizer update regardless of gradient_accumulation_steps.
tests/unit/v1/zero/test_zero_user_backward.py:1877
← previousnext →13,701–13,800 of 14,579, ranked by callers