MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

Functiontest_validation_rule_g6_preset_consistency
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:126
Functiontest_validation_rule_g7_zero3_accepted
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:130
Functiontest_validation_rule_g8_mpu_conflict
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:139
Functiontest_validation_rule_g9_ep_one_rejected_with_autotp
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:145
Functiontest_versioned_autoep_map_collection_loads_by_parameter_name
()
tests/unit/checkpoint/test_autoep_affine.py:92
Functiontest_visible_devices_are_rejected_when_the_device_count_is_masked
A masked count now fails loudly instead of launching on the wrong slots. If an accelerator ever caches the count while the mask is still set, the
tests/unit/launcher/test_run.py:191
Functiontest_visible_devices_resolve_to_the_requested_slots
CUDA_VISIBLE_DEVICES=0,2 has to launch on slots 0 and 2. main() turns the mask into --include and then unsets it, so the device count it asks
tests/unit/launcher/test_run.py:172
Methodtest_vit_layers_replaced
(self)
deepspeed/sequence/test_autosp.py:222
Methodtest_vmap_grad_through_engine
(self, stage)
tests/unit/v1/zero/test_zero_torch_func.py:93
Methodtest_vmap_over_linear_function
(self)
tests/unit/v1/zero/test_zero_functorch_linear.py:246
Functiontest_vocab_parallel_causal_lm_loss_forwards_backend
()
tests/unit/v1/sequence_parallelism/test_liger_vocab_parallel_cross_entropy.py:52
Functiontest_vocab_parallel_config_distinguishes_automatic_and_explicit_choices
(config, expected)
tests/unit/module_inject/test_tp_partition_config_path.py:305
Functiontest_vocab_parallel_cross_entropy_all_ignored_is_zero
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:37
Functiontest_vocab_parallel_cross_entropy_revalidates_every_bare_call
(monkeypatch)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:116
Functiontest_vocab_parallel_cross_entropy_tp1_matches_torch
(reduction)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:20
Functiontest_vocab_parallel_cross_entropy_validates_inputs
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:48
Functiontest_vocab_parallel_flag_preserves_nonstandard_tied_output_fallback
()
tests/unit/module_inject/test_tp_partition_config_path.py:539
Functiontest_vocab_parallel_linear_exposes_vocab_metadata
()
tests/unit/module_inject/test_tp_partition_config_path.py:289
Functiontest_vocab_parallel_lm_head_rejects_unsupported_embedding_forward
()
tests/unit/module_inject/test_tp_partition_config_path.py:389
Functiontest_vocab_parallel_lm_head_rejects_unsupported_embedding_options
(embedding_kwargs)
tests/unit/module_inject/test_tp_partition_config_path.py:408
Functiontest_vocab_parallel_lm_head_supersedes_conflicting_embedding_spec
(caplog)
tests/unit/module_inject/test_tp_partition_config_path.py:417
Functiontest_vocab_parallel_lm_head_warns_when_it_supersedes_an_explicit_spec
(caplog)
tests/unit/module_inject/test_tp_partition_config_path.py:317
Functiontest_vocab_parallel_loss_validation_preserves_registered_loss_module
()
tests/unit/module_inject/test_tp_partition_config_path.py:464
Methodtest_vocabulary_smaller_than_tp_size_raises_on_all_ranks
(self)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:340
Methodtest_wandb
(self)
tests/unit/monitor/test_monitor.py:50
Functiontest_warm_up_runs_on_the_input_device
replace_attention() runs before deepspeed.initialize(), while the current device may still be GPU 0 in every local process: the warm-up must not a
tests/unit/v1/models/test_glm_moe_dsa.py:277
Methodtest_warmup_allows_subsequent_training
(self, async_split_layer, warmup_mode)
tests/unit/v1/moe/test_autoep_unit.py:1929
Functiontest_warmup_cosine_lr_config_from_args_carries_the_ratios
()
tests/unit/runtime/test_lr_schedulers.py:905
Functiontest_warmup_cosine_lr_has_no_lr_in_its_config_params
()
tests/unit/runtime/test_lr_schedulers.py:930
Functiontest_warmup_cosine_lr_initializes_all_param_groups
()
tests/unit/runtime/test_lr_schedulers.py:528
Functiontest_warmup_cosine_lr_linear_warmup_type_produces_linear_ratios
()
tests/unit/runtime/test_lr_schedulers.py:694
Functiontest_warmup_cosine_lr_total_num_steps_equals_warmup_num_steps
()
tests/unit/runtime/test_lr_schedulers.py:634
Functiontest_warmup_cosine_lr_unknown_warmup_type_falls_back_to_log
()
tests/unit/runtime/test_lr_schedulers.py:667
Functiontest_warmup_lr_inherits_per_group_lr_when_max_unspecified
()
tests/unit/runtime/test_lr_schedulers.py:551
Functiontest_warmup_schedulers_reject_invalid_warmup_num_steps
(scheduler_cls, bad_warmup_num_steps)
tests/unit/runtime/test_lr_schedulers.py:655
Methodtest_weight_gradient_keeps_flowing_through_fused_row_weighting
(self)
tests/unit/module_inject/test_auto_ep_comm.py:436
Methodtest_wildcard_to_regex_basic
(self)
tests/unit/module_inject/test_tp_plan_converter.py:14
Methodtest_wildcard_to_regex_special_chars
(self)
tests/unit/module_inject/test_tp_plan_converter.py:19
Methodtest_window_sum
(self, stage, low_precision_master, accumulation_dtype)
tests/unit/v1/zero/test_zero_offload_accum_precision.py:96
Functiontest_without_mappings_requests_carry_no_processes_or_bytes
()
tests/unit/checkpoint/test_affine_replica_policy.py:173
Functiontest_workflow_does_not_emit_the_sentinel_inline
()
ci/test_classify_multirank_exit.py:70
Functiontest_workflow_keeps_github_execution_trusted_and_preserves_modes
()
ci/test_torch_latest.py:1719
Methodtest_world_destroy_releases_sequence_parallel_groups
(self, tmpdir)
tests/unit/utils/test_groups.py:95
Methodtest_world_size_1
(self)
tests/unit/comm/test_dist.py:79
Methodtest_world_size_1to4
(self, inputs, class_tmpdir, checkpoint_tag, baseline_ws1, mp_size, pp_size, mp_resize,
tests/unit/v1/autotp/test_configurable_parallel_pp.py:258
Methodtest_world_size_2
(self)
tests/unit/comm/test_dist.py:75
Methodtest_world_size_2to1
(self, inputs, class_tmpdir, checkpoint_tag, baseline_ws2, mp_size, pp_size, mp_resize,
tests/unit/v1/autotp/test_configurable_parallel_pp.py:237
Methodtest_world_size_2to4
(self, inputs, class_tmpdir, checkpoint_tag, baseline_ws2, mp_size, pp_size, mp_resize,
tests/unit/v1/autotp/test_configurable_parallel_pp.py:265
Methodtest_world_size_4to1
(self, inputs, class_tmpdir, checkpoint_tag, baseline_ws4, mp_size, pp_size, mp_resize,
tests/unit/v1/autotp/test_configurable_parallel_pp.py:244
Methodtest_world_size_4to2
(self, inputs, class_tmpdir, checkpoint_tag, baseline_ws4, mp_size, pp_size, mp_resize,
tests/unit/v1/autotp/test_configurable_parallel_pp.py:251
Methodtest_wrapped_model_uses_child_list
(self, zero_stage)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:197
Methodtest_wrapper_and_parameter_storage_lifecycle
(self)
tests/unit/runtime/zero/test_zero_linear_direct_init.py:35
Functiontest_wrapper_initialization
(max_ragged_sequence_count: int, max_ragged_batch_size: int)
tests/unit/inference/v2/ragged/test_ragged_wrapper.py:21
Methodtest_wraps_plain_dict
(self)
tests/unit/runtime/zero/test_zero_late_module_attach.py:102
Methodtest_write
(self, tmpdir, async_queue)
tests/unit/v1/nvme/test_gds.py:211
Methodtest_write
(self, tmpdir, use_cuda_pinned_tensor, async_queue, use_unpinned_tensor)
tests/unit/v1/nvme/test_aio.py:282
Methodtest_write
(self, tmpdir, use_cuda_pinned_tensor, layout)
tests/unit/v1/nvme/test_aio.py:455
Functiontest_xpu_device_registration_calls_level_zero
(monkeypatch)
tests/unit/v1/pin_memory/test_pin_memory.py:217
Functiontest_xpu_device_registration_without_level_zero
(monkeypatch)
tests/unit/v1/pin_memory/test_pin_memory.py:340
Functiontest_xpu_registers_per_device_context_and_frees_there
Registration happens in a per-device context and unregister frees in the same context that created the mapping.
tests/unit/v1/pin_memory/test_pin_memory.py:269
Functiontest_xpu_registration_alloc_failure_returns_false
(monkeypatch)
tests/unit/v1/pin_memory/test_pin_memory.py:308
Functiontest_xpu_registration_rejects_changed_address
(monkeypatch)
tests/unit/v1/pin_memory/test_pin_memory.py:245
Functiontest_xpu_specific_runtime_overrides
()
tests/unit/v1/accelerator/test_klxpu_accelerator.py:25
Functiontest_xpu_unregister_failure_raises
(monkeypatch)
tests/unit/v1/pin_memory/test_pin_memory.py:323
Functiontest_yuan_head_selection_is_shared_with_the_partition
The map reads the same head selection the partition uses, so they cannot drift.
tests/unit/checkpoint/test_affine_shard_map.py:945
Functiontest_yuan_layer_map_matches_the_real_partition
Yuan's value heads sit in two runs, so the map selects blocks rather than a span.
tests/unit/checkpoint/test_affine_shard_map.py:923
Functiontest_yuan_output_projection_bias_is_described_as_replicated
With its bias kept whole, Yuan's output projection has nothing left to refuse. The bias was the last parameter in tree published as unsupported w
tests/unit/checkpoint/test_affine_shard_map.py:1025
Functiontest_yuan_output_projection_keeps_its_bias_whole
The output projection's bias must survive partitioning unchanged on every rank. LinearAllreduce sums the ranks' partial products first and adds t
tests/unit/checkpoint/test_affine_shard_map.py:990
Functiontest_yuan_refuses_a_head_count_that_ranks_would_share
With an odd number of heads per rank the pairing hands the same head to two ranks. Twelve heads over four ranks gives each rank three, and the pa
tests/unit/checkpoint/test_affine_shard_map.py:1103
Functiontest_yuan_weight_is_no_longer_refused_by_conversion
A layout that can describe itself must stop being published as unsupported. `AUTOTP_UNSUPPORTED_PARAMETER_PATTERNS` is what makes conversion refu
tests/unit/checkpoint/test_affine_shard_map.py:966
Functiontest_zenflow_adam_cross_process
The optimizer-process driver (shared-memory semaphore control + native worker, the production path for ZenFlow stage 1/2 overlap) must match a per
tests/unit/ops/adam/test_cpu_adam.py:303
Functiontest_zenflow_config_from_dict
A dict for zenflow should be coerced into ZenFlowConfig.
tests/unit/runtime/zenflow/test_zf_config.py:36
Methodtest_zenflow_distributed
(self, stage, offload_selective_optimizer, select_strategy, select_interval,
tests/unit/runtime/zenflow/test_zf.py:176
Functiontest_zenflow_overlap_invalid_norm
(dtype, check_grad_overflow, reject_invalid, norm)
tests/unit/runtime/half_precision/test_zero_grad_norm_overflow.py:62
Methodtest_zenflow_rejects_disabled_norm
(self)
tests/unit/runtime/zero/test_zero1_optimizer_fastpath.py:163
Methodtest_zenflow_single_gpu
(self, stage, offload_selective_optimizer, select_strategy, select_interval, u
tests/unit/runtime/zenflow/test_zf.py:157
Functiontest_zero12_affine_consolidation_supports_nonuniform_noncontiguous_placement
(tmp_path)
tests/unit/checkpoint/test_autoep_affine_universal.py:46
Functiontest_zero12_affine_consolidation_validates_replicated_experts
(tmp_path)
tests/unit/checkpoint/test_autoep_affine_universal.py:176
Functiontest_zero12_consolidation_uses_expert_file_fallback_for_missing_master_rank
(tmp_path)
tests/unit/checkpoint/test_autoep_affine_universal.py:111
Functiontest_zero12_expert_state_consolidation_exact
(tmpdir, data_first, dp_order)
tests/unit/v1/moe/test_autoep_checkpoint.py:334
Functiontest_zero12_legacy_consolidation_still_concatenates_ep_ranks
(tmp_path)
tests/unit/checkpoint/test_autoep_affine_universal.py:199
Functiontest_zero12_metadata_accepts_explicit_empty_rank
()
tests/unit/checkpoint/test_autoep_affine_universal.py:73
Functiontest_zero12_restore_applies_autoep_before_independent_autotp
(tmp_path)
tests/unit/checkpoint/test_autoep_affine_universal.py:453
Functiontest_zero12_restore_loads_target_packed_order
(tmp_path)
tests/unit/checkpoint/test_autoep_affine_universal.py:418
Functiontest_zero12_uniform_affine_consolidation_matches_legacy_order
(tmp_path)
tests/unit/checkpoint/test_autoep_affine_universal.py:91
Functiontest_zero1_and_zero3_conflict
(builtin_registry)
tests/unit/compile/test_pass_contract.py:208
Methodtest_zero1_no_offload_uses_bf16_optimizer
(self)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:259
Functiontest_zero1_nonoverlap_leaves_engine_boundary_sweep_owner
(monkeypatch)
tests/unit/v1/moe/test_autoep_autotp_zero1_overlap_folding.py:63
Methodtest_zero1_offload_bf16_fp32_grad_accum
(self)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:232
Functiontest_zero1_overlap_applies_folding_before_hook_consumes_grad
(monkeypatch)
tests/unit/v1/moe/test_autoep_autotp_zero1_overlap_folding.py:24
Methodtest_zero1_releases_grad_buffers_after_optimizer_step
(self)
tests/unit/v1/compile/test_compile_zero.py:121
Methodtest_zero2_autoep_matches_zero2_after_one_update
(self)
tests/unit/v1/moe/test_autoep_grad_parity.py:407
Methodtest_zero2_bf16_fp32_grad_accum
(self)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:248
Methodtest_zero2_ep_2gpu
EP with ZeRO-2 training. Verifies EP and ZeRO Stage 2 work together: finite losses and parameters actually update across training ste
tests/unit/v1/moe/test_autoep_integration.py:43
Functiontest_zero2_partitioned_path_still_applies_folding
(monkeypatch)
tests/unit/v1/moe/test_autoep_autotp_zero1_overlap_folding.py:79
Functiontest_zero2_tp_gradient_reducer_skips_incomplete_ds_grad
(monkeypatch)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:143
Functiontest_zero2_tp_gradient_reducer_uses_shared_param_family_strategy
(monkeypatch, mark_router, expected_grad)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:166
Functiontest_zero3_affine_rebuild_allows_omitted_empty_rank
()
tests/unit/checkpoint/test_autoep_affine_universal.py:233
Functiontest_zero3_affine_rebuild_checks_ranks_shapes_and_replicas
()
tests/unit/checkpoint/test_autoep_affine_universal.py:218
Functiontest_zero3_allows_dynamo_dynamic_parameter_shapes
(monkeypatch)
tests/unit/compile/test_zero3_grad_dtype.py:45
← previousnext →14,101–14,200 of 14,579, ranked by callers