MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

Methodtest_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
Methodtest_tied_embedding_training_matches_unsharded_reference
(self, model_type, padding_idx, backend)
tests/unit/v1/autotp/test_autotp_training.py:549
Functiontest_tiled_backward
(in_splits, out_splits, bias, in_f, out_f)
tests/unit/runtime/zero/test_zero_tiled.py:85
Functiontest_tiled_baddim
(in_splits, out_splits)
tests/unit/runtime/zero/test_zero_tiled.py:54
Functiontest_tiled_forward
(in_splits, out_splits, bias, in_f, out_f)
tests/unit/runtime/zero/test_zero_tiled.py:64
Methodtest_tiled_fused_logits_loss
(self, zero_stage, batch_size)
tests/unit/ulysses_alst/test_tiled_compute.py:333
Functiontest_tiled_init
(in_splits, out_splits)
tests/unit/runtime/zero/test_zero_tiled.py:15
Methodtest_tiled_mlp
(self, zero_stage, batch_size)
tests/unit/ulysses_alst/test_tiled_compute.py:106
Methodtest_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
Functiontest_tiled_returnbias_backward
(in_splits, out_splits, bias, in_f, out_f)
tests/unit/runtime/zero/test_zero_tiled.py:136
Functiontest_time_profiler_rank_asymmetric_failure_keeps_collective_order
(monkeypatch)
tests/unit/v1/compile/test_graph_profile.py:300
Functiontest_timed_op_disabled_does_not_access_profiling_state
(monkeypatch)
tests/unit/comm/test_comms_logger.py:224
Functiontest_timed_op_falls_back_to_the_op_name_when_log_name_is_missing
(monkeypatch)
tests/unit/comm/test_comms_logger.py:84
Functiontest_timed_op_profiles_default_log_name_with_prof_ops
(monkeypatch)
tests/unit/comm/test_comms_logger.py:107
Functiontest_timeout_exit_classifies_as_timeout
()
ci/test_classify_multirank_exit.py:37
Functiontest_to_leaves_pinned_host_tensors_alone
()
tests/unit/v1/compile/test_graph_profile.py:210
Functiontest_token_channels
(tokens: int, channels: int)
tests/unit/inference/v2/modules/test_pre_rms_module.py:76
Functiontest_token_channels
(tokens: int, channels: int)
tests/unit/inference/v2/modules/test_cuda_pre_ln_module.py:76
Functiontest_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:69
Functiontest_token_selector_is_argmax_without_temperature
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1003
Functiontest_token_selector_samples_the_configured_distribution
(temperature, top_k, top_p)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:987
Functiontest_too_large_allocation
()
tests/unit/inference/v2/ragged/test_blocked_allocator.py:51
Functiontest_too_many_channels
()
tests/unit/inference/v2/kernels/core_ops/test_gated_activation.py:131
Functiontest_too_small_max_ragged_batch_size
()
tests/unit/inference/v2/ragged/test_manager_configs.py:50
Functiontest_too_small_max_tracked_sequences
()
tests/unit/inference/v2/ragged/test_manager_configs.py:56
Functiontest_top1gating_drop_capacity_exceeds_num_tokens
()
tests/unit/v1/moe/test_moe.py:504
Functiontest_top1gating_preserves_tensor_parallel_capacity
()
tests/unit/v1/moe/test_moe.py:522
Functiontest_top_2_e_8_gating
(n_tokens: int)
tests/unit/inference/v2/kernels/ragged_ops/test_top_k_gating.py:56
Functiontest_top_k_teacher_forward_kl
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:250
Functiontest_topk_ratio_excludes_endpoints
(topk_ratio)
tests/unit/runtime/zenflow/test_zf_config.py:63
Functiontest_topkgating_position_preserves_min_capacity
()
tests/unit/v1/moe/test_moe.py:514
Functiontest_topkgating_probs_capacity_exceeds_num_tokens
()
tests/unit/v1/moe/test_moe.py:495
Functiontest_topology_2d
()
tests/unit/runtime/pipe/test_topology.py:19
Functiontest_topology_3d
()
tests/unit/runtime/pipe/test_topology.py:87
Functiontest_topology_comm_list
()
tests/unit/runtime/pipe/test_topology.py:123
Functiontest_topology_dims
()
tests/unit/runtime/pipe/test_topology.py:35
Functiontest_topology_match
()
tests/unit/runtime/pipe/test_topology.py:43
Functiontest_topology_rank_repr
()
tests/unit/runtime/pipe/test_topology.py:50
Functiontest_torch_20_uses_the_one_argument_async_assert_contract
(monkeypatch)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:185
Methodtest_torch_adamw_equal
(self, dtype, model_size)
tests/unit/ops/adam/test_cpu_adam.py:208
Methodtest_torch_destroy_succeeds
(self, stage)
tests/unit/v1/pin_memory/test_destroy_unpin.py:207
Functiontest_torch_tensor_nbytes_is_consistent
()
tests/unit/utils/test_pin_memory_tracker.py:40
Functiontest_torchxla_openxla_shape_passes_through_unchanged
(monkeypatch)
tests/unit/compile/test_inductor_aot_kwargs.py:132
Methodtest_tp_group_selects_liger_only_for_equal_shards
(self, monkeypatch)
tests/unit/v1/sequence_parallelism/test_liger_vocab_parallel_cross_entropy.py:91
Methodtest_tp_model_init_autocreates_tp_group
(self)
tests/unit/v1/autotp/test_autotp_training.py:946
Methodtest_tp_model_init_column_parallel
(self, tp_size: int, tp_overlap_comm: bool)
tests/unit/v1/autotp/test_autotp_training.py:1014
Methodtest_tp_model_init_config_autotp_size_mismatch
(self)
tests/unit/v1/autotp/test_autotp_training.py:929
Methodtest_tp_model_init_dtype_mismatch
(self)
tests/unit/v1/autotp/test_autotp_training.py:988
Methodtest_tp_model_init_merges_config
(self)
tests/unit/v1/autotp/test_autotp_training.py:911
Methodtest_tp_model_init_row_parallel
(self, tp_size: int, tp_overlap_comm: bool)
tests/unit/v1/autotp/test_autotp_training.py:1008
Methodtest_tp_model_init_tp_group_rejects_mpu
(self)
tests/unit/v1/autotp/test_autotp_training.py:973
Functiontest_tp_payload_consistency_detects_divergent_large_payload
(monkeypatch)
tests/unit/v1/moe/test_autoep_autotp_dispatch.py:225
Methodtest_tp_plan_attaches_universal_checkpoint_info
(self)
tests/unit/v1/autotp/test_tp_plan_e2e.py:189
Methodtest_tp_plan_basic_training
(self)
tests/unit/v1/autotp/test_tp_plan_e2e.py:137
Methodtest_tp_plan_with_zero1
(self)
tests/unit/v1/autotp/test_tp_plan_e2e.py:217
Methodtest_tp_plan_with_zero2
(self)
tests/unit/v1/autotp/test_tp_plan_e2e.py:265
Functiontest_tp_replicated_gradient_reducer_respects_param_family
(monkeypatch, param_name, mark_router, mp_mode,
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:118
Functiontest_traced_gating_capacity_follows_token_count
(gate_fn, gate_kwargs)
tests/unit/v1/moe/test_moe.py:531
Functiontest_track_accumulates_and_resets
()
tests/unit/utils/test_pin_memory_tracker.py:16
Functiontest_trained_rotary_uses_fp32_phase_at_position_4095
(dtype: torch.dtype, atol: float)
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_rotary_emb.py:93
Methodtest_training_makes_progress_either_way
Both paths have to train; this is the baseline delock asked for alongside per-head.
tests/unit/v1/ops/muon/test_per_head_muon_accelerator.py:266
Methodtest_training_matches_adamw
(self, sub_group_size, gradient_accumulation_steps, offload_optimizer)
tests/unit/v1/zero/test_zero.py:911
Methodtest_training_matches_unsharded_reference
(self, hidden_dim, padding_idx, embedding_spec, zero_stage)
tests/unit/v1/autotp/test_autotp_training.py:1537
Methodtest_training_partition_cache
(self, training)
tests/unit/v1/zero/test_zero.py:2094
Methodtest_training_path_replaces_head_and_uses_distributed_loss
(self)
tests/unit/v1/autotp/test_autotp_training.py:360
Methodtest_training_recovers_from_the_initial_overflow
fp16 starts at a loss scale that overflows; backing off is the normal path. On the parent commit this never recovers: the momentum is NaN fro
tests/unit/v1/ops/muon/test_muon_overflow.py:65
Methodtest_training_step_succeeds_after_fix
Verify a full training step produces a finite loss after the caching fix.
tests/unit/v1/zero/test_zero_hook_count_regression.py:85
Functiontest_trans_b_matches_reference
trans_b=True (weight in native [E,N,K] layout, out = a @ w^T) fwd + grads. This is the layout used by the expert path: it keeps the transpose off
tests/unit/v1/ops/triton_ops/test_group_gemm_triton.py:233
Functiontest_transfer_over_a_weight_update_group_outside_the_default_world
()
tests/unit/checkpoint/test_affine_transfer_executor_external_group.py:70
Functiontest_transformers_checkpoint_roundtrip
(tmp_path)
tests/unit/hybrid_engine/test_he_policy.py:93
Functiontest_transformers_ref_validation
()
ci/test_torch_latest.py:345
Methodtest_transposed_input_matches_a_contiguous_copy
(self, shards,
tests/unit/ulysses_alst/test_tiled_compute.py:460
Functiontest_trim_mean_does_not_mutate_its_argument
()
tests/unit/comm/test_comms_logger.py:76
Methodtest_trims_a_longer_buffer
(self)
tests/unit/module_inject/test_auto_ep_comm.py:301
Functiontest_triton_kernels_handle_finite_extreme_logits
(op, dtype)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:579
Functiontest_triton_kernels_match_eager_path
(op, dtype)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:558
Functiontest_triton_kernels_match_eager_path_on_non_contiguous_logits
(op, layout)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:601
Functiontest_triton_layer_norm
(M, N, dtype, residual, input_bias, eps=1e-5, device='cuda')
tests/unit/ops/transformer/inference/test_layer_norm.py:164
Methodtest_tuple_output_unwrapped_correctly
Wrappers that return (output, weights) tuples are handled.
deepspeed/sequence/test_autosp.py:187
Methodtest_two
(self, number, color="purple")
tests/unit/comm/test_dist.py:65
Functiontest_two_candidates_agreeing_on_the_head_count_are_not_ambiguous
Ambiguity is about the answer, not the route. The output is a head count, so two candidates that confirm with the same count give the same an
tests/unit/runtime/zero/test_per_head_muon.py:475
Functiontest_two_disjoint_fallback_forwards_remain_gathered_until_combined_backward
(monkeypatch)
tests/unit/v1/compile/test_z3_eager_fallback.py:180
Methodtest_two_engine_managed_backward_scales_each_branch_once
(self, monkeypatch, graph_task_ids_available)
tests/unit/runtime/zero/test_zero_shared_loss_gradient.py:138
Methodtest_two_inputs
(self)
tests/unit/runtime/comm/test_coalesced_collectives.py:30
Methodtest_two_models_do_not_share_a_buffer
(self)
tests/unit/module_inject/test_auto_ep_comm.py:173
Methodtest_two_optimizer_steps_match_the_unfolded_reference
(self, micro_batches)
tests/unit/v1/moe/test_autoep_autotp_bf16_folding_parity.py:190
Functiontest_two_owners_for_one_region_are_refused
()
tests/unit/checkpoint/test_affine_transfer_plan.py:335
Methodtest_two_pending_forwards_fail_rather_than_guess
(self)
tests/unit/module_inject/test_auto_ep_comm.py:997
Functiontest_two_pieces_claiming_one_shard_range_are_refused
Disjoint in the parameter, colliding in the shard, and perfectly counted either way. This is the premise the rest of the proof borrows, so it is
tests/unit/checkpoint/test_affine_transfer_plan.py:372
Functiontest_two_rank_offload_and_nonoffload_training
(tmp_path)
tests/unit/v1/zero/test_zero2_gradient_safety.py:712
Methodtest_ulysses_sp_hf
(self, zero_stage)
tests/unit/ulysses_alst/test_ulysses_sp_hf.py:37
Methodtest_ulysses_sp_hf_flex_attention
(self, zero_stage)
tests/unit/ulysses_alst/test_ulysses_sp_hf.py:397
Methodtest_ulysses_sp_hf_with_peft_model
Test that UlyssesSPAttentionHF.register_with_transformers works with PEFT models. PEFT models don't inherit from transformers.PreTrainedModel
tests/unit/ulysses_alst/test_ulysses_sp_hf.py:187
Functiontest_unbalanced_mha_sharding
Test MHA sharding when the distribution of heads will not be equal across all ranks.
tests/unit/inference/v2/model_implementations/sharding/test_qkv_sharding.py:70
Methodtest_unbatched_backward_matches_reference
(self)
tests/unit/v1/zero/test_zero_functorch_linear.py:92
Functiontest_uncontracted_passes_are_unconstrained
(clean_registry)
tests/unit/compile/test_pass_contract.py:116
Methodtest_uneven_count_still_takes_the_uneven_path
(self)
tests/unit/v1/sequence_parallelism/test_ulysses.py:633
Methodtest_uneven_linear_gather_params
(self)
tests/unit/v1/autotp/test_autotp_training.py:1737
Functiontest_uneven_partitions_keep_their_tail_blocks
Nothing here may assume a degree divides a dimension. The uneven split is the case that a ceil-based fallback survives by accident and a sum-base
tests/unit/checkpoint/test_affine_transfer_plan.py:716
Methodtest_uneven_shards_match_full_vocabulary
(self)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:657
← previousnext →13,901–14,000 of 14,579, ranked by callers