MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Methodtest_output_and_qkv_gradients
Catch layout corruption and lost QKV gradients, including caller-owned padding. Masked padding must retain five-token semantics. Unmasked pad
tests/unit/v1/sequence_parallelism/test_ulysses.py:783
Methodtest_output_and_residual_vs_hf
(self, model)
tests/unit/module_inject/test_hf_parity.py:128
Functiontest_output_dtype_conversion_preserves_shared_tensors
()
tests/unit/checkpoint/test_convert_checkpoint.py:26
Functiontest_output_dtype_preserves_nonfloating_buffers
(dtype, return_empty_tensor)
tests/unit/checkpoint/test_convert_checkpoint.py:44
Methodtest_output_equals_single_device
Each rank's local output slice must match the corresponding slice of the single-device output.
tests/unit/v1/sequence_parallelism/test_autosp_equivalence.py:54
Functiontest_output_path_cannot_escape_or_replace_trusted_checkout
()
ci/test_tests_fetcher.py:617
Functiontest_output_projection_is_left_alone
o_proj is `[hidden, num_heads * head_dim]` - its heads are on the input axis. The split is on dim 0, so tagging it would cut across the wrong axi
tests/unit/runtime/zero/test_per_head_muon.py:184
Methodtest_output_shape
Output local_len must equal ceil(fused_len / world_size).
deepspeed/sequence/test_autosp.py:300
Methodtest_output_shape_matches_input
Output shape must equal input shape for any padding scenario.
deepspeed/sequence/test_autosp.py:174
Functiontest_outputs_support_in_place_masking
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:310
Functiontest_overflow_check_accepts_every_invalid_norm_representation
(bad)
tests/unit/v1/zero/test_invalid_grad_norm.py:55
Methodtest_overflow_check_still_skips_the_step
(self)
tests/unit/runtime/zero/test_zero1_optimizer_fastpath.py:130
Functiontest_overlap_backward_preserves_shape_changing_producers
(monkeypatch)
tests/unit/v1/sequence_parallelism/test_overlap_grad_permutation.py:18
Functiontest_overlap_check_matches_what_empty_like_would_allocate
The predicate has one job: reject a tensor empty_like would allocate more storage for. csrc/compile/z3.cpp builds both the pinned host buffer and
tests/unit/v1/compile/test_offload_activation.py:531
Methodtest_overlap_kwargs
(self)
tests/unit/inference/test_inference_config.py:57
Methodtest_overlap_kwargs_conflict
(self)
tests/unit/inference/test_inference_config.py:64
Methodtest_overlap_matches_the_serial_backward_bitwise
(self)
tests/unit/module_inject/test_auto_ep_comm.py:942
Methodtest_overlap_weight_grad_rejects_the_triton_grouped_gemm
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_expert_activation.py:415
Methodtest_overlap_weight_grad_settings_are_validated
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_expert_activation.py:389
Methodtest_overlapped_weight_gradients_match_the_serial_backward
overlap_weight_grad changes when the experts' weight gradients are computed, not their values. The two runs dispatch separately, so DeepEP's
tests/unit/v1/moe/test_autoep_deepep_parity.py:688
Functiontest_overlapping_view_is_skipped
()
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:411
Functiontest_oversized_copy_is_independent_and_preserves_routing
(dtype, cpu_offload, bucket_size)
tests/unit/v1/zero/test_zero2_gradient_safety.py:131
Functiontest_oversized_message_fails_the_gate
custom_collective_max_bytes is the payload ceiling; contract: an 8MB message must exceed it (the kernel's IPC buffers are 2x4MB).
tests/unit/comm/test_custom_collective.py:46
Functiontest_oversubscribed_ranks_share_only_available_cpus
()
tests/unit/v1/zero/test_reflow.py:172
Functiontest_owner_geometry_still_has_to_match_the_shape
The module is another candidate, not an override: #8384's shape confirmation still rules.
tests/unit/runtime/zero/test_per_head_muon.py:721
Methodtest_packed_activation_matches_the_separate_halves
(self, activation)
tests/unit/v1/moe/test_autoep_expert_activation.py:337
Functiontest_packed_create_graph_is_rejected
(dtype)
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:200
Methodtest_packed_kernels_are_registered
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:353
Functiontest_packed_matches_the_separate_kernel_exactly
(dtype, shape)
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:121
Functiontest_packed_non_contiguous_input_and_gradient
(dtype)
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:181
Functiontest_packed_odd_width_raises
()
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:234
Methodtest_packed_regions_are_exactly_the_contiguous_views
(self)
tests/unit/checkpoint/test_affine_transfer_executor.py:440
Functiontest_packed_uses_the_input_device_and_stream
(dtype)
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:209
Methodtest_packing_failure_drains_pending_and_allows_retry
(self, monkeypatch, async_split_layer)
tests/unit/v1/moe/test_autoep_unit.py:2009
Functiontest_pad_after_eos_handles_different_lengths_and_missing_eos
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1886
Functiontest_pad_after_eos_keeps_eos_attended_when_eos_is_pad
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1907
Functiontest_pad_after_eos_supports_multiple_eos_ids
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1916
Methodtest_padded_and_unused_gradients_between_microsteps
(self)
tests/unit/v1/zero/test_reflow.py:1418
Functiontest_padded_optional_fields_and_noncontiguous_input
Padding accepts absent labels/positions and preserves trailing feature axes.
tests/unit/v1/sequence_parallelism/test_fpdt_inputs.py:84
Methodtest_padded_shard_handling
Test that parameters with padding (uneven division) work correctly with DeepCompile
tests/unit/v1/compile/test_compile_zero.py:174
Methodtest_padding_matches_unpadded_reference
(self, length, offload)
tests/unit/v1/sequence_parallelism/test_ulysses.py:395
Methodtest_padding_produces_valid_output_when_not_divisible
When fused_len % world_size != 0, padding must not raise and output is well-formed.
deepspeed/sequence/test_autosp.py:318
Methodtest_padding_rank
When `b` is skipped, the second rank reduces no gradient of its own; its partition of `b` still gets a zero gradient.
tests/unit/v1/zero/test_zero3_unused_param_grads.py:151
Functiontest_padding_rejects_attention_mask
()
tests/unit/v1/sequence_parallelism/test_fpdt_inputs.py:112
Functiontest_padding_requires_loss_weights
()
tests/unit/v1/sequence_parallelism/test_fpdt_inputs.py:106
Functiontest_padding_values_and_rank_order
Catch dropped/duplicated real tokens, rank-order errors and nonzero padding weights.
tests/unit/v1/sequence_parallelism/test_fpdt_inputs.py:28
Methodtest_parallel_read
(self, tmpdir, single_submit, overlap_events)
tests/unit/v1/nvme/test_gds.py:76
Methodtest_parallel_read
(self, tmpdir, use_cuda_pinned_tensor, single_submit, overlap_events, use_unpinned_tensor)
tests/unit/v1/nvme/test_aio.py:96
Methodtest_parallel_write
(self, tmpdir, single_submit, overlap_events)
tests/unit/v1/nvme/test_gds.py:127
Methodtest_parallel_write
(self, tmpdir, use_cuda_pinned_tensor, single_submit, overlap_events, use_unpinned_tensor)
tests/unit/v1/nvme/test_aio.py:165
Methodtest_param
(self, tmpdir)
tests/unit/v1/zero/test_zero3_nvme_offload.py:106
Methodtest_param_and_optimizer
(self, tmpdir, fast_init)
tests/unit/v1/zero/test_zero3_nvme_offload.py:111
Methodtest_param_and_optimizer_fp32
(self, tmpdir, fast_init)
tests/unit/v1/zero/test_zero3_nvme_offload.py:117
Methodtest_param_dtype_from_bf16_flag
(self)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:51
Methodtest_param_dtype_from_fp16_flag
(self)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:56
Methodtest_param_dtype_none_leaves_params
(self)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:112
Methodtest_param_offload_keeps_only_buffers
(self)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:477
Methodtest_param_persistence_threshold
(self, param_persistence_threshold)
tests/unit/v1/zero/test_zero.py:973
Functiontest_param_uc_restore_builder_normalizes_shapes_and_nests_conversion_view
()
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:215
Methodtest_parameter_alignment_is_opt_in
(self, zero_stage, parameter_alignment)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:99
Methodtest_parameter_and_state_access_report_failed_commit
(self)
tests/unit/v1/zero/test_reflow.py:1846
Methodtest_parameters_match_ddp_after_step
Test that parameters match DDP after a training step. Note: This test is for FP16 where gradients are scaled and hard to compare.
tests/unit/v1/half_precision/test_with_autocast.py:123
Methodtest_params
()
tests/unit/runtime/test_runtime_utils.py:183
Methodtest_params
()
tests/unit/runtime/test_runtime_utils.py:289
Methodtest_params_cast_buffers_preserved_by_default
(self)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:96
Methodtest_params_reconstruct_exactly
(self, numels)
tests/unit/runtime/zero/test_zero_allreduce_fetch_params.py:33
Functiontest_parity_contiguous_split
The default branch: `cat(slices, dim=1)` for row parallelism, `dim=0` otherwise.
tests/unit/checkpoint/test_affine_shard_map.py:330
Functiontest_parity_replicated
`merge_tp_slices` takes slices[0] after asserting every rank matches.
tests/unit/checkpoint/test_affine_shard_map.py:318
Functiontest_parity_round_trips_back_to_the_original_slices
Extracting from the merged parameter returns the slices it was built from.
tests/unit/checkpoint/test_affine_shard_map.py:393
Functiontest_parity_sub_params_with_uneven_widths
The sub-parameter branch, with the per-rank widths #8185 added for uneven splits. Q, K and V are different sizes and none divides evenly by the t
tests/unit/checkpoint/test_affine_shard_map.py:361
Functiontest_parity_two_sub_params_cat_dim_0
The 2-sub-param branch chunks each slice, merges each half, then concatenates.
tests/unit/checkpoint/test_affine_shard_map.py:341
Methodtest_parse_and_validate_enabled_size_contract
(self)
tests/unit/v1/moe/test_autoep_unit.py:253
Functiontest_parse_inclusion_exclusion
parse_inclusion_exclusion() maps a slot-count pool onto parse_resource_filter(). The pool holds slot counts rather than slot lists, so this is th
tests/unit/launcher/test_run.py:77
Functiontest_parse_inclusion_exclusion_errors
An out-of-range slot has to be rejected for --include, not just --exclude.
tests/unit/launcher/test_run.py:105
Functiontest_parser_errors
Ensure we catch errors.
tests/unit/launcher/test_run.py:209
Functiontest_parser_local
Test cases with only one node.
tests/unit/launcher/test_run.py:21
Functiontest_parser_multinode
()
tests/unit/launcher/test_run.py:58
Functiontest_parser_mutual_exclusive
Ensure dsrun.parse_resource_filter() raises a ValueError when include_str and exclude_str are both provided.
tests/unit/launcher/test_run.py:13
Functiontest_partial_live_output_falls_back_after_terminal_drain_failure
()
ci/test_torch_latest.py:1400
Functiontest_partial_offload_when_budget_allows_residency
(monkeypatch)
tests/unit/v1/compile/test_offload_opt_states.py:207
Functiontest_partial_replica_boundaries_offer_rebuild_fallback
()
tests/unit/checkpoint/test_affine_transfer_plan.py:750
Functiontest_partially_masked_vocabulary_matches_unmasked_subset
(op)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:393
Methodtest_partially_optimized_packed_sources_raise
``module_list`` storage packs several local experts into one replacement tensor. If the caller optimized only some of them, that tensor can be
tests/unit/v1/moe/test_autoep_unit.py:2878
Functiontest_partition_assignments_splits_each_expert_once_across_tp_lanes
()
tests/unit/v1/moe/test_autoep_autotp_dispatch.py:56
Functiontest_partition_balanced
()
tests/unit/utils/test_partition_balanced.py:21
Functiontest_partition_config_receives_full_path
Verify that pattern matching sees the full hierarchical path.
tests/unit/module_inject/test_tp_partition_config_path.py:116
Functiontest_partition_excludes_padded_and_dropped_assignments_from_stats
()
tests/unit/v1/moe/test_autoep_autotp_dispatch.py:71
Functiontest_partitioned_legacy_metadata_still_requires_uniform_contiguous_ranges
()
tests/unit/checkpoint/test_autoep_zero3_metadata.py:119
Functiontest_partitioned_metadata_with_explicit_uneven_noncontiguous_placement_is_accepted
()
tests/unit/checkpoint/test_autoep_zero3_metadata.py:106
Functiontest_parts_count_against_the_budget_across_requests
()
tests/unit/checkpoint/test_affine_replica_policy.py:346
Functiontest_pass_does_not_ask_for_a_reprofiling_replay
(forced_budget)
tests/unit/v1/compile/test_offload_activation.py:387
Functiontest_pass_reruns_do_not_double_append
(monkeypatch)
tests/unit/v1/compile/test_offload_opt_states.py:232
Functiontest_patch_compiled_func_unwraps_staticmethod_descriptor
()
tests/unit/compile/test_backend.py:83
Methodtest_pattern_matches_param_name
(self)
tests/unit/module_inject/test_tp_plan_converter.py:98
Methodtest_pattern_weight_suffix
(self)
tests/unit/module_inject/test_tp_plan_converter.py:59
Methodtest_pattern_weight_suffix_already_present
(self)
tests/unit/module_inject/test_tp_plan_converter.py:66
Functiontest_payload_gate_blocks_when_not_ready
The size half of the dispatch gate: without a successful initialize the advertised max payload is zero, so no message can ever qualify.
tests/unit/comm/test_custom_collective.py:37
Functiontest_pdsh_runner
(runner_info)
tests/unit/launcher/test_multinode_runner.py:24
Functiontest_peer_pair_fits_keep_each_direction
Pooling by path would average the fast and the slow direction of one link.
tests/unit/checkpoint/test_affine_transfer_calibration.py:134
Functiontest_per_head_differs_from_full_matrix_when_heads_are_unbalanced
The point of the change: one loud head must stop setting the direction for the quiet ones. Without this the test would pass even if num_heads wer
tests/unit/runtime/zero/test_per_head_muon.py:113
← previousnext →13,901–14,000 of 15,468, ranked by callers