MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Methodtest_gather_output_from_config_dict
(self)
tests/unit/module_inject/test_tp_plan_converter.py:48
Methodtest_gather_rows_treats_both_padding_encodings_as_zero
(self, strided_index)
tests/unit/v1/moe/test_autoep_permute_rows.py:151
Methodtest_gather_uses_the_layers_own_shard_widths
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:1068
Methodtest_gathered_colwise_conversion
(self)
tests/unit/module_inject/test_tp_plan_converter.py:37
Functiontest_gathered_lm_head_falls_back_for_runtime_parameter_tie
()
tests/unit/module_inject/test_tp_partition_config_path.py:246
Functiontest_gathered_lm_head_uses_column_parallel_layer_when_output_dim_is_uneven
()
tests/unit/module_inject/test_tp_partition_config_path.py:279
Functiontest_gathered_lm_head_uses_column_parallel_layer_when_untied
()
tests/unit/module_inject/test_tp_partition_config_path.py:238
Functiontest_gathered_parameters_after_forward_defers_partition_until_backward
(monkeypatch)
tests/unit/v1/compile/test_z3_eager_fallback.py:390
Functiontest_gathered_parameters_preserves_disjoint_nesting
()
tests/unit/v1/compile/test_z3_eager_fallback.py:551
Functiontest_gathered_parameters_rejects_partial_overlap_atomically
()
tests/unit/v1/compile/test_z3_eager_fallback.py:524
Methodtest_gathered_sequence_loss_backward_accumulates_all_ranks
(self)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:257
Methodtest_gdn_gates
(self)
tests/unit/module_inject/test_segment_ki_kernels.py:247
Methodtest_geglu_tanh_known_values
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:108
Functiontest_gelu
(batch, sequence, channels, dtype, use_triton_ops)
tests/unit/ops/transformer/inference/test_gelu.py:55
Methodtest_gelu_gated_experts_with_plain_preset_are_rejected
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:1124
Methodtest_gelu_gated_mlp_not_fused
A GELU-gated MLP satisfies the projection-name selector but must not be fused: the replacement hardcodes SiLU and would silently chang
tests/unit/module_inject/test_segment_ki_kernels.py:347
Methodtest_gemm_error_bound_accepts_rounding_but_rejects_incorrect_values
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:326
Functiontest_gemma4_text_config_fallback
()
tests/unit/v1/multimodal/test_gemma4_config.py:11
Functiontest_gemma4_text_config_matches_text_config
()
tests/unit/v1/multimodal/test_gemma4_config.py:26
Functiontest_generalized_jsd_loss_covers_beta_variants
(beta, expected)
tests/unit/runtime/rollout/test_rollout_interface.py:136
Functiontest_generalized_jsd_loss_supports_top_k_and_empty_response_masks
()
tests/unit/runtime/rollout/test_rollout_interface.py:149
Functiontest_generate_accepts_zero_pad_token_id
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1925
Functiontest_generate_calls_graph_capture_when_enabled
(mock_get_accelerator, mock_perf_counter, temperature)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1770
Functiontest_generate_disables_top_k_for_sampling
(top_k)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1875
Functiontest_generate_does_not_profile_when_disabled
(mock_get_accelerator)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1418
Functiontest_generate_falls_back_to_eager_without_graph_capture_opt_in
(mock_get_accelerator)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1800
Functiontest_generate_forwards_top_k_for_sampling_with_multiple_samples_and_eos
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1849
Functiontest_generate_keeps_ranks_in_lockstep_and_pads_after_eos
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1826
Functiontest_generate_preserves_zero_pad_token_id
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1451
Functiontest_generate_records_profile_when_enabled
(mock_get_accelerator, mock_perf_counter)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1382
Functiontest_generate_uses_shared_prefill_for_multiple_samples
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1587
Functiontest_get_autocast_decorators_use_legacy_amp_or_noop_before_torch_2_4
()
tests/unit/runtime/test_autocast.py:79
Functiontest_get_autocast_decorators_use_torch_amp_on_torch_2_4_or_newer
()
tests/unit/runtime/test_autocast.py:65
Functiontest_get_best_space_record_ignores_runs_without_a_metric
(tmpdir)
tests/unit/autotuning/test_autotuning.py:82
Functiontest_get_bfloat16_enabled
(bf16_key)
tests/unit/runtime/test_ds_config_dict.py:224
Functiontest_get_expert_parallel_ranks
Example - E + M + D parallel world_size = 16 model_degree = 2 expert_degree = 4 # number of experts in same group mp_group = [0,
tests/unit/utils/test_groups.py:20
Functiontest_get_global_norm_keeps_invalid_sentinels_invalid
(bad)
tests/unit/v1/zero/test_invalid_grad_norm.py:50
Functiontest_get_last_uses_unconsumed_no_copy_wait
(case)
tests/unit/v1/compile/test_list_schedule.py:236
Functiontest_get_operation_summary_does_not_reorder_the_stored_records
()
tests/unit/comm/test_comms_logger.py:52
Functiontest_get_optim_files
(tmpdir, num_checkpoints)
tests/unit/utils/test_get_optim_files.py:12
Functiontest_get_param_uc_restore_meta_returns_top_level_restore_schema
()
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:677
Functiontest_get_val_by_key_searches_all_nested_subdicts
()
tests/unit/autotuning/test_autotuning.py:106
Functiontest_getattr_delegates_missing_attributes_to_model
()
tests/unit/runtime/test_engine_attribute_delegation.py:25
Functiontest_getattr_raises_for_missing_attribute
()
tests/unit/runtime/test_engine_attribute_delegation.py:31
Functiontest_getattr_resolves_registered_workspace_module
()
tests/unit/runtime/test_engine_attribute_delegation.py:19
Functiontest_gh200_relay_beats_direct_and_sharded
()
tests/unit/checkpoint/test_affine_transfer_cost.py:75
Functiontest_git_environment_is_positive_allowlist
()
ci/test_torch_latest.py:498
Functiontest_github_output_contains_only_validated_mode_and_count
()
ci/test_tests_fetcher.py:576
Functiontest_global_eos_stops_only_when_no_global_work_remains
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1112
Functiontest_global_training_mode_does_not_leak_into_inference_routing
()
tests/unit/module_inject/test_tp_partition_config_path.py:516
Functiontest_global_work_remaining_uses_requested_group
(monkeypatch)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1101
Methodtest_glu_only_model_refresh_clears_backend_cat_cache
GLU-only (dense) models carry the backend handle on _ki_dual_op; segki_refresh must still reach the process-wide g_glu_cat_cache after
tests/unit/module_inject/test_segment_ki_kernels.py:662
Methodtest_gpt2_basic
(self, tmpdir, inputs)
tests/unit/v1/autotp/test_configurable_parallel_mp.py:63
Methodtest_gpt2_checkpointable_layers
(self)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:413
Methodtest_gpt2_mp2_no_resize
(self, tmpdir, inputs)
tests/unit/v1/autotp/test_configurable_parallel_mp.py:91
Methodtest_gpu1_fp16
(self)
tests/model/BingBertSquad/BingBertSquad_run_func_test.py:74
Methodtest_gpu1_fp32
(self)
tests/model/BingBertSquad/BingBertSquad_run_func_test.py:100
Methodtest_gpu4_fp16
(self)
tests/model/BingBertSquad/BingBertSquad_run_func_test.py:48
Methodtest_gpu4_fp16_zero2
(self)
tests/model/BingBertSquad/BingBertSquad_run_func_test.py:61
Methodtest_gpu4_fp32
(self)
tests/model/BingBertSquad/BingBertSquad_run_func_test.py:87
Functiontest_gqa
(head_config: Tuple[int, int])
tests/unit/inference/v2/modules/test_blocked_attn.py:177
Functiontest_gqa
(head_config: Tuple[int, int])
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_flash.py:183
Methodtest_gqa_backward_matches_reference
(self, num_kv_heads: int)
tests/unit/v1/sequence_parallelism/test_ulysses.py:528
Functiontest_gqa_even_sharding
Test GQA sharding when the KV heads are evenly divisible by the number of shards.
tests/unit/inference/v2/model_implementations/sharding/test_qkv_sharding.py:115
Functiontest_gqa_input_shape_error
()
tests/unit/inference/v2/model_implementations/sharding/test_qkv_sharding.py:241
Methodtest_gqa_partitions_by_kv_groups
(self, batch_dim_idx)
tests/unit/v1/sequence_parallelism/test_ulysses.py:728
Methodtest_gqa_uneven_qkv_fused_forward
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:1097
Methodtest_gqa_uneven_qkv_fused_weight_partition
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:970
Functiontest_gqa_uneven_sharding
We only test the uneven GQA test case because even GQA shards the attention output in the exact same manner as MHA. Args: n_head
tests/unit/inference/v2/model_implementations/sharding/test_attn_out_sharding.py:94
Functiontest_gqa_uneven_sharding
Test GQA sharding when there are more shards than KV heads.
tests/unit/inference/v2/model_implementations/sharding/test_qkv_sharding.py:149
Methodtest_grad_accumulation
Test that gradient accumulation works correctly with loss.backward() by comparing with DDP
tests/unit/v1/zero/test_zero_user_backward.py:440
Methodtest_grad_accumulation_scale_wrt_gas_false
Test that scale_wrt_gas=False disables gradient scaling by accumulation steps. When scale_wrt_gas=False is passed to engine.backward(), gradi
tests/unit/v1/zero/test_zero_user_backward.py:481
Methodtest_grad_and_value_over_patched_functional_linear
(self)
tests/unit/v1/zero/test_zero_functorch_linear.py:58
Methodtest_grad_and_value_through_engine
(self, stage)
tests/unit/v1/zero/test_zero_torch_func.py:80
Methodtest_grad_clip_and_norm_update
Test custom gradient clipping with configurations and to check if the norm_groups are updated correctly
tests/unit/runtime/zero/test_zero_grad_clip.py:93
Methodtest_grad_not_scaled_by_gas
(self, stage)
tests/unit/v1/zero/test_zero_torch_func.py:102
Methodtest_grad_through_engine
(self, stage)
tests/unit/v1/zero/test_zero_torch_func.py:74
Functiontest_gradcheck_fp32
fp32 grad parity vs the pure-torch reference (Triton default tl.dot precision).
tests/unit/v1/ops/triton_ops/test_group_gemm_triton.py:290
Methodtest_gradient_accumulation
(self, h_dim: int, n_layers: int, zpg: int)
tests/unit/runtime/zero/test_zeropp.py:261
Methodtest_gradient_accumulation_matches_one_large_micro_batch
Same samples per step either way, so only half-precision Newton-Schulz noise may differ.
tests/unit/v1/ops/muon/test_muon_zero3_grad_accum.py:130
Functiontest_gradient_allreduce_op
(value, expected)
tests/unit/runtime/test_ds_config_dict.py:139
Functiontest_gradient_allreduce_op_default
()
tests/unit/runtime/test_ds_config_dict.py:147
Functiontest_gradient_checkpointing_layer_signature_contract
Pin the HF signature _checkpoint_offload_call depends on. GradientCheckpointingLayer itself does not define forward(); the contract lives on
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:63
Methodtest_gradient_clipping
(self, zero_stage)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:211
Methodtest_gradient_clipping_rejects_disabled_norm
(self)
tests/unit/runtime/zero/test_zero1_optimizer_fastpath.py:149
Functiontest_gradient_hook_runs_on_the_backward_stream_after_linking
()
tests/unit/runtime/zero/test_zero_tensor_fragment.py:91
Methodtest_gradient_reaches_the_input
The exchange is a permutation, so d/dx of ``sum(exchange(x) ** 2)`` is ``2 * x`` on every rank. A collective that fills a caller-allocated bu
tests/unit/ulysses_alst/test_dim_zero_all_to_all.py:22
Methodtest_gradients_are_reduced_across_dp_group
(self)
tests/unit/compile/test_tp_compile.py:509
Methodtest_gradients_are_scaled_once
(self)
tests/unit/runtime/pipe/test_pipe.py:56
Methodtest_gradients_match_ddp
(self, bf16_optimizer_states, use_cpu_offload, zero_stage)
tests/unit/v1/half_precision/test_bf16.py:368
Methodtest_gradients_match_ddp_with_autocast
Test BF16 with torch_autocast by comparing gradients with DDP baseline.
tests/unit/v1/half_precision/test_with_autocast.py:26
Methodtest_grads_and_norm_match_reference
(self, world_size, tp_size, ep_size, zero_stage, zero_init)
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:353
Functiontest_grain_quantized_shards_tile_the_dimension
(total_size, tp_size)
tests/unit/module_inject/test_tp_shard.py:14
Functiontest_gram_normalization_preserves_large_finite_gradient_direction
(monkeypatch, shape, scale)
tests/unit/v1/ops/muon/test_muon_gram_normalization.py:32
Functiontest_graph_capture_replay_roundtrip
()
tests/unit/accelerator/test_accelerator_graph.py:11
Functiontest_graph_capture_standard_model
Graph capture on a standard (non-hybrid) LLaMA must not sync-abort when HF would otherwise derive cache positions internally.
tests/unit/module_inject/test_graph_position_regression.py:30
Methodtest_graph_decode_without_segki_matches_hf
(self)
tests/unit/module_inject/test_segment_ki_kernels.py:401
Methodtest_graph_generation_matches_eager
(self)
tests/unit/hybrid_engine/test_he_graph.py:203
Functiontest_graph_harvesting_config_is_rejected
(value)
tests/unit/runtime/test_ds_config_dict.py:257
Functiontest_graph_ops_run_eagerly_without_graph_support
()
tests/unit/accelerator/test_accelerator_graph.py:47
← previousnext →13,101–13,200 of 15,468, ranked by callers