MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Methodtest_a_buffer_of_exactly_the_arrived_rows_is_used_without_slicing
(self)
tests/unit/module_inject/test_auto_ep_comm.py:498
Functiontest_a_column_cut_plans_from_the_surviving_column_shard
Cut at a column edge, a ZeRO-3 block of several rows keeps its strides and its partition's offset. Such a block is not dense in its flat shard, s
tests/unit/checkpoint/test_affine_transfer_plan.py:1133
Functiontest_a_config_without_a_per_head_width_is_declined
Divisibility alone is not confirmation. `rows % heads == 0` holds for matrices that are not head-blocked at all, which is how o_proj used to
tests/unit/runtime/zero/test_per_head_muon.py:508
Functiontest_a_convolution_training_step_completes
The guard used to raise on the shape mismatch before the step could be applied.
tests/unit/v1/ops/muon/test_muon_conv.py:87
Functiontest_a_corrupted_map_is_refused_or_still_exact
Fixed seed: converting through a map with one corrupted offset or stride fails or is exact. The shards come from the map before it is corrupted,
tests/unit/checkpoint/test_affine_shard_map.py:794
Methodtest_a_destroyed_buffer_is_not_handed_out_again
(self)
tests/unit/module_inject/test_auto_ep_comm.py:224
Methodtest_a_different_geometry_gets_its_own_buffer
(self)
tests/unit/module_inject/test_auto_ep_comm.py:193
Methodtest_a_discarded_forward_does_not_block_the_next_recompute
(self)
tests/unit/module_inject/test_auto_ep_comm.py:1209
Methodtest_a_discarded_step_leaves_every_momentum_where_it_was
The invariant in full, including the half a per-tensor guard cannot deliver. Two 2-D parameters in one group; only `boom` is fed an input tha
tests/unit/v1/ops/muon/test_muon_overflow.py:120
Functiontest_a_finite_gradient_still_moves_the_momentum
The guard must not disable the optimizer.
tests/unit/v1/ops/muon/test_muon_overflow.py:49
Functiontest_a_flat_shard_holds_a_dense_box_of_a_matrix
Flat storage, as ZeRO keeps it, may hold boxes of a matrix as dense runs of addresses.
tests/unit/checkpoint/test_affine_transfer_plan.py:403
Functiontest_a_flat_shard_holds_boxes_at_the_parameters_own_strides
A ZeRO partition cut at a tensor-parallel column edge keeps the parameter's row-major order. Two column halves of the same rows interleave in the
tests/unit/checkpoint/test_affine_transfer_plan.py:526
Methodtest_a_fresh_recompute_dispatch_corrupts_non_reentrant_gradients
(self)
tests/unit/module_inject/test_auto_ep_comm.py:1112
Functiontest_a_group_holding_both_kinds_splits_in_two_and_both_keep_its_settings
()
tests/unit/runtime/zero/test_muon_param_groups.py:82
Functiontest_a_group_keeps_its_own_lr_even_against_muon_lr
Most specific wins: the config's shared lr, then muon_lr / adam_lr, then the group.
tests/unit/runtime/zero/test_muon_param_groups.py:67
Functiontest_a_group_keeps_its_own_weight_decay
The pattern this is really about: no weight decay on biases and norms.
tests/unit/runtime/zero/test_muon_param_groups.py:50
Functiontest_a_group_without_an_lr_still_takes_muon_lr
()
tests/unit/runtime/zero/test_muon_param_groups.py:75
Functiontest_a_layout_without_head_counts_stays_unsupported
Describing Yuan needs the kv head count, so without it the layout must not be claimed.
tests/unit/checkpoint/test_affine_shard_map.py:1100
Methodtest_a_lazy_view_crossing_processes_is_refused_on_both
(self, kind, side)
tests/unit/checkpoint/test_affine_transfer_executor.py:388
Methodtest_a_lazy_view_of_the_destination_is_refused
(self, kind)
tests/unit/checkpoint/test_affine_transfer_executor.py:372
Functiontest_a_listed_module_wins_when_the_config_width_collides
Config 8 x 32 and module 4 x 64 are both 256 rows; the module built it, so 4 heads. With the config consulted first, the exact width match would
tests/unit/runtime/zero/test_per_head_muon.py:706
Functiontest_a_map_naming_a_rank_with_no_shard_is_refused
()
tests/unit/checkpoint/test_affine_transfer_plan.py:643
Functiontest_a_model_with_no_tags_at_all_is_a_no_op
Muon without `per_head_muon`, and every non-Muon model: nothing to resolve, no error.
tests/unit/runtime/zero/test_per_head_muon.py:831
Methodtest_a_module_without_layers_is_a_no_op
(self)
tests/unit/module_inject/test_auto_ep_comm.py:261
Functiontest_a_named_backend_that_cannot_run_raises_instead_of_substituting
()
tests/unit/v1/runtime/test_chunked_cross_entropy.py:275
Methodtest_a_no_grad_forward_does_not_block_checkpoint_backward
(self)
tests/unit/module_inject/test_auto_ep_comm.py:1222
Methodtest_a_period_without_rows_still_returns_a_gradient
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:882
Functiontest_a_permuted_piece_is_refused_rather_than_flattened
Strides that are not the tensor's own row-major order are a permutation, and one box cannot hold it.
tests/unit/checkpoint/test_affine_transfer_plan.py:354
Functiontest_a_plain_parameter_list_keeps_the_historical_groups
()
tests/unit/runtime/zero/test_muon_param_groups.py:35
Functiontest_a_plan_is_deterministic_under_input_order
Two runs, and a map whose pieces were listed in a different order, must agree exactly. A transport that shards work by segment index needs this,
tests/unit/checkpoint/test_affine_transfer_plan.py:294
Methodtest_a_rank_owning_no_expert_does_not_deadlock
Under pipeline parallelism a rank can hold no expert at all. Local ownership then differs in kind rather than in degree, so the branch is
tests/unit/runtime/test_runtime_utils.py:120
Methodtest_a_rank_with_no_gradient_at_all_still_gets_the_norm
Every local gradient can be absent, expert ones included, and the rank still has to answer.
tests/unit/runtime/test_runtime_utils.py:147
Functiontest_a_real_llama_config_is_not_refused
The stock config the crash fix targets carries no scaling and must still resolve.
tests/unit/module_inject/test_llama_rope_theta.py:139
Methodtest_a_recompute_with_different_routing_is_rejected
(self)
tests/unit/module_inject/test_auto_ep_comm.py:1272
Functiontest_a_replica_overlapping_a_single_holder_is_refused_in_either_order
(first)
tests/unit/checkpoint/test_affine_shard_map.py:700
Methodtest_a_retained_graph_interleaved_with_a_new_forward_is_rejected
(self)
tests/unit/module_inject/test_auto_ep_comm.py:1193
Functiontest_a_round_takes_its_busiest_resource
()
tests/unit/checkpoint/test_affine_transfer_cost.py:30
Functiontest_a_saved_view_is_charged_for_the_allocation_it_holds_not_its_own_bytes
Keeping a view resident retains the whole allocation it points into. The planner spends headroom to bring values back. Charging the view's own by
tests/unit/v1/compile/test_offload_activation.py:638
Functiontest_a_scalar_cannot_be_split
()
tests/unit/checkpoint/test_affine_replica_policy.py:302
Functiontest_a_scaled_piece_is_refused_for_the_same_reason_affine_refuses_it
()
tests/unit/checkpoint/test_affine_transfer_plan.py:367
Functiontest_a_scaled_rope_variant_is_refused
Reading only rope_theta out of a scaled config is silently wrong. DeepSeek-R1-Distill-Llama-8B (#8340) is the live case: `rope_type="llama3"` wit
tests/unit/module_inject/test_llama_rope_theta.py:102
Functiontest_a_scaled_variant_in_the_legacy_rope_scaling_spelling_is_refused
transformers < 5.0 carries the same request under `rope_scaling`.
tests/unit/module_inject/test_llama_rope_theta.py:124
Functiontest_a_scaled_variant_is_refused_even_when_the_attribute_carries_the_base
The attribute read comes first, so the check has to precede it to be reachable.
tests/unit/inference/v2/model_implementations/test_rope_theta.py:177
Methodtest_a_second_model_does_not_reshard_the_first
(self)
tests/unit/v1/autotp/test_autotp_multiple_models.py:72
Methodtest_a_second_step_still_runs
(self, case)
tests/unit/runtime/zero/test_zero_numel_param_shape.py:138
Functiontest_a_shard_that_splits_a_head_is_dropped
A shard that does not hold whole heads has no per-head structure to use.
tests/unit/runtime/zero/test_per_head_muon.py:802
Functiontest_a_shard_without_axis_correspondence_is_refused
(shard_shape, dest_strides)
tests/unit/checkpoint/test_affine_transfer_plan.py:597
Functiontest_a_single_corrupt_piece_is_reported_rather_than_planned_around
One wrong number in a valid map must produce a named refusal. The map is generated whole, then broken once, so the test says which field the plan
tests/unit/checkpoint/test_affine_transfer_plan.py:1007
Functiontest_a_source_that_does_not_reach_the_target_is_refused
Half a parameter with nowhere to come from must fail, not leave a silently unwritten shard.
tests/unit/checkpoint/test_affine_transfer_plan.py:318
Functiontest_a_split_reads_each_cut_from_its_holder
()
tests/unit/checkpoint/test_affine_replica_policy.py:237
Functiontest_a_stale_head_count_splits_heads_in_half
What the tag does under tp=2 if it is not re-resolved against the shard. 128 rows still divide by 8, so the divisibility check passes and each he
tests/unit/v1/ops/muon/test_per_head_muon_accelerator.py:87
Functiontest_a_standard_model_is_unchanged_when_the_module_agrees
On ordinary attention both the config and the module describe the same geometry. They agree, so there is nothing to be ambiguous about and the he
tests/unit/runtime/zero/test_per_head_muon.py:731
Functiontest_a_strided_target_is_read_by_row
(backend, device)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:236
Functiontest_a_surviving_row_shard_and_zero3_partitions_plan_as_one_source
A tensor-parallel row shard that is still current, and the trainer's ZeRO-3 partitions, as one source. A partition may start or end inside a row,
tests/unit/checkpoint/test_affine_transfer_plan.py:1086
Functiontest_a_tie_goes_to_the_first_name
()
tests/unit/checkpoint/test_affine_transfer_cost.py:116
Functiontest_a_union_cuts_replicas_that_split_a_block_differently
Replicas within one layout may store a block whole or in parts, so its own edges are cut at too.
tests/unit/checkpoint/test_affine_transfer_plan.py:1178
Functiontest_a_union_of_three_layouts_does_not_depend_on_their_order
Merging folds pairwise, so every order must give the same holders and an exact plan.
tests/unit/checkpoint/test_affine_transfer_plan.py:1109
Functiontest_a_union_refuses_layouts_it_cannot_merge
()
tests/unit/checkpoint/test_affine_transfer_plan.py:1155
Methodtest_a_union_source_reads_both_buffers_of_one_process
(self)
tests/unit/checkpoint/test_affine_transfer_executor.py:410
Methodtest_a_view_of_the_target_is_still_refused_where_it_aliases
(self, case, reason)
tests/unit/checkpoint/test_affine_transfer_executor.py:654
Functiontest_a_view_that_overlaps_itself_is_refused
(case)
tests/unit/checkpoint/test_affine_shard_map.py:740
Methodtest_a_window_accumulates_the_plain_weight_gradients
(self, gate_up_impl, padded, flush_period, rows_p
tests/unit/v1/moe/test_autoep_expert_activation.py:826
Functiontest_abort_helper_passes_when_every_rank_is_healthy
(monkeypatch)
tests/unit/v1/compile/test_graph_profile.py:244
Functiontest_abort_helper_raises_locally_without_distributed
()
tests/unit/v1/compile/test_graph_profile.py:253
Functiontest_abstract_methods_defined
(module_name, accel_class_name)
tests/unit/v1/accelerator/test_accelerator.py:59
Methodtest_accelerator
(self)
tests/unit/runtime/test_ds_config_dict.py:30
Methodtest_accepts_bfloat16
(self)
tests/unit/module_inject/test_auto_ep_comm.py:117
Methodtest_accepts_boolean_zero_config
(self)
tests/unit/v1/compile/test_compile_autosp.py:444
Methodtest_accepts_grouped_query_attention_with_divisible_heads
(self)
tests/unit/v1/compile/test_compile_autosp.py:1406
Functiontest_accepts_half_precision_and_supported_optimizer_offload
(precision, device)
tests/unit/v1/zero/test_reflow.py:281
Methodtest_accumulated_updates_and_checkpoint_keep_the_separate_parameters
(self, activation, recompute)
tests/unit/v1/moe/test_autoep_expert_activation.py:535
Functiontest_accumulation_matches_addition_on_restricted_worker_cpus
(dtype, size)
tests/unit/v1/ops/test_reflow_cpu_optimizers.py:397
Functiontest_act_fn
(act_fn: ActivationType)
tests/unit/inference/v2/kernels/core_ops/test_gated_activation.py:70
Functiontest_act_fns
Validate bias activation kernel with different activation functions.
tests/unit/inference/v2/kernels/core_ops/test_bias_activation.py:87
Functiontest_act_fns
Validate activation function behavior.
tests/unit/inference/v2/kernels/cutlass_ops/test_moe_gemm.py:105
Functiontest_act_with_bias
()
tests/unit/inference/v2/kernels/core_ops/test_gated_activation.py:86
Functiontest_activation_types
(activation_type: ActivationType)
tests/unit/inference/v2/modules/test_cutlass_moe.py:195
Functiontest_adam_backend_selection
(engine, parameters, adam_w_mode, expected_class, expected_kwargs)
tests/unit/v1/ops/muon/test_muon_partial_training.py:435
Functiontest_adam_maximize_groups_match_pytorch
(adamw_mode, model_size, combined_scale)
tests/unit/v1/ops/test_reflow_cpu_optimizers.py:427
Functiontest_adaptive_generation_applies_repetition_penalty_from_first_token
(capacity, config_source)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2250
Functiontest_adaptive_generation_matches_single_request_eager
(lengths, capacity, strategy)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2076
Functiontest_adaptive_generation_preserves_padded_repetition_history
(cache_support, bucketed, adaptive_prefill)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2289
Functiontest_adaptive_generation_rejects_mask_changed_by_custom_preparer
(capacity, mode)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2418
Functiontest_adaptive_generation_rejects_unknown_public_settings
(value, config_source)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2185
Functiontest_adaptive_generation_rejects_unsupported_generation_settings
(setting, value, config_source)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2171
Functiontest_adaptive_generation_resolves_custom_generation_config
(capacity, trigger, name, value)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2396
Functiontest_adaptive_generation_uses_resolved_penalty_on_both_routes
(cache_support, capacity, dtype)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2465
Functiontest_adaptive_prefill_rejects_invalid_cost_settings
(name, value)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2143
Functiontest_adaptive_prefill_rejects_unsynchronized_distributed_selection
(_initialized, _world_size)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2151
Functiontest_adaptive_profile_counts_only_productive_tokens_after_eos
(capacity, stop_at_first)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2216
Functiontest_adaptive_profile_includes_route_planning_time
(force_cb)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2524
Functiontest_adaptive_short_batch_does_not_read_one_gpu_scalar_per_request
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2371
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
← previousnext →12,001–12,100 of 15,468, ranked by callers