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_legacy_curriculum_learning_config_is_rejected
(value)
tests/unit/runtime/test_ds_config_dict.py:246
Function
test_legacy_dp_change_rejects_incompatible_fp32_partitions
(dp2_checkpoint)
tests/unit/checkpoint/test_fp32_master_only.py:225
Function
test_legacy_inductor_shape_wraps_explicit_bw_compiler
(monkeypatch)
tests/unit/compile/test_inductor_aot_kwargs.py:84
Function
test_legacy_lm_head_keeps_inference_allreduce_routing
()
tests/unit/module_inject/test_tp_partition_config_path.py:509
Method
test_legacy_load_keeps_masters_and_drops_moments
(self, tmpdir)
tests/unit/checkpoint/test_fp32_master_only.py:304
Function
test_legacy_metadata_synthesizes_uniform_placement
()
tests/unit/checkpoint/test_autoep_zero3_metadata.py:43
Method
test_legacy_mpu_checkpoint_rank_argument
(self)
tests/unit/v1/moe/test_autoep_checkpoint.py:464
Function
test_legacy_output_head_defaults_to_column_parallel_during_training
(head)
tests/unit/module_inject/test_tp_partition_config_path.py:496
Method
test_legacy_sequence_loss_backward_keeps_local_gradient_scale
(self)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:279
Function
test_legacy_tied_lm_head_stays_replicated_during_training
()
tests/unit/module_inject/test_tp_partition_config_path.py:527
Method
test_legacy_unpadded_checkpoint_migrates_across_layouts
(self, tmpdir, zero_stage, load_parameter_alignment)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:180
Function
test_length_beyond_max_positions_runs_eager
()
tests/unit/hybrid_engine/test_he_graph.py:132
Function
test_liger_without_tp_group_uses_pytorch_reference
()
tests/unit/v1/sequence_parallelism/test_liger_vocab_parallel_cross_entropy.py:40
Function
test_lightning_model
Test that DeepSpeed works with a simple LightningModule and LightningDataModule.
tests/lightning/test_simple.py:57
Method
test_limit_on_the_model_config_is_detected
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:1088
Method
test_limit_without_alpha_as_in_deepseek_v4
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:1110
Function
test_linear_attention_geometry_comes_from_the_owning_module
The case #8420 was opened for: 8 x 32 is in the module, not in the config. The same config that declines these in `test_linear_attention_on_a_con
tests/unit/runtime/zero/test_per_head_muon.py:638
Function
test_linear_attention_named_like_standard_attention_is_rejected
Kimi-K3-0.40B is `kimi_linear`, not MLA: q_proj is [256, 1024] with 8 heads of 74. The names match the standard-attention list, so only the shape
tests/unit/runtime/zero/test_per_head_muon.py:414
Function
test_linear_attention_on_a_config_with_mla_leftovers_is_declined
No candidate confirms, so it stays on the full-matrix path. 8 x (qk_nope 64 + qk_rope 32) = 768 and 8 x head_dim 74 = 592, against 256 rows. This
tests/unit/runtime/zero/test_per_head_muon.py:465
Function
test_linear_layer_marks_uneven_column_metadata
()
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:131
Method
test_listed_buffer_loaded_in_bf16_is_upcast
(self, zero_stage)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:182
Function
test_literal_device
()
tests/accelerator/test_ds_init.py:33
Method
test_live_expert_maps_address_the_packed_runtime_weights
(self)
tests/unit/v1/moe/test_autoep_unit.py:724
Method
test_live_expert_maps_identify_placement_ranks_by_id
(self)
tests/unit/v1/moe/test_autoep_unit.py:807
Method
test_live_expert_maps_reject_a_placement_the_weights_do_not_have
(self)
tests/unit/v1/moe/test_autoep_unit.py:788
Method
test_live_expert_maps_reject_a_published_map_the_placement_does_not_produce
(self)
tests/unit/v1/moe/test_autoep_unit.py:822
Function
test_llama3_inverse_frequencies_match_transformers
()
tests/unit/inference/v2/model_implementations/test_exaone4_5.py:45
Method
test_llm_layers_replaced_with_distributed_attention
LLM attention layers must be wrapped with DistributedAttention.
deepspeed/sequence/test_autosp.py:247
Function
test_lm_head_forward_uses_frozen_partition_sizes
()
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:481
Method
test_lm_head_linear_allreduce
(self, kind)
tests/unit/module_inject/test_tp_autograd_reduce.py:74
Function
test_lm_head_name_matching_ignores_projections
(name, expected)
tests/unit/module_inject/test_tp_partition_config_path.py:365
Function
test_lm_head_name_matching_uses_configured_patterns
()
tests/unit/module_inject/test_tp_partition_config_path.py:371
Function
test_load_balance_coeff_disabled_values_accepted_by_deepspeed_config
(enabled, include_key)
tests/unit/v1/moe/test_autoep_checkpoint.py:382
Method
test_load_balance_coeff_rejected_at_parse
(self, value)
tests/unit/v1/moe/test_autoep_unit.py:445
Function
test_load_balance_coeff_rejected_by_deepspeed_config
(enabled, value)
tests/unit/v1/moe/test_autoep_checkpoint.py:402
Method
test_load_balance_coeff_rejected_by_validate
(self, enabled, value)
tests/unit/v1/moe/test_autoep_unit.py:452
Method
test_load_checkpoint_without_device_state
Checkpoints saved before the state of the sub-groups kept on the device was saved have none for them.
tests/unit/v1/zero/test_zero_partial_offload.py:200
Method
test_load_fp32_optimizer_states_with_bf16_master_weights
With bf16 master weights CPU Adam keeps fp32 moments, and a resume must get them back unrounded.
tests/unit/checkpoint/test_zero_optimizer.py:91
Function
test_load_hp_checkpoint_state_keeps_tp_topology_for_single_kv_head
(tmp_path, monkeypatch)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:358
Function
test_load_hp_checkpoint_state_prefers_autotp_metadata
(tmp_path, monkeypatch)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:323
Method
test_load_immediate_save
(self, tmpdir, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:403
Method
test_load_module_only
(self, tmpdir, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:196
Method
test_load_module_only
(self, tmpdir, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:548
Method
test_load_module_state_dict_nonstrict_keeps_nonstrict_semantics_with_allowed_missing_keys
(self)
tests/unit/v1/moe/test_autoep_unit.py:1012
Method
test_load_non_sequence_parallel_checkpoint
(self, tmpdir)
tests/unit/v1/sequence_parallelism/test_ulysses.py:31
Method
test_load_optimizer_state
(self, tmpdir, zero_stage, use_cpu_offload, adam_optimizer)
tests/unit/checkpoint/test_zero_optimizer.py:54
Method
test_load_optimizer_state
(self, tmpdir, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:487
Method
test_load_optimizer_states_false_autoep_size_2to4
(self, autoep_topology_baseline_ws4_ep2, tmpdir)
tests/unit/v1/moe/test_autoep_checkpoint.py:928
Method
test_load_with_another_ratio
(self, tmpdir, load_ratio)
tests/unit/v1/zero/test_zero_partial_offload.py:172
Method
test_load_zeropp_checkpoint
(self, ws4_model_checkpoint_zeropp, class_tmpdir)
tests/unit/checkpoint/test_zero_optimizer.py:786
Method
test_load_zeropp_model
(self, ws4_model_checkpoint_zeropp, class_tmpdir)
tests/unit/checkpoint/test_zero_optimizer.py:753
Method
test_loaded_values_survive
(self, keep)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:128
Method
test_loaded_values_survive
(self, keep)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:364
Function
test_local_copies_use_the_custom_local_label
A path_of that names each process's local copies, as calibrate_links records them.
tests/unit/checkpoint/test_affine_transfer_analysis.py:96
Method
test_local_copy_bytes_over_count_by_the_in_place_bytes
Each process keeps its own shard of two parameters; one is moved in place, the other copied. The analysis counts both local copies, the execu
tests/unit/checkpoint/test_affine_transfer_analysis.py:172
Function
test_local_folding_ranks_match_helper_tables
()
tests/unit/v1/moe/test_autoep_autotp_folding_groups.py:36
Method
test_local_gradient_access_matches_zero
(self, tmpdir, optimizer_kind, vectorized)
tests/unit/v1/zero/test_reflow.py:2600
Method
test_local_gradients_and_updates_match_zero
(self, precision, optimizer_kind, accumulation_steps, clip)
tests/unit/v1/zero/test_reflow.py:1262
Function
test_loco_zero_config_is_rejected
(zero_stage, loco_config)
tests/unit/runtime/test_ds_config_dict.py:356
Method
test_logged_latencies_fit_in_the_loop
(self)
tests/unit/comm/test_comms_logger.py:199
Function
test_logprobs_matches_log_softmax
(top_k)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:55
Function
test_logprobs_trusted_vocab_size_matches_validated_path
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:487
Function
test_long_running_allocation
Evaluate the stability of the allocator over a longer sequence of allocations/deallocations.
tests/unit/inference/v2/ragged/test_blocked_allocator.py:119
Method
test_lora
(self, batch_size, model_name, zero_stage, offload_device)
tests/unit/hybrid_engine/test_he_lora.py:150
Method
test_lora_style
(self, zero_stage, use_reentrant, dtype, param_persistence_threshold)
tests/unit/v1/zero/test_zero_user_backward.py:1767
Method
test_loss_and_external_weight_grad_match_single_process
(self)
tests/unit/v1/models/test_glm_moe_dsa.py:305
Method
test_loss_and_gradients_match_dense
(self, dtype, beta)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:755
Method
test_loss_backward_matches_ddp
Test that DeepSpeed loss.backward() produces same gradients as PyTorch DDP
tests/unit/v1/zero/test_zero_user_backward.py:356
Method
test_loss_scale_invariance
(self, zero_stage)
tests/unit/v1/ops/muon/test_muon.py:562
Method
test_losses_and_grad_norms_match
(self, clip_ratio)
tests/unit/v1/zero/test_reflow.py:396
Method
test_losses_and_grad_norms_match
(self)
tests/unit/v1/zero/test_reflow.py:424
Method
test_losses_and_gradients
(self)
tests/unit/v1/sequence_parallelism/test_liger_vocab_parallel_cross_entropy.py:122
Method
test_lower_precision_model
(self, enable, zero_stage, dtype)
tests/unit/v1/zero/test_zero_autocast.py:209
Method
test_lr
(self, min_lr, max_lr, decay_rate, cycle_step_size, decay_step_size)
tests/unit/runtime/test_lr_schedulers.py:336
Method
test_lr
(self, total_num_steps, warmup_num_steps, cos_min_ratio, warmup_min_ratio)
tests/unit/runtime/test_lr_schedulers.py:471
Function
test_lr_range_test_rejects_nonpositive_step_size
(bad_step_size)
tests/unit/runtime/test_lr_schedulers.py:772
Function
test_lr_range_test_staircase_is_an_opt_in_flag
()
tests/unit/runtime/test_lr_schedulers.py:880
Function
test_lr_range_test_staircase_reaches_scheduler_params
(argv, expected)
tests/unit/runtime/test_lr_schedulers.py:894
Function
test_lr_scheduler_preserves_tensor_lr
(scheduler_cls, scheduler_kwargs, init_lr, step_lr, lr_shape)
tests/unit/runtime/test_lr_schedulers.py:604
Method
test_lr_warmup_decay_schedule
(self, warmup_num_steps, warmup_type)
tests/unit/runtime/test_lr_schedulers.py:153
Method
test_lr_warmup_schedule
(self, warmup_num_steps, warmup_type)
tests/unit/runtime/test_lr_schedulers.py:100
Function
test_malformed_placement_is_rejected
(descriptor, match)
tests/unit/checkpoint/test_autoep_affine.py:207
Function
test_malformed_world_size_does_not_raise
(bad)
tests/unit/v1/zero/test_zero_init_pg_contradiction.py:44
Method
test_managed_backward_context_restored_after_exception
(self)
tests/unit/runtime/zero/test_zero_shared_loss_gradient.py:199
Method
test_managed_baseline_applies_only_on_boundary
Default managed mode only applies an update on the accumulation boundary.
tests/unit/v1/zero/test_zero_user_backward.py:1905
Function
test_manual_continuous_generation_omits_unsupported_output_logits
(align_decode_fronts)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2502
Function
test_many_consistent_pieces_need_no_pairwise_holder_checks
()
tests/unit/checkpoint/test_affine_transfer_plan.py:780
Function
test_many_low_precision_chunks_accumulate_parameter_gradients_exactly
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_linear_cross_entropy.py:132
Function
test_many_pieces_on_one_rank_need_no_pairwise_address_checks
()
tests/unit/checkpoint/test_affine_transfer_plan.py:791
Function
test_many_tokens_low_precision_matches_reference_on_accelerator
(chunk_size)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_linear_cross_entropy.py:195
Method
test_map_covers_every_parameter_the_replacement_allocated
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:2971
Function
test_mapping_syntax
()
tests/unit/inference/v2/model_implementations/parameters/test_mapping.py:74
Function
test_maps_are_validated_before_the_policy_runs
()
tests/unit/checkpoint/test_affine_replica_policy.py:376
Method
test_maps_describe_live_storage
(self, zero_stage, bf16_optimizer)
tests/unit/checkpoint/test_zero_affine.py:269
Method
test_maps_describe_live_storage_of_tp2_dp2
(self, zero_stage, zero_init)
tests/unit/checkpoint/test_zero_affine.py:388
Function
test_margin_is_measured_not_guessed
(monkeypatch)
tests/unit/v1/compile/test_offload_activation.py:158
Function
test_margin_override_wins
(monkeypatch)
tests/unit/v1/compile/test_offload_activation.py:333
Function
test_mark_output_never_reuse_mixed_pytree
()
tests/unit/v1/compile/test_list_schedule.py:551
Function
test_mark_overrides_class_world_size
()
tests/unit/test_multirank_selection.py:159
Function
test_marked_cpu_tensor_is_skipped
()
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:36
← previous
next →
13,401–13,500 of 15,468, ranked by callers