MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

Functiontest_adaptive_generation_rejects_unsupported_generation_settings
(setting, value, config_source)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2506
Functiontest_adaptive_generation_resolves_custom_generation_config
(capacity, trigger, name, value)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2731
Functiontest_adaptive_generation_uses_resolved_penalty_on_both_routes
(cache_support, capacity, dtype)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2800
Functiontest_adaptive_prefill_rejects_invalid_cost_settings
(name, value)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2478
Functiontest_adaptive_prefill_rejects_unsynchronized_distributed_selection
(_initialized, _world_size)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2486
Functiontest_adaptive_profile_counts_only_productive_tokens_after_eos
(capacity, stop_at_first)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2551
Functiontest_adaptive_profile_includes_route_planning_time
(force_cb)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2859
Functiontest_adaptive_short_batch_does_not_read_one_gpu_scalar_per_request
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2706
Functiontest_add_export_no_special_characters
Values without special characters should remain unquoted (e.g., PYTHONPATH). This avoids issues where unnecessary quotes break module imports
tests/unit/launcher/test_user_args.py:96
Functiontest_add_export_with_special_characters
Values with special characters (e.g., 64(x2)) must be quoted to avoid bash syntax errors.
tests/unit/launcher/test_user_args.py:88
Functiontest_affinity_limits_cores
(monkeypatch, cores)
tests/unit/ops/adam/test_cpu_adam_threads.py:69
Functiontest_against_torch_adamw
(Opt)
tests/unit/ops/adam/test_zf_torch_adam.py:184
Functiontest_aio_handle_buffer_recognized_by_pin_handle
()
tests/unit/v1/nvme/test_pinned_manager.py:71
Functiontest_aio_handle_destructor_releases_gil
()
tests/unit/ops/aio/test_aio_handle.py:20
Methodtest_aliases_and_explicit_opt_out
(self, head_first, vocab_parallel_lm_head)
tests/unit/v1/autotp/test_autotp_training.py:276
Methodtest_aliases_between_requests_are_rejected_before_any_write
(self, alias)
tests/unit/checkpoint/test_affine_transfer_executor.py:611
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:960
Functiontest_aligned_continuous_generation_supports_mixed_effective_prompt_lengths
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:879
Functiontest_aligned_generation_counts_bfloat16_mask_lengths_exactly
(align_decode_fronts)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2780
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:334
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:822
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:304
Methodtest_async_split_plan_requires_boolean
(self)
tests/unit/v1/moe/test_autoep_unit.py:296
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
Methodtest_autoep_experts
(self)
tests/unit/v1/runtime/test_subchannel_quantization.py:464
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:2698
Methodtest_autoep_layer_emits_uniform_placement_and_param_restore_metadata
(self)
tests/unit/v1/moe/test_autoep_unit.py:683
Methodtest_autoep_layer_forward_and_expert_bias_rejection
(self)
tests/unit/v1/moe/test_autoep_unit.py:1717
Methodtest_autoep_layer_marks_zero3_param_placement_families
(self)
tests/unit/v1/moe/test_autoep_unit.py:671
Methodtest_autoep_metadata_schema_validation
(self)
tests/unit/v1/moe/test_autoep_checkpoint.py:443
Methodtest_autoep_router_replay_matches_checkpoint_gradients
(self, checkpoint_mode, device, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:1595
Methodtest_autoep_sequence_parallel_size_falls_back_to_groups_helper
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:571
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
← previousnext →12,301–12,400 of 15,767, ranked by callers