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_swiglu_oai_known_values
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:86
Function
test_sync_memory_profile_complete_noops_without_distributed
(monkeypatch)
tests/unit/v1/compile/test_list_schedule.py:91
Function
test_sync_memory_profile_complete_reduces_asymmetric_failure
(monkeypatch)
tests/unit/v1/compile/test_list_schedule.py:103
Function
test_sync_records_steps
()
tests/unit/runtime/rollout/test_rollout_interface.py:225
Function
test_sync_weights_continuous_graph_safe
Continuous graph + weight sync must not replay freed derived tensors. The retained continuous graph captures the derived tensors' addresses (
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1679
Function
test_sync_weights_drops_derived_caches
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1665
Function
test_sync_weights_generate_matches_fresh_injection
Rollout-path weight sync: inject -> generate -> in-place write -> sync_weights -> generate must equal a fresh injection of the same weights (d
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1726
Method
test_tags_reach_the_optimizer
Per-parameter tags have to survive `deepspeed.initialize` into the ZeRO call sites.
tests/unit/v1/ops/muon/test_per_head_muon_accelerator.py:248
Function
test_target_must_cover_full_logical_parameter
()
tests/unit/checkpoint/test_affine_transfer_plan.py:704
Function
test_target_replicas_can_use_different_piece_boundaries
()
tests/unit/checkpoint/test_affine_transfer_plan.py:718
Function
test_target_with_no_shards_cannot_skip_the_parameter
()
tests/unit/checkpoint/test_affine_transfer_plan.py:711
Method
test_teacher_uses_its_own_tp_size_and_stays_frozen
(self)
tests/unit/v1/autotp/test_tp_plan_e2e.py:536
Method
test_team_publishes_only_finished_ranges
(self, optimizer_kind, dtype, outcome)
tests/unit/v1/zero/test_reflow.py:707
Function
test_temp_config_json
(tmpdir)
tests/unit/runtime/test_ds_config_dict.py:129
Function
test_temp_copy_param_nvme_offloaded_partition
()
tests/unit/ops/adam/test_zf_torch_adam.py:271
Method
test_tensor_and_non_tensor_keyword_arguments
(self)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:305
Method
test_tensorboard
(self)
tests/unit/monitor/test_monitor.py:22
Method
test_text_values_preserved_around_image
Text tokens before and after the placeholder must be numerically intact.
deepspeed/sequence/test_autosp.py:421
Method
test_the_buffer_survives_until_its_last_holder_releases
(self)
tests/unit/module_inject/test_auto_ep_comm.py:208
Method
test_the_combine_backward_matches_the_rows_it_combined
(self)
tests/unit/module_inject/test_auto_ep_comm.py:786
Method
test_the_configured_capacity_sizes_the_buffer
(self)
tests/unit/module_inject/test_auto_ep_comm.py:718
Method
test_the_default_config_runs_muon
`zero_optimization.stage` defaults to 0, so this is the plainest Muon config there is.
tests/unit/runtime/zero/test_muon_without_zero_optimizer.py:123
Function
test_the_default_rope_type_is_not_refused
`rope_type: "default"` is what standardize_rope_params writes for plain RoPE.
tests/unit/module_inject/test_llama_rope_theta.py:132
Function
test_the_flag_errors_rather_than_silently_doing_nothing
An explicit opt-in that tags nothing is the tensor-parallel failure mode. Under TP the config describes the whole model while each rank holds a s
tests/unit/runtime/zero/test_per_head_muon.py:528
Method
test_the_forms_are_different_functions
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:115
Method
test_the_forward_dispatch_records_an_expanded_layout
(self)
tests/unit/module_inject/test_auto_ep_comm.py:816
Function
test_the_head_count_follows_the_shard
tp=2 leaves 4 heads on this rank; the tag has to say 4, not the model's 8.
tests/unit/runtime/zero/test_per_head_muon.py:776
Function
test_the_head_count_is_read_from_the_layer_shape_under_zero_init
`zero.Init` leaves a flat placeholder and records the layer's shape as `ds_shape`. Reading `param.shape` there sees a 1-D tensor for every parame
tests/unit/runtime/zero/test_per_head_muon.py:550
Function
test_the_muon_half_gets_muon_keys_and_the_adam_half_gets_adam_keys
()
tests/unit/runtime/zero/test_muon_param_groups.py:105
Function
test_the_other_matrices_of_a_linear_attention_layer_stay_whole
g_proj is the same 256 x 1024 shape as q_proj and must not ride along on the name check.
tests/unit/runtime/zero/test_per_head_muon.py:654
Function
test_the_pair_budget_is_checked_before_the_parts_are_read
()
tests/unit/checkpoint/test_affine_replica_policy.py:360
Function
test_the_partitioned_shape_does_not_promote_a_vector
A 1-D parameter stays off Muon; `ds_shape` is read for its rank, not assumed to be >= 2.
tests/unit/runtime/zero/test_muon_use_muon_under_zero_init.py:69
Method
test_the_route_does_not_synchronize_capacity
(self)
tests/unit/module_inject/test_auto_ep_comm.py:694
Method
test_the_router_gate_receives_gradients
The gate silently never learning is what a dropped weight costs. A transport that returns the routing weights outside its autograd graph
tests/unit/v1/moe/test_autoep_deepep_parity.py:576
Method
test_the_same_config_without_grad_accum_dtype_still_runs_muon
The existing BF16-gradient wrapper remains supported.
tests/unit/runtime/zero/test_muon_without_zero_optimizer.py:218
Method
test_the_settings_reach_the_optimizer
(self)
tests/unit/runtime/zero/test_muon_param_groups.py:138
Method
test_the_skipped_combine_returns_nan_so_a_reader_fails_loudly
(self)
tests/unit/module_inject/test_auto_ep_comm.py:1536
Method
test_the_sm_carveout_is_restored
(self)
tests/unit/module_inject/test_auto_ep_comm.py:954
Function
test_the_sparse_attention_indexer_is_not_tagged
#8420: Muon Split covers attention, not the indexer that selects the keys it will see. `wq_b` confirms on the indexer's own geometry, so this is
tests/unit/runtime/zero/test_per_head_muon.py:674
Function
test_the_stale_count_would_have_split_heads_in_half
Why this is not caught by the existing shape check: 128 % 8 == 0. The divisibility assert in `_per_head_orthogonalize` passes on the stale count,
tests/unit/runtime/zero/test_per_head_muon.py:788
Method
test_the_tags_describe_the_shard_and_not_the_model
(self)
tests/unit/v1/ops/muon/test_per_head_muon_accelerator.py:110
Function
test_the_two_spellings_do_not_disagree_on_a_real_config
Guards the branch rather than the value. If transformers reinstates `rope_theta` as a deprecated property, the test above still passes while
tests/unit/module_inject/test_llama_rope_theta.py:70
Method
test_the_update_is_clipped_by_the_global_norm
(self)
tests/unit/runtime/test_runtime_utils.py:227
Function
test_the_value_projection_uses_the_value_width
head_v_dim can differ from head_k_dim; the k width would reject v_proj at 512 rows.
tests/unit/runtime/zero/test_per_head_muon.py:662
Function
test_the_whole_matrix_path_does_not_survive_the_split
The comparison this is measured against, so "exact" above means something. Newton-Schulz on a block of rows is a different computation from the s
tests/unit/v1/ops/muon/test_per_head_muon_accelerator.py:74
Method
test_throughput_calculation
(self)
tests/unit/runtime/zero/test_zero_context.py:213
Method
test_tied_embedding_keeps_the_shard_of_its_output_head
(self, output_head)
tests/unit/v1/autotp/test_autotp_training.py:2358
Function
test_tied_embedding_plan_leaves_lm_head_and_embedding_replicated
()
tests/unit/module_inject/test_tp_partition_config_path.py:257
Method
test_tied_embedding_style_converts_to_skip
`embedding_rowwise` is injected for every tied-embedding model, so rejecting it would strand those models on the heuristic path. Tied embeddin
tests/unit/module_inject/test_tp_plan_converter.py:129
Method
test_tied_embedding_training_matches_unsharded_reference
(self, model_type, padding_idx, backend)
tests/unit/v1/autotp/test_autotp_training.py:550
Function
test_tiled_backward
(in_splits, out_splits, bias, in_f, out_f)
tests/unit/runtime/zero/test_zero_tiled.py:85
Function
test_tiled_baddim
(in_splits, out_splits)
tests/unit/runtime/zero/test_zero_tiled.py:54
Function
test_tiled_forward
(in_splits, out_splits, bias, in_f, out_f)
tests/unit/runtime/zero/test_zero_tiled.py:64
Method
test_tiled_fused_logits_loss
(self, zero_stage, batch_size)
tests/unit/ulysses_alst/test_tiled_compute.py:333
Function
test_tiled_init
(in_splits, out_splits)
tests/unit/runtime/zero/test_zero_tiled.py:15
Method
test_tiled_mlp
(self, zero_stage, batch_size)
tests/unit/ulysses_alst/test_tiled_compute.py:106
Method
test_tiled_mlp_accepts_a_non_contiguous_input
(self, layout, shards, batch_size=2, seqlen=12, hidden_dim=16)
tests/unit/ulysses_alst/test_tiled_compute.py:304
Function
test_tiled_returnbias_backward
(in_splits, out_splits, bias, in_f, out_f)
tests/unit/runtime/zero/test_zero_tiled.py:136
Function
test_time_profiler_rank_asymmetric_failure_keeps_collective_order
(monkeypatch)
tests/unit/v1/compile/test_graph_profile.py:300
Function
test_timed_op_disabled_does_not_access_profiling_state
(monkeypatch)
tests/unit/comm/test_comms_logger.py:224
Function
test_timed_op_falls_back_to_the_op_name_when_log_name_is_missing
(monkeypatch)
tests/unit/comm/test_comms_logger.py:84
Function
test_timed_op_profiles_default_log_name_with_prof_ops
(monkeypatch)
tests/unit/comm/test_comms_logger.py:107
Function
test_timeout_exit_classifies_as_timeout
()
ci/test_classify_multirank_exit.py:37
Function
test_to_leaves_pinned_host_tensors_alone
()
tests/unit/v1/compile/test_graph_profile.py:210
Function
test_token_channels
(tokens: int, channels: int)
tests/unit/inference/v2/modules/test_pre_rms_module.py:76
Function
test_token_channels
(tokens: int, channels: int)
tests/unit/inference/v2/modules/test_cuda_pre_ln_module.py:76
Function
test_token_channels_permutations
Validate bias activation kernel with different token and channel permutations when using the RELU activation function.
tests/unit/inference/v2/kernels/core_ops/test_bias_activation.py:74
Function
test_token_selector_is_argmax_without_temperature
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1055
Function
test_token_selector_samples_the_configured_distribution
(temperature, top_k, top_p)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1039
Function
test_too_large_allocation
()
tests/unit/inference/v2/ragged/test_blocked_allocator.py:51
Function
test_too_many_channels
()
tests/unit/inference/v2/kernels/core_ops/test_gated_activation.py:136
Function
test_too_small_max_ragged_batch_size
()
tests/unit/inference/v2/ragged/test_manager_configs.py:50
Function
test_too_small_max_tracked_sequences
()
tests/unit/inference/v2/ragged/test_manager_configs.py:56
Function
test_top1gating_drop_capacity_exceeds_num_tokens
()
tests/unit/v1/moe/test_moe.py:504
Function
test_top1gating_preserves_tensor_parallel_capacity
()
tests/unit/v1/moe/test_moe.py:522
Function
test_top_2_e_8_gating
(n_tokens: int)
tests/unit/inference/v2/kernels/ragged_ops/test_top_k_gating.py:61
Function
test_top_k_teacher_forward_kl
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:250
Function
test_topk_ratio_excludes_endpoints
(topk_ratio)
tests/unit/runtime/zenflow/test_zf_config.py:63
Function
test_topkgating_position_preserves_min_capacity
()
tests/unit/v1/moe/test_moe.py:514
Function
test_topkgating_probs_capacity_exceeds_num_tokens
()
tests/unit/v1/moe/test_moe.py:495
Function
test_topology_2d
()
tests/unit/runtime/pipe/test_topology.py:19
Function
test_topology_3d
()
tests/unit/runtime/pipe/test_topology.py:87
Function
test_topology_comm_list
()
tests/unit/runtime/pipe/test_topology.py:123
Function
test_topology_dims
()
tests/unit/runtime/pipe/test_topology.py:35
Function
test_topology_match
()
tests/unit/runtime/pipe/test_topology.py:43
Function
test_topology_rank_repr
()
tests/unit/runtime/pipe/test_topology.py:50
Function
test_torch_20_uses_the_one_argument_async_assert_contract
(monkeypatch)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:185
Method
test_torch_adamw_equal
(self, dtype, model_size)
tests/unit/ops/adam/test_cpu_adam.py:338
Method
test_torch_destroy_succeeds
(self, stage)
tests/unit/v1/pin_memory/test_destroy_unpin.py:207
Function
test_torch_tensor_nbytes_is_consistent
()
tests/unit/utils/test_pin_memory_tracker.py:40
Function
test_torchxla_openxla_shape_passes_through_unchanged
(monkeypatch)
tests/unit/compile/test_inductor_aot_kwargs.py:132
Method
test_tp_group_selects_liger_only_for_equal_shards
(self, monkeypatch)
tests/unit/v1/sequence_parallelism/test_liger_vocab_parallel_cross_entropy.py:91
Method
test_tp_model_init_autocreates_tp_group
(self)
tests/unit/v1/autotp/test_autotp_training.py:947
Method
test_tp_model_init_column_parallel
(self, tp_size: int, tp_overlap_comm: bool)
tests/unit/v1/autotp/test_autotp_training.py:1015
Method
test_tp_model_init_config_autotp_size_mismatch
(self)
tests/unit/v1/autotp/test_autotp_training.py:930
Method
test_tp_model_init_dtype_mismatch
(self)
tests/unit/v1/autotp/test_autotp_training.py:989
Method
test_tp_model_init_merges_config
(self)
tests/unit/v1/autotp/test_autotp_training.py:912
Method
test_tp_model_init_row_parallel
(self, tp_size: int, tp_overlap_comm: bool)
tests/unit/v1/autotp/test_autotp_training.py:1009
Method
test_tp_model_init_tp_group_rejects_mpu
(self)
tests/unit/v1/autotp/test_autotp_training.py:974
Function
test_tp_payload_consistency_detects_divergent_large_payload
(monkeypatch)
tests/unit/v1/moe/test_autoep_autotp_dispatch.py:325
← previous
next →
14,701–14,800 of 15,468, ranked by callers