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
Function
test_graphsafe_rng_state_outputs_are_registered_no_reuse
()
tests/unit/v1/compile/test_list_schedule.py:537
Method
test_grid_pipe_data
(self)
tests/unit/runtime/pipe/test_topology.py:167
Function
test_group_handle_container_carries_explicit_groups_and_rank_tables
()
tests/unit/v1/moe/test_autoep_autotp_folding_groups.py:55
Method
test_group_hyperparameters_stay_isolated
(self, optimizer_kind)
tests/unit/v1/zero/test_reflow.py:606
Function
test_group_meta_large_E_spans_multiple_blocks
E larger than the fixed BLOCK exercises the multi-block grid path.
tests/unit/v1/ops/triton_ops/test_group_gemm_triton.py:148
Function
test_group_meta_matches_reference
(cumulative)
tests/unit/v1/ops/triton_ops/test_group_gemm_triton.py:133
Function
test_group_names_stay_distinct_across_groups
MoE regrouping keys its buckets by name, so two groups must not collide on one.
tests/unit/runtime/zero/test_muon_param_groups.py:97
Function
test_group_per_tp_shapes_handles_pp_local_params
()
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:873
Function
test_group_per_tp_shapes_rejects_disagreeing_pipeline_replicas
()
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:905
Function
test_group_step_nvme_offloaded_partition
()
tests/unit/ops/adam/test_zf_torch_adam.py:237
Function
test_group_step_with_offload
(Opt)
tests/unit/ops/adam/test_zf_torch_adam.py:113
Function
test_group_step_without_offload
(Opt)
tests/unit/ops/adam/test_zf_torch_adam.py:104
Method
test_grouped_experts
(self)
tests/unit/v1/moe/test_autoep_unit.py:1519
Function
test_grouped_experts_auto_selects_triton_on_ampere
On sm < 9.0 the module auto-selects Triton; disable_triton_grouped_mm opts out.
tests/unit/v1/ops/triton_ops/test_group_gemm_triton.py:446
Function
test_grouped_experts_triton_path_parity
The GroupedExperts module's Triton path matches its for-loop path (fwd + grads).
tests/unit/v1/ops/triton_ops/test_group_gemm_triton.py:405
Method
test_grouped_gemm_paths_match_the_for_loop
(self, activation, path)
tests/unit/v1/moe/test_autoep_expert_activation.py:240
Method
test_grouped_gemm_rejects_out_of_range
(self)
tests/unit/module_inject/test_segment_ki_kernels.py:524
Method
test_grouped_gemm_small_batch
Grouped GEMM vs reference: the multi-matrix single-launch kernels for decode batches 2..32 (concat and GLU-paired variants).
tests/unit/module_inject/test_segment_ki_kernels.py:497
Function
test_grouped_kernel_launch_policy
(enabled)
tests/unit/runtime/test_custom_determinism.py:36
Method
test_grouped_linear_dispatcher
The portable interface entry: weight count x batch routing vs the reference for every combination (gemv / grouped / aten composite).
tests/unit/module_inject/test_segment_ki_kernels.py:532
Method
test_h100_folded_checkpoint_same_topology_resume
(self, tmpdir)
tests/unit/v1/moe/test_autoep_autotp_checkpoint.py:298
Method
test_h100_folded_tp2_ep2_finite_loss_smoke
(self)
tests/unit/v1/moe/test_autoep_autotp_runtime.py:225
Method
test_h100_folded_tp2_ep2_runtime
(self)
tests/unit/v1/moe/test_autoep_autotp_runtime.py:202
Method
test_h100_folded_tp2_ep4_checkpoint_same_topology_resume
(self, tmpdir)
tests/unit/v1/moe/test_autoep_autotp_checkpoint.py:308
Method
test_h100_folded_tp2_ep4_runtime
(self)
tests/unit/v1/moe/test_autoep_autotp_runtime.py:243
Method
test_h100_zero12_per_family_optimizer_state
(self)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:714
Method
test_half_int4_quantization
(self)
tests/unit/inference/quantization/test_intX_quantization.py:373
Method
test_half_int8_quantization
(self)
tests/unit/inference/quantization/test_intX_quantization.py:382
Function
test_head_count_comes_from_the_shared_extractor
Head counts are read through AutoTPMeta, so alternative config spellings work.
tests/unit/runtime/zero/test_per_head_muon.py:434
Function
test_head_counts_track_the_config
(q_heads, kv_heads)
tests/unit/runtime/zero/test_per_head_muon.py:262
Function
test_head_dim_alone_would_reject_the_mla_q_proj
Guards the width source rather than the outcome: head_dim is present and wrong here.
tests/unit/runtime/zero/test_per_head_muon.py:395
Function
test_head_dim_is_derived_when_the_config_omits_it
Configs that leave head_dim out still define it as hidden_size // num_attention_heads.
tests/unit/runtime/zero/test_per_head_muon.py:520
Method
test_head_optimizer_updates_match_dense
(self)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:800
Method
test_head_sharded_helper_freezes_the_models_split
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:816
Method
test_head_sharded_helper_leaves_the_class_untouched
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:773
Function
test_head_size
(head_size: int)
tests/unit/inference/v2/modules/test_blocked_attn.py:167
Function
test_head_size
(head_size: int)
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_flash.py:173
Method
test_head_to_seq_parallel
(self, batch_dim_idx, seq_world_size)
tests/unit/v1/sequence_parallelism/test_ulysses.py:206
Method
test_heads_second_layout_with_unsqueeze_dim_2
(self)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:130
Function
test_healthy_rank_aborts_when_another_rank_failed
(monkeypatch)
tests/unit/v1/compile/test_graph_profile.py:259
Method
test_held_out_module_is_not_pulled_into_the_optimizer
Only replacement parameters may be added. A caller who deliberately keeps a module out of this optimizer -- a second optimizer, a fro
tests/unit/v1/moe/test_autoep_unit.py:2793
Function
test_heuristic_numa_split_with_uneven_rank_count
()
tests/unit/v1/zero/test_reflow.py:301
Method
test_hf_clone
(self)
tests/unit/linear/test_quant_param.py:50
Method
test_hf_minimax_m3_causal_lm_matches_autoep_with_router_logits
(self)
tests/unit/v1/moe/test_autoep_unit.py:2312
Method
test_hf_mixtral_causal_lm_matches_autoep_with_router_logits
(self)
tests/unit/v1/moe/test_autoep_unit.py:2293
Function
test_hidden_gradient_sums_many_vocab_entries_exactly
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_linear_cross_entropy.py:147
Function
test_hidden_parallel_embedding_keeps_gemma3_scaled_lookup
()
tests/unit/module_inject/test_tp_partition_config_path.py:623
Method
test_hjson
(self, base_config, tmpdir)
tests/unit/runtime/test_ds_config_dict.py:443
Function
test_holder_check_matches_an_element_level_oracle
Replicas split at different points must still plan; a wrong holder set must be refused.
tests/unit/checkpoint/test_affine_transfer_plan.py:879
Function
test_host_launches_overlap_the_bytes
()
tests/unit/checkpoint/test_affine_transfer_cost.py:53
Function
test_host_tensors_keep_the_reference_path
()
tests/unit/v1/moe/test_autoep_permute_rows.py:161
Function
test_host_timers_default_on_and_event_timer_opt_in
(monkeypatch)
tests/unit/v1/accelerator/test_klxpu_accelerator.py:33
Function
test_hostfile_good
()
tests/unit/launcher/test_run.py:250
Function
test_hostfiles_bad
()
tests/unit/launcher/test_run.py:275
Method
test_hybrid_adam_equal
(self, dtype, model_size)
tests/unit/ops/adam/test_hybrid_adam.py:48
Function
test_hybrid_cache_exposes_hf_gdn_protocol
HF >= 5.19 GDN forwards fetch state through get_conv_state/ get_recurrent_state and branch on is_recording_past — the top-level cache must del
tests/unit/utils/test_static_cache.py:207
Function
test_hybrid_engine_import_does_not_resolve_transformers_opt
(monkeypatch)
tests/unit/hybrid_engine/test_he_policy.py:37
Function
test_hybrid_engine_max_out_tokens_accepts_positive_values
(value)
tests/unit/runtime/test_ds_config_model.py:73
Function
test_hybrid_engine_max_out_tokens_default
()
tests/unit/runtime/test_ds_config_model.py:84
Function
test_hybrid_engine_max_out_tokens_must_be_positive
(value)
tests/unit/runtime/test_ds_config_model.py:61
Method
test_hybrid_optimizer_state
(self, tmpdir, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:170
Method
test_hysteresis
(self, optimizer_class)
tests/unit/runtime/half_precision/test_dynamic_loss_scale.py:317
Method
test_hysteresis_survives_a_checkpoint
(self, optimizer_class)
tests/unit/runtime/half_precision/test_dynamic_loss_scale.py:334
Method
test_hysteresis_through_the_engine
(self, optimizer_class)
tests/unit/runtime/half_precision/test_dynamic_loss_scale.py:343
Method
test_idempotent_on_already_injected_modules
Repeated forwards must not re-wrap an already-converted ``_parameters``.
tests/unit/runtime/zero/test_zero_late_module_attach.py:73
Method
test_identity_attn_preserves_values
When attn is identity, output values should match input values.
deepspeed/sequence/test_autosp.py:199
Function
test_identity_is_klxpu_but_device_is_cuda
()
tests/unit/v1/accelerator/test_klxpu_accelerator.py:16
Function
test_identity_still_ships_a_copy_per_holder
Same topology in and out is not a no-op: every rank must still be named as a writer.
tests/unit/checkpoint/test_affine_transfer_plan.py:218
Function
test_identity_unscale_is_skipped
()
tests/unit/runtime/zero/test_zero1_optimizer_fastpath.py:41
Function
test_idle_parameter_stays_zero_beside_active_neighbor
(monkeypatch, low_precision)
tests/unit/v1/zero/test_zero2_gradient_safety.py:708
Function
test_idle_parameter_window_does_not_reuse_previous_gradient
(monkeypatch, low_precision)
tests/unit/v1/zero/test_zero2_gradient_safety.py:686
Method
test_ignore_grad_overflow
(self, zero_stage, offload_optimizer, gradient_clipping)
tests/unit/runtime/half_precision/test_zero_optim_overflow.py:328
Function
test_ignored_fully_masked_row_gets_zero_gradient
(top_k)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:450
Function
test_ignored_rows_get_no_gradient_and_all_ignored_is_nan
(backend, device)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:209
Function
test_ignored_tokens_do_not_affect_loss_or_gradients
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_linear_cross_entropy.py:162
Method
test_immediate_save_load
(self, tmpdir, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:378
Function
test_import_deepspeed_defers_device_queries_compilation_and_transformers
()
tests/unit/ops/test_op_builder.py:466
Function
test_in_out_channels
(in_channels: int, out_channels: int)
tests/unit/inference/v2/modules/test_cutlass_moe.py:207
Function
test_include_paths_accepts_cutlass_include_dir_directly
(tmp_path)
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:99
Function
test_include_paths_finds_cutlass_from_cmake_prefix_path
(tmp_path)
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:81
Function
test_include_paths_finds_cutlass_from_compiler_include_path
(tmp_path)
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:90
Function
test_include_paths_finds_python_package_candidate_without_env
(tmp_path)
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:71
Function
test_include_paths_reports_missing_cutlass
(tmp_path)
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:111
Function
test_include_paths_uses_cutlass_path_env
(tmp_path)
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:59
Function
test_inconsistent_arguments_are_refused
(kwargs)
tests/unit/checkpoint/test_affine_replica_policy.py:333
Function
test_inconsistent_legacy_metadata_is_rejected
(num_experts, num_local_experts, ep_size)
tests/unit/checkpoint/test_autoep_affine.py:213
Function
test_independent_cuda_training
(stage, tmp_path)
tests/unit/runtime/test_determinism.py:89
Function
test_indexer_logits_and_selection_match_reference
(heads)
tests/unit/v1/models/test_glm_moe_dsa.py:74
Function
test_indexer_selection_at_glm52_sizes
32 index heads (4 query rows per kernel program), 16,384 tokens (two 8,192-row blocks in ``select_topk``) and top-k 2048. On 256 random rows with
tests/unit/v1/models/test_glm_moe_dsa.py:443
Function
test_inductor_aot_constructor_patch_is_restorable
()
tests/unit/compile/test_backend.py:128
Function
test_init_methods
(Opt)
tests/unit/ops/adam/test_zf_torch_adam.py:44
Function
test_init_tp_mesh_device_debug_detail_uses_explicit_groups
(monkeypatch)
tests/unit/v1/autotp/test_autotp_training.py:75
Function
test_init_tp_mesh_device_split_error_falls_back_to_explicit_groups
(monkeypatch)
tests/unit/v1/autotp/test_autotp_training.py:92
Method
test_init_with_error_log_level
(self)
tests/unit/v1/test_engine_log_level.py:60
Method
test_init_without_gradient_clipping_defaults_to_one
(self)
tests/unit/v1/half_precision/test_gradient_clipping_default.py:57
Method
test_initialization_broadcasts_scalar_parameter
(self, zero_stage)
tests/unit/runtime/test_scalar_parameter_broadcast.py:26
Method
test_initialize
(self)
tests/unit/runtime/test_ds_config_dict.py:372
Method
test_initialize_broadcasts_narrow_params
(self, dtype)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:212
Function
test_initialize_noops_without_dist
Without the process group initialized, initialize() must return silently (no raise) — single-process users never see the fast path.
tests/unit/comm/test_custom_collective.py:27
Method
test_initializes_half_precision_zero_init_model
(self, precision)
tests/unit/v1/zero/test_reflow.py:1203
← previous
next →
13,201–13,300 of 15,468, ranked by callers