MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

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_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:227
Methodtest_pipeline_load_module_state_dict_accepts_autoep_zero3_fetch_kwarg
(self)
tests/unit/v1/moe/test_autoep_unit.py:954
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:562
Functiontest_plan_byte_budget_counts_the_serialized_envelope
()
tests/unit/checkpoint/test_affine_transfer_plan.py:651
Methodtest_plan_expert_transfer_moves_live_shards_into_target_packed_order
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:692
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:255
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:694
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:672
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:2628
Functiontest_positional_embedding
Validate that positional embedding works correctly.
tests/unit/inference/v2/kernels/ragged_ops/test_ragged_embed.py:152
Functiontest_positional_embedding_offset
Validate that positional embedding works correctly with an offset.
tests/unit/inference/v2/kernels/ragged_ops/test_ragged_embed.py:163
Methodtest_post_mode_weights_the_expert_output
(self)
tests/unit/module_inject/test_auto_ep_comm.py:402
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:409
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_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:599
Methodtest_prefetching
(self, prefetching)
tests/unit/v1/zero/test_zero.py:992
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_topological_order_when_sym_placeholder_follows_input
(self)
tests/unit/v1/compile/test_compile_autosp.py:792
Methodtest_preserves_vmap_nesting_markers
(self)
tests/unit/v1/compile/test_compile_autosp.py:620
Methodtest_preset_registry_core_contracts
(self)
tests/unit/v1/moe/test_autoep_unit.py:1140
Methodtest_pretrained_init
(self)
tests/unit/linear/test_ctx.py:91
Functiontest_primes
Test prime factorizations.
tests/unit/runtime/pipe/test_topology.py:210
Functiontest_print_model_profile_with_none_dp_world_size
(capsys)
tests/unit/profiling/flops_profiler/test_flops_profiler.py:211
Functiontest_probe_is_compatible_does_not_propagate_a_failed_probe
()
tests/unit/ops/test_op_builder.py:374
Functiontest_probe_is_compatible_passes_through_a_successful_probe
(answer)
tests/unit/ops/test_op_builder.py:381
Functiontest_problem_size_permutations
Validate on wider range of problem sizes.
tests/unit/inference/v2/kernels/ragged_ops/test_ragged_embed.py:122
Functiontest_problem_size_permutations
Validate for different embedding sizes.
tests/unit/inference/v2/kernels/ragged_ops/test_logits_gather.py:78
Functiontest_process_group_resolves_noncontiguous_group_rank
(monkeypatch)
tests/unit/module_inject/test_tp_shard.py:71
Methodtest_producer_matches_the_verified_fixture_layout
(self)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1744
Functiontest_profile_backfill_makes_partial_profile_safe_for_profile_dependent_passes
(monkeypatch)
tests/unit/v1/compile/test_list_schedule.py:410
Functiontest_profile_helpers_drop_warmup_and_intermediate_outputs
()
tests/unit/v1/compile/test_graph_profile.py:85
Functiontest_profiling_does_not_change_rollout_output
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1335
Functiontest_profiling_interpreter_restores_state_if_gathered_param_cleanup_fails
(monkeypatch)
tests/unit/v1/compile/test_graph_profile.py:337
Functiontest_profiling_interpreter_wall_time_excludes_warmup
(monkeypatch)
tests/unit/v1/compile/test_graph_profile.py:119
Methodtest_projection_is_applied
Projection layer must transform visual features before gather.
deepspeed/sequence/test_autosp.py:368
Functiontest_prompt_forward_never_uses_graphs
()
tests/unit/hybrid_engine/test_he_graph.py:140
Functiontest_public_barrier_forwards_device_ids
(monkeypatch, call_kwargs)
tests/unit/comm/test_barrier.py:15
Methodtest_pure_copy_lands_every_element
(self, dtype)
tests/unit/checkpoint/test_affine_transfer_executor.py:70
Functiontest_python_gc_manager_collection_allows_reentrant_release
(monkeypatch)
tests/unit/runtime/test_python_gc.py:201
Functiontest_python_gc_manager_explicit_collection
(monkeypatch)
tests/unit/runtime/test_python_gc.py:71
Functiontest_python_gc_manager_ignores_pre_fork_release
(monkeypatch)
tests/unit/runtime/test_python_gc.py:168
Functiontest_python_gc_manager_preserves_disabled_state
(monkeypatch)
tests/unit/runtime/test_python_gc.py:56
Functiontest_python_gc_manager_preserves_disabled_state_after_fork
(monkeypatch)
tests/unit/runtime/test_python_gc.py:154
Functiontest_python_gc_manager_restores_enabled_state
(monkeypatch)
tests/unit/runtime/test_python_gc.py:15
Functiontest_python_gc_manager_restores_enabled_state_after_fork
(monkeypatch)
tests/unit/runtime/test_python_gc.py:130
Functiontest_q_proj_on_a_non_mla_config_still_uses_head_dim
The MLA width only applies where the config carries the MLA head dimensions.
tests/unit/runtime/zero/test_per_head_muon.py:403
Methodtest_quantized_frozen_param_stays_quantized
(self)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:389
Methodtest_quantized_linear
(self, quantization_bits, group_dim)
tests/unit/inference/quantization/test_intX_quantization.py:325
Functiontest_query_projection_uses_the_query_head_count
()
tests/unit/runtime/zero/test_per_head_muon.py:176
Methodtest_query_sharded_mask_matches_full_sequence_reference
(self, mask_as_kwarg)
tests/unit/v1/compile/test_compile_autosp.py:363
Methodtest_queue_pairs_leave_room_for_the_control_path
(self)
tests/unit/module_inject/test_auto_ep_comm.py:91
Methodtest_qwen2_tied_lm_head_with_embedding_rowwise_becomes_vocab_parallel
Test HF's tied-model `embedding_rowwise` tp_plan entry (transformers#47579) drives real vocab-parallel sharding automatically, not just the SK
tests/unit/v1/autotp/test_tp_plan_real_models.py:208
Methodtest_qwen2_tied_lm_head_without_embedding_rowwise_falls_back_to_replicated
Test that a tied Qwen2 model without the new HF style remains replicated.
tests/unit/v1/autotp/test_tp_plan_real_models.py:147
Methodtest_qwen2_tp_plan_with_uneven_vocab
Test an untied Qwen2 LM head with an uneven gathered vocabulary size.
tests/unit/v1/autotp/test_tp_plan_real_models.py:96
Methodtest_qwen2_tp_plan_with_zero2
Test an untied Qwen2 LM head with gathered column output and ZeRO2.
tests/unit/v1/autotp/test_tp_plan_real_models.py:27
Methodtest_qwen3_norm_grads_match_across_ranks
(self)
tests/unit/v1/autotp/test_tp_plan_e2e.py:356
Methodtest_qwen3_tp3_keeps_attention_heads_aligned
(self)
tests/unit/v1/autotp/test_tp_plan_real_models.py:404
Methodtest_qwen_adapter_guards
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:2281
Functiontest_qwen_rejects_a_tensor_parallel_size_that_empties_a_rank
()
tests/unit/module_inject/test_fused_repartition.py:90
Functiontest_qwen_split_size_follows_the_frozen_shard_width
()
tests/unit/module_inject/test_fused_repartition.py:77
Functiontest_raises_instead_of_guessing_when_nothing_carries_it
()
tests/unit/inference/v2/model_implementations/test_rope_theta.py:51
Methodtest_raises_on_unknown_model
(self)
deepspeed/sequence/test_autosp.py:229
Functiontest_raises_when_nothing_carries_it
()
tests/unit/module_inject/test_llama_rope_theta.py:89
Functiontest_random_supported_layouts_match_the_oracle
Fixed seed, random geometry, including a change of split axis across degrees. A layout that cannot be planned is a failure of the generator rathe
tests/unit/checkpoint/test_affine_transfer_plan.py:734
← previousnext →13,301–13,400 of 14,579, ranked by callers