MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

Methodtest_hysteresis_through_the_engine
(self, optimizer_class)
tests/unit/runtime/half_precision/test_dynamic_loss_scale.py:343
Methodtest_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
Methodtest_identity_attn_preserves_values
When attn is identity, output values should match input values.
deepspeed/sequence/test_autosp.py:199
Functiontest_identity_is_klxpu_but_device_is_cuda
()
tests/unit/v1/accelerator/test_klxpu_accelerator.py:16
Functiontest_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
Functiontest_identity_unscale_is_skipped
()
tests/unit/runtime/zero/test_zero1_optimizer_fastpath.py:41
Functiontest_idle_parameter_stays_zero_beside_active_neighbor
(monkeypatch, low_precision)
tests/unit/v1/zero/test_zero2_gradient_safety.py:521
Functiontest_idle_parameter_window_does_not_reuse_previous_gradient
(monkeypatch, low_precision)
tests/unit/v1/zero/test_zero2_gradient_safety.py:499
Methodtest_ignore_grad_overflow
(self, zero_stage, offload_optimizer, gradient_clipping)
tests/unit/runtime/half_precision/test_zero_optim_overflow.py:328
Functiontest_ignored_fully_masked_row_gets_zero_gradient
(top_k)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:450
Functiontest_ignored_rows_get_no_gradient_and_all_ignored_is_nan
(backend, device)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:209
Functiontest_ignored_tokens_do_not_affect_loss_or_gradients
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_linear_cross_entropy.py:162
Methodtest_immediate_save_load
(self, tmpdir, zero_stage)
tests/unit/checkpoint/test_zero_optimizer.py:378
Functiontest_import_deepspeed_defers_device_queries_compilation_and_transformers
()
tests/unit/ops/test_op_builder.py:308
Functiontest_in_out_channels
(in_channels: int, out_channels: int)
tests/unit/inference/v2/modules/test_cutlass_moe.py:207
Functiontest_include_paths_accepts_cutlass_include_dir_directly
(tmp_path)
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:100
Functiontest_include_paths_finds_cutlass_from_cmake_prefix_path
(tmp_path)
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:82
Functiontest_include_paths_finds_cutlass_from_compiler_include_path
(tmp_path)
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:91
Functiontest_include_paths_finds_python_package_candidate_without_env
(tmp_path)
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:72
Functiontest_include_paths_reports_missing_cutlass
(tmp_path)
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:112
Functiontest_include_paths_uses_cutlass_path_env
(tmp_path)
tests/unit/ops/deepspeed4science/test_evoformer_attn_builder.py:60
Functiontest_inconsistent_arguments_are_refused
(kwargs)
tests/unit/checkpoint/test_affine_replica_policy.py:333
Functiontest_inconsistent_legacy_metadata_is_rejected
(num_experts, num_local_experts, ep_size)
tests/unit/checkpoint/test_autoep_affine.py:213
Functiontest_independent_cuda_training
(stage, tmp_path)
tests/unit/runtime/test_determinism.py:89
Functiontest_indexer_logits_and_selection_match_reference
(heads)
tests/unit/v1/models/test_glm_moe_dsa.py:74
Functiontest_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
Functiontest_inductor_aot_constructor_patch_is_restorable
()
tests/unit/compile/test_backend.py:128
Functiontest_init_methods
(Opt)
tests/unit/ops/adam/test_zf_torch_adam.py:44
Functiontest_init_tp_mesh_device_debug_detail_uses_explicit_groups
(monkeypatch)
tests/unit/v1/autotp/test_autotp_training.py:74
Functiontest_init_tp_mesh_device_split_error_falls_back_to_explicit_groups
(monkeypatch)
tests/unit/v1/autotp/test_autotp_training.py:91
Methodtest_init_with_error_log_level
(self)
tests/unit/v1/test_engine_log_level.py:60
Methodtest_init_without_gradient_clipping_defaults_to_one
(self)
tests/unit/v1/half_precision/test_gradient_clipping_default.py:57
Methodtest_initialization_broadcasts_scalar_parameter
(self, zero_stage)
tests/unit/runtime/test_scalar_parameter_broadcast.py:27
Methodtest_initialize
(self)
tests/unit/runtime/test_ds_config_dict.py:372
Methodtest_initialize_broadcasts_narrow_params
(self, dtype)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:212
Functiontest_inject_missing_state_still_validates_unsupported_layout
(monkeypatch)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:78
Methodtest_inner_tokens_replaced_with_visual
Tokens between vision_start and vision_end must become visual embeddings.
deepspeed/sequence/test_autosp.py:630
Methodtest_inputs_on_non_current_device
(self, dtype)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:105
Functiontest_install_constrains_and_preserves_framework
(monkeypatch, tmp_path)
ci/test_install_accelerate.py:25
Functiontest_install_refuses_a_model_that_does_not_use_the_stock_loss
()
tests/unit/v1/runtime/test_chunked_cross_entropy.py:368
Functiontest_install_reports_a_nonwritable_stock_loss_without_changing_it
(assignment)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:347
Functiontest_install_requires_preinstalled_framework
(monkeypatch, tmp_path)
ci/test_install_accelerate.py:16
Methodtest_install_uses_and_restores_entries_by_class_key
(self, registry_type)
tests/unit/v1/moe/test_autoep_unit.py:2426
Functiontest_installed_cuda_version_reports_a_runtime_only_cuda_home_as_missing
(tmp_path)
tests/unit/ops/test_op_builder.py:348
Methodtest_installed_function_runs_eager_for_unsupported_inputs
(self)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:360
Functiontest_installed_loss_rejects_malformed_labels_like_a_stock_model
(backend, device, dtype)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:333
Functiontest_installed_loss_trains_a_hugging_face_model_like_the_stock_loss
()
tests/unit/v1/runtime/test_chunked_cross_entropy.py:312
Methodtest_installer_accepts_functions_that_differ_only_in_docstrings
(self, monkeypatch)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:353
Methodtest_installer_is_idempotent_and_restorable
(self)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:315
Methodtest_installer_leaves_a_changed_expression_alone
(self, monkeypatch)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:329
Methodtest_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
Methodtest_installer_matches_eager_model
(self)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:285
Methodtest_installer_skips_models_it_does_not_list
(self)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:325
Functiontest_instrument_w_nvtx_supports_legacy_accelerator_methods
(monkeypatch, capsys)
tests/unit/utils/test_nvtx.py:44
Functiontest_instrument_w_nvtx_uses_deepspeed_domain
(monkeypatch, capsys)
tests/unit/utils/test_nvtx.py:15
Functiontest_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
Functiontest_int_balanced
()
tests/unit/runtime/utils/test_partition.py:150
Functiontest_interleaved_fused_layout_refuses_to_gather
()
tests/unit/module_inject/test_fused_repartition.py:101
Functiontest_invalid_alloc_indices
(index: int)
tests/unit/inference/v2/ragged/test_blocked_allocator.py:101
Methodtest_invalid_buffers_and_metadata_are_rejected_before_any_write
(self, invalid, batched)
tests/unit/checkpoint/test_affine_transfer_executor.py:345
Functiontest_invalid_clip_norm_zeros_gradients_for_direct_callers
()
tests/unit/v1/zero/test_invalid_grad_norm.py:60
Functiontest_invalid_custom_shape_rejected
()
tests/unit/v1/autotp/test_autotp_custom_patterns.py:483
Functiontest_invalid_dealloc_indices
(index: int)
tests/unit/inference/v2/ragged/test_blocked_allocator.py:92
Functiontest_invalid_gradient_allreduce_op
()
tests/unit/runtime/test_ds_config_dict.py:166
Methodtest_invalid_gradients_are_rejected
(self, zero_stage, gradient_clipping)
tests/unit/runtime/half_precision/test_zero_grad_norm_overflow.py:28
Functiontest_invalid_offload_optimizer_type_raises
Passing a non-dict to offload_optimizer must error out.
tests/unit/runtime/zenflow/test_zf_config.py:30
Functiontest_invalid_register_device_env
(monkeypatch, native_pins)
tests/unit/v1/pin_memory/test_pin_memory.py:395
Methodtest_invalid_routed_scaling_factor_rejected
(self, value)
tests/unit/v1/moe/test_autoep_unit.py:1182
Methodtest_invalid_setting_rejected
(self, keep)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:118
Functiontest_invalid_zenflow_type_raises
Passing a non-dict to zenflow must error out.
tests/unit/runtime/zenflow/test_zf_config.py:56
Functiontest_ipg_bucket_clear_resets_copy_streams
()
tests/unit/v1/zero/test_overlap_comm_record_stream.py:182
Methodtest_irecv_defers_copy_back_to_wait
(self, monkeypatch)
tests/unit/comm/test_dist.py:235
Methodtest_irecv_failure_does_not_publish_uninitialized_staging
(self, monkeypatch)
tests/unit/comm/test_dist.py:322
Methodtest_irecv_without_work_preserves_native_return_and_destination
(self, monkeypatch)
tests/unit/comm/test_dist.py:340
Functiontest_is_nfs_path_detects_nfs_mount
(tmp_path)
tests/unit/ops/transformer/inference/test_matmul_ext.py:33
Functiontest_is_nfs_path_handles_wrapped_device_name
(tmp_path)
tests/unit/ops/transformer/inference/test_matmul_ext.py:19
Functiontest_is_pinned_handles_storageless_tensors
(native_pins)
tests/unit/v1/pin_memory/test_pin_memory.py:124
Functiontest_is_pinned_handles_storageless_tensors
(monkeypatch)
tests/unit/v1/accelerator/test_accelerator.py:286
Functiontest_is_pinned_propagates_to_views
(native_pins)
tests/unit/v1/pin_memory/test_pin_memory.py:35
Methodtest_isend_stages_payload_on_cpu
(self, monkeypatch)
tests/unit/comm/test_dist.py:284
Functiontest_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
Functiontest_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
Methodtest_jacrev_through_engine
(self, stage)
tests/unit/v1/zero/test_zero_torch_func.py:87
Functiontest_jit_load_restores_env_and_state_after_failure
()
tests/unit/ops/test_op_builder.py:116
Functiontest_jit_load_restores_state_after_success
()
tests/unit/ops/test_op_builder.py:138
Functiontest_jit_mode_prefers_explicit_arch_lists_before_cuda_probe
()
tests/unit/ops/test_op_builder.py:72
Functiontest_jit_mode_probes_devices_when_safe_and_errors_without_visible_gpus
()
tests/unit/ops/test_op_builder.py:91
Functiontest_jsd_disjoint_support_and_undefined_rows
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:136
Functiontest_jsd_independent_logit_shifts
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:147
Functiontest_jsd_matches_dense_oracle
(beta, dtype, frozen)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:113
Functiontest_jsd_rejects_invalid_beta
(beta)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:162
Functiontest_jsd_rejects_invalid_logits
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:167
Functiontest_jsd_triton_frozen_inputs_and_extreme_logits
(frozen)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:229
Functiontest_jsd_triton_matches_eager
(dtype, layout, beta)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:178
Methodtest_json
(self, base_config, tmpdir)
tests/unit/runtime/test_ds_config_dict.py:431
Methodtest_json_config
(self, tmpdir)
tests/unit/inference/test_inference_config.py:79
Functiontest_keep_last_count_matches_baseline
(use_streams, keep_last_count)
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:258
Functiontest_keep_last_count_rejects_negative
()
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:58
Methodtest_kept_param_gradient_is_fp32
(self, offload_optimizer, trained)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:449
Methodtest_kept_param_gradient_is_fp32
(self, trained)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:505
← previousnext →12,601–12,700 of 14,579, ranked by callers