Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ functions
Functions
14,579 in github.com/deepspeedai/DeepSpeed
⨍
Functions
14,579
◇
Types & classes
2,353
↳
Endpoints
92
Function
test_side_effect_ops_survive_stock_inductor
()
tests/unit/v1/compile/test_offload_opt_states.py:141
Method
test_silu_gated_experts_pass_the_check
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:625
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:1711
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:25
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:96
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:92
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:131
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:18
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:50
Function
test_single_sequence_multiple_blocks
Validate that the copy works correctly
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_rotary_emb.py:181
Function
test_single_sequence_single_block
Validate that the copy works correctly
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_kv_copy.py:17
Function
test_single_sequence_single_block
Validate that the copy works correctly
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_rotary_emb.py:138
Function
test_singleton_stride_contiguous_layout_round_trips
()
tests/unit/checkpoint/test_affine_shard_map.py:473
Function
test_singleton_stride_out_of_bounds_is_refused
()
tests/unit/checkpoint/test_affine_shard_map.py:466
Function
test_singleton_stride_overlap_is_refused
()
tests/unit/checkpoint/test_affine_shard_map.py:459
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:589
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:64
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:238
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:2861
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:479
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:268
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:695
Function
test_stage3_autotp_universal_conversion_replicated_param
(tmp_path)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:794
Function
test_stage3_autotp_universal_conversion_uneven_tp
(tmp_path)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:731
Function
test_stage3_no_tp_universal_conversion_unchanged
(tmp_path)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:767
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
Function
test_stale_registry_rank_lists_are_rejected
()
tests/unit/v1/moe/test_autoep_autotp_folding_groups.py:46
Method
test_standard_comm_and_ep1_keep_the_existing_path
(self)
tests/unit/module_inject/test_auto_ep_comm.py:649
Method
test_standard_cross_entropy_matches_unsharded_reference
(self)
tests/unit/v1/autotp/test_autotp_training.py:1379
Function
test_start_method_safety
(method)
tests/unit/runtime/test_ds_initialize.py:29
Function
test_state_increment
(Opt)
tests/unit/ops/adam/test_zf_torch_adam.py:139
Function
test_static_cache_compact_identity_keeps_active_rows_and_clears_tail
()
tests/unit/utils/test_static_cache.py:147
Function
test_static_cache_compact_preserves_rows_and_positions
()
tests/unit/utils/test_static_cache.py:128
Function
test_static_cache_constructor_supports_max_batch_keyword
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:387
Function
test_static_cache_falls_back_to_derived_head_dim
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1775
Function
test_static_cache_memory_skips_layers_without_kv
()
tests/unit/utils/test_static_cache.py:204
Function
test_static_cache_preallocates_with_config_head_dim
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1764
Function
test_static_cache_query_offset_builds_native_causal_mask
(position, allowed)
tests/unit/utils/test_static_cache.py:31
Function
test_static_cache_query_offset_precedes_current_write
(position, expected)
tests/unit/utils/test_static_cache.py:13
Function
test_static_cache_query_offset_supports_graph_replay
()
tests/unit/utils/test_static_cache.py:52
Function
test_static_cache_trim_left_shifts_values_and_clears_tail
()
tests/unit/utils/test_static_cache.py:166
Function
test_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
Function
test_static_graph_matches_native_llama_generation
(attn_implementation)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:198
Function
test_static_graph_rejects_flash_attention
(graph_capture_accelerator)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:148
Function
test_static_graph_uses_prefill_kv_shape
(local_heads, monkeypatch)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:80
Function
test_static_layer_accepts_active_prefix_of_cache_rows
()
tests/unit/utils/test_static_cache.py:192
Function
test_static_layer_per_row_positions_support_graph_replay
()
tests/unit/utils/test_static_cache.py:87
Function
test_static_layer_rejects_mismatched_per_row_positions
()
tests/unit/utils/test_static_cache.py:183
Function
test_static_layer_rejects_out_of_bounds_per_row_positions
(position)
tests/unit/utils/test_static_cache.py:120
Function
test_static_layer_supports_per_row_decode_positions
()
tests/unit/utils/test_static_cache.py:71
Method
test_static_scale_and_zero_grad_after_step
(self)
tests/unit/runtime/test_ds_initialize.py:250
Function
test_static_scaler_is_quiet_without_overflow
(warnings)
tests/unit/runtime/half_precision/test_static_loss_scale_overflow.py:31
Function
test_static_scaler_reports_the_skipped_step
(warnings)
tests/unit/runtime/half_precision/test_static_loss_scale_overflow.py:22
Method
test_step
(self, batch, batch_idx)
tests/lightning/test_simple.py:43
Method
test_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
← previous
next →
13,701–13,800 of 14,579, ranked by callers