MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

Functiontest_step_consumes_gradients_after_offload_copies_complete
(monkeypatch)
tests/unit/v1/zero/test_zero2_gradient_safety.py:433
Methodtest_step_inside_context_raises
(self)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:528
Functiontest_step_nvme_offloaded_partition
()
tests/unit/ops/adam/test_zf_torch_adam.py:254
Methodtest_step_rollback_sequence
Test sequence of step_subgroup and rollback_subgroup operations.
tests/unit/ops/adam/test_cpu_adam.py:514
Methodtest_step_same_step_idempotent_across_param_keys
Repeated optimizer.step() with swapped param keys should be deterministic.
tests/unit/ops/adam/test_cpu_adam.py:591
Methodtest_step_subgroup_basic
Test basic functionality of step_subgroup method.
tests/unit/ops/adam/test_cpu_adam.py:394
Methodtest_step_subgroup_multiple_calls
Test multiple calls to step_subgroup increment step count correctly.
tests/unit/ops/adam/test_cpu_adam.py:426
Methodtest_step_subgroup_same_step_idempotent_across_subgroups
Repeated same-step subgroup updates should remain bit-identical.
tests/unit/ops/adam/test_cpu_adam.py:563
Functiontest_step_with_offload_bucket_flush
(Opt)
tests/unit/ops/adam/test_zf_torch_adam.py:72
Functiontest_step_without_offload
(Opt)
tests/unit/ops/adam/test_zf_torch_adam.py:52
Functiontest_stochastic_forward_rejected_after_construction
(deterministic_policy)
tests/unit/runtime/test_custom_determinism.py:27
Functiontest_stochastic_layer_rejected_before_extension_load
(deterministic_policy)
tests/unit/runtime/test_custom_determinism.py:21
Functiontest_stop_profiling_comms_disables_prof_all
()
tests/unit/comm/test_comms_logger.py:18
Functiontest_storage_map_describes_what_each_global_rank_stores
(layout, zero3)
tests/unit/checkpoint/test_autoep_affine.py:278
Functiontest_storage_map_follows_explicit_rank_ids
()
tests/unit/checkpoint/test_autoep_affine.py:343
Functiontest_storage_map_offers_every_edp_replica_to_the_planner
()
tests/unit/checkpoint/test_autoep_affine.py:294
Functiontest_storage_map_rejects_holders_that_do_not_store_the_placement
(holders, partitions, match)
tests/unit/checkpoint/test_autoep_affine.py:383
Methodtest_storage_maps_match_runtime_ownership_and_plan_into_a_new_placement
(self, zero_stage, autotp_size)
tests/unit/v1/moe/test_autoep_checkpoint.py:655
Methodtest_storage_nonzero_until_final_release_when_multi_use
(self)
tests/torch_compile/test_deepcompile_z3_release.py:77
Methodtest_storage_resized_to_zero_after_release_single_use
(self)
tests/torch_compile/test_deepcompile_z3_release.py:66
Functiontest_stored_version_is_the_format_version
A map written now must declare the version this code writes, not the checkpoint's.
tests/unit/checkpoint/test_affine_shard_map.py:454
Functiontest_streams_offload_restore_matches_baseline
()
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:207
Methodtest_strict_correctness
(self, tmpdir)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1347
Methodtest_strict_correctness
(self, tmpdir)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1473
Functiontest_stride_vector_must_match_piece_rank
(strides, side)
tests/unit/checkpoint/test_affine_transfer_plan.py:545
Functiontest_strided_column_pieces_remain_valid
()
tests/unit/checkpoint/test_affine_shard_map.py:481
Functiontest_strided_destination_outside_the_shard_is_refused
()
tests/unit/checkpoint/test_affine_shard_map.py:533
Functiontest_strided_destination_overlap_is_refused
()
tests/unit/checkpoint/test_affine_shard_map.py:523
Functiontest_strided_destination_that_wraps_a_shard_row_round_trips
()
tests/unit/checkpoint/test_affine_shard_map.py:540
Functiontest_strided_destination_validation_does_not_enumerate_elements
(monkeypatch)
tests/unit/checkpoint/test_affine_shard_map.py:580
Methodtest_strided_rows_and_upstream_gradients
(self, dtype)
tests/unit/v1/moe/test_autoep_permute_rows.py:80
Functiontest_strided_view_offload_matches_baseline
()
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:355
Functiontest_stub_deepcompile_ops_uses_isolated_namespace
()
tests/unit/v1/compile/test_list_schedule.py:83
Functiontest_sub_mapping_syntax
()
tests/unit/inference/v2/model_implementations/parameters/test_mapping.py:94
Functiontest_sub_param_layer_materializes_zero_width_final_dimension
(layer_cls)
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:468
Functiontest_sub_param_shard_widths_legacy_version_uses_even_split
(tp_world_size)
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:442
Functiontest_sub_param_shard_widths_round_trip_with_zero_width_ranks
(tp_world_size)
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:407
Methodtest_subclass_param
(self)
tests/unit/runtime/zero/test_zero_context.py:187
Methodtest_subclass_param_init
(self)
tests/unit/runtime/zero/test_zero_context_ancestry.py:68
Methodtest_subgroup_destroy_keeps_expert_data_parallel_table
(self)
tests/unit/utils/test_groups.py:215
Methodtest_subgroup_destroy_preserves_unrelated_groups
(self)
tests/unit/utils/test_groups.py:169
Methodtest_subparam_allreduce_single_param_weight_and_bias_roundtrip
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:902
Functiontest_subparam_layer_marks_standardized_param_metadata
()
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:116
Methodtest_subparam_linear_single_param_weight_and_bias_roundtrip
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:868
Functiontest_successive_inputs
The CUTLASS MoE uses persistent state (expert counts) that is assumed to be cleared on each forward pass. This ensures that the module is cle
tests/unit/inference/v2/modules/test_cutlass_moe.py:166
Functiontest_sum_gradient_allreduce_rejects_deepcompile
(zero_stage)
tests/unit/runtime/test_ds_config_dict.py:198
Functiontest_sum_gradient_allreduce_rejects_zenflow
()
tests/unit/runtime/test_ds_config_dict.py:185
Functiontest_sum_gradient_allreduce_rejects_zero3
()
tests/unit/runtime/test_ds_config_dict.py:174
Functiontest_summary_does_not_raise
()
tests/unit/utils/test_pin_memory_tracker.py:26
Functiontest_summary_escapes_candidate_controls_and_markup
()
ci/test_tests_fetcher.py:598
Functiontest_superoffload_grad_buffer_pinned_when_enabled
offload_optimizer.pin_memory=True keeps the current pinned allocation.
tests/unit/v1/pin_memory/test_offload_route.py:144
Functiontest_superoffload_grad_buffer_unpinned_when_disabled
offload_optimizer.pin_memory=False must allocate a regular CPU buffer.
tests/unit/v1/pin_memory/test_offload_route.py:137
Functiontest_superoffload_rolls_back_only_subgroups_submitted_this_step
()
tests/unit/v1/zero/test_invalid_grad_norm.py:155
Functiontest_supported_dtypes
Validate support on nominally supported data types.
tests/unit/inference/v2/kernels/ragged_ops/test_logits_gather.py:32
Functiontest_supported_model_registers_auxiliary_policies
(monkeypatch)
tests/unit/hybrid_engine/test_he_policy.py:66
Functiontest_supported_model_without_transformers_registers_auxiliary_policies
(monkeypatch)
tests/unit/hybrid_engine/test_he_policy.py:79
Functiontest_supported_rms_norm_classes_compute_the_fused_expression
(qualified_name)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:258
Methodtest_swiglu_clamped_known_values
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:97
Methodtest_swiglu_oai_known_values
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:84
Functiontest_sync_memory_profile_complete_noops_without_distributed
(monkeypatch)
tests/unit/v1/compile/test_list_schedule.py:91
Functiontest_sync_memory_profile_complete_reduces_asymmetric_failure
(monkeypatch)
tests/unit/v1/compile/test_list_schedule.py:103
Functiontest_sync_records_steps
()
tests/unit/runtime/rollout/test_rollout_interface.py:225
Functiontest_sync_weights_is_noop
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1571
Methodtest_tags_reach_the_optimizer
Per-parameter tags have to survive `deepspeed.initialize` into the ZeRO call sites.
tests/unit/v1/ops/muon/test_per_head_muon_accelerator.py:248
Functiontest_target_must_cover_full_logical_parameter
()
tests/unit/checkpoint/test_affine_transfer_plan.py:593
Functiontest_target_replicas_can_use_different_piece_boundaries
()
tests/unit/checkpoint/test_affine_transfer_plan.py:607
Functiontest_target_with_no_shards_cannot_skip_the_parameter
()
tests/unit/checkpoint/test_affine_transfer_plan.py:600
Methodtest_teacher_uses_its_own_tp_size_and_stays_frozen
(self)
tests/unit/v1/autotp/test_tp_plan_e2e.py:536
Functiontest_temp_config_json
(tmpdir)
tests/unit/runtime/test_ds_config_dict.py:129
Functiontest_temp_copy_param_nvme_offloaded_partition
()
tests/unit/ops/adam/test_zf_torch_adam.py:271
Methodtest_tensor_and_non_tensor_keyword_arguments
(self)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:305
Methodtest_tensorboard
(self)
tests/unit/monitor/test_monitor.py:22
Methodtest_text_values_preserved_around_image
Text tokens before and after the placeholder must be numerically intact.
deepspeed/sequence/test_autosp.py:421
Methodtest_the_buffer_survives_until_its_last_holder_releases
(self)
tests/unit/module_inject/test_auto_ep_comm.py:203
Methodtest_the_combine_backward_matches_the_rows_it_combined
(self)
tests/unit/module_inject/test_auto_ep_comm.py:768
Methodtest_the_configured_capacity_sizes_the_buffer
(self)
tests/unit/module_inject/test_auto_ep_comm.py:700
Methodtest_the_default_config_runs_muon
`zero_optimization.stage` defaults to 0, so this is the plainest Muon config there is.
tests/unit/runtime/zero/test_muon_without_zero_optimizer.py:123
Functiontest_the_default_rope_type_is_not_refused
`rope_type: "default"` is what standardize_rope_params writes for plain RoPE.
tests/unit/module_inject/test_llama_rope_theta.py:132
Functiontest_the_flag_errors_rather_than_silently_doing_nothing
An explicit opt-in that tags nothing is the tensor-parallel failure mode. Under TP the config describes the whole model while each rank holds a s
tests/unit/runtime/zero/test_per_head_muon.py:526
Methodtest_the_forms_are_different_functions
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:113
Methodtest_the_forward_dispatch_records_an_expanded_layout
(self)
tests/unit/module_inject/test_auto_ep_comm.py:798
Functiontest_the_head_count_follows_the_shard
tp=2 leaves 4 heads on this rank; the tag has to say 4, not the model's 8.
tests/unit/runtime/zero/test_per_head_muon.py:774
Functiontest_the_head_count_is_read_from_the_layer_shape_under_zero_init
`zero.Init` leaves a flat placeholder and records the layer's shape as `ds_shape`. Reading `param.shape` there sees a 1-D tensor for every parame
tests/unit/runtime/zero/test_per_head_muon.py:548
Functiontest_the_muon_half_gets_muon_keys_and_the_adam_half_gets_adam_keys
()
tests/unit/runtime/zero/test_muon_param_groups.py:105
Functiontest_the_other_matrices_of_a_linear_attention_layer_stay_whole
g_proj is the same 256 x 1024 shape as q_proj and must not ride along on the name check.
tests/unit/runtime/zero/test_per_head_muon.py:652
Functiontest_the_pair_budget_is_checked_before_the_parts_are_read
()
tests/unit/checkpoint/test_affine_replica_policy.py:360
Functiontest_the_partitioned_shape_does_not_promote_a_vector
A 1-D parameter stays off Muon; `ds_shape` is read for its rank, not assumed to be >= 2.
tests/unit/runtime/zero/test_muon_use_muon_under_zero_init.py:69
Methodtest_the_route_does_not_synchronize_capacity
(self)
tests/unit/module_inject/test_auto_ep_comm.py:676
Methodtest_the_router_gate_receives_gradients
The gate silently never learning is what a dropped weight costs. A transport that returns the routing weights outside its autograd graph
tests/unit/v1/moe/test_autoep_deepep_parity.py:518
Methodtest_the_same_config_without_grad_accum_dtype_still_runs_muon
The existing BF16-gradient wrapper remains supported.
tests/unit/runtime/zero/test_muon_without_zero_optimizer.py:218
Methodtest_the_settings_reach_the_optimizer
(self)
tests/unit/runtime/zero/test_muon_param_groups.py:138
Functiontest_the_sparse_attention_indexer_is_not_tagged
#8420: Muon Split covers attention, not the indexer that selects the keys it will see. `wq_b` confirms on the indexer's own geometry, so this is
tests/unit/runtime/zero/test_per_head_muon.py:672
Functiontest_the_stale_count_would_have_split_heads_in_half
Why this is not caught by the existing shape check: 128 % 8 == 0. The divisibility assert in `_per_head_orthogonalize` passes on the stale count,
tests/unit/runtime/zero/test_per_head_muon.py:786
Methodtest_the_tags_describe_the_shard_and_not_the_model
(self)
tests/unit/v1/ops/muon/test_per_head_muon_accelerator.py:110
Functiontest_the_two_spellings_do_not_disagree_on_a_real_config
Guards the branch rather than the value. If transformers reinstates `rope_theta` as a deprecated property, the test above still passes while
tests/unit/module_inject/test_llama_rope_theta.py:70
Methodtest_the_update_is_clipped_by_the_global_norm
(self)
tests/unit/runtime/test_runtime_utils.py:227
Functiontest_the_value_projection_uses_the_value_width
head_v_dim can differ from head_k_dim; the k width would reject v_proj at 512 rows.
tests/unit/runtime/zero/test_per_head_muon.py:660
Functiontest_the_whole_matrix_path_does_not_survive_the_split
The comparison this is measured against, so "exact" above means something. Newton-Schulz on a block of rows is a different computation from the s
tests/unit/v1/ops/muon/test_per_head_muon_accelerator.py:74
Methodtest_throughput_calculation
(self)
tests/unit/runtime/zero/test_zero_context.py:213
Functiontest_tied_embedding_plan_leaves_lm_head_and_embedding_replicated
()
tests/unit/module_inject/test_tp_partition_config_path.py:257
← previousnext →13,801–13,900 of 14,579, ranked by callers