Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ functions
Functions
14,579 in github.com/deepspeedai/DeepSpeed
⨍
Functions
14,579
◇
Types & classes
2,353
↳
Endpoints
92
Function
test_cpu_offload_orders_successive_writes_across_streams
(monkeypatch)
tests/unit/v1/zero/test_zero2_gradient_safety.py:344
Method
test_cpu_offload_skips_non_float_input
(self)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:189
Function
test_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
Function
test_cpu_staging_uses_requested_group
(monkeypatch, default_backend, subgroup_backend, group_argument, exp
tests/unit/comm/test_dist.py:185
Function
test_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
Function
test_cross_lane_expected_folding_tables
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:216
Method
test_csv_monitor
(self)
tests/unit/monitor/test_monitor.py:81
Function
test_cuda_accelerator_falls_back_to_torch_nvtx_without_nvtx_package
(monkeypatch, capsys)
tests/unit/utils/test_nvtx.py:115
Function
test_cuda_accelerator_uses_nvtx_domain_when_available
(monkeypatch, capsys)
tests/unit/utils/test_nvtx.py:72
Function
test_cuda_capability_major_probes_when_context_already_initialized
()
tests/unit/ops/test_op_builder.py:242
Function
test_cuda_capability_major_skips_probe_in_bad_fork
()
tests/unit/ops/test_op_builder.py:255
Function
test_cuda_capability_major_skips_probe_when_context_not_initialized
()
tests/unit/ops/test_op_builder.py:228
Function
test_cuda_device_registration_calls_cudart
(monkeypatch)
tests/unit/v1/pin_memory/test_pin_memory.py:188
Method
test_cuda_graph_with_kernel_inject_raises
(self)
tests/unit/inference/test_inference_config.py:28
Function
test_cuda_oversized_producer_handoff
(overlap)
tests/unit/v1/zero/test_zero2_gradient_safety.py:722
Function
test_cuda_post_ln
(tokens: int, channels: int, dtype: torch.dtype)
tests/unit/inference/v2/kernels/core_ops/test_post_ln.py:29
Function
test_cuda_post_ln_module
(tokens: int, channels: int, dtype: torch.dtype)
tests/unit/inference/v2/modules/test_post_ln_module.py:31
Function
test_cuda_pre_ln
(tokens: int, channels: int, dtype: torch.dtype)
tests/unit/inference/v2/kernels/core_ops/test_pre_ln.py:31
Function
test_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
Function
test_cuda_synchronize_omits_none_device
(monkeypatch)
tests/unit/v1/accelerator/test_accelerator.py:73
Method
test_current_optimizer_checkpoint_continues_training
(self, tmpdir, zero_stage)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:147
Function
test_curriculum_first_difficulty_is_the_aligned_min
()
tests/unit/runtime/test_data_efficiency.py:85
Method
test_curriculum_learning
(self, dtype)
tests/unit/runtime/test_data_efficiency.py:107
Function
test_curriculum_never_starts_below_min_difficulty
(schedule_type, min_difficulty, difficulty_step)
tests/unit/runtime/test_data_efficiency.py:73
Function
test_curriculum_tops_out_at_the_configured_max
()
tests/unit/runtime/test_data_efficiency.py:96
Method
test_custom_model_with_custom_tp_plan
Test custom model + custom tp_plan
tests/unit/v1/autotp/test_tp_plan_real_models.py:279
Method
test_custom_module_replacement_with_patterns
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:325
Method
test_custom_pattern_disables_fused_qkv_heuristic
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:362
Method
test_custom_pattern_replacement
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:207
Method
test_custom_pattern_without_the_key_is_refused
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:702
Method
test_custom_patterns_applied_via_config
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:234
Function
test_custom_registration
()
tests/unit/inference/v2/modules/test_custom_module.py:45
Function
test_dangling_delete_runs_all
()
ci/test_tests_fetcher.py:507
Function
test_data_analyzer_runs_only_the_specific_threads
(tmp_path)
tests/unit/runtime/test_data_efficiency.py:188
Function
test_deactivation_releases_only_the_engine_owned_state
(monkeypatch)
tests/unit/compile/test_zero3_grad_dtype.py:317
Function
test_deallocation
()
tests/unit/inference/v2/ragged/test_blocked_allocator.py:59
Function
test_declared_holders_must_match_actual_ranks
(side)
tests/unit/checkpoint/test_affine_transfer_plan.py:575
Function
test_declared_replica_without_a_shard_is_refused
(side)
tests/unit/checkpoint/test_affine_transfer_plan.py:585
Function
test_decode_repetition_penalty_matches_hf_generate
(temperature, use_graph_capture, continuous_batch_size)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:554
Function
test_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
Function
test_decode_steps_only_for_pinned_length
(kwargs, expected)
tests/unit/hybrid_engine/test_he_graph.py:41
Method
test_deduplicates_shared_decoder_parent
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:1303
Method
test_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
Function
test_deepcompile_fallback_releases_leftover_gathered_params_before_forward
()
tests/unit/v1/compile/test_z3_eager_fallback.py:124
Function
test_deepcompile_fallback_still_gathers_outside_guard
(monkeypatch)
tests/unit/v1/compile/test_z3_eager_fallback.py:105
Function
test_deepcompile_fallback_suppresses_guard_time_gather
(monkeypatch)
tests/unit/v1/compile/test_z3_eager_fallback.py:34
Function
test_deepcompile_folded_rejected
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:186
Function
test_deepcompile_folded_rejected_before_autoep_process_groups
(monkeypatch)
tests/unit/v1/moe/test_autoep_autotp_deepcompile_reject.py:15
Function
test_deepcompile_forward_preserves_fallback_param_adopted_by_user_gathered_context
()
tests/unit/v1/compile/test_z3_eager_fallback.py:344
Function
test_deepcompile_nonfolded_accepted
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:192
Method
test_deepep_accepts_a_configured_capacity
(self)
tests/unit/module_inject/test_auto_ep_comm.py:55
Method
test_deepep_bypasses_collective_preparation
(self)
tests/unit/module_inject/test_auto_ep_comm.py:621
Method
test_deepep_requires_an_explicit_capacity
(self)
tests/unit/module_inject/test_auto_ep_comm.py:45
Method
test_deepseek_v3_detection_and_score_correction_bias_copy
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:2296
Method
test_default_compiles_full_model
(self, compile_options)
tests/unit/v1/moe/test_autoep_unit.py:1203
Method
test_default_destroy_releases_cached_groups
(self, explicit_world)
tests/unit/utils/test_groups.py:117
Method
test_default_is_none
(self)
tests/unit/v1/test_engine_log_level.py:22
Method
test_default_is_one
(self)
tests/unit/v1/half_precision/test_gradient_clipping_default.py:19
Method
test_default_keeps_the_separate_projections
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:356
Method
test_default_layout_optimizer_offload_uses_unpadded_gradients
(self, zero_stage)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:108
Function
test_default_leaf_module_classes_exist
()
tests/unit/runtime/zero/test_zero_leaf_module.py:248
Function
test_default_offload_accumulates_across_nonboundary_backwards
(low_precision, first_boundary)
tests/unit/v1/zero/test_zero2_gradient_safety.py:153
Function
test_default_policy_balances_and_counts_load_it_cannot_move
()
tests/unit/checkpoint/test_affine_replica_policy.py:192
Function
test_default_policy_copies_locally_when_the_target_process_holds_the_region
()
tests/unit/checkpoint/test_affine_replica_policy.py:185
Function
test_default_policy_spreads_equal_regions_over_holders
()
tests/unit/checkpoint/test_affine_replica_policy.py:212
Function
test_default_policy_without_processes_never_assumes_a_local_copy
()
tests/unit/checkpoint/test_affine_replica_policy.py:219
Method
test_default_row_weighting_is_the_eager_path
(self)
tests/unit/module_inject/test_auto_ep_comm.py:416
Method
test_defaults_to_the_collective_path
(self)
tests/unit/module_inject/test_auto_ep_comm.py:32
Function
test_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
Function
test_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
Function
test_descriptor_and_affine_map_serialization_round_trip
()
tests/unit/checkpoint/test_autoep_affine.py:218
Function
test_destination_validation_does_not_enumerate_elements
(monkeypatch)
tests/unit/checkpoint/test_affine_shard_map.py:496
Function
test_destroy_process_group_does_not_import_sequence_parallel
(monkeypatch)
tests/unit/utils/test_groups.py:74
Function
test_destroy_process_group_failure_preserves_references
(monkeypatch)
tests/unit/utils/test_groups.py:52
Function
test_destroy_releases_only_owner_with_overlapping_frame_ids
(first_owner_to_destroy)
tests/unit/compile/test_zero3_grad_dtype.py:233
Function
test_destroyed_owner_inputs_cannot_be_consumed_by_survivor
()
tests/unit/compile/test_zero3_grad_dtype.py:266
Function
test_detached_teacher_gets_no_gradient
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:334
Method
test_detect_grad_overflow
(self, zero_stage, offload_optimizer, gradient_clipping)
tests/unit/runtime/half_precision/test_zero_optim_overflow.py:285
Method
test_detects_multiple_vit_layers
(self)
deepspeed/sequence/test_autosp.py:129
Method
test_detects_vision_projection
(self)
deepspeed/sequence/test_autosp.py:122
Method
test_detects_vit_and_llm
(self)
deepspeed/sequence/test_autosp.py:116
Function
test_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
Function
test_deterministic_distribution_has_zero_entropy_and_kl
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:417
Function
test_deterministic_float32_uses_ieee_precision
()
tests/unit/v1/ops/triton_ops/test_group_gemm_triton.py:63
Function
test_deterministic_grouped_forward_and_backward
(trans_b)
tests/unit/v1/ops/triton_ops/test_group_gemm_triton.py:39
Function
test_deterministic_mode_preserves_configuration
(settings)
tests/unit/runtime/test_ds_config_model.py:125
Function
test_deterministic_mode_requires_boolean
(value)
tests/unit/runtime/test_ds_config_model.py:95
Method
test_device_independent_buckets_exclude_sparse
(self)
tests/unit/v1/zero/test_zero.py:39
Function
test_device_registration_aligns_to_declared_alignment
(native_pins, monkeypatch, alignment, offset)
tests/unit/v1/pin_memory/test_pin_memory.py:459
Function
test_device_registration_failure_keeps_mlock
(monkeypatch, native_pins)
tests/unit/v1/pin_memory/test_pin_memory.py:360
Function
test_device_registration_gc_unregisters
(monkeypatch, native_pins)
tests/unit/v1/pin_memory/test_pin_memory.py:381
Method
test_dict
(self, base_config)
tests/unit/runtime/test_ds_config_dict.py:422
Method
test_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
Method
test_diff_lrscheler_and_callable_onecyclelr_steplr
(self, scheduler_type)
tests/unit/runtime/test_ds_initialize.py:450
Function
test_different_logical_shapes_are_not_a_reshape
()
tests/unit/checkpoint/test_affine_transfer_plan.py:514
Method
test_different_ranks_return_different_slices
Rank 0 and rank 1 must return different slices of the fused sequence.
deepspeed/sequence/test_autosp.py:349
Method
test_direct_backward_raises_without_functorch
(self)
tests/unit/v1/zero/test_zero_torch_func.py:125
Method
test_direct_call_rejects_unsupported_inputs
(self, case)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:225
Method
test_direct_init_preserves_quantized_linear_wrapper
(self)
tests/unit/runtime/zero/test_zero_linear_direct_init.py:150
Method
test_direct_init_reinstalls_wrapper_without_replacing_backup
(self)
tests/unit/runtime/zero/test_zero_linear_direct_init.py:133
← previous
next →
12,001–12,100 of 14,579, ranked by callers