Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ functions
Functions
14,579 in github.com/deepspeedai/DeepSpeed
⨍
Functions
14,579
◇
Types & classes
2,353
↳
Endpoints
92
Function
test_uneven_shards_without_grain_quantization
()
tests/unit/module_inject/test_tp_shard.py:26
Method
test_uneven_vocab_matches_full_vocab
(self, dtype, chunk_size)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_linear_cross_entropy.py:268
Method
test_uneven_vocab_matches_torch
(self)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_cross_entropy.py:176
Method
test_unfreezing_replicated_param_after_initialize_raises
A replicated parameter frozen at initialize has no TP gradient all-reduce. Training it after unfreezing would let the tensor-parallel ranks d
tests/unit/v1/autotp/test_tp_plan_e2e.py:466
Method
test_unfused_gradnorm
(self, monkeypatch)
tests/unit/runtime/half_precision/test_fp16.py:185
Function
test_unhandled_parallel_layer_raises
A layer reached in the graph but given no collective must stop the compile, not run wrong. The pass switches the module-level collectives off bef
tests/unit/compile/test_tp_compile.py:679
Function
test_uniform_placement_lowers_and_round_trips
(num_experts, ep_size)
tests/unit/checkpoint/test_autoep_affine.py:31
Method
test_unique_runtime_entries_are_merged_with_config
(self)
tests/unit/runtime/test_tp_plan_extraction.py:93
Function
test_universal_checkpoint_info_excludes_param_level_recovery_fields
()
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:153
Method
test_universal_checkpoint_reconstructs_tied_weight
(self, vocab_size)
tests/unit/v1/autotp/test_autotp_training.py:703
Method
test_universal_checkpoint_reconstructs_tied_weight
(self)
tests/unit/v1/autotp/test_autotp_training.py:1602
Function
test_universal_conversion_rejects_folded_tp_expert_shards
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_checkpoint.py:183
Method
test_universal_converter_detects_zero3_partitioned_autoep_model_state
(self, tmp_path)
tests/unit/v1/moe/test_autoep_unit.py:1014
Function
test_universal_dp_change_keeps_masters_and_drops_moments
(dp2_checkpoint)
tests/unit/checkpoint/test_fp32_master_only.py:215
Method
test_universal_load_keeps_masters_and_drops_moments
(self, tmpdir)
tests/unit/checkpoint/test_fp32_master_only.py:331
Method
test_universal_load_rejects_mismatched_target_expert_shape
(self, autoep_topology_baseline_ws4_ep2, tmpdir)
tests/unit/v1/moe/test_autoep_checkpoint.py:935
Method
test_universal_stage3_extract_accepts_tuple_param_shapes
(self, tmp_path)
tests/unit/v1/moe/test_autoep_unit.py:1060
Method
test_unknown_activation_rejected
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:155
Function
test_unknown_length_runs_eager
()
tests/unit/hybrid_engine/test_he_graph.py:121
Method
test_unknown_nccl_version_does_not_block
(self)
tests/unit/module_inject/test_auto_ep_comm.py:290
Function
test_unknown_target_mapping_syntax
In the above example, `multi_depend_unknown` does not exist
tests/unit/inference/v2/model_implementations/parameters/test_mapping.py:154
Method
test_unmanaged_accepts_disabled_offload_blocks
(self)
tests/unit/v1/zero/test_zero_user_backward.py:2067
Function
test_unmanaged_buffer_is_not_pinned
()
tests/unit/v1/nvme/test_pinned_manager.py:48
Method
test_unmanaged_matches_managed
N backwards + one step() in unmanaged mode equals managed mode with GAS=N.
tests/unit/v1/zero/test_zero_user_backward.py:1934
Method
test_unmanaged_matches_managed_inactive_params
(self, zero_stage)
tests/unit/v1/zero/test_zero_user_backward.py:2247
Method
test_unmanaged_matches_managed_optimizer_nvme_offload
(self, tmpdir)
tests/unit/v1/zero/test_zero_user_backward.py:2204
Method
test_unmanaged_matches_managed_optimizer_offload
(self, zero_stage)
tests/unit/v1/zero/test_zero_user_backward.py:2176
Method
test_unmanaged_matches_managed_overlap_comm
(self)
tests/unit/v1/zero/test_zero_user_backward.py:2329
Method
test_unmanaged_matches_managed_param_nvme_offload
(self, tmpdir)
tests/unit/v1/zero/test_zero_user_backward.py:2215
Method
test_unmanaged_matches_managed_param_offload
(self)
tests/unit/v1/zero/test_zero_user_backward.py:2187
Method
test_unmanaged_rejects_coalesce_grad_reduction
(self, zero_stage)
tests/unit/v1/zero/test_zero_user_backward.py:2387
Method
test_unmanaged_rejects_overlap_comm
(self, zero_stage)
tests/unit/v1/zero/test_zero_user_backward.py:2312
Method
test_unmanaged_rejects_pipeline
(self)
tests/unit/v1/zero/test_zero_user_backward.py:2406
Method
test_unmanaged_varying_backward_count
Varying backward() count per step matches a managed manual-boundary reference and tracks global_samples.
tests/unit/v1/zero/test_zero_user_backward.py:1986
Function
test_unmarked_saved_tensors_pass_through
()
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:21
Function
test_unpatch_compiled_func_clears_backward_inputs
()
tests/unit/compile/test_backend.py:72
Function
test_unpin_frees_original_after_data_redirect
(native_pins)
tests/unit/v1/pin_memory/test_pin_memory.py:107
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:630
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:852
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:413
Method
test_unsupported_implicit_sharding_preserves_replicated_training
(self, explicit, unsupported)
tests/unit/v1/autotp/test_autotp_training.py:296
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:362
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:820
Method
test_unused_async_planner_is_bypassed
(self, monkeypatch, backend, ep_size)
tests/unit/v1/moe/test_autoep_unit.py:2008
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:571
Function
test_update_mp_params_preserves_unsharded_high_dimensional_modules
(monkeypatch)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:533
Function
test_update_mp_params_shards_attributes_like_their_weights
(monkeypatch)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:513
Function
test_update_mp_params_uses_group_local_rank
(monkeypatch)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:495
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:281
Function
test_use_muon_tagging_is_unchanged
()
tests/unit/runtime/zero/test_per_head_muon.py:251
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:81
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:74
Function
test_validate_autotp_conversion_support_rejects_unsupported_layout
()
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:67
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:74
Function
test_validate_rejects_released_cache
(mock_get_accelerator)
tests/unit/hybrid_engine/test_he_graph.py:67
Function
test_validate_rejects_unsupported_accelerator
(mock_get_accelerator)
tests/unit/hybrid_engine/test_he_graph.py:87
Function
test_validate_rejects_zero3
(mock_get_accelerator)
tests/unit/hybrid_engine/test_he_graph.py:61
Function
test_validate_requires_explicit_graph_capture_opt_in
(mock_get_accelerator)
tests/unit/hybrid_engine/test_he_graph.py:96
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
← previous
next →
14,001–14,100 of 14,579, ranked by callers