MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Functiontest_cuda_bucket_rewrite_waits_for_reduction
(cpu_offload)
tests/unit/v1/zero/test_zero2_gradient_safety.py:939
Functiontest_cuda_capability_major_probes_when_context_already_initialized
()
tests/unit/ops/test_op_builder.py:351
Functiontest_cuda_capability_major_skips_probe_in_bad_fork
()
tests/unit/ops/test_op_builder.py:364
Functiontest_cuda_capability_major_skips_probe_when_context_not_initialized
()
tests/unit/ops/test_op_builder.py:337
Functiontest_cuda_device_registration_calls_cudart
(monkeypatch)
tests/unit/v1/pin_memory/test_pin_memory.py:188
Methodtest_cuda_graph_with_kernel_inject_raises
(self)
tests/unit/inference/test_inference_config.py:28
Functiontest_cuda_only_ops_are_incompatible_on_rocm_and_say_why
(builder_name, rocm_supported)
tests/unit/ops/test_op_builder.py:414
Functiontest_cuda_op_build_fails_on_cuda_major_version_mismatch_unless_check_is_skipped
(build_path)
tests/unit/ops/test_op_builder.py:279
Functiontest_cuda_op_build_warns_instead_of_failing_on_cuda_minor_version_mismatch
(build_path, capsys)
tests/unit/ops/test_op_builder.py:268
Functiontest_cuda_post_ln
(tokens: int, channels: int, dtype: torch.dtype)
tests/unit/inference/v2/kernels/core_ops/test_post_ln.py:34
Functiontest_cuda_post_ln_module
(tokens: int, channels: int, dtype: torch.dtype)
tests/unit/inference/v2/modules/test_post_ln_module.py:31
Functiontest_cuda_pre_ln
(tokens: int, channels: int, dtype: torch.dtype)
tests/unit/inference/v2/kernels/core_ops/test_pre_ln.py:36
Functiontest_cuda_producer_handoff
(overlap, cpu_offload, bucket_size)
tests/unit/v1/zero/test_zero2_gradient_safety.py:911
Functiontest_cuda_quantizer_round_trips_parameter_dtype
zero_quantized_weights must hand a parameter back in its own dtype. The quantizer op is fp16-only, so under a bf16 config the weights used to com
tests/unit/runtime/zero/test_zeropp.py:63
Functiontest_cuda_synchronize_omits_none_device
(monkeypatch)
tests/unit/v1/accelerator/test_accelerator.py:73
Methodtest_current_optimizer_checkpoint_continues_training
(self, tmpdir, zero_stage)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:147
Functiontest_curriculum_first_difficulty_is_the_aligned_min
()
tests/unit/runtime/test_data_efficiency.py:85
Methodtest_curriculum_learning
(self, dtype)
tests/unit/runtime/test_data_efficiency.py:107
Functiontest_curriculum_never_starts_below_min_difficulty
(schedule_type, min_difficulty, difficulty_step)
tests/unit/runtime/test_data_efficiency.py:73
Functiontest_curriculum_tops_out_at_the_configured_max
()
tests/unit/runtime/test_data_efficiency.py:96
Methodtest_custom_model_with_custom_tp_plan
Test custom model + custom tp_plan
tests/unit/v1/autotp/test_tp_plan_real_models.py:279
Methodtest_custom_module_replacement_with_patterns
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:327
Methodtest_custom_pattern_disables_fused_qkv_heuristic
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:364
Methodtest_custom_pattern_replacement
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:209
Methodtest_custom_pattern_without_the_key_is_refused
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:1214
Methodtest_custom_patterns_applied_via_config
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:236
Functiontest_custom_registration
()
tests/unit/inference/v2/modules/test_custom_module.py:45
Functiontest_dangling_delete_runs_all
()
ci/test_tests_fetcher.py:507
Functiontest_data_analyzer_runs_only_the_specific_threads
(tmp_path)
tests/unit/runtime/test_data_efficiency.py:188
Methodtest_dataloader_gives_a_sequence_parallel_group_the_same_samples
(self)
tests/unit/v1/compile/test_compile_autosp.py:464
Functiontest_deactivation_releases_only_the_engine_owned_state
(monkeypatch)
tests/unit/compile/test_zero3_grad_dtype.py:317
Functiontest_deallocation
()
tests/unit/inference/v2/ragged/test_blocked_allocator.py:59
Functiontest_declared_holders_must_match_actual_ranks
(side)
tests/unit/checkpoint/test_affine_transfer_plan.py:686
Functiontest_declared_replica_without_a_shard_is_refused
(side)
tests/unit/checkpoint/test_affine_transfer_plan.py:696
Methodtest_decode_attn
Batched decode attention vs reference: uniform b=1, b=4 with a shared position, and b=4 with per-row positions.
tests/unit/module_inject/test_segment_ki_kernels.py:278
Methodtest_decode_attn_fused_q
Fused q-side path: the kernel applies per-head RMSNorm (1+w), rotate-half RoPE at the row position, and the sigmoid output gate in-reg
tests/unit/module_inject/test_segment_ki_kernels.py:89
Methodtest_decode_attn_fused_q_partial_rope
Partial RoPE (Qwen3.5 convention): rotation over [0, rope_dim) only, remaining head dims pass through.
tests/unit/module_inject/test_segment_ki_kernels.py:137
Functiontest_decode_repetition_penalty_matches_hf_generate
(temperature, use_graph_capture, continuous_batch_size)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:695
Functiontest_decode_sampling_matches_hf_generate
(temperature, top_k, top_p, use_graph_capture, continuous_batch_size)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:658
Methodtest_decode_step_graph_batched
b=4 rows with per-row positions: each row argmaxes its own logits slice, advances only its own write_pos entry, reveals its own mask r
tests/unit/module_inject/test_segment_ki_kernels.py:209
Methodtest_decode_step_graph_contract
The full-step graph kernel must reproduce torch.argmax (first index on ties), advance write_pos, reveal exactly the next slot, and rec
tests/unit/module_inject/test_segment_ki_kernels.py:181
Functiontest_decode_steps_only_for_pinned_length
(kwargs, expected)
tests/unit/hybrid_engine/test_he_graph.py:42
Methodtest_deduplicates_shared_decoder_parent
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:1353
Methodtest_deep_model_full_path_propagation
Verify _replace_module propagates accumulated paths through deep hierarchies. Uses a 4-level-deep model (layers.N.self_attn.{q,o}_proj) with
tests/unit/v1/autotp/test_autotp_custom_patterns.py:449
Functiontest_deepcompile_fallback_releases_leftover_gathered_params_before_forward
()
tests/unit/v1/compile/test_z3_eager_fallback.py:124
Functiontest_deepcompile_fallback_still_gathers_outside_guard
(monkeypatch)
tests/unit/v1/compile/test_z3_eager_fallback.py:105
Functiontest_deepcompile_fallback_suppresses_guard_time_gather
(monkeypatch)
tests/unit/v1/compile/test_z3_eager_fallback.py:34
Functiontest_deepcompile_folded_rejected
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:186
Functiontest_deepcompile_folded_rejected_before_autoep_process_groups
(monkeypatch)
tests/unit/v1/moe/test_autoep_autotp_deepcompile_reject.py:15
Functiontest_deepcompile_forward_preserves_fallback_param_adopted_by_user_gathered_context
()
tests/unit/v1/compile/test_z3_eager_fallback.py:344
Functiontest_deepcompile_nonfolded_accepted
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:192
Methodtest_deepep_accepts_a_configured_capacity
(self)
tests/unit/module_inject/test_auto_ep_comm.py:60
Methodtest_deepep_bypasses_collective_preparation
(self)
tests/unit/module_inject/test_auto_ep_comm.py:639
Methodtest_deepep_requires_an_explicit_capacity
(self)
tests/unit/module_inject/test_auto_ep_comm.py:50
Methodtest_deepseek_v3_detection_and_score_correction_bias_copy
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:2367
Methodtest_default_compiles_full_model
(self, compile_options)
tests/unit/v1/moe/test_autoep_unit.py:1253
Methodtest_default_destroy_releases_cached_groups
(self, explicit_world)
tests/unit/utils/test_groups.py:117
Methodtest_default_does_not_exchange_metadata
The default path must retain its collective participation and latency contract.
tests/unit/v1/sequence_parallelism/test_ulysses.py:937
Methodtest_default_fans_stay_within_a_node
(self, processes_per_node)
tests/unit/checkpoint/test_affine_transfer_calibration.py:284
Methodtest_default_is_none
(self)
tests/unit/v1/test_engine_log_level.py:22
Methodtest_default_is_one
(self)
tests/unit/v1/half_precision/test_gradient_clipping_default.py:19
Methodtest_default_keeps_the_separate_projections
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:358
Methodtest_default_layout_optimizer_offload_uses_unpadded_gradients
(self, zero_stage)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:108
Functiontest_default_leaf_module_classes_exist
()
tests/unit/runtime/zero/test_zero_leaf_module.py:248
Functiontest_default_offload_accumulates_across_nonboundary_backwards
(low_precision, first_boundary)
tests/unit/v1/zero/test_zero2_gradient_safety.py:153
Functiontest_default_policy_balances_and_counts_load_it_cannot_move
()
tests/unit/checkpoint/test_affine_replica_policy.py:192
Functiontest_default_policy_copies_locally_when_the_target_process_holds_the_region
()
tests/unit/checkpoint/test_affine_replica_policy.py:185
Functiontest_default_policy_spreads_equal_regions_over_holders
()
tests/unit/checkpoint/test_affine_replica_policy.py:212
Functiontest_default_policy_without_processes_never_assumes_a_local_copy
()
tests/unit/checkpoint/test_affine_replica_policy.py:219
Methodtest_default_row_weighting_is_the_eager_path
(self)
tests/unit/module_inject/test_auto_ep_comm.py:430
Methodtest_defaults_to_the_collective_path
(self)
tests/unit/module_inject/test_auto_ep_comm.py:37
Functiontest_defer_collectives_is_all_or_nothing
A rejected layer must leave every other layer's collectives untouched. If the rejection is raised after some flags are already set and a caller c
tests/unit/compile/test_tp_compile.py:545
Functiontest_deferred_layer_run_eagerly_raises
Running a deferred layer outside a compiled region must raise rather than skip the collective.
tests/unit/compile/test_tp_compile.py:711
Methodtest_deferred_ready_failure_aborts_before_persist
(self, dynamic, failure)
tests/unit/v1/zero/test_reflow.py:2479
Methodtest_deferring_needs_the_grouped_mm_path
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:751
Methodtest_delayed_commit
(self, disjoint_teams)
tests/unit/v1/zero/test_reflow.py:891
Functiontest_descriptor_and_affine_map_serialization_round_trip
()
tests/unit/checkpoint/test_autoep_affine.py:218
Functiontest_destination_validation_does_not_enumerate_elements
(monkeypatch)
tests/unit/checkpoint/test_affine_shard_map.py:499
Methodtest_destroy_finishes_gradient_copy_before_unpinning
(self)
tests/unit/v1/zero/test_reflow.py:1647
Functiontest_destroy_process_group_does_not_import_sequence_parallel
(monkeypatch)
tests/unit/utils/test_groups.py:74
Functiontest_destroy_process_group_failure_preserves_references
(monkeypatch)
tests/unit/utils/test_groups.py:52
Functiontest_destroy_releases_only_owner_with_overlapping_frame_ids
(first_owner_to_destroy)
tests/unit/compile/test_zero3_grad_dtype.py:233
Functiontest_destroyed_owner_inputs_cannot_be_consumed_by_survivor
()
tests/unit/compile/test_zero3_grad_dtype.py:266
Functiontest_detached_teacher_gets_no_gradient
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:334
Methodtest_detect_grad_overflow
(self, zero_stage, offload_optimizer, gradient_clipping)
tests/unit/runtime/half_precision/test_zero_optim_overflow.py:285
Methodtest_detects_multiple_vit_layers
(self)
deepspeed/sequence/test_autosp.py:129
Methodtest_detects_vision_projection
(self)
deepspeed/sequence/test_autosp.py:122
Methodtest_detects_vit_and_llm
(self)
deepspeed/sequence/test_autosp.py:116
Functiontest_determinism
Ensure that ties between two logits are broken deterministically. This is essential when the gating is distributed across multiple devices th
tests/unit/inference/v2/kernels/ragged_ops/test_top_k_gating.py:116
Functiontest_deterministic_distribution_has_zero_entropy_and_kl
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:417
Functiontest_deterministic_float32_uses_ieee_precision
()
tests/unit/v1/ops/triton_ops/test_group_gemm_triton.py:63
Functiontest_deterministic_grouped_forward_and_backward
(trans_b)
tests/unit/v1/ops/triton_ops/test_group_gemm_triton.py:39
Functiontest_deterministic_mode_preserves_configuration
(settings)
tests/unit/runtime/test_ds_config_model.py:125
Functiontest_deterministic_mode_requires_boolean
(value)
tests/unit/runtime/test_ds_config_model.py:95
Methodtest_device_independent_buckets_exclude_sparse
(self)
tests/unit/v1/zero/test_zero.py:39
Functiontest_device_registration_aligns_to_declared_alignment
(native_pins, monkeypatch, alignment, offset)
tests/unit/v1/pin_memory/test_pin_memory.py:459
Functiontest_device_registration_failure_keeps_mlock
(monkeypatch, native_pins)
tests/unit/v1/pin_memory/test_pin_memory.py:360
Functiontest_device_registration_gc_unregisters
(monkeypatch, native_pins)
tests/unit/v1/pin_memory/test_pin_memory.py:381
Methodtest_dict
(self, base_config)
tests/unit/runtime/test_ds_config_dict.py:422
Methodtest_diff_lrscheler_and_callable
In this test, the LambdaLR will be used for lrscheduler type and the StepLR will be used for callable type
tests/unit/runtime/test_ds_initialize.py:407
← previousnext →12,601–12,700 of 15,468, ranked by callers