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
Method
test_hysteresis_through_the_engine
(self, optimizer_class)
tests/unit/runtime/half_precision/test_dynamic_loss_scale.py:343
Method
test_idempotent_on_already_injected_modules
Repeated forwards must not re-wrap an already-converted ``_parameters``.
tests/unit/runtime/zero/test_zero_late_module_attach.py:73
Method
test_identity_attn_preserves_values
When attn is identity, output values should match input values.
deepspeed/sequence/test_autosp.py:199
Function
test_identity_is_klxpu_but_device_is_cuda
()
tests/unit/v1/accelerator/test_klxpu_accelerator.py:16
Function
test_identity_still_ships_a_copy_per_holder
Same topology in and out is not a no-op: every rank must still be named as a writer.
tests/unit/checkpoint/test_affine_transfer_plan.py:215
Function
test_identity_unscale_is_skipped
()
tests/unit/runtime/zero/test_zero1_optimizer_fastpath.py:41
Function
test_idle_parameter_stays_zero_beside_active_neighbor
(monkeypatch, low_precision)
tests/unit/v1/zero/test_zero2_gradient_safety.py:521
Function
test_idle_parameter_window_does_not_reuse_previous_gradient
(monkeypatch, low_precision)
tests/unit/v1/zero/test_zero2_gradient_safety.py:499
Method
test_ignore_grad_overflow
(self, zero_stage, offload_optimizer, gradient_clipping)
tests/unit/runtime/half_precision/test_zero_optim_overflow.py:328
Function
test_ignored_fully_masked_row_gets_zero_gradient
(top_k)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:450
Function
test_ignored_rows_get_no_gradient_and_all_ignored_is_nan
(backend, device)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:209
Function
test_ignored_tokens_do_not_affect_loss_or_gradients
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_linear_cross_entropy.py:162
Method
test_immediate_save_load
(self, tmpdir, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:378
Function
test_import_deepspeed_defers_device_queries_compilation_and_transformers
()
tests/unit/ops/test_op_builder.py:308
Function
test_in_out_channels
(in_channels: int, out_channels: int)
tests/unit/inference/v2/modules/test_cutlass_moe.py:207
Function
test_include_paths_accepts_cutlass_include_dir_directly
(tmp_path)
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:100
Function
test_include_paths_finds_cutlass_from_cmake_prefix_path
(tmp_path)
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:82
Function
test_include_paths_finds_cutlass_from_compiler_include_path
(tmp_path)
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:91
Function
test_include_paths_finds_python_package_candidate_without_env
(tmp_path)
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:72
Function
test_include_paths_reports_missing_cutlass
(tmp_path)
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:112
Function
test_include_paths_uses_cutlass_path_env
(tmp_path)
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:60
Function
test_inconsistent_arguments_are_refused
(kwargs)
tests/unit/checkpoint/test_affine_replica_policy.py:333
Function
test_inconsistent_legacy_metadata_is_rejected
(num_experts, num_local_experts, ep_size)
tests/unit/checkpoint/test_autoep_affine.py:213
Function
test_independent_cuda_training
(stage, tmp_path)
tests/unit/runtime/test_determinism.py:89
Function
test_indexer_logits_and_selection_match_reference
(heads)
tests/unit/v1/models/test_glm_moe_dsa.py:74
Function
test_indexer_selection_at_glm52_sizes
32 index heads (4 query rows per kernel program), 16,384 tokens (two 8,192-row blocks in ``select_topk``) and top-k 2048. On 256 random rows with
tests/unit/v1/models/test_glm_moe_dsa.py:443
Function
test_inductor_aot_constructor_patch_is_restorable
()
tests/unit/compile/test_backend.py:128
Function
test_init_methods
(Opt)
tests/unit/ops/adam/test_zf_torch_adam.py:44
Function
test_init_tp_mesh_device_debug_detail_uses_explicit_groups
(monkeypatch)
tests/unit/v1/autotp/test_autotp_training.py:74
Function
test_init_tp_mesh_device_split_error_falls_back_to_explicit_groups
(monkeypatch)
tests/unit/v1/autotp/test_autotp_training.py:91
Method
test_init_with_error_log_level
(self)
tests/unit/v1/test_engine_log_level.py:60
Method
test_init_without_gradient_clipping_defaults_to_one
(self)
tests/unit/v1/half_precision/test_gradient_clipping_default.py:57
Method
test_initialization_broadcasts_scalar_parameter
(self, zero_stage)
tests/unit/runtime/test_scalar_parameter_broadcast.py:27
Method
test_initialize
(self)
tests/unit/runtime/test_ds_config_dict.py:372
Method
test_initialize_broadcasts_narrow_params
(self, dtype)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:212
Function
test_inject_missing_state_still_validates_unsupported_layout
(monkeypatch)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:78
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_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:2426
Function
test_installed_cuda_version_reports_a_runtime_only_cuda_home_as_missing
(tmp_path)
tests/unit/ops/test_op_builder.py:348
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:345
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:483
Function
test_invalid_dealloc_indices
(index: int)
tests/unit/inference/v2/ragged/test_blocked_allocator.py:92
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:1182
Method
test_invalid_setting_rejected
(self, keep)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:118
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:182
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:836
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_restores_env_and_state_after_failure
()
tests/unit/ops/test_op_builder.py:116
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
← previous
next →
12,601–12,700 of 14,579, ranked by callers