MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Methodtest_alibi_mask_uses_original_total_after_injection
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:858
Functiontest_aligned_continuous_generation_reclaims_dead_prefix_when_cache_would_exhaust
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:745
Functiontest_aligned_continuous_generation_supports_mixed_effective_prompt_lengths
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:664
Functiontest_aligned_generation_counts_bfloat16_mask_lengths_exactly
(align_decode_fronts)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2445
Functiontest_aligned_optional_fields_and_mask
Aligned callers retain optional None fields and the original attention mask.
tests/unit/v1/sequence_parallelism/test_fpdt_inputs.py:72
Methodtest_all_gather_handle_wait_is_idempotent
(self)
tests/unit/runtime/zero/test_zero_stale_handle_wait.py:42
Functiontest_all_ignored_is_zero
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_linear_cross_entropy.py:63
Functiontest_all_ignored_tokens_give_zero_loss_and_gradients
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_linear_cross_entropy.py:179
Methodtest_all_overflow
(self, zero_stage, offload_optimizer)
tests/unit/runtime/half_precision/test_zero_optim_overflow.py:94
Methodtest_all_overflow
(self)
tests/unit/runtime/half_precision/test_dynamic_loss_scale.py:69
Methodtest_all_overflow
(self)
tests/unit/runtime/half_precision/test_dynamic_loss_scale.py:203
Methodtest_all_reduce_fetch
(self)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:452
Functiontest_all_schedulers_covered_by_tensor_lr_contract
()
tests/unit/runtime/test_lr_schedulers.py:626
Methodtest_all_to_all
(self, monkeypatch, ep_size, expected_calls)
tests/unit/v1/moe/test_moe.py:296
Methodtest_all_to_all_rejects_non_divisible_heads_before_the_collective
(self)
tests/unit/v1/compile/test_compile_autosp.py:1417
Functiontest_allocation
()
tests/unit/inference/v2/ragged/test_blocked_allocator.py:23
Functiontest_allocation_survives_until_all_views_dropped
(native_pins)
tests/unit/v1/pin_memory/test_pin_memory.py:87
Functiontest_allreduce_and_copy_records_stream_for_overlap_comm
(monkeypatch)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:71
Functiontest_allreduce_and_copy_with_multiple_ranks_records_consumer_buffers
(monkeypatch)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:100
Functiontest_allreduce_and_copy_with_multiple_ranks_records_only_local_buffers
(monkeypatch)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:83
Functiontest_allreduce_and_scatter_accepts_legacy_rank_tensor_buckets
()
tests/unit/v1/zero/test_zero2_gradient_safety.py:100
Methodtest_alltoall_output_consistency
(self, d0: int, d1: int, head_dim: int, num_heads: int)
tests/unit/v1/sequence_parallelism/test_ulysses.py:124
Methodtest_alltoall_output_consistency
(self, d0: int, d1: int, head_dim: int, num_heads: int)
tests/unit/v1/sequence_parallelism/test_ulysses.py:220
Methodtest_alpha_and_limit_come_from_the_model
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:1100
Methodtest_already_init
(self, dist_init_required)
tests/unit/comm/test_dist.py:470
Methodtest_already_init
(self, dist_init_required)
tests/unit/comm/test_dist.py:504
Methodtest_alternate_prefixes
Test tp_plan with non-layers prefix
tests/unit/module_inject/test_tp_plan_converter.py:151
Methodtest_alternate_projection_names
Test tp_plan with qkv and Wq/Wk/Wv style names
tests/unit/module_inject/test_tp_plan_converter.py:163
Functiontest_ambiguous_callable_requires_explicit_name
(clean_registry)
tests/unit/compile/test_pass_contract.py:137
Functiontest_an_exhausted_budget_refuses_the_whole_plan
A truncated plan is worse than no plan, because it looks like a completed transfer.
tests/unit/checkpoint/test_affine_transfer_plan.py:630
Functiontest_an_out_of_range_target_fails_the_triton_backend_instead_of_reading_another_row
A device-side assert poisons the CUDA context, so this runs in its own process.
tests/unit/v1/runtime/test_chunked_cross_entropy.py:256
Functiontest_an_out_of_range_target_raises_on_cpu
()
tests/unit/v1/runtime/test_chunked_cross_entropy.py:248
Functiontest_an_overflowed_gradient_does_not_enter_the_momentum
The unit of the behaviour, without a training loop around it.
tests/unit/v1/ops/muon/test_muon_overflow.py:33
Functiontest_an_unlisted_module_is_not_asked
Only listed modules are asked, whatever the class is called or carries. Same attributes and shapes as the Kimi-K3 layer, so the class name is the
tests/unit/runtime/zero/test_per_head_muon.py:692
Functiontest_an_unsharded_model_keeps_its_count
()
tests/unit/runtime/zero/test_per_head_muon.py:813
Functiontest_an_untagged_parameter_is_reported_rather_than_crashing_on_the_attribute
Without use_muon the old path logged an error and then died on `p.use_muon` two lines later.
tests/unit/runtime/zero/test_muon_param_groups.py:127
Functiontest_answers_that_could_change_what_arrives_are_refused
(answer)
tests/unit/checkpoint/test_affine_replica_policy.py:284
Methodtest_any_other_recompute_is_rejected
(self)
tests/unit/module_inject/test_auto_ep_comm.py:1550
Functiontest_apex_amp_config_is_rejected
(amp_config)
tests/unit/runtime/test_ds_config_dict.py:309
Methodtest_apply_and_forward_equivalence
apply_segment_ki on CPU installs composite replacements whose output matches the un-injected forward bit-for-bit.
tests/unit/module_inject/test_segment_ki_kernels.py:332
Functiontest_apply_autotp_preserves_the_two_argument_pass_contract
`passes` is an extension point; its contract is (gm, real_inputs). Threading extra context to every pass unconditionally raises TypeError on any
tests/unit/compile/test_tp_compile.py:835
Functiontest_apply_rotary_pos_emb
(seq_len, dim, rotary_dim)
tests/unit/sequence/test_apply_rotary_pos_emb.py:31
Functiontest_apply_rotary_pos_emb_fused_gradient_correctness
When torchembed+CUDA are available, the fused path's gradient must numerically match the reference path's, not just be non-NaN with the right shap
tests/unit/sequence/test_apply_rotary_pos_emb.py:68
Functiontest_apply_rotary_pos_emb_grad_flow
(dtype)
tests/unit/sequence/test_apply_rotary_pos_emb.py:50
Methodtest_arena_view_binding_survives_inplace_writes
(self)
tests/unit/module_inject/test_segment_ki_kernels.py:729
Functiontest_assignment_ordinals_are_stable_within_expert_segments
()
tests/unit/v1/moe/test_autoep_autotp_dispatch.py:51
Functiontest_async_master_snapshot_preserves_updates_below_bf16_resolution
(master_key)
tests/unit/v1/moe/test_autoep_grad_parity.py:744
Functiontest_async_master_snapshot_requires_real_fp32_parameters
()
tests/unit/v1/moe/test_autoep_grad_parity.py:765
Functiontest_async_parity_accepts_one_percent_relative_error
()
tests/unit/v1/moe/test_autoep_grad_parity.py:739
Functiontest_async_parity_rejects_small_missing_or_reversed_signal
(field, scale)
tests/unit/v1/moe/test_autoep_grad_parity.py:727
Methodtest_async_read
(self, tmpdir, single_submit, overlap_events)
tests/unit/v1/nvme/test_gds.py:95
Methodtest_async_read
(self, tmpdir, use_cuda_pinned_tensor, single_submit, overlap_events, use_unpinned_tensor)
tests/unit/v1/nvme/test_aio.py:122
Methodtest_async_split_plan_matches_synchronous_step
(self, checkpoint_activations, non_default_stream)
tests/unit/v1/moe/test_autoep_grad_parity.py:913
Methodtest_async_split_plan_rejects_autotp_folding
(self)
tests/unit/v1/moe/test_autoep_unit.py:303
Methodtest_async_split_plan_requires_boolean
(self)
tests/unit/v1/moe/test_autoep_unit.py:295
Methodtest_async_write
(self, tmpdir, single_submit, overlap_events)
tests/unit/v1/nvme/test_gds.py:146
Methodtest_async_write
(self, tmpdir, use_cuda_pinned_tensor, single_submit, overlap_events, use_unpinned_tensor)
tests/unit/v1/nvme/test_aio.py:192
Functiontest_attention
(BATCH, H, N_CTX, D_HEAD, causal, use_flash, dtype=torch.float16)
tests/unit/ops/transformer/inference/test_attention.py:29
Functiontest_attention_dispatches_by_layer_type
()
tests/unit/inference/v2/model_implementations/test_exaone4_5.py:110
Functiontest_attention_uses_supplied_inverse_frequencies
()
tests/unit/inference/v2/model_implementations/test_exaone4_5.py:56
Methodtest_auto_adds_fp16_only_list_under_fp16
(self)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:91
Methodtest_auto_casts_params_keeps_buffers
(self, stage)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:528
Methodtest_auto_uses_lists_from_nested_modules
(self)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:97
Methodtest_auto_uses_strict_list_under_bf16
(self)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:86
Methodtest_auto_wrap_detects_and_wraps_modules
auto_wrap_model_for_sp must replace InternVisionAttention with UlyssesSPViTAttention (has_cls_token=False) and must NOT wrap InternLM2
tests/unit/v1/sequence_parallelism/test_autosp_integration.py:152
Methodtest_auto_wrap_detects_and_wraps_modules
auto_wrap_model_for_sp must replace Qwen2VLVisionAttention with UlyssesSPViTAttention (has_cls_token=False) and must NOT wrap Qwen2Att
tests/unit/v1/sequence_parallelism/test_autosp_integration.py:219
Methodtest_autocast_linear
(self, tmpdir, half_input, half_weight)
tests/unit/runtime/test_autocast.py:49
Methodtest_autocast_loss_keeps_cross_entropy_dtype
(self)
tests/unit/v1/compile/test_compile_autosp.py:629
Functiontest_autocast_low_precision_activations_with_fp32_parameters
(monkeypatch, legacy_autocast_api)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_linear_cross_entropy.py:226
Functiontest_autoep_folding_gradient_strategy_uses_parameter_family
()
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:67
Methodtest_autoep_import_chain_defers_pep604_annotations
PEP 604 unions (``int | None``) in def signatures or class-level annotations are evaluated at import time, so on Python 3.9 they raise
tests/unit/v1/moe/test_autoep_unit.py:2523
Methodtest_autoep_layer_emits_uniform_placement_and_param_restore_metadata
(self)
tests/unit/v1/moe/test_autoep_unit.py:677
Methodtest_autoep_layer_forward_and_expert_bias_rejection
(self)
tests/unit/v1/moe/test_autoep_unit.py:1542
Methodtest_autoep_layer_marks_zero3_param_placement_families
(self)
tests/unit/v1/moe/test_autoep_unit.py:665
Methodtest_autoep_metadata_schema_validation
(self)
tests/unit/v1/moe/test_autoep_checkpoint.py:443
Methodtest_autoep_sequence_parallel_size_falls_back_to_groups_helper
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:565
Methodtest_autoep_size_2to1_fixed_world_size
(self, autoep_topology_baseline_ws4_ep2, tmpdir)
tests/unit/v1/moe/test_autoep_checkpoint.py:913
Methodtest_autoep_size_2to4_fixed_world_size
(self, autoep_topology_baseline_ws4_ep2, tmpdir)
tests/unit/v1/moe/test_autoep_checkpoint.py:909
Functiontest_autoep_target_extraction_precedes_tp_and_stage3_partitioning
(monkeypatch)
tests/unit/checkpoint/test_autoep_affine_universal.py:401
Functiontest_autoep_target_metadata_fails_loudly
(metadata, match)
tests/unit/checkpoint/test_autoep_affine_universal.py:535
Functiontest_autoep_target_metadata_rejects_caller_ep_rank_mismatch
()
tests/unit/checkpoint/test_autoep_affine_universal.py:545
Functiontest_autoep_target_metadata_rejects_local_expert_list_mismatch
()
tests/unit/checkpoint/test_autoep_affine_universal.py:555
Methodtest_autoep_zero3_16bit_export_guard_directs_to_universal_conversion
(self)
tests/unit/v1/moe/test_autoep_unit.py:1056
Functiontest_autoep_zero3_eager_conversion_gates
()
tests/unit/runtime/zero/test_autoep_zero3_init.py:144
Functiontest_autoep_zero3_partitioned_experts_keep_muon_assignment
(monkeypatch)
tests/unit/runtime/zero/test_autoep_zero3_init.py:160
Functiontest_autoep_zero3_partitioned_experts_keep_optimizer_grouping
()
tests/unit/runtime/zero/test_autoep_zero3_init.py:180
Functiontest_autoep_zero3_partitions_each_replacement_before_next_allocation
(monkeypatch)
tests/unit/runtime/zero/test_autoep_zero3_init.py:50
Functiontest_autotp_reaches_autoep_shared_experts
(monkeypatch)
tests/unit/v1/moe/test_autoep_autotp_runtime.py:94
Methodtest_autotp_size_above_kv_head_count_leaves_trailing_ranks_empty
Ranks beyond the KV head count hold no attention shard but still compute correctly.
tests/unit/v1/autotp/test_tp_plan_real_models.py:437
Methodtest_autotp_with_zero_pass_raises
(self)
tests/unit/compile/test_tp_compile.py:598
Methodtest_autotp_zero3_inference
(self, tp_size: int)
tests/unit/v1/autotp/test_autotp_training.py:900
Functiontest_autotuner_resources
(tmpdir, active_resources)
tests/unit/autotuning/test_autotuning.py:69
Functiontest_average_tensor_falls_back_to_current_stream_without_producers
(monkeypatch)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:171
Functiontest_average_tensor_waits_on_all_ipg_bucket_producer_streams
(monkeypatch)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:158
Functiontest_average_waits_all_producers_even_without_overlap
(monkeypatch, overlap)
tests/unit/v1/zero/test_zero2_gradient_safety.py:283
Functiontest_await_sandbox_start_gives_up_when_the_container_never_runs
()
ci/test_torch_latest.py:634
Functiontest_await_sandbox_start_reports_startup_duration
()
ci/test_torch_latest.py:646
Functiontest_aws_acquisition_advances_only_for_explicit_capacity
()
ci/test_torch_latest.py:849
Functiontest_aws_backend_startup_uses_one_absolute_deadline
()
ci/test_torch_latest.py:1017
Functiontest_aws_config_requires_fixed_complete_region_order
()
ci/test_torch_latest.py:836
← previousnext →12,101–12,200 of 15,468, ranked by callers