MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

Methodtest_kept_through_initialize_and_training
(self)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:143
Functiontest_kernel_widths_below_four_are_rejected
Widths 1 and 2 are powers of two, but the backward kernel splits both widths into groups of 4.
tests/unit/v1/models/test_glm_moe_dsa.py:246
Functiontest_kl_div_matches_reference_for_student_and_teacher
(reverse)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:92
Functiontest_kl_is_infinite_where_target_mass_is_masked
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:429
Functiontest_kl_stays_infinite_when_target_probability_underflows
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:439
Functiontest_known_world_size
(monkeypatch, world_size, env, expected)
tests/unit/comm/test_dist.py:541
Functiontest_kv_head_split_applies_only_to_attention
(name, expected)
tests/unit/module_inject/test_tp_shard.py:58
Functiontest_kv_head_split_needs_a_divisible_dimension
()
tests/unit/module_inject/test_tp_shard.py:64
Functiontest_kv_projections_use_the_kv_head_count_under_gqa
K/V have fewer heads than Q under GQA, and splitting them by the query count would be wrong.
tests/unit/runtime/zero/test_per_head_muon.py:215
Functiontest_kv_requirements_stop_at_sequence_length_cap
()
tests/unit/inference/v2/model_implementations/test_exaone4_5.py:86
Methodtest_kwargs_and_config
(self)
tests/unit/inference/test_inference_config.py:71
Methodtest_lamb_gradnorm
(self, monkeypatch, fused_lamb_legacy: bool)
tests/unit/runtime/half_precision/test_fp16.py:258
Functiontest_large_common_offset_is_exact
(op)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:372
Functiontest_launch_compile_passes_clears_owned_compiled_backward_state
(monkeypatch)
tests/unit/compile/test_backend.py:40
Functiontest_launcher_source_has_no_local_packaging_or_shell_execution
()
ci/test_torch_latest.py:1787
Functiontest_layer_inheritance
()
tests/unit/inference/v2/model_implementations/parameters/test_layer_inheritance.py:32
Functiontest_layer_norm
(batch, seq_len, channels, dtype, use_triton_ops)
tests/unit/ops/transformer/inference/test_layer_norm.py:47
Functiontest_layer_norm_residual
(batch, seq_len, channels, dtype, use_triton_ops)
tests/unit/ops/transformer/inference/test_layer_norm.py:94
Functiontest_layer_norm_residual_store_pre_ln_res
(batch, seq_len, channels, dtype)
tests/unit/ops/transformer/inference/test_layer_norm.py:140
Functiontest_layer_without_explicit_mode_follows_set_autotp_mode
(built_by)
tests/unit/v1/autotp/test_tp_plan_e2e.py:311
Methodtest_layers_of_one_model_share_one_buffer
(self)
tests/unit/module_inject/test_auto_ep_comm.py:161
Methodtest_lazy_model_parameters_stay_lazy_until_after_replacements
AutoTP runs after AutoEP and may replace more parameter identities. Do not consume a canonical lazy iterable early just to service the AutoEP
tests/unit/v1/moe/test_autoep_unit.py:2689
Functiontest_leaf_change_narrows_to_one_test
()
ci/test_tests_fetcher.py:123
Methodtest_leaf_module_backward
Test that leaf modules work correctly with user backward by comparing with PyTorch DDP This test validates that the leaf_module_count and bac
tests/unit/v1/zero/test_zero_user_backward.py:726
Methodtest_leaf_module_enabled_via_config
(self)
tests/unit/runtime/zero/test_zero_leaf_module.py:456
Methodtest_leaf_module_n1
(self)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:341
Methodtest_leaf_module_non_scalar_backward
Test that leaf modules work correctly with non-scalar backward (tensor.backward(grad)) This specifically tests the interaction between leaf m
tests/unit/v1/zero/test_zero_user_backward.py:785
Methodtest_learnable_mask_matches_full_sequence_gradients
(self, bias)
tests/unit/v1/compile/test_compile_autosp.py:420
Functiontest_legacy_curriculum_learning_config_is_rejected
(value)
tests/unit/runtime/test_ds_config_dict.py:246
Functiontest_legacy_dp_change_rejects_incompatible_fp32_partitions
(dp2_checkpoint)
tests/unit/checkpoint/test_fp32_master_only.py:219
Functiontest_legacy_inductor_shape_wraps_explicit_bw_compiler
(monkeypatch)
tests/unit/compile/test_inductor_aot_kwargs.py:84
Functiontest_legacy_lm_head_keeps_inference_allreduce_routing
()
tests/unit/module_inject/test_tp_partition_config_path.py:509
Methodtest_legacy_load_keeps_masters_and_drops_moments
(self, tmpdir)
tests/unit/checkpoint/test_fp32_master_only.py:299
Functiontest_legacy_metadata_synthesizes_uniform_placement
()
tests/unit/checkpoint/test_autoep_zero3_metadata.py:43
Methodtest_legacy_mpu_checkpoint_rank_argument
(self)
tests/unit/v1/moe/test_autoep_checkpoint.py:464
Functiontest_legacy_output_head_defaults_to_column_parallel_during_training
(head)
tests/unit/module_inject/test_tp_partition_config_path.py:496
Methodtest_legacy_sequence_loss_backward_keeps_local_gradient_scale
(self)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:279
Functiontest_legacy_tied_lm_head_stays_replicated_during_training
()
tests/unit/module_inject/test_tp_partition_config_path.py:527
Methodtest_legacy_unpadded_checkpoint_migrates_across_layouts
(self, tmpdir, zero_stage, load_parameter_alignment)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:180
Functiontest_length_beyond_max_positions_runs_eager
()
tests/unit/hybrid_engine/test_he_graph.py:131
Functiontest_liger_without_tp_group_uses_pytorch_reference
()
tests/unit/v1/sequence_parallelism/test_liger_vocab_parallel_cross_entropy.py:40
Functiontest_lightning_model
Test that DeepSpeed works with a simple LightningModule and LightningDataModule.
tests/lightning/test_simple.py:57
Methodtest_limit_on_the_model_config_is_detected
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:576
Methodtest_limit_without_alpha_as_in_deepseek_v4
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:598
Functiontest_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:636
Functiontest_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:412
Functiontest_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:463
Functiontest_linear_layer_marks_uneven_column_metadata
()
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:131
Methodtest_listed_buffer_loaded_in_bf16_is_upcast
(self, zero_stage)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:182
Functiontest_literal_device
()
tests/accelerator/test_ds_init.py:33
Methodtest_live_expert_maps_address_the_packed_runtime_weights
(self)
tests/unit/v1/moe/test_autoep_unit.py:674
Methodtest_live_expert_maps_identify_placement_ranks_by_id
(self)
tests/unit/v1/moe/test_autoep_unit.py:757
Methodtest_live_expert_maps_reject_a_placement_the_weights_do_not_have
(self)
tests/unit/v1/moe/test_autoep_unit.py:738
Methodtest_live_expert_maps_reject_a_published_map_the_placement_does_not_produce
(self)
tests/unit/v1/moe/test_autoep_unit.py:772
Functiontest_llama3_inverse_frequencies_match_transformers
()
tests/unit/inference/v2/model_implementations/test_exaone4_5.py:45
Methodtest_llm_layers_replaced_with_distributed_attention
LLM attention layers must be wrapped with DistributedAttention.
deepspeed/sequence/test_autosp.py:247
Functiontest_lm_head_forward_uses_frozen_partition_sizes
()
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:481
Methodtest_lm_head_linear_allreduce
(self, kind)
tests/unit/module_inject/test_tp_autograd_reduce.py:74
Functiontest_lm_head_name_matching_ignores_projections
(name, expected)
tests/unit/module_inject/test_tp_partition_config_path.py:365
Functiontest_lm_head_name_matching_uses_configured_patterns
()
tests/unit/module_inject/test_tp_partition_config_path.py:371
Functiontest_load_balance_coeff_disabled_values_accepted_by_deepspeed_config
(enabled, include_key)
tests/unit/v1/moe/test_autoep_checkpoint.py:382
Methodtest_load_balance_coeff_rejected_at_parse
(self, value)
tests/unit/v1/moe/test_autoep_unit.py:397
Functiontest_load_balance_coeff_rejected_by_deepspeed_config
(enabled, value)
tests/unit/v1/moe/test_autoep_checkpoint.py:402
Methodtest_load_balance_coeff_rejected_by_validate
(self, enabled, value)
tests/unit/v1/moe/test_autoep_unit.py:404
Methodtest_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
Functiontest_load_hp_checkpoint_state_keeps_tp_topology_for_single_kv_head
(tmp_path, monkeypatch)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:357
Functiontest_load_hp_checkpoint_state_prefers_autotp_metadata
(tmp_path, monkeypatch)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:322
Methodtest_load_immediate_save
(self, tmpdir, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:403
Methodtest_load_module_only
(self, tmpdir, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:196
Methodtest_load_module_only
(self, tmpdir, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:548
Methodtest_load_module_state_dict_nonstrict_keeps_nonstrict_semantics_with_allowed_missing_keys
(self)
tests/unit/v1/moe/test_autoep_unit.py:962
Methodtest_load_non_sequence_parallel_checkpoint
(self, tmpdir)
tests/unit/v1/sequence_parallelism/test_ulysses.py:28
Methodtest_load_optimizer_state
(self, tmpdir, zero_stage, use_cpu_offload, adam_optimizer)
tests/unit/checkpoint/test_zero_optimizer.py:54
Methodtest_load_optimizer_state
(self, tmpdir, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:487
Methodtest_load_optimizer_states_false_autoep_size_2to4
(self, autoep_topology_baseline_ws4_ep2, tmpdir)
tests/unit/v1/moe/test_autoep_checkpoint.py:928
Methodtest_load_zeropp_checkpoint
(self, ws4_model_checkpoint_zeropp, class_tmpdir)
tests/unit/checkpoint/test_zero_optimizer.py:786
Methodtest_load_zeropp_model
(self, ws4_model_checkpoint_zeropp, class_tmpdir)
tests/unit/checkpoint/test_zero_optimizer.py:753
Methodtest_loaded_values_survive
(self, keep)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:128
Methodtest_loaded_values_survive
(self, keep)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:364
Functiontest_local_folding_ranks_match_helper_tables
()
tests/unit/v1/moe/test_autoep_autotp_folding_groups.py:36
Functiontest_loco_zero_config_is_rejected
(zero_stage, loco_config)
tests/unit/runtime/test_ds_config_dict.py:356
Methodtest_logged_latencies_fit_in_the_loop
(self)
tests/unit/comm/test_comms_logger.py:199
Functiontest_logprobs_matches_log_softmax
(top_k)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:55
Functiontest_logprobs_trusted_vocab_size_matches_validated_path
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:487
Functiontest_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
Methodtest_lora
(self, batch_size, model_name, zero_stage, offload_device)
tests/unit/hybrid_engine/test_he_lora.py:150
Methodtest_lora_style
(self, zero_stage, use_reentrant, dtype, param_persistence_threshold)
tests/unit/v1/zero/test_zero_user_backward.py:1767
Methodtest_loss_and_external_weight_grad_match_single_process
(self)
tests/unit/v1/models/test_glm_moe_dsa.py:305
Methodtest_loss_and_gradients_match_dense
(self, dtype, beta)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:755
Methodtest_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
Methodtest_loss_scale_invariance
(self, zero_stage)
tests/unit/v1/ops/muon/test_muon.py:562
Methodtest_losses_and_gradients
(self)
tests/unit/v1/sequence_parallelism/test_liger_vocab_parallel_cross_entropy.py:122
Methodtest_lower_precision_model
(self, enable, zero_stage, dtype)
tests/unit/v1/zero/test_zero_autocast.py:209
Methodtest_lr
(self, min_lr, max_lr, decay_rate, cycle_step_size, decay_step_size)
tests/unit/runtime/test_lr_schedulers.py:336
Methodtest_lr
(self, total_num_steps, warmup_num_steps, cos_min_ratio, warmup_min_ratio)
tests/unit/runtime/test_lr_schedulers.py:471
Functiontest_lr_range_test_rejects_nonpositive_step_size
(bad_step_size)
tests/unit/runtime/test_lr_schedulers.py:772
Functiontest_lr_range_test_staircase_is_an_opt_in_flag
()
tests/unit/runtime/test_lr_schedulers.py:880
Functiontest_lr_range_test_staircase_reaches_scheduler_params
(argv, expected)
tests/unit/runtime/test_lr_schedulers.py:894
Functiontest_lr_scheduler_preserves_tensor_lr
(scheduler_cls, scheduler_kwargs, init_lr, step_lr, lr_shape)
tests/unit/runtime/test_lr_schedulers.py:604
Methodtest_lr_warmup_decay_schedule
(self, warmup_num_steps, warmup_type)
tests/unit/runtime/test_lr_schedulers.py:153
← previousnext →12,701–12,800 of 14,579, ranked by callers