Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ functions
Functions
15,468 in github.com/deepspeedai/DeepSpeed
⨍
Functions
15,468
◇
Types & classes
2,493
↳
Endpoints
106
Function
test_sandbox_kwargs_are_fixed_and_secret_free
()
ci/test_torch_latest.py:569
Method
test_save_before_accum_grad_is_done
(self, tmpdir, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:442
Method
test_save_checkpoint_empty_dir
(self, save_dir)
tests/unit/checkpoint/test_tag_validation.py:69
Method
test_save_convert_load_uneven_lm_head
(self, tmpdir)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1110
Method
test_save_convert_load_uneven_row_parallel
(self, tmpdir)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1204
Method
test_save_exclude_custom_frozen_weights
(self, tmpdir, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:618
Method
test_save_exclude_frozen_weights
(self, tmpdir, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:570
Method
test_save_load_resumes_training
(self, zero_init, tmpdir)
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:628
Method
test_save_load_round_trip_preserves_loss
(self, tmpdir)
tests/unit/v1/autotp/test_autotp_training.py:461
Method
test_save_load_round_trip_preserves_loss
(self, tmpdir)
tests/unit/v1/autotp/test_autotp_training.py:724
Method
test_save_load_round_trip_preserves_loss
(self, tmpdir)
tests/unit/v1/autotp/test_autotp_training.py:2407
Method
test_save_load_same_ep_and_metadata
(self, tmpdir)
tests/unit/v1/moe/test_autoep_checkpoint.py:421
Method
test_save_original_weight
(self, tp_size: int, zero_stage: int)
tests/unit/v1/autotp/test_autotp_training.py:2004
Method
test_save_tensor_clone
(self, tmpdir, zero_stage, use_cpu_device)
tests/unit/checkpoint/test_zero_optimizer.py:664
Function
test_saved_view_minimum_size_uses_the_allocation_it_releases
A cheap view copy can release an allocation above the offload floor.
tests/unit/v1/compile/test_offload_activation.py:663
Function
test_saves_no_full_vocabulary_float32_tensor
Backward may keep only the given logits and per-row values, not an FP32 copy the size of the logits.
tests/unit/v1/runtime/test_chunked_cross_entropy.py:282
Method
test_scalar_plan_crosses_processes
(self, batched)
tests/unit/checkpoint/test_affine_transfer_executor.py:126
Method
test_scalar_plan_preserves_storage_offsets_and_guards
(self, batched)
tests/unit/checkpoint/test_affine_transfer_executor.py:701
Method
test_scale_backward_matches_ddp
Test that engine.scale(loss).backward() produces same gradients as DDP
tests/unit/v1/zero/test_zero_user_backward.py:951
Method
test_scale_backward_matches_engine_backward
Test that engine.scale(loss).backward() produces same gradients as engine.backward(loss)
tests/unit/v1/zero/test_zero_user_backward.py:913
Function
test_scale_matches_eager_after_recompiling
(branch, ns_method, device)
tests/unit/v1/ops/muon/test_muon_scale_compile.py:47
Function
test_scale_power_gives_each_state_its_own_factor
The moments' factors are the inverse and inverse square of the parameter's. Verified at the arithmetic level because `rebuild` refuses a scaled o
tests/unit/checkpoint/test_affine_shard_map.py:855
Function
test_scale_round_trip_is_exact_for_power_of_two_world_sizes
Dividing by a power of two only shifts the exponent, so no bias precision is lost.
tests/unit/checkpoint/test_affine_shard_map.py:300
Function
test_scale_round_trips_through_both_directions
A row-parallel bias is replicated pre-divided by the world size, so a piece scales it. `shard == full * scale`, so extracting multiplies and rebu
tests/unit/checkpoint/test_affine_shard_map.py:269
Method
test_scale_validates_scalar_loss
Test that scale() validates the input is a scalar loss tensor
tests/unit/v1/zero/test_zero_user_backward.py:1219
Method
test_scale_with_gradient_accumulation
Test that engine.scale() works correctly with gradient accumulation
tests/unit/v1/zero/test_zero_user_backward.py:982
Method
test_scale_with_torch_autocast
Test that scale() works correctly with torch.autocast and fp16
tests/unit/v1/zero/test_zero_user_backward.py:1242
Function
test_scaled_global_norm_does_not_turn_cpu_offload_sentinel_into_one
()
tests/unit/v1/zero/test_invalid_grad_norm.py:72
Function
test_scaled_optimizer_state_is_refused
Correct moments are not enough: Adam's lr and eps live in the source coordinate. Converting them without rescaling `lr / scale` and `eps * scale`
tests/unit/checkpoint/test_affine_shard_map.py:884
Function
test_scaled_parameter_still_round_trips
The parameter itself converts through a scaled piece, which is the supported case.
tests/unit/checkpoint/test_affine_shard_map.py:869
Method
test_scatter_halftype
(self)
tests/unit/runtime/zero/test_zero_context.py:201
Method
test_scatter_to_tensor_parallel_region
(self, kind)
tests/unit/module_inject/test_tp_autograd_reduce.py:54
Method
test_scattered_init_dist
(self)
tests/unit/runtime/zero/test_zero_context.py:195
Method
test_schedule_is_what_the_executor_runs
(self, world_size)
tests/unit/checkpoint/test_affine_transfer_executor.py:241
Method
test_schedule_of_a_single_process_is_all_local_copies
(self)
tests/unit/checkpoint/test_affine_transfer_executor.py:457
Function
test_schedule_prefetch_skips_when_memory_profile_incomplete
(monkeypatch)
tests/unit/v1/compile/test_list_schedule.py:501
Function
test_schedule_written_with_callables_is_validated
(builtin_registry)
tests/unit/compile/test_pass_contract.py:215
Function
test_scheduler_admits_fifo_and_respects_capacity
()
tests/unit/runtime/rollout/test_continuous_batching.py:17
Function
test_scheduler_admits_pending_request_after_retirement
()
tests/unit/runtime/rollout/test_continuous_batching.py:46
Function
test_scheduler_advance_retires_by_budget
()
tests/unit/runtime/rollout/test_continuous_batching.py:60
Function
test_scheduler_compacts_survivors_and_admits_pending_request
()
tests/unit/runtime/rollout/test_continuous_batching.py:31
Function
test_scheduler_debug_env_flag_values
(monkeypatch)
tests/unit/v1/compile/test_list_schedule.py:116
Function
test_scheduler_rejects_invalid_transitions
()
tests/unit/runtime/rollout/test_continuous_batching.py:72
Function
test_score_accuracy
Validate expert scores are correct.
tests/unit/inference/v2/kernels/ragged_ops/test_top_k_gating.py:155
Method
test_score_application_and_combine
(self)
tests/unit/v1/moe/test_autoep_unit.py:1528
Method
test_score_correction_bias_location_and_registration
(self, monkeypatch, owner_path, bias_kind, persistent)
tests/unit/v1/moe/test_autoep_unit.py:2408
Method
test_score_correction_bias_multiple_locations_are_rejected
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:2442
Method
test_second_model_does_not_reshard_the_first
(self)
tests/unit/v1/sequence_parallelism/test_ulysses.py:713
Function
test_segmented_map_refuses_widths_that_do_not_add_up
A width list that misses elements would describe a layout nothing produced.
tests/unit/checkpoint/test_affine_shard_map.py:1141
Function
test_selection_modes_and_path_validation
()
ci/test_torch_latest.py:352
Function
test_selection_rejects_duplicate_symlink_size_count_and_controls
()
ci/test_torch_latest.py:386
Function
test_selective_adamw_loads_counter_without_losing_precision
(optimizer_cls, counter_dtype)
tests/unit/runtime/zenflow/test_zf.py:46
Function
test_selective_adamw_resumed_counter_advances_past_old_limit
(dtype, boundary)
tests/unit/runtime/zenflow/test_zf.py:64
Function
test_selective_adamw_step_counter_keeps_advancing
(dtype, steps)
tests/unit/runtime/zenflow/test_zf.py:28
Function
test_selective_gather_caps_profiled_headroom_by_current_available_memory
(monkeypatch)
tests/unit/v1/compile/test_selective_gather.py:155
Function
test_selective_gather_sets_persistent_params_when_transient_headroom_exists
(monkeypatch)
tests/unit/v1/compile/test_selective_gather.py:71
Function
test_selective_gather_skips_persistence_when_memory_profile_incomplete
(monkeypatch)
tests/unit/v1/compile/test_selective_gather.py:198
Function
test_selective_gather_uses_profiled_headroom_instead_of_current_available_memory
(monkeypatch)
tests/unit/v1/compile/test_selective_gather.py:112
Function
test_selector_uses_selected_replica_address
()
tests/unit/checkpoint/test_affine_transfer_plan.py:195
Method
test_selects_deepep
(self)
tests/unit/module_inject/test_auto_ep_comm.py:45
Method
test_separate_loss_function
Test that separate loss function works correctly by comparing with PyTorch DDP
tests/unit/v1/zero/test_zero_user_backward.py:649
Method
test_seq_to_head_parallel
(self, batch_dim_idx, seq_world_size)
tests/unit/v1/sequence_parallelism/test_ulysses.py:200
Function
test_sequence_length_is_capped_to_sliding_window
()
tests/unit/inference/v2/model_implementations/test_exaone4_5.py:82
Method
test_sequence_length_preserved
Output length must equal input length (1-to-1 replacement).
deepspeed/sequence/test_autosp.py:535
Method
test_sequence_length_preserved
Output length must equal input length (1-to-1 replacement).
deepspeed/sequence/test_autosp.py:645
Method
test_sequence_loss_local_gathered_and_mean
(self)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:228
Function
test_sequence_scatter_rejects_indivisible_length
Pin the local layout guard: fail clearly before a reshape can obscure the error.
tests/unit/v1/sequence_parallelism/test_ulysses.py:955
Function
test_sequence_tiled_compute_shard_boundaries
(batch_size, seqlen, shards, output_reduction)
tests/unit/ulysses_alst/test_tiled_compute.py:225
Function
test_serialisation_holds_only_plain_scalars
Nothing torch-specific may reach the file, so the map stays readable on its own.
tests/unit/checkpoint/test_affine_shard_map.py:417
Function
test_serialisation_preserves_scale
A scaled piece must survive the file, or a restored bias would be off by the divisor.
tests/unit/checkpoint/test_affine_shard_map.py:435
Function
test_serialisation_round_trips
The stored form must rebuild the same parameter as the map it came from.
tests/unit/checkpoint/test_affine_shard_map.py:404
Method
test_set_checkpoint_interval
(self, mixed_param_model)
tests/unit/pipe/test_pipe_module.py:128
Method
test_set_full_grad_between_backwards
(self, scenario)
tests/unit/v1/zero/test_zero_offload_accum_precision.py:155
Method
test_set_full_grad_norm
The gradient norm of step(), which clipping uses, has a gradient set with safe_set_full_grad in it, with optimizer offload as without.
tests/unit/v1/zero/test_zero3_unused_param_grads.py:185
Method
test_set_gradient_accumulation_boundary_rejected
set_gradient_accumulation_boundary() is unsupported in unmanaged mode (caller owns the boundary).
tests/unit/v1/zero/test_zero_user_backward.py:2048
Function
test_set_leaf_modules_by_name
()
tests/unit/runtime/zero/test_zero_leaf_module.py:172
Function
test_set_leaf_modules_by_name_missing
()
tests/unit/runtime/zero/test_zero_leaf_module.py:183
Function
test_set_leaf_modules_by_suffix
()
tests/unit/runtime/zero/test_zero_leaf_module.py:193
Function
test_set_leaf_modules_by_suffix_missing
()
tests/unit/runtime/zero/test_zero_leaf_module.py:204
Function
test_set_leaf_modules_no_raise_when_missing
()
tests/unit/runtime/zero/test_zero_leaf_module.py:162
Function
test_set_leaf_modules_with_fully_qualified_name
()
tests/unit/runtime/zero/test_zero_leaf_module.py:149
Method
test_set_leaf_modules_with_subclass
(self)
tests/unit/runtime/zero/test_zero_leaf_module.py:436
Method
test_set_module_by_name_deep
(self)
deepspeed/sequence/test_autosp.py:241
Method
test_set_module_by_name_shallow
(self)
deepspeed/sequence/test_autosp.py:235
Method
test_set_no_match_class
(self)
tests/unit/runtime/zero/test_zero_leaf_module.py:447
Method
test_set_unset_leaf_modules
(self)
tests/unit/runtime/zero/test_zero_leaf_module.py:425
Method
test_setter_honors_non_reentrant_when_the_config_disables_checkpointing
(self, mixed_param_model, simp
tests/unit/pipe/test_pipe_module.py:178
Method
test_setter_keeps_reentrant_input_grads
(self, mixed_param_model, simple_config)
tests/unit/pipe/test_pipe_module.py:146
Method
test_settings_are_validated
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_expert_activation.py:988
Method
test_setup_context_stores_autocast_attrs
setup_context must store _fwd_used_autocast and _dtype on ctx.
tests/unit/v1/zero/test_zero_functorch_linear.py:218
Method
test_sgd_update_matches_reference
(self, world_size, tp_size, ep_size, zero_stage, zero_init, clip_ratio)
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:550
Function
test_shape_mismatch_raises
()
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:111
Method
test_shape_survives_a_step
(self, case)
tests/unit/runtime/zero/test_zero_numel_param_shape.py:130
Method
test_shape_survives_initialize
(self, case)
tests/unit/runtime/zero/test_zero_numel_param_shape.py:122
Function
test_shape_that_does_not_divide_is_skipped
A projection whose output dim is not a multiple of the head count is not that layout.
tests/unit/runtime/zero/test_per_head_muon.py:245
Function
test_shard_element_count_mismatch_is_value_error
()
tests/unit/checkpoint/test_affine_shard_map.py:492
Method
test_shard_offsets_for_divisible_sequence_length
(self, seq_len, expected)
tests/unit/v1/compile/test_compile_autosp.py:1386
Method
test_shard_offsets_reject_non_divisible_sequence_length
(self)
tests/unit/v1/compile/test_compile_autosp.py:1389
Function
test_shard_size_refuses_to_guess_subgroup_rank
(monkeypatch)
tests/unit/module_inject/test_tp_shard.py:80
Function
test_shard_that_disagrees_with_the_map_is_refused
A shard longer than the map describes would be silently truncated to its prefix.
tests/unit/checkpoint/test_affine_shard_map.py:819
← previous
next →
14,401–14,500 of 15,468, ranked by callers