MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Functiontest_per_head_matches_orthogonalizing_each_head_alone
The batched path must equal running NS on each head block on its own.
tests/unit/runtime/zero/test_per_head_muon.py:76
Methodtest_per_head_moves_exactly_the_head_blocked_matrices
One step from the same start: per-head changes q and k and leaves the untagged MLP alone.
tests/unit/v1/ops/muon/test_muon_zero3_grad_accum.py:185
Functiontest_per_head_on_a_shard_is_the_shard_of_per_head
Exactly equal, not close: the shards are the same matrices in the same batch.
tests/unit/v1/ops/muon/test_per_head_muon_accelerator.py:62
Methodtest_per_layer_groups_tolerate_a_trainable_parameter_the_caller_left_out
Per-layer groups plus a trainable parameter the caller never gave the optimizer. Every replacement here is traceable, so nothing is ambiguous
tests/unit/v1/moe/test_autoep_unit.py:2843
Methodtest_per_layer_param_groups_survive_replacement
Layer-wise learning-rate decay gives each layer its own group, so the replacement spans several groups at once. Each layer's replacements must
tests/unit/v1/moe/test_autoep_unit.py:2815
Methodtest_perf_1_5B
(self)
tests/model/Megatron_GPT2/run_perf_baseline.py:19
Methodtest_perf_1_5B
(self)
tests/model/Megatron_GPT2/run_perf_test.py:19
Methodtest_perf_20B
(self)
tests/model/Megatron_GPT2/run_perf_baseline.py:67
Methodtest_perf_20B
(self)
tests/model/Megatron_GPT2/run_perf_test.py:70
Methodtest_perf_4B
(self)
tests/model/Megatron_GPT2/run_perf_baseline.py:35
Methodtest_perf_4B
(self)
tests/model/Megatron_GPT2/run_perf_test.py:36
Methodtest_perf_8B
(self)
tests/model/Megatron_GPT2/run_perf_baseline.py:51
Methodtest_perf_8B
(self)
tests/model/Megatron_GPT2/run_perf_test.py:53
Methodtest_permute_and_unpermute_match_the_reference
(self, dtype, hidden, ep_degree, num_local_experts, empty)
tests/unit/v1/moe/test_autoep_permute_rows.py:54
Functiontest_persisted_autoep_affine_map_must_match_placement_descriptor
(use_collection)
tests/unit/checkpoint/test_autoep_affine.py:61
Methodtest_persistent_param_storage_unchanged_across_release
(self)
tests/torch_compile/test_deepcompile_z3_release.py:91
Functiontest_pg_utils_not_exported_from_comm
()
tests/unit/comm/test_dist.py:155
Functiontest_pg_utils_without_process_group
()
tests/unit/comm/test_dist.py:150
Methodtest_phase1_produces_bf16_and_defers
(self, model_size, grad_dtype, weight_decay)
tests/unit/v1/ops/test_reflow_cpu_optimizers.py:273
Methodtest_phase2_halfgrad_matches_base
(self, model_size, grad_dtype, weight_decay)
tests/unit/v1/ops/test_reflow_cpu_optimizers.py:253
Functiontest_physical_main_reservation_shares_a_single_core
()
tests/unit/v1/zero/test_reflow.py:184
Functiontest_physical_rank_partition_preserves_siblings_and_remainders
()
tests/unit/v1/zero/test_reflow.py:142
Functiontest_pid_running_treats_linux_zombies_as_terminated
()
ci/test_torch_latest.py:1139
Functiontest_piece_count_does_not_grow_with_model_size
Piece count follows the block structure of the layout, not the size of the tensor. This is what keeps the description small: if piece count track
tests/unit/checkpoint/test_affine_shard_map.py:218
Functiontest_pieces_at_the_parameters_strides_must_tile_by_one_shift
The single-shift argument is the whole proof, so anything outside it is refused.
tests/unit/checkpoint/test_affine_transfer_plan.py:587
Functiontest_pieces_never_span_a_replication_boundary
GPTBigCode's last rank is where an unconstrained merge would cross one. Its q slice ends exactly where the replicated kv block begins, so merging
tests/unit/checkpoint/test_affine_shard_map.py:252
Methodtest_pieces_reproduce_shards_of_unseen_data
Pieces derived from markers must reproduce shards of data they were not derived from.
tests/unit/checkpoint/test_affine_shard_map.py:196
Functiontest_pin_copies_and_matches_shape
(native_pins)
tests/unit/v1/pin_memory/test_pin_memory.py:26
Methodtest_pin_device_tensor
(self, use_new_api)
tests/unit/v1/nvme/test_gds.py:257
Functiontest_pin_empty_cpu_torch_skips_accounting
CPU torch pinning is a no-op and must not inflate the pinned-byte total.
tests/unit/v1/accelerator/test_accelerator.py:173
Functiontest_pin_empty_native_backend
(monkeypatch)
tests/unit/v1/accelerator/test_accelerator.py:203
Functiontest_pin_empty_requires_dtype_and_host_device
(monkeypatch)
tests/unit/v1/accelerator/test_accelerator.py:164
Functiontest_pin_empty_torch_backend_is_pinned
pin_empty page-locks a host buffer on accelerators that can pin.
tests/unit/v1/accelerator/test_accelerator.py:187
Functiontest_pin_empty_torch_backend_uses_zero_element_template
pin_empty must not build a full-size pageable tensor for the torch path.
tests/unit/v1/accelerator/test_accelerator.py:138
Functiontest_pin_empty_uses_example_dtype_only
(native_pins)
tests/unit/v1/pin_memory/test_pin_memory.py:55
Functiontest_pin_flags
(native_pins)
tests/unit/v1/pin_memory/test_pin_memory.py:46
Functiontest_pin_freed_on_gc
(native_pins)
tests/unit/v1/pin_memory/test_pin_memory.py:73
Functiontest_pin_handle_alloc_free_and_is_pinned
()
tests/unit/v1/pin_memory/test_pin_memory_op.py:17
Functiontest_pin_handle_buffer_recognized_by_aio_handle
()
tests/unit/v1/nvme/test_pinned_manager.py:53
Functiontest_pin_memory_native_backend
(monkeypatch)
tests/unit/v1/accelerator/test_accelerator.py:231
Functiontest_pin_memory_native_raises_when_pin_memory_unavailable
(monkeypatch)
tests/unit/v1/accelerator/test_accelerator.py:265
Functiontest_pin_memory_torch_backend
(monkeypatch)
tests/unit/v1/accelerator/test_accelerator.py:97
Functiontest_pin_memory_torch_backend_make_copy_false_allocates_pinned
make_copy=False must page-lock a new buffer instead of pinning a copy.
tests/unit/v1/accelerator/test_accelerator.py:109
Functiontest_pin_memory_torch_backend_no_copy_is_pinned
The buffer returned for make_copy=False is really page-locked.
tests/unit/v1/accelerator/test_accelerator.py:217
Methodtest_pinned_restore_bounds_device_scratch
(self, contiguous_gradients)
tests/unit/v1/zero/test_reflow.py:1680
Methodtest_pipe_base
(self, topo_config)
tests/unit/runtime/pipe/test_pipe.py:108
Methodtest_pipe_base
This test checks if the pipeline engine can handle dynamic shapes correctly. We pass inputs of different shapes to the pipeline engine.
tests/unit/runtime/pipe/test_pipe.py:239
Functiontest_pipe_inference_schedule_firststage
(micro_batches, stages=3)
tests/unit/runtime/pipe/test_pipe_schedule.py:43
Functiontest_pipe_inference_schedule_laststage
(micro_batches, stages=3)
tests/unit/runtime/pipe/test_pipe_schedule.py:100
Functiontest_pipe_inference_schedule_midstage
(micro_batches, stages=3)
tests/unit/runtime/pipe/test_pipe_schedule.py:76
Functiontest_pipe_inference_schedule_singlestage
()
tests/unit/runtime/pipe/test_pipe_schedule.py:14
Functiontest_pipe_schedule_firststage
()
tests/unit/runtime/pipe/test_pipe_schedule.py:114
Functiontest_pipe_schedule_laststage
()
tests/unit/runtime/pipe/test_pipe_schedule.py:124
Functiontest_pipe_stagequery
()
tests/unit/runtime/pipe/test_pipe_schedule.py:132
Functiontest_pipe_train_schedule_singlestage
()
tests/unit/runtime/pipe/test_pipe_schedule.py:26
Methodtest_pipe_use_reentrant
(self, topo_config)
tests/unit/runtime/pipe/test_pipe.py:153
Methodtest_pipeline_checkpoint_loading
(self, tmpdir, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:27
Functiontest_pipeline_load_checks_shards_before_serial_wait
(monkeypatch)
tests/unit/checkpoint/test_fp32_master_only.py:233
Methodtest_pipeline_load_module_state_dict_accepts_autoep_zero3_fetch_kwarg
(self)
tests/unit/v1/moe/test_autoep_unit.py:1004
Methodtest_pipeline_parallelism_rejected
(self, monkeypatch)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:561
Functiontest_plain_colwise_lm_head_supports_tied_weights
()
tests/unit/module_inject/test_tp_partition_config_path.py:379
Functiontest_plain_colwise_lm_head_uses_vocab_parallel_layer
()
tests/unit/module_inject/test_tp_partition_config_path.py:309
Functiontest_plain_colwise_lm_head_without_flag_keeps_local_logits
()
tests/unit/module_inject/test_tp_partition_config_path.py:347
Methodtest_plain_model_is_unchanged
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:1074
Functiontest_plan_byte_budget_counts_the_serialized_envelope
()
tests/unit/checkpoint/test_affine_transfer_plan.py:762
Methodtest_plan_expert_transfer_moves_live_shards_into_target_packed_order
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:742
Functiontest_plan_moves_what_rebuild_and_extract_would
The plan and the full-materialization path must agree element for element. ``extract`` is the oracle because it is the operation the plan exists
tests/unit/checkpoint/test_affine_transfer_plan.py:258
Functiontest_plan_size_follows_geometry_and_not_the_model
Same topology, same pieces, a parameter eight orders of magnitude larger: same plan shape. No tensor of that size is created, and none can be --
tests/unit/checkpoint/test_affine_transfer_plan.py:941
Functiontest_planner_drops_the_reload_for_what_it_keeps_resident
Bringing an activation back in the forward must remove its copy back in the backward. The backward placeholder now carries the tensor itself rath
tests/unit/v1/compile/test_offload_activation.py:223
Functiontest_planning_never_touches_the_full_parameter
Bind the materializing operations to failures on the class the planner would reach them through. Patching the definition site is not enough -- th
tests/unit/checkpoint/test_affine_transfer_plan.py:919
Methodtest_populated_optimizer_state_raises_before_remap
Moment tensors cannot be transferred from arbitrary source layouts without an explicit repacking contract. Refuse a resumed optimizer rather t
tests/unit/v1/moe/test_autoep_unit.py:2699
Functiontest_positional_embedding
Validate that positional embedding works correctly.
tests/unit/inference/v2/kernels/ragged_ops/test_ragged_embed.py:157
Functiontest_positional_embedding_offset
Validate that positional embedding works correctly with an offset.
tests/unit/inference/v2/kernels/ragged_ops/test_ragged_embed.py:168
Methodtest_post_mode_weights_the_expert_output
(self)
tests/unit/module_inject/test_auto_ep_comm.py:416
Methodtest_pp_basic
(self, inputs, tmpdir)
tests/unit/v1/autotp/test_configurable_parallel_pp.py:71
Methodtest_pre_mode_weights_the_expert_input
(self)
tests/unit/module_inject/test_auto_ep_comm.py:423
Functiontest_pre_norm
(batch, seq_len, channels, dtype)
tests/unit/ops/transformer/inference/test_rms_norm.py:72
Methodtest_pre_padding_checkpoint_preserves_tensor_metadata
(self, zero_stage)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:269
Methodtest_pre_padding_elastic_checkpoint_preserves_tensor_metadata
(self, zero_stage)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:307
Functiontest_prebuilt_and_jit_builds_compile_and_link_an_op_the_same_way
(build_order)
tests/unit/ops/test_op_builder.py:203
Functiontest_prebuilt_and_jit_builds_target_the_same_archs
(arch_list, expected_targets, jit_mode)
tests/unit/ops/test_op_builder.py:333
Functiontest_prebuilt_builder_targets_requested_archs_instead_of_local_gpus
()
tests/unit/ops/test_op_builder.py:161
Functiontest_prebuilt_gencode_flags_are_sorted_deduplicated_and_keep_requested_ptx
(arch_list, expected_targets)
tests/unit/ops/test_op_builder.py:301
Functiontest_prebuilt_op_that_drops_archs_does_not_drop_them_for_the_ops_built_after_it
()
tests/unit/ops/test_op_builder.py:231
Functiontest_prebuilt_targets_drop_archs_below_70_and_keep_ptx
()
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:25
Functiontest_precision_restrictions_do_not_apply_without_reflow
()
tests/unit/v1/zero/test_reflow.py:292
Functiontest_prefers_the_attribute_when_both_are_present
()
tests/unit/inference/v2/model_implementations/test_rope_theta.py:45
Functiontest_prefers_the_attribute_when_both_are_present
()
tests/unit/module_inject/test_llama_rope_theta.py:34
Methodtest_prefers_val_over_example_value
(self, value)
tests/unit/v1/compile/test_compile_autosp.py:1124
Methodtest_prefetching
(self, prefetching)
tests/unit/v1/zero/test_zero.py:995
Functiontest_prefill_bucket_capacity_supports_long_lengths_without_token_expansion
()
tests/unit/runtime/rollout/test_continuous_batching.py:115
Functiontest_prefill_bucket_count_responds_to_forward_cost
(fixed_cost, expected_count)
tests/unit/runtime/rollout/test_continuous_batching.py:109
Functiontest_prefill_buckets_match_exhaustive_partition_cost
(lengths, max_tokens)
tests/unit/runtime/rollout/test_continuous_batching.py:87
Functiontest_prefill_cache_keeps_hf_static_cache_unless_full_attention_only
(layer_types, sliding_window, expect_d
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:420
Functiontest_prefix_sum
()
tests/unit/runtime/utils/test_partition.py:102
Methodtest_prefixed_runtime_duplicates_are_ignored
(self)
tests/unit/runtime/test_tp_plan_extraction.py:112
Methodtest_preserves_existing_original_parameters
Subsequent wraps must not clobber the first-saved original. ``_inject_parameters`` at engine init records the true torch-native conta
tests/unit/runtime/zero/test_zero_late_module_attach.py:110
Methodtest_preserves_group_directions
(self, optimizer_type)
tests/unit/v1/zero/test_reflow.py:2651
Methodtest_preserves_topological_order_when_sym_placeholder_follows_input
(self)
tests/unit/v1/compile/test_compile_autosp.py:1317
Methodtest_preserves_vmap_nesting_markers
(self)
tests/unit/v1/compile/test_compile_autosp.py:1145
← previousnext →14,001–14,100 of 15,468, ranked by callers