MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Functiontest_inject_missing_state_still_validates_unsupported_layout
(monkeypatch)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:79
Methodtest_inner_tokens_replaced_with_visual
Tokens between vision_start and vision_end must become visual embeddings.
deepspeed/sequence/test_autosp.py:630
Methodtest_inplace_update_refresh_matches_fresh_injection
(self)
tests/unit/module_inject/test_segment_ki_kernels.py:624
Functiontest_inputs_it_cannot_price_are_refused
()
tests/unit/checkpoint/test_affine_transfer_cost.py:124
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:2497
Functiontest_installed_cuda_version_reports_a_runtime_only_cuda_home_as_missing
(tmp_path)
tests/unit/ops/test_op_builder.py:506
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:556
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:485
Functiontest_invalid_dealloc_indices
(index: int)
tests/unit/inference/v2/ragged/test_blocked_allocator.py:92
Functiontest_invalid_geometry
Invalid geometry must fail before division, reshaping or rank slicing.
tests/unit/v1/sequence_parallelism/test_fpdt_inputs.py:98
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:1232
Methodtest_invalid_setting_rejected
(self, keep)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:118
Methodtest_invalid_step_preserves_parameters_and_state
(self, precision, invalid_value, pin_memory, offload_param)
tests/unit/v1/zero/test_reflow.py:2713
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:181
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:838
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_rejects_only_gpus_below_the_minimum_and_says_why
(builder_name)
tests/unit/ops/test_op_builder.py:380
Functiontest_jit_load_restores_env_and_state_after_failure
()
tests/unit/ops/test_op_builder.py:117
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
Methodtest_kept_through_initialize_and_training
(self)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:143
Functiontest_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
Functiontest_kl_div_matches_reference_for_student_and_teacher
(reverse)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:92
Functiontest_kl_is_infinite_where_target_mass_is_masked
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:429
Functiontest_kl_stays_infinite_when_target_probability_underflows
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:439
Functiontest_known_world_size
(monkeypatch, world_size, env, expected)
tests/unit/comm/test_dist.py:541
Functiontest_kv_head_split_applies_only_to_attention
(name, expected)
tests/unit/module_inject/test_tp_shard.py:58
Functiontest_kv_head_split_needs_a_divisible_dimension
()
tests/unit/module_inject/test_tp_shard.py:64
Functiontest_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
Functiontest_kv_requirements_stop_at_sequence_length_cap
()
tests/unit/inference/v2/model_implementations/test_exaone4_5.py:86
Methodtest_kwargs_and_config
(self)
tests/unit/inference/test_inference_config.py:71
Methodtest_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
Methodtest_lamb_gradnorm
(self, monkeypatch, fused_lamb_legacy: bool)
tests/unit/runtime/half_precision/test_fp16.py:258
Functiontest_large_common_offset_is_exact
(op)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:372
Methodtest_latest_waits_for_slow_rank
(self, tmpdir)
tests/unit/checkpoint/test_latest_checkpoint.py:70
Functiontest_launch_compile_passes_clears_owned_compiled_backward_state
(monkeypatch)
tests/unit/compile/test_backend.py:40
Functiontest_launcher_source_has_no_local_packaging_or_shell_execution
()
ci/test_torch_latest.py:1787
Functiontest_layer_inheritance
()
tests/unit/inference/v2/model_implementations/parameters/test_layer_inheritance.py:32
Functiontest_layer_norm
(batch, seq_len, channels, dtype, use_triton_ops)
tests/unit/ops/transformer/inference/test_layer_norm.py:47
Functiontest_layer_norm_residual
(batch, seq_len, channels, dtype, use_triton_ops)
tests/unit/ops/transformer/inference/test_layer_norm.py:94
Functiontest_layer_norm_residual_store_pre_ln_res
(batch, seq_len, channels, dtype)
tests/unit/ops/transformer/inference/test_layer_norm.py:140
Functiontest_layer_without_explicit_mode_follows_set_autotp_mode
(built_by)
tests/unit/v1/autotp/test_tp_plan_e2e.py:311
Methodtest_layers_of_one_model_share_one_buffer
(self)
tests/unit/module_inject/test_auto_ep_comm.py:166
Methodtest_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
Functiontest_leaf_change_narrows_to_one_test
()
ci/test_tests_fetcher.py:123
Methodtest_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
Methodtest_leaf_module_enabled_via_config
(self)
tests/unit/runtime/zero/test_zero_leaf_module.py:456
Methodtest_leaf_module_n1
(self)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:341
Methodtest_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
Methodtest_learnable_mask_matches_full_sequence_gradients
(self, bias)
tests/unit/v1/compile/test_compile_autosp.py:947
← previousnext →13,301–13,400 of 15,468, ranked by callers