MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

Functiontest_cpu_offload_orders_successive_writes_across_streams
(monkeypatch)
tests/unit/v1/zero/test_zero2_gradient_safety.py:344
Methodtest_cpu_offload_skips_non_float_input
(self)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:189
Functiontest_cpu_optimizer_load_state_dict_keeps_state_dtype
Resuming from a state_dict must keep the states in the dtype step() uses for them, so that the resumed optimizer takes the same step as the one th
tests/unit/ops/adam/test_cpu_adam.py:134
Functiontest_cpu_staging_uses_requested_group
(monkeypatch, default_backend, subgroup_backend, group_argument, exp
tests/unit/comm/test_dist.py:185
Functiontest_cross_lane_ep_groups_accepted
(world_size, tp_size, ep_size, expected_dp, expected_edp)
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:205
Functiontest_cross_lane_expected_folding_tables
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:216
Methodtest_csv_monitor
(self)
tests/unit/monitor/test_monitor.py:81
Functiontest_cuda_accelerator_falls_back_to_torch_nvtx_without_nvtx_package
(monkeypatch, capsys)
tests/unit/utils/test_nvtx.py:115
Functiontest_cuda_accelerator_uses_nvtx_domain_when_available
(monkeypatch, capsys)
tests/unit/utils/test_nvtx.py:72
Functiontest_cuda_capability_major_probes_when_context_already_initialized
()
tests/unit/ops/test_op_builder.py:242
Functiontest_cuda_capability_major_skips_probe_in_bad_fork
()
tests/unit/ops/test_op_builder.py:255
Functiontest_cuda_capability_major_skips_probe_when_context_not_initialized
()
tests/unit/ops/test_op_builder.py:228
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_oversized_producer_handoff
(overlap)
tests/unit/v1/zero/test_zero2_gradient_safety.py:722
Functiontest_cuda_post_ln
(tokens: int, channels: int, dtype: torch.dtype)
tests/unit/inference/v2/kernels/core_ops/test_post_ln.py:29
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:31
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:325
Methodtest_custom_pattern_disables_fused_qkv_heuristic
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:362
Methodtest_custom_pattern_replacement
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:207
Methodtest_custom_pattern_without_the_key_is_refused
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:702
Methodtest_custom_patterns_applied_via_config
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:234
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
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:575
Functiontest_declared_replica_without_a_shard_is_refused
(side)
tests/unit/checkpoint/test_affine_transfer_plan.py:585
Functiontest_decode_repetition_penalty_matches_hf_generate
(temperature, use_graph_capture, continuous_batch_size)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:554
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:517
Functiontest_decode_steps_only_for_pinned_length
(kwargs, expected)
tests/unit/hybrid_engine/test_he_graph.py:41
Methodtest_deduplicates_shared_decoder_parent
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:1303
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:447
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:55
Methodtest_deepep_bypasses_collective_preparation
(self)
tests/unit/module_inject/test_auto_ep_comm.py:621
Methodtest_deepep_requires_an_explicit_capacity
(self)
tests/unit/module_inject/test_auto_ep_comm.py:45
Methodtest_deepseek_v3_detection_and_score_correction_bias_copy
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:2296
Methodtest_default_compiles_full_model
(self, compile_options)
tests/unit/v1/moe/test_autoep_unit.py:1203
Methodtest_default_destroy_releases_cached_groups
(self, explicit_world)
tests/unit/utils/test_groups.py:117
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:356
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:416
Methodtest_defaults_to_the_collective_path
(self)
tests/unit/module_inject/test_auto_ep_comm.py:32
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
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:496
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:111
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
Methodtest_diff_lrscheler_and_callable_onecyclelr_steplr
(self, scheduler_type)
tests/unit/runtime/test_ds_initialize.py:450
Functiontest_different_logical_shapes_are_not_a_reshape
()
tests/unit/checkpoint/test_affine_transfer_plan.py:514
Methodtest_different_ranks_return_different_slices
Rank 0 and rank 1 must return different slices of the fused sequence.
deepspeed/sequence/test_autosp.py:349
Methodtest_direct_backward_raises_without_functorch
(self)
tests/unit/v1/zero/test_zero_torch_func.py:125
Methodtest_direct_call_rejects_unsupported_inputs
(self, case)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:225
Methodtest_direct_init_preserves_quantized_linear_wrapper
(self)
tests/unit/runtime/zero/test_zero_linear_direct_init.py:150
Methodtest_direct_init_reinstalls_wrapper_without_replacing_backup
(self)
tests/unit/runtime/zero/test_zero_linear_direct_init.py:133
← previousnext →12,001–12,100 of 14,579, ranked by callers