MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Functiontest_enable_cuda_graph_alias_migrates_value
()
tests/unit/hybrid_engine/test_he_graph.py:282
Functiontest_enable_graph_capture_defaults_false
()
tests/unit/hybrid_engine/test_he_graph.py:274
Functiontest_enable_graph_capture_direct
()
tests/unit/hybrid_engine/test_he_graph.py:278
Functiontest_end_backward_depends_on_all_reduce_nodes
()
tests/unit/v1/compile/test_compile_fx.py:16
Methodtest_engine_and_module_branches_match_manual_reference
(self)
tests/unit/runtime/zero/test_zero_shared_loss_gradient.py:97
Methodtest_engine_backward_still_works
(self, stage)
tests/unit/v1/zero/test_zero_torch_func.py:109
Methodtest_engine_boundary_restored_and_step_works_on_exit
(self)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:610
Functiontest_engine_disable_python_gc_false_preserves_existing_state
(monkeypatch, initial_gc_enabled)
tests/unit/runtime/test_python_gc.py:99
Functiontest_engine_disable_python_gc_true_acquires_manager_without_autoep
(monkeypatch)
tests/unit/runtime/test_python_gc.py:76
Functiontest_engine_factory_hybrid_requires_student_engine
()
tests/unit/runtime/rollout/test_rollout_interface.py:239
Functiontest_engine_factory_unknown_raises
()
tests/unit/runtime/rollout/test_rollout_interface.py:232
Methodtest_engine_getter_returns_config_value
(self)
tests/unit/v1/test_engine_log_level.py:30
Methodtest_engine_getter_returns_config_value
(self, gradient_clipping)
tests/unit/v1/half_precision/test_gradient_clipping_default.py:27
Functiontest_engine_pairs_shared_prefill_cache_tensors
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1648
Methodtest_engine_passes_the_actual_zero_stage_to_overlap_validation
(self, monkeypatch, zero_stage)
tests/unit/v1/moe/test_autoep_expert_activation.py:425
Methodtest_engine_rejects_modes_that_read_gradients_before_the_flush
(self, monkeypatch, unsupported, message)
tests/unit/v1/moe/test_autoep_expert_activation.py:1023
Methodtest_engine_rejects_unsupported_modes
(self, monkeypatch, condition, match)
tests/unit/v1/moe/test_autoep_unit.py:1436
Methodtest_engine_step
(self, zero_stage, dtype)
tests/unit/runtime/test_no_sync_ctxt.py:72
Methodtest_engine_tracks_regional_compile_mode
(self, monkeypatch, offload_config)
tests/unit/v1/moe/test_autoep_unit.py:1467
Functiontest_entropy_matches_reference
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:76
Functiontest_eos_token_ids_merge_tokenizer_and_generation_config
(tokenizer_eos, config_eos, expected)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1147
Methodtest_ep_size_one_needs_no_exchange
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:1833
Methodtest_ep_size_validation_rejects_invalid_topology
(self)
tests/unit/v1/moe/test_autoep_unit.py:459
Methodtest_equal_shards_match_sdpa
Catch rejection of odd equal shards and changes to outputs or any QKV gradient. Different Q and KV lengths remain valid cross-attention input
tests/unit/v1/sequence_parallelism/test_ulysses.py:860
Methodtest_error_when_backward_without_scale_fp16
Test that calling backward() without scale() raises an error with fp16
tests/unit/v1/zero/test_zero_user_backward.py:1148
Methodtest_error_when_backward_without_scale_sequential
Test that error is raised when calling backward() without scale() with fp16
tests/unit/v1/zero/test_zero_user_backward.py:850
Functiontest_errors_when_launcher_multiprocess_but_group_is_single_rank
()
tests/unit/v1/zero/test_zero_init_pg_contradiction.py:17
Methodtest_eval
(self, h_dim: int, n_layers: int, zpg: int)
tests/unit/runtime/zero/test_zeropp.py:219
Methodtest_eval_no_grad_does_not_grow_engine
(self)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:204
Methodtest_even_count_keeps_the_fast_path_and_its_async_op
(self)
tests/unit/v1/sequence_parallelism/test_ulysses.py:759
Functiontest_even_ffn_sharding
FFN sharding tends to be much simpler than attention sharding since it works on larger granularities. While the test case of (1024, 4, 6) is
tests/unit/inference/v2/model_implementations/sharding/test_mlp_sharding.py:52
Functiontest_even_mha_sharding
Test for MHA sharding. In these scenarios, we expect that each of the shards should be the same size.
tests/unit/inference/v2/model_implementations/sharding/test_qkv_sharding.py:43
Functiontest_every_accepted_answer_moves_the_same_data
(seed)
tests/unit/checkpoint/test_affine_replica_policy.py:103
Methodtest_every_checkpoint_mode_matches_no_checkpoint_bitwise
(self)
tests/unit/module_inject/test_auto_ep_comm.py:1119
Methodtest_every_convertible_parameter_has_a_map
(self)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1865
Methodtest_every_matrix_keeps_its_momentum
(self, zero_stage)
tests/unit/v1/ops/muon/test_muon_overflow.py:224
Methodtest_every_moe_layer_shares_one_buffer
Buffers are a fabric resource, and one per layer runs the fabric out. On 32 H100s across four nodes the twenty-eighth construction fails
tests/unit/v1/moe/test_autoep_deepep_parity.py:559
Functiontest_every_muon_update_call_site_forwards_the_head_count
()
tests/unit/runtime/zero/test_per_head_muon.py:882
Methodtest_every_path_is_sampled_and_labeled
(self)
tests/unit/checkpoint/test_affine_transfer_calibration.py:210
Functiontest_every_path_stops_on_a_generation_config_eos_id
(use_graph_capture, continuous_batch_size)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:744
Methodtest_every_piece_is_homogeneous
No piece spans elements held by different sets of ranks, so locations is exact.
tests/unit/checkpoint/test_affine_shard_map.py:191
Methodtest_every_rank_completes_its_copy_around_its_own_band
(self, world_size, swapped)
tests/unit/checkpoint/test_affine_transfer_executor.py:318
Functiontest_every_target_element_is_written_exactly_once
Counts, not values: a gap and an equal-size overlap cancel in any total the plan reports.
tests/unit/checkpoint/test_affine_transfer_plan.py:280
Functiontest_exact_checkout_rejects_escaping_symlink_and_cleans_destination
()
ci/test_torch_latest.py:456
Functiontest_exact_checkout_uses_requested_commits_and_detached_head
()
ci/test_torch_latest.py:412
Methodtest_existing_latest
(self, tmpdir)
tests/unit/checkpoint/test_latest_checkpoint.py:27
Methodtest_existing_no_sync_still_blocked_for_zero2
(self)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:535
Methodtest_existing_wrapped_module_uses_child_list
(self)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:158
Functiontest_expected_folding_tables_keep_ep8_node_local_with_node_contiguous_ranks
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:60
Functiontest_expected_folding_tables_match_design_examples
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:46
Methodtest_expected_stats_equal_executor_stats
A batch of a strided and a replicated parameter, so staging, chunking and local copies all occur.
tests/unit/checkpoint/test_affine_transfer_analysis.py:136
Functiontest_expert_file_consolidation_can_skip_fp32_output
(tmp_path)
tests/unit/checkpoint/test_autoep_affine_universal.py:151
Methodtest_expert_groups_are_visited_in_registry_order
Ranks owning different expert groups must still walk the groups in one order.
tests/unit/runtime/test_runtime_utils.py:158
Functiontest_expert_offset_exceeds_int32
Expert base offsets past 2**31 elements must be computed in int64. ``b_base = b_ptr + selected * stride_be`` walks ``E * K * N`` elements. With
tests/unit/v1/ops/triton_ops/test_group_gemm_triton.py:464
Methodtest_expert_only_inf_norm
Nothing replicated leaves no tensor to take a max over; zero is the identity.
tests/unit/runtime/test_runtime_utils.py:137
Methodtest_expert_parallel
(self, zero_stage)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:319
Methodtest_expert_tensor_parallel_size_is_parsed_but_limited_to_one
(self)
tests/unit/v1/moe/test_autoep_unit.py:474
Functiontest_expert_variance
(experts: int)
tests/unit/inference/v2/modules/test_cutlass_moe.py:155
Methodtest_expert_weight_values_do_not_affect_gradient_norm
(self)
tests/unit/v1/moe/test_moe.py:127
Methodtest_experts_idle_on_one_rank_do_not_deadlock
A rank whose experts got no tokens must take the same collectives (#8469). Ownership has to be read from the parameters, not the gradients: `
tests/unit/runtime/test_runtime_utils.py:101
Methodtest_explicit_choice_is_kept
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:1094
Functiontest_explicit_grad_dtype_is_preserved
()
tests/unit/compile/test_zero3_grad_dtype.py:38
Methodtest_explicit_list_and_glob
(self)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:104
Functiontest_explicit_none_grad_dtype_allows_raw_grad_dtype
()
tests/unit/compile/test_zero3_grad_dtype.py:31
Methodtest_explicit_parameter_pattern_rejected
(self)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:537
Functiontest_explicit_partition_config_keeps_non_mqa_layout
(monkeypatch)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:566
Functiontest_explicit_partition_config_rejects_replicated_kv_attention
()
tests/unit/v1/autotp/test_autotp_custom_patterns.py:552
Functiontest_explicit_rank_ids_define_entries_independently_of_list_order
()
tests/unit/checkpoint/test_autoep_affine.py:81
Functiontest_explicit_release_cleans_up_abandoned_forward_graph
()
tests/unit/v1/compile/test_z3_eager_fallback.py:257
Functiontest_explicit_row_parallel_lm_head_is_not_overridden_by_its_name
()
tests/unit/module_inject/test_tp_partition_config_path.py:570
Functiontest_explicit_row_parallel_lm_head_keeps_inference_specialization
()
tests/unit/module_inject/test_tp_partition_config_path.py:646
Functiontest_explicit_row_parallel_lm_head_training_rejects_unsupported_tied_embedding
()
tests/unit/module_inject/test_tp_partition_config_path.py:610
Functiontest_explicit_row_parallel_lm_head_training_rejects_weight_tied_to_non_embedding
()
tests/unit/module_inject/test_tp_partition_config_path.py:600
Functiontest_explicit_row_parallel_lm_head_training_shares_tied_weight_with_embedding
(embedding_spec, head_first)
tests/unit/module_inject/test_tp_partition_config_path.py:580
Functiontest_explicit_row_parallel_output_head_training_accepts_tp_greater_than_one
(head)
tests/unit/module_inject/test_tp_partition_config_path.py:635
Methodtest_explicit_value
(self, level)
tests/unit/v1/test_engine_log_level.py:27
Methodtest_explicit_value_is_used
(self, gradient_clipping)
tests/unit/v1/half_precision/test_gradient_clipping_default.py:23
Methodtest_explicit_zero_disables_clipping
(self)
tests/unit/v1/half_precision/test_gradient_clipping_default.py:61
Methodtest_ext_param_getattr
(self)
tests/unit/runtime/zero/test_zero_context.py:298
Methodtest_ext_param_return
(self)
tests/unit/runtime/zero/test_zero_context_return.py:138
Methodtest_ext_param_returnobj
(self)
tests/unit/runtime/zero/test_zero_context_return.py:153
Methodtest_extends_a_shorter_buffer_with_zeros
(self)
tests/unit/module_inject/test_auto_ep_comm.py:316
Methodtest_external_parameter_survives_a_real_replacement
A caller may legitimately optimize something outside the model -- an auxiliary trainable loss term, say -- which is valid at ZeRO stage 0, the
tests/unit/v1/moe/test_autoep_unit.py:2896
Functiontest_external_repo_root_keeps_output_in_trusted_checkout
()
ci/test_tests_fetcher.py:543
Methodtest_extract_class_only_tp_plan
(self)
tests/unit/runtime/test_tp_plan_extraction.py:158
Functiontest_extract_target_rank_uses_target_packed_order
()
tests/unit/checkpoint/test_autoep_affine.py:232
Methodtest_extract_tp_plan_from_mock_model
(self)
tests/unit/runtime/test_tp_plan_extraction.py:13
Methodtest_extract_tp_plan_from_model_with_config
(self)
tests/unit/runtime/test_tp_plan_extraction.py:27
Functiontest_extreme_logits_match_cross_entropy
(monkeypatch, loss_weights)
tests/unit/sequence/test_fpdt_logit_loss.py:14
Methodtest_failed_context
(self, tmpdir, single_submit, overlap_events)
tests/unit/v1/nvme/test_aio.py:535
Methodtest_failed_native_commit_aborts_next_step
(self)
tests/unit/v1/zero/test_reflow.py:1866
Methodtest_failed_ready_restores_cpu_partition
(self)
tests/unit/v1/zero/test_reflow.py:678
Methodtest_failed_weight_gradients_still_wait_for_the_async_combine
(self)
tests/unit/module_inject/test_auto_ep_comm.py:965
Methodtest_failed_write
(self, tmpdir, single_submit, overlap_events)
tests/unit/v1/nvme/test_aio.py:514
Functiontest_fake_rollout_left_padded_prompts
()
tests/unit/runtime/rollout/test_rollout_interface.py:214
Functiontest_fake_rollout_shape_basic
()
tests/unit/runtime/rollout/test_rollout_interface.py:193
Functiontest_fake_rollout_with_n_samples
()
tests/unit/runtime/rollout/test_rollout_interface.py:205
Methodtest_falls_back_to_example_value
(self)
tests/unit/v1/compile/test_compile_autosp.py:1133
Functiontest_falls_back_to_the_module_attribute
()
tests/unit/module_inject/test_llama_rope_theta.py:41
Functiontest_falls_back_when_rope_parameters_carries_no_theta
()
tests/unit/module_inject/test_llama_rope_theta.py:48
← previousnext →12,801–12,900 of 15,468, ranked by callers