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_inject_missing_state_still_validates_unsupported_layout
(monkeypatch)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:79
Method
test_inner_tokens_replaced_with_visual
Tokens between vision_start and vision_end must become visual embeddings.
deepspeed/sequence/test_autosp.py:630
Method
test_inplace_update_refresh_matches_fresh_injection
(self)
tests/unit/module_inject/test_segment_ki_kernels.py:624
Function
test_inputs_it_cannot_price_are_refused
()
tests/unit/checkpoint/test_affine_transfer_cost.py:124
Method
test_inputs_on_non_current_device
(self, dtype)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:105
Function
test_install_constrains_and_preserves_framework
(monkeypatch, tmp_path)
ci/test_install_accelerate.py:25
Function
test_install_refuses_a_model_that_does_not_use_the_stock_loss
()
tests/unit/v1/runtime/test_chunked_cross_entropy.py:368
Function
test_install_reports_a_nonwritable_stock_loss_without_changing_it
(assignment)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:347
Function
test_install_requires_preinstalled_framework
(monkeypatch, tmp_path)
ci/test_install_accelerate.py:16
Method
test_install_uses_and_restores_entries_by_class_key
(self, registry_type)
tests/unit/v1/moe/test_autoep_unit.py:2497
Function
test_installed_cuda_version_reports_a_runtime_only_cuda_home_as_missing
(tmp_path)
tests/unit/ops/test_op_builder.py:506
Method
test_installed_function_runs_eager_for_unsupported_inputs
(self)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:360
Function
test_installed_loss_rejects_malformed_labels_like_a_stock_model
(backend, device, dtype)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:333
Function
test_installed_loss_trains_a_hugging_face_model_like_the_stock_loss
()
tests/unit/v1/runtime/test_chunked_cross_entropy.py:312
Method
test_installer_accepts_functions_that_differ_only_in_docstrings
(self, monkeypatch)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:353
Method
test_installer_is_idempotent_and_restorable
(self)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:315
Method
test_installer_leaves_a_changed_expression_alone
(self, monkeypatch)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:329
Method
test_installer_leaves_a_rotation_with_changed_constants_alone
(self, monkeypatch, changed_rotate_half)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:346
Method
test_installer_matches_eager_model
(self)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:285
Method
test_installer_skips_models_it_does_not_list
(self)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:325
Function
test_instrument_w_nvtx_supports_legacy_accelerator_methods
(monkeypatch, capsys)
tests/unit/utils/test_nvtx.py:44
Function
test_instrument_w_nvtx_uses_deepspeed_domain
(monkeypatch, capsys)
tests/unit/utils/test_nvtx.py:15
Function
test_insufficient_mapping_syntax
In the above example, we don't have a mapping for `multi_depend2.dependency_2`.
tests/unit/inference/v2/model_implementations/parameters/test_mapping.py:134
Function
test_int_balanced
()
tests/unit/runtime/utils/test_partition.py:150
Function
test_interleaved_fused_layout_refuses_to_gather
()
tests/unit/module_inject/test_fused_repartition.py:101
Function
test_invalid_alloc_indices
(index: int)
tests/unit/inference/v2/ragged/test_blocked_allocator.py:101
Method
test_invalid_buffers_and_metadata_are_rejected_before_any_write
(self, invalid, batched)
tests/unit/checkpoint/test_affine_transfer_executor.py:556
Function
test_invalid_clip_norm_zeros_gradients_for_direct_callers
()
tests/unit/v1/zero/test_invalid_grad_norm.py:60
Function
test_invalid_custom_shape_rejected
()
tests/unit/v1/autotp/test_autotp_custom_patterns.py:485
Function
test_invalid_dealloc_indices
(index: int)
tests/unit/inference/v2/ragged/test_blocked_allocator.py:92
Function
test_invalid_geometry
Invalid geometry must fail before division, reshaping or rank slicing.
tests/unit/v1/sequence_parallelism/test_fpdt_inputs.py:98
Function
test_invalid_gradient_allreduce_op
()
tests/unit/runtime/test_ds_config_dict.py:166
Method
test_invalid_gradients_are_rejected
(self, zero_stage, gradient_clipping)
tests/unit/runtime/half_precision/test_zero_grad_norm_overflow.py:28
Function
test_invalid_offload_optimizer_type_raises
Passing a non-dict to offload_optimizer must error out.
tests/unit/runtime/zenflow/test_zf_config.py:30
Function
test_invalid_register_device_env
(monkeypatch, native_pins)
tests/unit/v1/pin_memory/test_pin_memory.py:395
Method
test_invalid_routed_scaling_factor_rejected
(self, value)
tests/unit/v1/moe/test_autoep_unit.py:1232
Method
test_invalid_setting_rejected
(self, keep)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:118
Method
test_invalid_step_preserves_parameters_and_state
(self, precision, invalid_value, pin_memory, offload_param)
tests/unit/v1/zero/test_reflow.py:2713
Function
test_invalid_zenflow_type_raises
Passing a non-dict to zenflow must error out.
tests/unit/runtime/zenflow/test_zf_config.py:56
Function
test_ipg_bucket_clear_resets_copy_streams
()
tests/unit/v1/zero/test_overlap_comm_record_stream.py:181
Method
test_irecv_defers_copy_back_to_wait
(self, monkeypatch)
tests/unit/comm/test_dist.py:235
Method
test_irecv_failure_does_not_publish_uninitialized_staging
(self, monkeypatch)
tests/unit/comm/test_dist.py:322
Method
test_irecv_without_work_preserves_native_return_and_destination
(self, monkeypatch)
tests/unit/comm/test_dist.py:340
Function
test_is_nfs_path_detects_nfs_mount
(tmp_path)
tests/unit/ops/transformer/inference/test_matmul_ext.py:33
Function
test_is_nfs_path_handles_wrapped_device_name
(tmp_path)
tests/unit/ops/transformer/inference/test_matmul_ext.py:19
Function
test_is_pinned_handles_storageless_tensors
(native_pins)
tests/unit/v1/pin_memory/test_pin_memory.py:124
Function
test_is_pinned_handles_storageless_tensors
(monkeypatch)
tests/unit/v1/accelerator/test_accelerator.py:286
Function
test_is_pinned_propagates_to_views
(native_pins)
tests/unit/v1/pin_memory/test_pin_memory.py:35
Method
test_isend_stages_payload_on_cpu
(self, monkeypatch)
tests/unit/comm/test_dist.py:284
Function
test_it_raises_when_the_flag_ends_up_doing_nothing
Same contract as the tagging pass: an opt-in that silently does nothing is the failure.
tests/unit/runtime/zero/test_per_head_muon.py:838
Function
test_iter_graphs_finds_a_graphmodule_under_a_plain_module
A GraphModule can be nested under a plain nn.Module, which a GraphModule-only recursion misses.
tests/unit/compile/test_tp_compile.py:749
Method
test_jacrev_through_engine
(self, stage)
tests/unit/v1/zero/test_zero_torch_func.py:87
Function
test_jit_load_rejects_only_gpus_below_the_minimum_and_says_why
(builder_name)
tests/unit/ops/test_op_builder.py:380
Function
test_jit_load_restores_env_and_state_after_failure
()
tests/unit/ops/test_op_builder.py:117
Function
test_jit_load_restores_state_after_success
()
tests/unit/ops/test_op_builder.py:138
Function
test_jit_mode_prefers_explicit_arch_lists_before_cuda_probe
()
tests/unit/ops/test_op_builder.py:72
Function
test_jit_mode_probes_devices_when_safe_and_errors_without_visible_gpus
()
tests/unit/ops/test_op_builder.py:91
Function
test_jsd_disjoint_support_and_undefined_rows
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:136
Function
test_jsd_independent_logit_shifts
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:147
Function
test_jsd_matches_dense_oracle
(beta, dtype, frozen)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:113
Function
test_jsd_rejects_invalid_beta
(beta)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:162
Function
test_jsd_rejects_invalid_logits
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:167
Function
test_jsd_triton_frozen_inputs_and_extreme_logits
(frozen)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:229
Function
test_jsd_triton_matches_eager
(dtype, layout, beta)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:178
Method
test_json
(self, base_config, tmpdir)
tests/unit/runtime/test_ds_config_dict.py:431
Method
test_json_config
(self, tmpdir)
tests/unit/inference/test_inference_config.py:79
Function
test_keep_last_count_matches_baseline
(use_streams, keep_last_count)
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:258
Function
test_keep_last_count_rejects_negative
()
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:58
Method
test_kept_param_gradient_is_fp32
(self, offload_optimizer, trained)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:449
Method
test_kept_param_gradient_is_fp32
(self, trained)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:505
Method
test_kept_through_initialize_and_training
(self)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:143
Function
test_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
Function
test_kl_div_matches_reference_for_student_and_teacher
(reverse)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:92
Function
test_kl_is_infinite_where_target_mass_is_masked
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:429
Function
test_kl_stays_infinite_when_target_probability_underflows
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:439
Function
test_known_world_size
(monkeypatch, world_size, env, expected)
tests/unit/comm/test_dist.py:541
Function
test_kv_head_split_applies_only_to_attention
(name, expected)
tests/unit/module_inject/test_tp_shard.py:58
Function
test_kv_head_split_needs_a_divisible_dimension
()
tests/unit/module_inject/test_tp_shard.py:64
Function
test_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:217
Function
test_kv_requirements_stop_at_sequence_length_cap
()
tests/unit/inference/v2/model_implementations/test_exaone4_5.py:86
Method
test_kwargs_and_config
(self)
tests/unit/inference/test_inference_config.py:71
Method
test_l2_weight_decay
With adam_w_mode off, the sub-groups kept on the device apply L2 weight decay, as DeepSpeedCPUAdam does.
tests/unit/v1/zero/test_zero_partial_offload.py:223
Method
test_lamb_gradnorm
(self, monkeypatch, fused_lamb_legacy: bool)
tests/unit/runtime/half_precision/test_fp16.py:258
Function
test_large_common_offset_is_exact
(op)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:372
Method
test_latest_waits_for_slow_rank
(self, tmpdir)
tests/unit/checkpoint/test_latest_checkpoint.py:70
Function
test_launch_compile_passes_clears_owned_compiled_backward_state
(monkeypatch)
tests/unit/compile/test_backend.py:40
Function
test_launcher_source_has_no_local_packaging_or_shell_execution
()
ci/test_torch_latest.py:1787
Function
test_layer_inheritance
()
tests/unit/inference/v2/model_implementations/parameters/test_layer_inheritance.py:32
Function
test_layer_norm
(batch, seq_len, channels, dtype, use_triton_ops)
tests/unit/ops/transformer/inference/test_layer_norm.py:47
Function
test_layer_norm_residual
(batch, seq_len, channels, dtype, use_triton_ops)
tests/unit/ops/transformer/inference/test_layer_norm.py:94
Function
test_layer_norm_residual_store_pre_ln_res
(batch, seq_len, channels, dtype)
tests/unit/ops/transformer/inference/test_layer_norm.py:140
Function
test_layer_without_explicit_mode_follows_set_autotp_mode
(built_by)
tests/unit/v1/autotp/test_tp_plan_e2e.py:311
Method
test_layers_of_one_model_share_one_buffer
(self)
tests/unit/module_inject/test_auto_ep_comm.py:166
Method
test_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:2760
Function
test_leaf_change_narrows_to_one_test
()
ci/test_tests_fetcher.py:123
Method
test_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
Method
test_leaf_module_enabled_via_config
(self)
tests/unit/runtime/zero/test_zero_leaf_module.py:456
Method
test_leaf_module_n1
(self)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:341
Method
test_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
Method
test_learnable_mask_matches_full_sequence_gradients
(self, bias)
tests/unit/v1/compile/test_compile_autosp.py:947
← previous
next →
13,301–13,400 of 15,468, ranked by callers