MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

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:1417
Functiontest_entropy_matches_reference
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:76
Methodtest_ep_size_one_needs_no_exchange
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:1775
Methodtest_ep_size_validation_rejects_invalid_topology
(self)
tests/unit/v1/moe/test_autoep_unit.py:411
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:623
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:933
Methodtest_every_convertible_parameter_has_a_map
(self)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1794
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:501
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:188
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:277
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:22
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
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:426
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:582
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_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:311
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:2825
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
Methodtest_failed_context
(self, tmpdir, single_submit, overlap_events)
tests/unit/v1/nvme/test_aio.py:535
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:608
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
Functiontest_fast_free_schedule_counts_live_gathered_bytes_when_filtering_candidates
()
tests/unit/v1/compile/test_list_schedule.py:348
Functiontest_fast_free_schedule_keeps_single_allgather_release_order
()
tests/unit/v1/compile/test_list_schedule.py:391
Functiontest_fast_free_schedule_keeps_zero_free_acc_filter
()
tests/unit/v1/compile/test_list_schedule.py:256
Functiontest_fast_free_schedule_prefers_lower_allgather_pressure_in_zero_free_acc_bucket
()
tests/unit/v1/compile/test_list_schedule.py:288
Functiontest_fast_free_schedule_uses_pressure_tiebreaker_in_fallback_bucket
()
tests/unit/v1/compile/test_list_schedule.py:318
Methodtest_fast_path_matches_default_update
(self, stage)
tests/unit/runtime/zero/test_zero1_optimizer_fastpath.py:84
Methodtest_fewer_kv_heads_than_ranks_is_rejected_before_the_collective
(self)
tests/unit/v1/sequence_parallelism/test_ulysses.py:611
Methodtest_fill_autoep_config_from_hf_defaults
(self)
tests/unit/v1/moe/test_autoep_unit.py:1158
Methodtest_fill_autoep_config_from_hf_preserves_explicit_values
(self)
tests/unit/v1/moe/test_autoep_unit.py:1167
Functiontest_filter_ccs_removes_below_70_and_keeps_ptx_suffix
()
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:25
Methodtest_finegrained_optimization
(self, module_granularity_threshold: int)
tests/unit/runtime/zero/test_zero_leaf_module.py:481
Methodtest_finite_extreme_logits_across_shards
(self)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:691
Methodtest_finite_step_after_overflow
(self, precision, low_precision_master, accumulation_dtype)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:357
Methodtest_finite_step_skips_norm_but_updates_parameters
(self, stage)
tests/unit/runtime/zero/test_zero1_optimizer_fastpath.py:113
Methodtest_first_forward_sees_loaded_values
(self)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:413
Functiontest_first_forward_under_activation_checkpointing
The kernel warm-up runs inside the first forward. Under activation checkpointing that forward is recomputed without the warm-up, so the warm-up mu
tests/unit/v1/models/test_glm_moe_dsa.py:258
Functiontest_first_holder_and_per_request_reproduce_plan_transfer
()
tests/unit/checkpoint/test_affine_replica_policy.py:113
Methodtest_first_match_precedence
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:426
Methodtest_five_optimizer_steps
(self, vocabulary)
tests/unit/v1/sequence_parallelism/test_liger_vocab_parallel_cross_entropy.py:179
Methodtest_five_optimizer_steps_match_unsharded_reference
(self, hidden_dim, input_shape, head, bias)
tests/unit/v1/autotp/test_autotp_training.py:1448
Methodtest_flat_buffers_on_accelerator
Regression: flat buffers must end up on the accelerator (not left on CPU).
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:405
Functiontest_flat_storage_is_written_as_well_as_read
Restoring into ZeRO storage writes flat shards; one map may also mix flat and matrix shards.
tests/unit/checkpoint/test_affine_transfer_plan.py:466
Methodtest_flatten_on_accelerator_training_step
Regression: flat buffer must be detached so inplace ops during step don't crash.
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:438
Methodtest_flatten_on_gpu_path_taken
Assert the GPU flatten path was used (not CPU flatten + move).
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:364
Functiontest_float_balanced
()
tests/unit/runtime/utils/test_partition.py:161
Methodtest_float_int4_quantization
(self)
tests/unit/inference/quantization/test_intX_quantization.py:368
Methodtest_float_int8_quantization
(self)
tests/unit/inference/quantization/test_intX_quantization.py:377
Functiontest_float_lastheavy
()
tests/unit/runtime/utils/test_partition.py:170
Functiontest_float_midheavy
()
tests/unit/runtime/utils/test_partition.py:178
Functiontest_float_quantize
(num_elems, num_groups, is_symmetric_quant, q_bits, directed_case)
tests/unit/ops/quantizer/test_quantize.py:129
← previousnext →12,201–12,300 of 14,579, ranked by callers