MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

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:98
Methodtest_training_across_h2d_chunk_boundaries
(self, optimizer_kind, dtype, clip)
tests/unit/v1/zero/test_reflow.py:653
Methodtest_training_and_cpu_placement
(self, worker_affinity, worker_type)
tests/unit/v1/zero/test_reflow.py:972
Functiontest_training_compatibility_checks_selected_reflow_builder
(optimizer_kind, monkeypatch)
tests/unit/v1/zero/test_reflow.py:324
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:914
Methodtest_training_matches_unsharded_reference
(self, hidden_dim, padding_idx, embedding_spec, zero_stage)
tests/unit/v1/autotp/test_autotp_training.py:1653
Methodtest_training_partition_cache
(self, training)
tests/unit/v1/zero/test_zero.py:2331
Methodtest_training_path_replaces_head_and_uses_distributed_loss
(self)
tests/unit/v1/autotp/test_autotp_training.py:361
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:75
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:306
Methodtest_triple_gemv
(self)
tests/unit/module_inject/test_segment_ki_kernels.py:258
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:477
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:178
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:338
Methodtest_two_pending_forwards_fail_rather_than_guess
(self)
tests/unit/module_inject/test_auto_ep_comm.py:1183
Methodtest_two_phase_step_matches_base
(self, model_size, grad_dtype, adamw_mode, weight_decay)
tests/unit/v1/ops/test_reflow_cpu_optimizers.py:175
Functiontest_two_phase_updates_unscale_below_and_above_one
The vector prefix and scalar tail must apply the same loss scale in both phases.
tests/unit/v1/ops/test_reflow_cpu_optimizers.py:504
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:375
Functiontest_two_rank_offload_and_nonoffload_training
(tmp_path)
tests/unit/v1/zero/test_zero2_gradient_safety.py:899
Functiontest_two_way_fits_are_kept_apart_from_one_way_fits
Pooling two-way samples into ``peer`` would hide what a link loses per direction when both directions are busy, which a policy pricing a colocated
tests/unit/checkpoint/test_affine_transfer_calibration.py:149
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
Methodtest_unclipped_checkpoint_ready_preserves_forward_weights
(self, precision)
tests/unit/v1/zero/test_reflow.py:2398
Functiontest_uncontracted_passes_are_unconstrained
(clean_registry)
tests/unit/compile/test_pass_contract.py:116
Methodtest_unequal_shards_fail_before_data_exchange
A mismatch in just one rank's Q, K or V must stop every rank before data exchange.
tests/unit/v1/sequence_parallelism/test_ulysses.py:907
Methodtest_uneven_count_still_takes_the_uneven_path
(self)
tests/unit/v1/sequence_parallelism/test_ulysses.py:769
Methodtest_uneven_linear_gather_params
(self)
tests/unit/v1/autotp/test_autotp_training.py:1853
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:963
Methodtest_uneven_shards_match_full_vocabulary
(self)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:657
Functiontest_uneven_shards_without_grain_quantization
()
tests/unit/module_inject/test_tp_shard.py:26
Methodtest_uneven_vocab_matches_full_vocab
(self, dtype, chunk_size)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_linear_cross_entropy.py:268
Methodtest_uneven_vocab_matches_torch
(self)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:176
Methodtest_unfreezing_a_weight_with_rows_staged_is_rejected
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:937
Methodtest_unfreezing_replicated_param_after_initialize_raises
A replicated parameter frozen at initialize has no TP gradient all-reduce. Training it after unfreezing would let the tensor-parallel ranks d
tests/unit/v1/autotp/test_tp_plan_e2e.py:466
Methodtest_unfused_gradnorm
(self, monkeypatch)
tests/unit/runtime/half_precision/test_fp16.py:185
Functiontest_unhandled_parallel_layer_raises
A layer reached in the graph but given no collective must stop the compile, not run wrong. The pass switches the module-level collectives off bef
tests/unit/compile/test_tp_compile.py:679
Functiontest_uniform_placement_lowers_and_round_trips
(num_experts, ep_size)
tests/unit/checkpoint/test_autoep_affine.py:31
Functiontest_unimplemented_collective_never_ready
Per-op readiness: all-gather has no fast path today, so it must report not-ready and a zero ceiling even where all-reduce is active.
tests/unit/comm/test_custom_collective.py:55
Methodtest_unique_runtime_entries_are_merged_with_config
(self)
tests/unit/runtime/test_tp_plan_extraction.py:93
Functiontest_universal_checkpoint_info_excludes_param_level_recovery_fields
()
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:153
Methodtest_universal_checkpoint_rebuilds_the_embedding
Universal checkpoint conversion rebuilds the full embedding from the shards with this metadata.
tests/unit/v1/autotp/test_autotp_training.py:2391
Methodtest_universal_checkpoint_reconstructs_tied_weight
(self, vocab_size)
tests/unit/v1/autotp/test_autotp_training.py:704
Methodtest_universal_checkpoint_reconstructs_tied_weight
(self)
tests/unit/v1/autotp/test_autotp_training.py:1718
Functiontest_universal_conversion_rejects_folded_tp_expert_shards
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_checkpoint.py:183
Methodtest_universal_converter_detects_zero3_partitioned_autoep_model_state
(self, tmp_path)
tests/unit/v1/moe/test_autoep_unit.py:1064
Functiontest_universal_dp_change_keeps_masters_and_drops_moments
(dp2_checkpoint)
tests/unit/checkpoint/test_fp32_master_only.py:221
Methodtest_universal_load_keeps_masters_and_drops_moments
(self, tmpdir)
tests/unit/checkpoint/test_fp32_master_only.py:336
Methodtest_universal_load_rejects_mismatched_target_expert_shape
(self, autoep_topology_baseline_ws4_ep2, tmpdir)
tests/unit/v1/moe/test_autoep_checkpoint.py:935
Methodtest_universal_stage3_extract_accepts_tuple_param_shapes
(self, tmp_path)
tests/unit/v1/moe/test_autoep_unit.py:1110
Methodtest_unknown_activation_rejected
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:157
Functiontest_unknown_length_runs_eager
()
tests/unit/hybrid_engine/test_he_graph.py:122
Methodtest_unknown_nccl_version_does_not_block
(self)
tests/unit/module_inject/test_auto_ep_comm.py:295
Functiontest_unknown_physical_core_count
(monkeypatch, cores)
tests/unit/ops/adam/test_cpu_adam_threads.py:76
Functiontest_unknown_target_mapping_syntax
In the above example, `multi_depend_unknown` does not exist
tests/unit/inference/v2/model_implementations/parameters/test_mapping.py:154
Methodtest_unmanaged
With managed_gradient_accumulation false, step() ends the window.
tests/unit/v1/zero/test_zero3_unused_param_grads.py:146
Methodtest_unmanaged_accepts_disabled_offload_blocks
(self)
tests/unit/v1/zero/test_zero_user_backward.py:2067
Functiontest_unmanaged_buffer_is_not_pinned
()
tests/unit/v1/nvme/test_pinned_manager.py:48
Methodtest_unmanaged_matches_managed
N backwards + one step() in unmanaged mode equals managed mode with GAS=N.
tests/unit/v1/zero/test_zero_user_backward.py:1934
Methodtest_unmanaged_matches_managed_inactive_params
(self, zero_stage)
tests/unit/v1/zero/test_zero_user_backward.py:2247
Methodtest_unmanaged_matches_managed_optimizer_nvme_offload
(self, tmpdir)
tests/unit/v1/zero/test_zero_user_backward.py:2204
Methodtest_unmanaged_matches_managed_optimizer_offload
(self, zero_stage)
tests/unit/v1/zero/test_zero_user_backward.py:2176
Methodtest_unmanaged_matches_managed_overlap_comm
(self)
tests/unit/v1/zero/test_zero_user_backward.py:2329
Methodtest_unmanaged_matches_managed_param_nvme_offload
(self, tmpdir)
tests/unit/v1/zero/test_zero_user_backward.py:2215
Methodtest_unmanaged_matches_managed_param_offload
(self)
tests/unit/v1/zero/test_zero_user_backward.py:2187
Methodtest_unmanaged_rejects_coalesce_grad_reduction
(self, zero_stage)
tests/unit/v1/zero/test_zero_user_backward.py:2387
Methodtest_unmanaged_rejects_overlap_comm
(self, zero_stage)
tests/unit/v1/zero/test_zero_user_backward.py:2312
Methodtest_unmanaged_rejects_pipeline
(self)
tests/unit/v1/zero/test_zero_user_backward.py:2406
Methodtest_unmanaged_set_full_grad
With managed_gradient_accumulation false, a gradient set with safe_set_full_grad after the last backward is the one step() applies, whether th
tests/unit/v1/zero/test_zero3_unused_param_grads.py:157
Methodtest_unmanaged_varying_backward_count
Varying backward() count per step matches a managed manual-boundary reference and tracks global_samples.
tests/unit/v1/zero/test_zero_user_backward.py:1986
Functiontest_unmarked_saved_tensors_pass_through
()
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:21
Functiontest_unpatch_compiled_func_clears_backward_inputs
()
tests/unit/compile/test_backend.py:72
Functiontest_unpin_frees_original_after_data_redirect
(native_pins)
tests/unit/v1/pin_memory/test_pin_memory.py:107
← previousnext →14,801–14,900 of 15,468, ranked by callers