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_boundary_first_offload_preserves_owned_fragment_and_accumulation_dtype
(low_precision, source_offset,
tests/unit/v1/zero/test_zero2_gradient_safety.py:200
Method
test_boundary_microbatch_grad_is_reduced
(self)
tests/unit/v1/zero/test_zero.py:281
Function
test_boundary_offload_can_be_finalized_without_another_backward
(low_precision)
tests/unit/v1/zero/test_zero2_gradient_safety.py:160
Method
test_boundary_tokens_preserved
IMG_START and IMG_END embeddings must be unchanged after splice.
deepspeed/sequence/test_autosp.py:547
Method
test_boundary_tokens_preserved
vision_start and vision_end embeddings must be unchanged after splice.
deepspeed/sequence/test_autosp.py:658
Method
test_bounded_gather_matches_unbucketed_training
(self, zero_stage)
tests/unit/v1/ops/muon/test_muon.py:233
Function
test_broken_transformers_moe_raises
Affected releases must reject only MoE models selecting the broken batched_mm path.
tests/unit/compile/test_tp_compile.py:568
Function
test_btl_nic_openmpi_runner
(runner_info)
tests/unit/launcher/test_multinode_runner.py:40
Function
test_btl_nic_two_dashes_openmpi_runner
(runner_info)
tests/unit/launcher/test_multinode_runner.py:49
Function
test_bucket_reuse_waits_for_previous_consumer
(monkeypatch, producers)
tests/unit/v1/zero/test_zero2_gradient_safety.py:296
Method
test_buffer_dtype_does_not_cast_listed_buffers
(self, zero_stage)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:172
Method
test_buffer_dtype_forces_cast
(self)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:102
Method
test_buffer_dtype_opt_in
(self, zero_stage)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:170
Method
test_buffer_dtype_string_resolution
(self, cfg_str, expected)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:66
Function
test_buffer_is_shared_across_handles
()
tests/unit/v1/nvme/test_pinned_manager.py:36
Function
test_buffer_key_shared_across_strides
()
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:403
Method
test_buffer_preserved_by_default
(self, zero_stage)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:162
Method
test_buffer_round_trip
(self, tmp_path, zero_stage, dtype)
tests/unit/checkpoint/test_convert_checkpoint.py:215
Function
test_builtin_conflicts_name_registered_passes
()
tests/unit/compile/test_pass_contract.py:149
Function
test_builtin_default_schedules_validate
(builtin_registry)
tests/unit/compile/test_pass_contract.py:155
Method
test_builtin_presets_name_their_form
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:530
Function
test_bwd_insertion_reloads_at_graph_end
(monkeypatch)
tests/unit/v1/compile/test_offload_opt_states.py:246
Function
test_bwd_keeps_the_copy_late_when_memory_is_tight
(monkeypatch)
tests/unit/v1/compile/test_offload_activation.py:863
Function
test_bwd_reloads_before_first_use_and_rewrites_readers
(forced_budget, monkeypatch)
tests/unit/v1/compile/test_offload_activation.py:828
Function
test_bwd_reloads_just_in_time_when_the_profile_is_missing
(forced_budget, monkeypatch)
tests/unit/v1/compile/test_offload_activation.py:879
Function
test_bwd_starts_the_copy_early_enough_to_hide_it
(ample_budget, monkeypatch)
tests/unit/v1/compile/test_offload_activation.py:848
Function
test_bwd_without_a_plan_is_skipped
(forced_budget)
tests/unit/v1/compile/test_offload_activation.py:899
Method
test_byte_cast_accelerator_tensor
(self, dtype)
tests/unit/utils/test_byte_cast.py:47
Method
test_byte_cast_accelerator_tensor_list
(self, tensor_count)
tests/unit/utils/test_byte_cast.py:66
Method
test_byte_cast_cpu_tensor
(self, dtype, pinned_memory)
tests/unit/utils/test_byte_cast.py:53
Method
test_byte_cast_cpu_tensor_list
(self, tensor_count)
tests/unit/utils/test_byte_cast.py:70
Function
test_calc_bw_log_supports_object_and_list_collectives
(monkeypatch, comm_op, world_size)
tests/unit/comm/test_comms_logger.py:243
Function
test_call
csrc/compile/z3.cpp:665
Function
test_call_to_str
()
tests/unit/runtime/test_runtime_utils.py:22
Function
test_callables_resolved_by_identity
(clean_registry)
tests/unit/compile/test_pass_contract.py:122
Function
test_candidate_checkout_builds_public_urls_from_validated_metadata
()
ci/test_torch_latest.py:474
Function
test_candidates_that_disagree_on_the_head_count_are_skipped
A real ambiguity: both confirm the shape, and they give different answers.
tests/unit/runtime/zero/test_per_head_muon.py:494
Method
test_capacity
(self, monkeypatch, gate_fn, capacity_args, ep_world_size, expected_calls)
tests/unit/v1/moe/test_moe.py:332
Function
test_capture_failure_falls_back_to_eager
()
tests/unit/hybrid_engine/test_he_graph.py:150
Function
test_causal_lm_loss_divides_sum_by_num_items_in_batch
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:84
Function
test_causal_lm_loss_rejects_shard_metadata_changed_after_first_call
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:159
Function
test_causal_lm_loss_shifts_labels_and_matches_reference
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:67
Function
test_causal_lm_loss_validates_shard_metadata_once
(monkeypatch)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:137
Function
test_causal_lm_loss_vocab_size_mismatch_warns_instead_of_raising
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:100
Function
test_ccl_barrier_accepts_device_ids
(call_kwargs)
tests/unit/comm/test_barrier.py:30
Function
test_changing_generation_length_invalidates_graphs
()
tests/unit/hybrid_engine/test_he_graph.py:172
Function
test_check_paths_counts_both_sides_of_renames
()
ci/test_tests_fetcher.py:329
Function
test_check_paths_pr_ignore_matches_exact_files_and_directories
()
ci/test_tests_fetcher.py:339
Function
test_check_paths_runs_ci_when_unsure
()
ci/test_tests_fetcher.py:348
Function
test_check_paths_skips_documentation_and_version_only_diffs
()
ci/test_tests_fetcher.py:320
Function
test_check_paths_workflow_compares_with_the_merged_base
()
ci/test_tests_fetcher.py:463
Function
test_check_paths_workflow_runs_base_branch_copy
()
ci/test_tests_fetcher.py:455
Method
test_check_version
(self)
tests/unit/runtime/test_ds_config_dict.py:33
Function
test_checkpoint_clipping_rejects_disabled_norm
()
tests/unit/runtime/zero/test_zero1_optimizer_fastpath.py:65
Function
test_checkpoint_descriptor_legacy_and_invalid_metadata
(tmpdir, dimensions, error)
tests/unit/checkpoint/test_reshape_checkpoint.py:94
Function
test_checkpoint_emits_info
(caplog)
tests/unit/utils/test_pin_memory_tracker.py:62
Method
test_checkpoint_external_parameter_lifecycle
A checkpoint-replayed external param must stay AVAILABLE at each consumer and clean up after.
tests/unit/v1/zero/test_zero_activation_checkpoint_lifecycle.py:476
Function
test_checkpoint_file_output_dtype
(monkeypatch, tmp_path)
tests/unit/checkpoint/test_convert_checkpoint.py:67
Method
test_checkpoint_fp32_optimizer
(self, tmpdir)
tests/unit/checkpoint/test_other_optimizer.py:119
Method
test_checkpoint_fused_optimizer
(self, tmpdir)
tests/unit/checkpoint/test_other_optimizer.py:78
Method
test_checkpoint_layout_mismatch_is_safe
(self, tmpdir, zero_stage)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:162
Method
test_checkpoint_lr_scheduler
(self, tmpdir, zero_stage, use_cpu_offload)
tests/unit/checkpoint/test_lr_scheduler.py:23
Method
test_checkpoint_moe
(self, tmpdir, ep_size)
tests/unit/checkpoint/test_moe_checkpoint.py:23
Method
test_checkpoint_moe_and_zero
(self, tmpdir, ep_size, load_optim_states)
tests/unit/checkpoint/test_moe_checkpoint.py:44
Method
test_checkpoint_no_lr_scheduler
(self, tmpdir, zero_stage, use_cpu_offload)
tests/unit/checkpoint/test_lr_scheduler.py:75
Method
test_checkpoint_pipe_engine
(self, zero_stage, tmpdir)
tests/unit/checkpoint/test_pipeline.py:20
Method
test_checkpoint_pipe_module
(self, base_topo, test_topo, tmpdir)
tests/unit/checkpoint/test_pipeline.py:72
Method
test_checkpoint_round_trip
(self, tmpdir)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:460
Method
test_checkpoint_shared_weights
(self, tmp_path)
tests/unit/checkpoint/test_shared_weights.py:28
Method
test_checkpoint_source_placement_does_not_need_to_match_target_topology
(self)
tests/unit/v1/moe/test_autoep_unit.py:789
Function
test_checkpoint_thresholds_double_from_32gb
()
tests/unit/utils/test_pin_memory_tracker.py:49
Method
test_checkpoint_unfused_optimizer
(self, tmpdir)
tests/unit/checkpoint/test_other_optimizer.py:21
Method
test_checkpoint_unique_tag
(self, tmpdir, valid_mode)
tests/unit/checkpoint/test_tag_validation.py:18
Method
test_checkpoint_unknown_tag_validation
(self, tmpdir)
tests/unit/checkpoint/test_tag_validation.py:42
Function
test_checkpoint_writer_discovery_and_consumers_load_model_files_once
(tmpdir, monkeypatch)
tests/unit/checkpoint/test_reshape_checkpoint.py:105
Method
test_checkpointed_frozen_param
(self, zero_stage, use_reentrant, dtype, param_persistence_threshold)
tests/unit/v1/zero/test_zero_user_backward.py:1635
Method
test_checkpointed_layers_match_module_injection
(self)
tests/unit/compile/test_tp_compile.py:653
Method
test_checkpointed_multiple_backward
Test multiple backward passes with checkpointing and ZeRO. Verifies that consecutive training iterations work correctly with gradient
tests/unit/v1/zero/test_zero_user_backward.py:1512
Method
test_checkpointed_non_scalar_backward
Test that gradient checkpointing works with ZeRO and non-scalar backward. Verifies that tensor.backward(gradient=...) works correctly with Ze
tests/unit/v1/zero/test_zero_user_backward.py:1368
Method
test_checkpointed_scalar_backward
Test that gradient checkpointing works with ZeRO and scalar backward. Verifies that scalar loss.backward() works correctly with ZeRO and
tests/unit/v1/zero/test_zero_user_backward.py:1442
Method
test_chmod_exception_handling
(self, monkeypatch, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:714
Method
test_choose_module_by_counter
(self)
tests/unit/runtime/zero/test_zero_leaf_module.py:339
Method
test_choose_module_by_rank
(self)
tests/unit/runtime/zero/test_zero_leaf_module.py:342
Method
test_ckpt_arg_none
(self, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing_non_reentrant.py:91
Method
test_ckpt_arg_none
(self, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:366
Method
test_ckpt_inputs1_outputs1
(self, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing_non_reentrant.py:71
Method
test_ckpt_inputs1_outputs1
(self, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:342
Method
test_ckpt_inputs2_outputs1
(self, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing_non_reentrant.py:76
Method
test_ckpt_inputs2_outputs1
(self, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:348
Method
test_ckpt_inputs2_outputs2
(self, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing_non_reentrant.py:81
Method
test_ckpt_inputs2_outputs2
(self, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:354
Method
test_ckpt_inputs2_outputs3
(self, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing_non_reentrant.py:86
Method
test_ckpt_inputs2_outputs3
(self, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:360
Method
test_ckpt_non_tensor_input
(self, non_tensor)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing_non_reentrant.py:102
Method
test_ckpt_non_tensor_input
(self, non_tensor)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:377
Method
test_ckpt_non_tensor_output
(self, non_tensor)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing_non_reentrant.py:107
Method
test_ckpt_non_tensor_output
(self, non_tensor)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:383
Method
test_ckpt_non_tensor_output_ordering
(self, non_tensor_output)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing_non_reentrant.py:120
Method
test_ckpt_non_tensor_output_ordering
(self, non_tensor_output)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:396
Method
test_ckpt_save
(self, tmpdir, tp_size: int, zero_stage: int)
tests/unit/v1/autotp/test_autotp_training.py:1946
← previous
next →
11,701–11,800 of 14,579, ranked by callers