MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

Functiontest_requirement_does_not_carry_across_steps
(clean_registry)
tests/unit/compile/test_pass_contract.py:87
Functiontest_requirement_within_same_step
(clean_registry)
tests/unit/compile/test_pass_contract.py:80
Methodtest_requires_grad
(self)
tests/unit/linear/test_quant_param.py:34
Functiontest_reset_starts_a_new_total
(run_matmuls)
tests/unit/utils/test_timer.py:62
Methodtest_reset_step_drains_incomplete_backward_state
The next root forward's reset must drain state left by an aborted backward.
tests/unit/v1/zero/test_zero_activation_checkpoint_lifecycle.py:426
Functiontest_reshape_222_to_111
()
tests/unit/checkpoint/test_reshape_checkpoint.py:48
Functiontest_reshape_222_to_121
()
tests/unit/checkpoint/test_reshape_checkpoint.py:57
Functiontest_reshape_222_to_122
()
tests/unit/checkpoint/test_reshape_checkpoint.py:67
Functiontest_reshape_222_to_211
()
tests/unit/checkpoint/test_reshape_checkpoint.py:79
Functiontest_residual_add
(batch, sequence, hidden_dim, dtype, mlp_after_attn, add_bias, mp_size, pre_attn_norm, u
tests/unit/ops/transformer/inference/test_residual_add.py:75
Functiontest_resolve_autotp_partition_prefers_resolved_subparam_sizes
()
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:233
Functiontest_resolve_autotp_partition_rejects_uneven_subparams_without_widths
()
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:258
Functiontest_resolve_autotp_partition_rejects_uneven_without_partition_sizes
()
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:280
Functiontest_resolve_autotp_partition_replicated_bias
()
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:303
Functiontest_resolve_autotp_partition_row_parallel_weight
()
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:101
Functiontest_resolve_autotp_partition_subparam_column_weight
()
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:121
Functiontest_resolve_autotp_partition_subparam_sizes_uneven_gqa_like
()
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:142
Functiontest_resolve_autotp_partition_uses_uneven_partition_sizes
()
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:193
Functiontest_resolve_autotp_partition_uses_uneven_partition_sizes_for_bias
()
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:213
Methodtest_resolve_zero3_param_placement_rejects_pre_partitioned_expert_on_wrong_group
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:975
Functiontest_resolves_against_a_real_llama_config
The six cases above build the config by hand, so none of them pins the claim this change rests on: which spelling a stock `LlamaConfig` actually c
tests/unit/module_inject/test_llama_rope_theta.py:55
Functiontest_resolves_against_the_installed_transformers_configs
Every config backing a V2 model must yield a base through one spelling or the other.
tests/unit/inference/v2/model_implementations/test_rope_theta.py:119
Functiontest_resource_manager_arg_mappings
(arg_mappings)
tests/unit/autotuning/test_autotuning.py:47
Functiontest_response_token_batch_aligns_causal_logits
()
tests/unit/runtime/rollout/test_rollout_interface.py:103
Functiontest_response_token_batch_masks_prompts_and_padding
()
tests/unit/runtime/rollout/test_rollout_interface.py:76
Functiontest_response_token_batch_rejects_invalid_response_boundaries
(response_start_idx)
tests/unit/runtime/rollout/test_rollout_interface.py:92
Functiontest_restore_combined_preserves_output_and_router_weight_gradients
()
tests/unit/v1/moe/test_autoep_autotp_dispatch.py:94
Functiontest_restore_combined_sums_topk_assignments_by_original_token
()
tests/unit/v1/moe/test_autoep_autotp_dispatch.py:80
Functiontest_restore_combined_tp_backward_matches_non_partitioned_combine
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_dispatch.py:180
Functiontest_restore_combined_tp_forward_uses_topk_slot_order
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_dispatch.py:208
Functiontest_restore_coverage_assertion_detects_missing_assignment
()
tests/unit/v1/moe/test_autoep_autotp_dispatch.py:212
Functiontest_restore_falls_back_when_no_map_was_published
A layout with no map must still restore through the existing keys.
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:561
Functiontest_restore_moments_are_unaffected_when_nothing_is_scaled
Every state restores the same way through an unscaled map, which is the common case.
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:610
Functiontest_restore_prefers_the_map_over_the_category_keys
Restore must read the map, not the per-category keys, when the layer published one. The two are given deliberately contradictory geometry: the ke
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:516
Functiontest_restore_refuses_a_scaled_optimizer_state
A moment needs its own power of the scale, so restoring one is refused, not rescaled. `_resolve_autotp_partition` runs once per state file, so pa
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:590
Functiontest_restore_refuses_layouts_conversion_rejected
()
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:389
Methodtest_resume
(self, tmpdir, zero_stage, int_step)
tests/unit/checkpoint/test_universal_checkpoint.py:306
Methodtest_resume_from_tp2
(self, uneven_vocab_checkpoint, tmpdir, world_size)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1919
Methodtest_resume_matches_uninterrupted_training
(self, affine_resume_checkpoint, tmpdir, affine_layout, world_size)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1712
Methodtest_resumes_with_its_momentum
A resumed run must continue the one it resumed, not restart its momentum. Before the dtype was reconciled this raised on stages 1 and 2 under
tests/unit/v1/ops/muon/test_muon_checkpoint.py:71
Methodtest_retain_graph_backward_twice_replays_again
(self)
tests/unit/module_inject/test_auto_ep_comm.py:983
Functiontest_retain_graph_second_backward
()
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:431
Methodtest_retained_checkpoint_graph_interleaved_with_new_forward_is_rejected
(self, skewed_routing)
tests/unit/v1/moe/test_autoep_deepep_parity.py:678
Functiontest_returns_none_for_non_3d
()
tests/unit/v1/moe/test_fused_expert_layout.py:37
Functiontest_returns_none_for_odd_inner_dim
()
tests/unit/v1/moe/test_fused_expert_layout.py:33
Functiontest_returns_none_for_unknown_layout
()
tests/unit/v1/moe/test_fused_expert_layout.py:29
Methodtest_reused_checkpointed_module_invocations_release_independently
Nested calls to one module must retire independent hook invocations despite sharing a ds_id.
tests/unit/v1/zero/test_zero_activation_checkpoint_lifecycle.py:318
Functiontest_riscv_has_vector_agrees_with_kernel_hwcap
()
tests/unit/ops/test_op_builder.py:403
Functiontest_rms_dtypes
(dtype: DtypeEnum, do_residual: bool)
tests/unit/inference/v2/kernels/core_ops/test_rms_norm.py:69
Functiontest_rms_norm
(batch, seq_len, channels, dtype)
tests/unit/ops/transformer/inference/test_rms_norm.py:38
Functiontest_rms_shapes
(rows: int, cols: int, do_residual: bool)
tests/unit/inference/v2/kernels/core_ops/test_rms_norm.py:76
Methodtest_rollback_subgroup_basic
Test basic functionality of rollback_subgroup method.
tests/unit/ops/adam/test_cpu_adam.py:449
Methodtest_rollback_subgroup_uninitialized_error
Test that rollback_subgroup raises error for uninitialized subgroup.
tests/unit/ops/adam/test_cpu_adam.py:479
Methodtest_rollback_subgroup_zero_step_error
Test that rollback_subgroup raises error when step count is already 0.
tests/unit/ops/adam/test_cpu_adam.py:491
Functiontest_rollout_batch_accessors
()
tests/unit/runtime/rollout/test_rollout_interface.py:51
Functiontest_rollout_batch_validates_shapes
()
tests/unit/runtime/rollout/test_rollout_interface.py:36
Functiontest_rollout_request_validates_shapes
()
tests/unit/runtime/rollout/test_rollout_interface.py:29
Methodtest_rolls_back_partial_compilation
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:1349
Functiontest_rope_warp_size_alignment
(num_heads)
tests/unit/ops/transformer/inference/test_rope.py:18
Functiontest_rotary_dim
(head_size: int)
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_rotary_emb.py:267
Functiontest_rotary_emb
(trained_freqs: bool)
tests/unit/inference/v2/modules/test_blocked_attn.py:200
Functiontest_rotation_loop_does_not_leak
N iterations of save+close+unlink should leave zero deleted-fds. Mirrors the real checkpoint-rotation workload that originally surfaced this b
tests/unit/v1/nvme/test_fast_file_writer_fd_close.py:93
Methodtest_round_trip_loss_parity
(self, tmpdir, zero_stage)
tests/unit/v1/moe/test_autoep_checkpoint.py:490
Methodtest_round_trip_restores_the_rows_and_padding_is_zero
(self)
tests/unit/v1/moe/test_autoep_permute_rows.py:130
Methodtest_round_trips_keep_one_copy
(self, precision, pin_memory)
tests/unit/v1/zero/test_offload_states.py:432
Methodtest_round_trips_preserve_values_and_gradients
(self, sizes)
tests/unit/v1/autotp/test_autotp_training.py:2098
Methodtest_router_cache_checkpoint_training
(self, return_logits, checkpoint_mode, device)
tests/unit/v1/moe/test_autoep_unit.py:1558
Methodtest_router_cache_does_not_duplicate_model_level_gate_capture
(self)
tests/unit/v1/moe/test_autoep_unit.py:1513
Methodtest_router_cache_is_released_after_expert_failure
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:1612
Methodtest_router_cache_returned_logits_match_gate
(self, capture_mode, score_func)
tests/unit/v1/moe/test_autoep_unit.py:1531
Methodtest_router_route_scale_and_group_limited_routing
(self)
tests/unit/v1/moe/test_autoep_unit.py:1455
Functiontest_row_chunking_matches_reference
(monkeypatch)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:270
Methodtest_row_count_comes_from_the_handle_not_the_device
(self)
tests/unit/module_inject/test_auto_ep_comm.py:565
Methodtest_row_parallel_forward
(self, kind)
tests/unit/module_inject/test_tp_autograd_reduce.py:29
Methodtest_row_parallel_tied_head_keeps_the_tie
(self, zero_init)
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:596
Functiontest_row_parallel_uc_metadata_uses_zero3_shape
()
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:103
Functiontest_row_tp2_to_column_tp4_matches_the_hand_derived_addresses
W is 8x8, split by rows across 2 ranks, restored split by columns across 4. Each source shard is 4x8 row-major; each target shard is 8x2 column-m
tests/unit/checkpoint/test_affine_transfer_plan.py:79
Methodtest_row_weighting_impl_rejects_unknown_value
(self)
tests/unit/v1/moe/test_autoep_unit.py:316
Functiontest_runner_main_rejects_unsupported_filter
(tmp_path, monkeypatch, force_multi)
tests/unit/launcher/test_multinode_runner.py:125
Functiontest_runtime_rejects_cuda_compatible_accelerator
(monkeypatch)
tests/unit/runtime/test_determinism.py:34
Functiontest_runtime_rejects_rocm
(monkeypatch)
tests/unit/runtime/test_determinism.py:18
Functiontest_runtime_requires_workspace
(monkeypatch, workspace)
tests/unit/runtime/test_determinism.py:53
Methodtest_safe_full_grad_accounts_for_alignment_padding
(self, zero_stage)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:256
Methodtest_safe_get_full_grad_preserves_fp32_accumulated_average
(self, zero_stage, zero_options)
tests/unit/runtime/zero/test_zero_tensor_fragment.py:257
Methodtest_safe_get_full_grad_returns_local_pre_reduce_value
(self)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:578
Methodtest_safe_modules_conf
(self, enable, zero_stage, dtype)
tests/unit/v1/zero/test_zero_autocast.py:175
Methodtest_same_lrscheler_and_callable
Expect behavior if lr scheduler is defined in code and passed into initialize as arg, it will be used even this is a lr sche
tests/unit/runtime/test_ds_initialize.py:362
Functiontest_same_manager_is_not_reentrant
()
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:161
Methodtest_same_mesh_is_reused
(self, monkeypatch)
tests/unit/v1/compile/test_compile_autosp.py:189
Functiontest_sampling_config_defaults
()
tests/unit/runtime/rollout/test_rollout_interface.py:61
Functiontest_sandbox_kwargs_are_fixed_and_secret_free
()
ci/test_torch_latest.py:569
Methodtest_save_before_accum_grad_is_done
(self, tmpdir, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:442
Methodtest_save_checkpoint_empty_dir
(self, save_dir)
tests/unit/checkpoint/test_tag_validation.py:69
Methodtest_save_convert_load_uneven_lm_head
(self, tmpdir)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1071
Methodtest_save_convert_load_uneven_row_parallel
(self, tmpdir)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1165
Methodtest_save_exclude_custom_frozen_weights
(self, tmpdir, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:618
Methodtest_save_exclude_frozen_weights
(self, tmpdir, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:570
Methodtest_save_load_resumes_training
(self, zero_init, tmpdir)
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:628
Methodtest_save_load_round_trip_preserves_loss
(self, tmpdir)
tests/unit/v1/autotp/test_autotp_training.py:460
Methodtest_save_load_round_trip_preserves_loss
(self, tmpdir)
tests/unit/v1/autotp/test_autotp_training.py:723
← previousnext →13,501–13,600 of 14,579, ranked by callers