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_unpin_frees_range
(native_pins)
tests/unit/v1/pin_memory/test_pin_memory.py:64
Function
test_unpin_keeps_allocation_when_unregister_fails
(monkeypatch, native_pins)
tests/unit/v1/pin_memory/test_pin_memory.py:401
Method
test_unregistered_act_fn_is_rejected_unless_chosen
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:1142
Function
test_unreleased_scheduler_debug_alias_is_not_supported
(monkeypatch)
tests/unit/v1/compile/test_list_schedule.py:129
Function
test_unscaled_configurations_still_resolve
The two spellings that mean "no scaling" must keep working, in both layouts.
tests/unit/inference/v2/model_implementations/test_rope_theta.py:186
Function
test_unscaled_optimizer_state_still_converts
The refusal is about scaling, not about optimizer states.
tests/unit/checkpoint/test_affine_shard_map.py:900
Method
test_unset_param_dtype_ok
(self)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:77
Method
test_unsupported_dtypes
(self, dtype)
tests/unit/linear/test_quant_param.py:27
Function
test_unsupported_gqa_configs
GQA has stricter requirements. We must be able to evenly shard or distribute the KV heads. Test cases are to test the following precondition
tests/unit/inference/v2/model_implementations/sharding/test_qkv_sharding.py:212
Method
test_unsupported_head_name_raises_instead_of_downgrading
(self)
tests/unit/v1/autotp/test_autotp_training.py:414
Method
test_unsupported_implicit_sharding_preserves_replicated_training
(self, explicit, unsupported)
tests/unit/v1/autotp/test_autotp_training.py:297
Function
test_unsupported_inputs_raise
The kernels compute causal attention over whole sequences and never form attention weights: a padding mask, packed sequences or output_attentions
tests/unit/v1/models/test_glm_moe_dsa.py:220
Function
test_unsupported_mha_configs
Sharding should fail if there are fewer heads than shards. TODO(cmikeh2): Look to support this configuration.
tests/unit/inference/v2/model_implementations/sharding/test_qkv_sharding.py:196
Function
test_unsupported_model_uses_native_fallback
(monkeypatch)
tests/unit/hybrid_engine/test_he_policy.py:53
Method
test_unsupported_settings_are_rejected
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_expert_activation.py:364
Method
test_unsupported_style_rejects_whole_plan
Any unknown style must reject the plan outright, not skip the entry. The converter has no notion of which entries pair with which, so applyin
tests/unit/module_inject/test_tp_plan_converter.py:113
Function
test_untagged_parameters_are_left_alone
()
tests/unit/runtime/zero/test_per_head_muon.py:822
Method
test_unused_async_planner_is_bypassed
(self, monkeypatch, backend, ep_size)
tests/unit/v1/moe/test_autoep_unit.py:2066
Method
test_unused_key_output_leaves_no_key_gradient
(self)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:168
Function
test_unwraps_a_per_layer_type_dict
A config that sets RoPE per layer type nests one level deeper. ``standardize_rope_params`` leaves the class default at the top level of the same
tests/unit/inference/v2/model_implementations/test_rope_theta.py:58
Method
test_update_below_bf16_resolution_is_kept
(self, zero_init, contiguous, offload_optimizer, grad_accum)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:437
Method
test_update_below_bf16_resolution_is_kept
(self, grad_accum)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:497
Function
test_update_interval_accepts_valid_boundary_values
(update_interval)
tests/unit/runtime/zenflow/test_zf_config.py:75
Function
test_update_interval_rejects_non_positive_values
(update_interval)
tests/unit/runtime/zenflow/test_zf_config.py:69
Method
test_update_matches_full_gradient_reference
(self, zero_stage, ns_method, reduce_scatter, gas, overlap_comm,
tests/unit/v1/ops/muon/test_muon.py:350
Function
test_update_mp_params_follows_actual_tp_parameter_metadata
(monkeypatch)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:700
Function
test_update_mp_params_preserves_unsharded_high_dimensional_modules
(monkeypatch)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:662
Function
test_update_mp_params_recomputes_groups_from_each_kv_attr
(monkeypatch, kv_attr)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:609
Function
test_update_mp_params_replicated_kv_attributes
(monkeypatch, attrs, expected, error)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:594
Function
test_update_mp_params_shards_attributes_like_their_weights
(monkeypatch)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:642
Function
test_update_mp_params_uses_group_local_rank
(monkeypatch)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:497
Method
test_update_on_owning_partition_group
(self)
tests/unit/v1/zero/test_reflow.py:1467
Method
test_updates_match_torch
(self, zero_stage, multiple_groups)
tests/unit/runtime/zero/test_zero_adagrad.py:19
Method
test_use_default_specs_false_skips_unmatched_layers
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:283
Function
test_use_muon_tagging_is_unchanged
()
tests/unit/runtime/zero/test_per_head_muon.py:253
Function
test_user_adopted_param_diagnostic_deduplicates_repeated_transfers
()
tests/unit/v1/compile/test_z3_eager_fallback.py:333
Function
test_user_args
(cmd, multi_node)
tests/unit/launcher/test_user_args.py:65
Method
test_user_cpu_adam_must_enable_bf16_states
A user-provided DeepSpeedCPUAdam must be built with fp32_optimizer_states=False to combine bf16_optimizer_states with ZeRO-Offload, otherwise
tests/unit/v1/half_precision/test_bf16.py:472
Function
test_uses_given_shift_labels_like_hugging_face
(labels_kind)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:120
Function
test_valid_folding_spec_derives_dense_and_expert_dp
(world_size, tp_size, ep_size, expected_dp, expected_edp)
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:32
Function
test_valid_order_passes
(clean_registry)
tests/unit/compile/test_pass_contract.py:69
Function
test_valid_partition
()
tests/unit/runtime/utils/test_partition.py:108
Method
test_valid_step_after_invalid_norm_is_applied
(self)
tests/unit/v1/zero/test_invalid_grad_norm.py:174
Function
test_validate_accepts_graph_configuration
(mock_get_accelerator)
tests/unit/hybrid_engine/test_he_graph.py:82
Function
test_validate_active_resources_default_is_a_no_op
()
tests/unit/launcher/test_multinode_runner.py:143
Function
test_validate_autotp_conversion_support_accepts_legacy_schema
()
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:75
Function
test_validate_autotp_conversion_support_rejects_unsupported_layout
()
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:68
Function
test_validate_folding_metadata_rejects_missing_and_mismatched_topology
()
tests/unit/v1/moe/test_autoep_autotp_checkpoint.py:69
Method
test_validate_folding_routing_requires_boolean
(self)
tests/unit/v1/moe/test_autoep_unit.py:287
Function
test_validate_rejects_inference_tp
(mock_get_accelerator)
tests/unit/hybrid_engine/test_he_graph.py:75
Function
test_validate_rejects_released_cache
(mock_get_accelerator)
tests/unit/hybrid_engine/test_he_graph.py:68
Function
test_validate_rejects_unsupported_accelerator
(mock_get_accelerator)
tests/unit/hybrid_engine/test_he_graph.py:88
Function
test_validate_rejects_zero3
(mock_get_accelerator)
tests/unit/hybrid_engine/test_he_graph.py:62
Function
test_validate_requires_explicit_graph_capture_opt_in
(mock_get_accelerator)
tests/unit/hybrid_engine/test_he_graph.py:97
Function
test_validate_routed_expert_metadata_accepts_edp_replica_readers
()
tests/unit/v1/moe/test_autoep_autotp_checkpoint.py:131
Function
test_validate_selection_cli_needs_no_modal_install
()
ci/test_torch_latest.py:814
Function
test_validates_inputs
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_linear_cross_entropy.py:247
Function
test_validates_inputs
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:503
Function
test_validation_rule_g10_data_before_expert_parallel_rejected
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:149
Function
test_validation_rule_g11_zero_offload_accepted
(tp_size, zero_stage, optimizer_device, param_device)
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:161
Function
test_validation_rule_g11_zero_offload_rejected
(zero_stage, optimizer_device, param_device, match)
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:179
Function
test_validation_rule_g1_pp_divisibility_and_pp_rejection
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:97
Function
test_validation_rule_g2_tp_divisibility_names_valid_divisors
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:107
Function
test_validation_rule_g3_expert_width_divisibility_names_valid_divisors
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:111
Function
test_validation_rule_g4_etp_reserved_message
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:118
Function
test_validation_rule_g5_tp_sp_exclusive
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:122
Function
test_validation_rule_g6_preset_consistency
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:126
Function
test_validation_rule_g7_zero3_accepted
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:130
Function
test_validation_rule_g8_mpu_conflict
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:139
Function
test_validation_rule_g9_ep_one_rejected_with_autotp
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:145
Method
test_validation_uses_sequence_group_ranks
Independent noncontiguous groups may use different lengths and report their own ranks.
tests/unit/v1/sequence_parallelism/test_ulysses.py:966
Function
test_versioned_autoep_map_collection_loads_by_parameter_name
()
tests/unit/checkpoint/test_autoep_affine.py:92
Function
test_visible_devices_are_rejected_when_the_device_count_is_masked
A masked count now fails loudly instead of launching on the wrong slots. If an accelerator ever caches the count while the mask is still set, the
tests/unit/launcher/test_run.py:191
Function
test_visible_devices_resolve_to_the_requested_slots
CUDA_VISIBLE_DEVICES=0,2 has to launch on slots 0 and 2. main() turns the mask into --include and then unsets it, so the device count it asks
tests/unit/launcher/test_run.py:172
Method
test_vit_layers_replaced
(self)
deepspeed/sequence/test_autosp.py:222
Method
test_vmap_grad_through_engine
(self, stage)
tests/unit/v1/zero/test_zero_torch_func.py:93
Method
test_vmap_over_linear_function
(self)
tests/unit/v1/zero/test_zero_functorch_linear.py:246
Function
test_vocab_parallel_causal_lm_loss_forwards_backend
()
tests/unit/v1/sequence_parallelism/test_liger_vocab_parallel_cross_entropy.py:52
Function
test_vocab_parallel_config_distinguishes_automatic_and_explicit_choices
(config, expected)
tests/unit/module_inject/test_tp_partition_config_path.py:305
Function
test_vocab_parallel_cross_entropy_all_ignored_is_zero
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:37
Function
test_vocab_parallel_cross_entropy_revalidates_every_bare_call
(monkeypatch)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:116
Function
test_vocab_parallel_cross_entropy_tp1_matches_torch
(reduction)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:20
Function
test_vocab_parallel_cross_entropy_validates_inputs
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:48
Function
test_vocab_parallel_flag_preserves_nonstandard_tied_output_fallback
()
tests/unit/module_inject/test_tp_partition_config_path.py:539
Function
test_vocab_parallel_linear_exposes_vocab_metadata
()
tests/unit/module_inject/test_tp_partition_config_path.py:289
Function
test_vocab_parallel_lm_head_rejects_unsupported_embedding_forward
()
tests/unit/module_inject/test_tp_partition_config_path.py:389
Function
test_vocab_parallel_lm_head_rejects_unsupported_embedding_options
(embedding_kwargs)
tests/unit/module_inject/test_tp_partition_config_path.py:408
Function
test_vocab_parallel_lm_head_supersedes_conflicting_embedding_spec
(caplog)
tests/unit/module_inject/test_tp_partition_config_path.py:417
Function
test_vocab_parallel_lm_head_warns_when_it_supersedes_an_explicit_spec
(caplog)
tests/unit/module_inject/test_tp_partition_config_path.py:317
Function
test_vocab_parallel_loss_validation_preserves_registered_loss_module
()
tests/unit/module_inject/test_tp_partition_config_path.py:464
Method
test_vocabulary_smaller_than_tp_size_raises_on_all_ranks
(self)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:340
Function
test_volume_rounds_and_messages_match_hand_count
()
tests/unit/checkpoint/test_affine_transfer_analysis.py:38
Method
test_wandb
(self)
tests/unit/monitor/test_monitor.py:50
Function
test_warm_up_runs_on_the_input_device
replace_attention() runs before deepspeed.initialize(), while the current device may still be GPU 0 in every local process: the warm-up must not a
tests/unit/v1/models/test_glm_moe_dsa.py:277
Method
test_warmup_allows_subsequent_training
(self, async_split_layer, warmup_mode)
tests/unit/v1/moe/test_autoep_unit.py:1987
Function
test_warmup_cosine_lr_config_from_args_carries_the_ratios
()
tests/unit/runtime/test_lr_schedulers.py:905
Function
test_warmup_cosine_lr_has_no_lr_in_its_config_params
()
tests/unit/runtime/test_lr_schedulers.py:930
Function
test_warmup_cosine_lr_initializes_all_param_groups
()
tests/unit/runtime/test_lr_schedulers.py:528
Function
test_warmup_cosine_lr_linear_warmup_type_produces_linear_ratios
()
tests/unit/runtime/test_lr_schedulers.py:694
Function
test_warmup_cosine_lr_total_num_steps_equals_warmup_num_steps
()
tests/unit/runtime/test_lr_schedulers.py:634
← previous
next →
14,901–15,000 of 15,468, ranked by callers