MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Functiontest_call_to_str
()
tests/unit/runtime/test_runtime_utils.py:22
Functiontest_callables_resolved_by_identity
(clean_registry)
tests/unit/compile/test_pass_contract.py:122
Methodtest_cancelled_chunk_keeps_prior_h2d_and_range_gaps
(self)
tests/unit/v1/zero/test_reflow.py:786
Functiontest_candidate_checkout_builds_public_urls_from_validated_metadata
()
ci/test_torch_latest.py:474
Functiontest_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:496
Methodtest_capacity
(self, monkeypatch, gate_fn, capacity_args, ep_world_size, expected_calls)
tests/unit/v1/moe/test_moe.py:332
Functiontest_capture_failure_falls_back_to_eager
()
tests/unit/hybrid_engine/test_he_graph.py:151
Functiontest_causal_lm_loss_divides_sum_by_num_items_in_batch
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:84
Functiontest_causal_lm_loss_rejects_shard_metadata_changed_after_first_call
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:159
Functiontest_causal_lm_loss_shifts_labels_and_matches_reference
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:67
Functiontest_causal_lm_loss_validates_shard_metadata_once
(monkeypatch)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:137
Functiontest_causal_lm_loss_vocab_size_mismatch_warns_instead_of_raising
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:100
Functiontest_ccl_barrier_accepts_device_ids
(call_kwargs)
tests/unit/comm/test_barrier.py:30
Functiontest_changing_generation_length_invalidates_graphs
()
tests/unit/hybrid_engine/test_he_graph.py:173
Functiontest_check_paths_counts_both_sides_of_renames
()
ci/test_tests_fetcher.py:329
Functiontest_check_paths_pr_ignore_matches_exact_files_and_directories
()
ci/test_tests_fetcher.py:339
Functiontest_check_paths_runs_ci_when_unsure
()
ci/test_tests_fetcher.py:348
Functiontest_check_paths_skips_documentation_and_version_only_diffs
()
ci/test_tests_fetcher.py:320
Functiontest_check_paths_workflow_compares_with_the_merged_base
()
ci/test_tests_fetcher.py:463
Functiontest_check_paths_workflow_runs_base_branch_copy
()
ci/test_tests_fetcher.py:455
Methodtest_check_version
(self)
tests/unit/runtime/test_ds_config_dict.py:33
Functiontest_checkpoint_clipping_rejects_disabled_norm
()
tests/unit/runtime/zero/test_zero1_optimizer_fastpath.py:65
Functiontest_checkpoint_descriptor_legacy_and_invalid_metadata
(tmpdir, dimensions, error)
tests/unit/checkpoint/test_reshape_checkpoint.py:94
Functiontest_checkpoint_emits_info
(caplog)
tests/unit/utils/test_pin_memory_tracker.py:62
Methodtest_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
Functiontest_checkpoint_file_output_dtype
(monkeypatch, tmp_path)
tests/unit/checkpoint/test_convert_checkpoint.py:67
Methodtest_checkpoint_fp32_optimizer
(self, tmpdir)
tests/unit/checkpoint/test_other_optimizer.py:119
Methodtest_checkpoint_fused_optimizer
(self, tmpdir)
tests/unit/checkpoint/test_other_optimizer.py:78
Methodtest_checkpoint_layout_mismatch_is_safe
(self, tmpdir, zero_stage)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:162
Methodtest_checkpoint_lr_scheduler
(self, tmpdir, zero_stage, use_cpu_offload)
tests/unit/checkpoint/test_lr_scheduler.py:23
Methodtest_checkpoint_moe
(self, tmpdir, ep_size)
tests/unit/checkpoint/test_moe_checkpoint.py:23
Methodtest_checkpoint_moe_and_zero
(self, tmpdir, ep_size, load_optim_states)
tests/unit/checkpoint/test_moe_checkpoint.py:44
Methodtest_checkpoint_no_lr_scheduler
(self, tmpdir, zero_stage, use_cpu_offload)
tests/unit/checkpoint/test_lr_scheduler.py:75
Methodtest_checkpoint_pipe_engine
(self, zero_stage, tmpdir)
tests/unit/checkpoint/test_pipeline.py:20
Methodtest_checkpoint_pipe_module
(self, base_topo, test_topo, tmpdir)
tests/unit/checkpoint/test_pipeline.py:72
Methodtest_checkpoint_reports_worker_failure
(self, worker_fails, read_before_save, tmpdir)
tests/unit/v1/zero/test_reflow.py:1796
Methodtest_checkpoint_round_trip
(self, tmpdir)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:460
Methodtest_checkpoint_shared_weights
(self, tmp_path)
tests/unit/checkpoint/test_shared_weights.py:28
Methodtest_checkpoint_source_placement_does_not_need_to_match_target_topology
(self)
tests/unit/v1/moe/test_autoep_unit.py:839
Functiontest_checkpoint_thresholds_double_from_32gb
()
tests/unit/utils/test_pin_memory_tracker.py:49
Methodtest_checkpoint_unfused_optimizer
(self, tmpdir)
tests/unit/checkpoint/test_other_optimizer.py:21
Methodtest_checkpoint_unique_tag
(self, tmpdir, valid_mode)
tests/unit/checkpoint/test_tag_validation.py:18
Methodtest_checkpoint_unknown_tag_validation
(self, tmpdir)
tests/unit/checkpoint/test_tag_validation.py:42
Functiontest_checkpoint_writer_discovery_and_consumers_load_model_files_once
(tmpdir, monkeypatch)
tests/unit/checkpoint/test_reshape_checkpoint.py:105
Methodtest_checkpointed_frozen_param
(self, zero_stage, use_reentrant, dtype, param_persistence_threshold)
tests/unit/v1/zero/test_zero_user_backward.py:1635
Methodtest_checkpointed_layers_match_module_injection
(self)
tests/unit/compile/test_tp_compile.py:653
Methodtest_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
Methodtest_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
Methodtest_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
Methodtest_chmod_exception_handling
(self, monkeypatch, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:714
Methodtest_choose_module_by_counter
(self)
tests/unit/runtime/zero/test_zero_leaf_module.py:339
Methodtest_choose_module_by_rank
(self)
tests/unit/runtime/zero/test_zero_leaf_module.py:342
Methodtest_ckpt_arg_none
(self, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing_non_reentrant.py:91
Methodtest_ckpt_arg_none
(self, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:366
Methodtest_ckpt_inputs1_outputs1
(self, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing_non_reentrant.py:71
Methodtest_ckpt_inputs1_outputs1
(self, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:342
Methodtest_ckpt_inputs2_outputs1
(self, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing_non_reentrant.py:76
Methodtest_ckpt_inputs2_outputs1
(self, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:348
Methodtest_ckpt_inputs2_outputs2
(self, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing_non_reentrant.py:81
Methodtest_ckpt_inputs2_outputs2
(self, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:354
Methodtest_ckpt_inputs2_outputs3
(self, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing_non_reentrant.py:86
Methodtest_ckpt_inputs2_outputs3
(self, mask)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:360
Methodtest_ckpt_non_tensor_input
(self, non_tensor)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing_non_reentrant.py:102
Methodtest_ckpt_non_tensor_input
(self, non_tensor)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:377
Methodtest_ckpt_non_tensor_output
(self, non_tensor)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing_non_reentrant.py:107
Methodtest_ckpt_non_tensor_output
(self, non_tensor)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:383
Methodtest_ckpt_non_tensor_output_ordering
(self, non_tensor_output)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing_non_reentrant.py:120
Methodtest_ckpt_non_tensor_output_ordering
(self, non_tensor_output)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:396
Methodtest_ckpt_save
(self, tmpdir, tp_size: int, zero_stage: int)
tests/unit/v1/autotp/test_autotp_training.py:2062
Functiontest_clamped_alpha_and_limit_are_honoured
(oai)
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:336
Functiontest_clamped_backward_matches_reference
(oai, dtype, shape)
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:319
Functiontest_clamped_empty_input
()
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:367
Functiontest_clamped_forward_matches_reference
(oai, dtype, shape)
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:306
Functiontest_clamped_gradient_at_the_limit_is_inclusive
()
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:353
Methodtest_clamped_model_with_plain_preset_is_rejected
(self, attrs)
tests/unit/v1/moe/test_autoep_expert_activation.py:1083
Functiontest_clamped_non_contiguous_input
()
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:377
Functiontest_clamped_packed_matches_the_separate_kernel_exactly
(oai, dtype, shape)
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:396
Functiontest_clamped_shape_and_dtype_mismatch_rejected
()
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:385
Methodtest_class_lm_head_plan_survives_runtime_base_plan_override
(self)
tests/unit/runtime/test_tp_plan_extraction.py:133
Functiontest_classifies_gate_up_first
()
tests/unit/v1/moe/test_fused_expert_layout.py:9
Functiontest_classifies_hidden_first
()
tests/unit/v1/moe/test_fused_expert_layout.py:19
Functiontest_clean_delete_does_not_run_all
()
ci/test_tests_fetcher.py:495
Functiontest_cleanup_entrypoint_terminates_only_run_owned_instances
()
ci/test_torch_latest.py:1702
Methodtest_cleanup_initializes_a_lazy_ep_communicator
(self)
tests/unit/v1/moe/test_autoep_deepep_parity.py:874
Methodtest_cleanup_matches_legacy_preparation
(self, activation_checkpointing, skewed_routing)
tests/unit/v1/moe/test_autoep_deepep_parity.py:840
Functiontest_clear_and_re_extract
()
tests/unit/utils/test_debug_name_maps.py:69
Methodtest_clear_muon_allgather_buffers
(self, optimizer_class)
tests/unit/v1/ops/muon/test_muon.py:312
Functiontest_clear_selected_mv
(Opt)
tests/unit/ops/adam/test_zf_torch_adam.py:93
Methodtest_client_module_id
(self)
tests/unit/v1/zero/test_zero.py:2481
Methodtest_client_optimizer_covers_replacement_parameters
Every trainable parameter of the replaced module must be optimized.
tests/unit/v1/moe/test_autoep_integration.py:318
Methodtest_client_optimizer_preserves_param_group_hyperparameters
Both param groups must survive initialize with their hyper-parameters intact. The expert weights live in the decayed group, which is listed s
tests/unit/v1/moe/test_autoep_integration.py:377
Methodtest_client_optimizer_updates_expert_weights
A step must move the expert weights, not leave them frozen. ``weight_decay`` is 0.1 rather than AdamW's 1e-2 default so that the check does n
tests/unit/v1/moe/test_autoep_integration.py:344
Methodtest_clipped_update_matches_reference
(self, world_size, tp_size, ep_size, zero_init, offload)
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:572
Methodtest_clipped_val
(self)
tests/unit/runtime/test_runtime_utils.py:180
Functiontest_close_releases_fd_after_unlink
Single save + unlink must not leave a deleted-fd reference.
tests/unit/v1/nvme/test_fast_file_writer_fd_close.py:74
Methodtest_coalesce_issues_fewer_collectives
(self, zero_stage)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:396
Functiontest_codegen_layer_map_matches_the_real_partition
CodeGen permutes the rows before splitting them, so the map selects scattered blocks. The partition reaches that order through reshapes and never
tests/unit/checkpoint/test_affine_shard_map.py:1206
Functiontest_codegen_piece_count_follows_the_block_structure_not_the_model_size
The count must stay put as the parameter grows, or the description is not usable. A compressor that missed the permutation would emit one piece p
tests/unit/checkpoint/test_affine_shard_map.py:1231
Functiontest_codegen_refuses_every_case_the_partition_would_not_produce
Claiming a permutation the weight does not have is worse than leaving it undescribed. Each case here is a layout `_codegen_type_transpose` never
tests/unit/checkpoint/test_affine_shard_map.py:1249
Functiontest_codegen_weight_is_no_longer_refused_by_conversion
The layer must publish the map, not merely be able to build one. The geometry tests above cover `block_gather_map`, so a hook that never fires --
tests/unit/checkpoint/test_affine_shard_map.py:1266
← previousnext →12,301–12,400 of 15,468, ranked by callers