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_auto_adds_fp16_only_list_under_fp16
(self)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:91
Method
test_auto_casts_params_keeps_buffers
(self, stage)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:528
Method
test_auto_uses_lists_from_nested_modules
(self)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:97
Method
test_auto_uses_strict_list_under_bf16
(self)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:86
Method
test_auto_wrap_detects_and_wraps_modules
auto_wrap_model_for_sp must replace InternVisionAttention with UlyssesSPViTAttention (has_cls_token=False) and must NOT wrap InternLM2
tests/unit/v1/sequence_parallelism/test_autosp_integration.py:152
Method
test_auto_wrap_detects_and_wraps_modules
auto_wrap_model_for_sp must replace Qwen2VLVisionAttention with UlyssesSPViTAttention (has_cls_token=False) and must NOT wrap Qwen2Att
tests/unit/v1/sequence_parallelism/test_autosp_integration.py:219
Method
test_autocast_linear
(self, tmpdir, half_input, half_weight)
tests/unit/runtime/test_autocast.py:49
Function
test_autocast_low_precision_activations_with_fp32_parameters
(monkeypatch, legacy_autocast_api)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_linear_cross_entropy.py:226
Function
test_autoep_folding_gradient_strategy_uses_parameter_family
()
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:67
Method
test_autoep_import_chain_defers_pep604_annotations
PEP 604 unions (``int | None``) in def signatures or class-level annotations are evaluated at import time, so on Python 3.9 they raise
tests/unit/v1/moe/test_autoep_unit.py:2452
Method
test_autoep_layer_emits_uniform_placement_and_param_restore_metadata
(self)
tests/unit/v1/moe/test_autoep_unit.py:627
Method
test_autoep_layer_forward_and_expert_bias_rejection
(self)
tests/unit/v1/moe/test_autoep_unit.py:1492
Method
test_autoep_layer_marks_zero3_param_placement_families
(self)
tests/unit/v1/moe/test_autoep_unit.py:615
Method
test_autoep_metadata_schema_validation
(self)
tests/unit/v1/moe/test_autoep_checkpoint.py:443
Method
test_autoep_sequence_parallel_size_falls_back_to_groups_helper
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:515
Method
test_autoep_size_2to1_fixed_world_size
(self, autoep_topology_baseline_ws4_ep2, tmpdir)
tests/unit/v1/moe/test_autoep_checkpoint.py:913
Method
test_autoep_size_2to4_fixed_world_size
(self, autoep_topology_baseline_ws4_ep2, tmpdir)
tests/unit/v1/moe/test_autoep_checkpoint.py:909
Function
test_autoep_target_extraction_precedes_tp_and_stage3_partitioning
(monkeypatch)
tests/unit/checkpoint/test_autoep_affine_universal.py:399
Function
test_autoep_target_metadata_fails_loudly
(metadata, match)
tests/unit/checkpoint/test_autoep_affine_universal.py:533
Function
test_autoep_target_metadata_rejects_caller_ep_rank_mismatch
()
tests/unit/checkpoint/test_autoep_affine_universal.py:543
Function
test_autoep_target_metadata_rejects_local_expert_list_mismatch
()
tests/unit/checkpoint/test_autoep_affine_universal.py:553
Method
test_autoep_zero3_16bit_export_guard_directs_to_universal_conversion
(self)
tests/unit/v1/moe/test_autoep_unit.py:1006
Function
test_autoep_zero3_eager_conversion_gates
()
tests/unit/runtime/zero/test_autoep_zero3_init.py:144
Function
test_autoep_zero3_partitioned_experts_keep_muon_assignment
(monkeypatch)
tests/unit/runtime/zero/test_autoep_zero3_init.py:160
Function
test_autoep_zero3_partitioned_experts_keep_optimizer_grouping
()
tests/unit/runtime/zero/test_autoep_zero3_init.py:180
Function
test_autoep_zero3_partitions_each_replacement_before_next_allocation
(monkeypatch)
tests/unit/runtime/zero/test_autoep_zero3_init.py:50
Function
test_autotp_reaches_autoep_shared_experts
(monkeypatch)
tests/unit/v1/moe/test_autoep_autotp_runtime.py:94
Method
test_autotp_size_above_kv_head_count_leaves_trailing_ranks_empty
Ranks beyond the KV head count hold no attention shard but still compute correctly.
tests/unit/v1/autotp/test_tp_plan_real_models.py:437
Method
test_autotp_with_zero_pass_raises
(self)
tests/unit/compile/test_tp_compile.py:598
Method
test_autotp_zero3_inference
(self, tp_size: int)
tests/unit/v1/autotp/test_autotp_training.py:899
Function
test_autotuner_resources
(tmpdir, active_resources)
tests/unit/autotuning/test_autotuning.py:69
Function
test_average_tensor_falls_back_to_current_stream_without_producers
(monkeypatch)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:171
Function
test_average_tensor_waits_on_all_ipg_bucket_producer_streams
(monkeypatch)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:158
Function
test_average_waits_all_producers_even_without_overlap
(monkeypatch, overlap)
tests/unit/v1/zero/test_zero2_gradient_safety.py:269
Function
test_await_sandbox_start_gives_up_when_the_container_never_runs
()
ci/test_torch_latest.py:634
Function
test_await_sandbox_start_reports_startup_duration
()
ci/test_torch_latest.py:646
Function
test_aws_acquisition_advances_only_for_explicit_capacity
()
ci/test_torch_latest.py:849
Function
test_aws_backend_startup_uses_one_absolute_deadline
()
ci/test_torch_latest.py:1017
Function
test_aws_config_requires_fixed_complete_region_order
()
ci/test_torch_latest.py:836
Function
test_aws_controller_capacity_exhaustion_and_prepare_failure_are_not_retried_as_tests
()
ci/test_torch_latest.py:1086
Function
test_aws_controller_entrypoint_timeout_tracebacks_redact_command_arguments
()
ci/test_torch_latest.py:1654
Function
test_aws_controller_runs_one_backend_and_always_terminates
()
ci/test_torch_latest.py:1043
Function
test_aws_infrastructure_smoke_is_region_scoped_and_has_no_test_execution
()
ci/test_torch_latest.py:913
Function
test_aws_infrastructure_smoke_log_upload_is_required_and_sanitized
()
ci/test_torch_latest.py:967
Function
test_aws_logs_redact_private_identifiers_and_cli_text
()
ci/test_torch_latest.py:1618
Function
test_aws_prepare_failure_emits_bounded_s3_tail
()
ci/test_torch_latest.py:1507
Function
test_aws_s3_tail_timeout_preserves_test_timeout_and_cleanup
()
ci/test_torch_latest.py:1533
Function
test_aws_scripts_reuse_full_selection_manifest_and_two_gpu_contract
()
ci/test_torch_latest.py:893
Function
test_aws_test_deadlines_and_terminal_timeouts_are_classified_as_timeouts
()
ci/test_torch_latest.py:1570
Function
test_aws_test_failure_emits_bounded_s3_tail_for_nightly_triage
()
ci/test_torch_latest.py:1469
Function
test_backend_setup_failure_after_native_init_cleans_once
(monkeypatch)
tests/unit/compile/test_zero3_grad_dtype.py:384
Method
test_backward
(self, is_preln, use_fp16, batch_size, hidden_size, seq_len, heads, num_layers, atol)
tests/unit/ops/accelerators/test_accelerator_backward.py:263
Function
test_backward_config_compatibility_defaults_etp_to_one
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:40
Function
test_backward_matches_reference
(dtype, shape)
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:72
Function
test_backward_matches_reference
(counts, K, N, dtype)
tests/unit/v1/ops/triton_ops/test_group_gemm_triton.py:204
Method
test_backward_skips_zero_deepcompile_hooks
(self, monkeypatch)
tests/unit/v1/compile/test_compile_autosp.py:252
Method
test_backward_with_autocast
Backward with autocast should produce float32 gradients (autocast only affects forward).
tests/unit/v1/zero/test_zero_functorch_linear.py:140
Method
test_backward_without_autocast
Backward without autocast should produce float32 gradients.
tests/unit/v1/zero/test_zero_functorch_linear.py:124
Function
test_bad_act_fn
()
tests/unit/inference/v2/kernels/core_ops/test_gated_activation.py:119
Function
test_bad_alignment
()
tests/unit/inference/v2/kernels/core_ops/test_gated_activation.py:125
Function
test_bad_dtype
()
tests/unit/inference/v2/kernels/core_ops/test_gated_activation.py:113
Function
test_bad_fork_jit_without_arch_list_raises_actionable_error
()
tests/unit/ops/test_op_builder.py:77
Function
test_bad_initialization
(bad_size: int)
tests/unit/inference/v2/ragged/test_blocked_allocator.py:17
Function
test_balance_bert
()
tests/unit/runtime/utils/test_partition.py:186
Method
test_base_class_raises_not_implemented
The base _splice_visual_into_text must raise NotImplementedError.
deepspeed/sequence/test_autosp.py:288
Function
test_bash_string_args
(tmpdir, user_script_fp)
tests/unit/launcher/test_user_args.py:73
Method
test_batch_padding_when_lengths_differ
Samples with different numbers of image tokens are padded to max length.
deepspeed/sequence/test_autosp.py:469
Method
test_batch_parameter_order_must_match
(self)
tests/unit/checkpoint/test_affine_transfer_executor.py:213
Function
test_bf16_hp_grad_update_uses_folded_correction_before_hp_buffer
(monkeypatch)
tests/unit/v1/moe/test_autoep_autotp_bf16_folding_parity.py:35
Function
test_bf16_immediate_grad_update_corrects_every_consumed_gradient
(monkeypatch, micro_batches)
tests/unit/v1/moe/test_autoep_autotp_bf16_folding_parity.py:71
Function
test_bf16_inputs_match_fp32_reference
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:344
Method
test_bf16_optimizer
(self, num_models, shared_loss)
tests/unit/runtime/test_multiple_models.py:111
Method
test_bf16_optimizer_fragments
(self, frozen_weights)
tests/unit/runtime/zero/test_zero_tensor_fragment.py:200
Function
test_bf16_optimizer_reports_invalid_step_and_recovers
(monkeypatch)
tests/unit/v1/zero/test_invalid_grad_norm.py:124
Method
test_bf16_optimizer_runs_muon_after_accumulation
(self, ns_method)
tests/unit/runtime/zero/test_muon_without_zero_optimizer.py:159
Method
test_bf16_optimizer_states_dtype
fp32_optimizer_states=False keeps the Adam moments in the bf16 parameter precision.
tests/unit/ops/adam/test_cpu_adam.py:245
Method
test_bf16_optimizer_states_match_fp32
bf16 moments should track fp32 moments within bf16 tolerance over several steps.
tests/unit/ops/adam/test_cpu_adam.py:261
Function
test_bf16_optimizer_uc_info_comes_from_cached_state
()
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:628
Method
test_bf16_with_fp32_accumulation_trains
(self, zero_stage, hidden_dim, padded)
tests/unit/v1/ops/muon/test_muon_checkpoint.py:146
Function
test_bias_add
(batch, image_size, channels)
tests/unit/ops/spatial/test_nhwc_bias_add.py:34
Function
test_bias_add
(batch, sequence, channels, dtype)
tests/unit/ops/transformer/inference/test_bias_add.py:33
Function
test_bias_add_add
(batch, image_size, channels)
tests/unit/ops/spatial/test_nhwc_bias_add.py:54
Function
test_bias_add_bias_add
(batch, image_size, channels)
tests/unit/ops/spatial/test_nhwc_bias_add.py:77
Function
test_bias_geglu
(batch, sequence, channels, dtype)
tests/unit/ops/transformer/inference/test_bias_geglu.py:36
Function
test_bias_gelu
(batch, sequence, channels, dtype)
tests/unit/ops/transformer/inference/test_bias_gelu.py:36
Function
test_bias_relu
(batch, sequence, channels, dtype)
tests/unit/ops/transformer/inference/test_bias_relu.py:34
Function
test_bigcode_highest_holder_still_needs_seven_segments
()
tests/unit/checkpoint/test_affine_transfer_plan.py:174
Function
test_bigcode_kv_block_is_replicated_in_the_map
The kv piece names every rank, which is what one partition dimension could not say.
tests/unit/checkpoint/test_affine_shard_map.py:907
Function
test_bigcode_layer_map_matches_the_real_partition
GPTBigCode shards the query rows and replicates the key/value block to every rank.
tests/unit/checkpoint/test_affine_shard_map.py:884
Function
test_bigcode_map_uses_the_widths_the_partition_uses
The query rows are not divided evenly, so the map cannot assume they are. `get_shard_size_list` aligns the split to the head count, giving widths
tests/unit/checkpoint/test_affine_shard_map.py:1065
Function
test_bigcode_physical_folding_keeps_lowest_holder
()
tests/unit/checkpoint/test_affine_transfer_plan.py:141
Function
test_bigcode_selector_can_choose_target_private_query_holder
()
tests/unit/checkpoint/test_affine_transfer_plan.py:155
Function
test_bigcode_selector_rejects_invalid_rank
(invalid_rank)
tests/unit/checkpoint/test_affine_transfer_plan.py:186
Function
test_bigcode_weight_is_no_longer_refused_by_conversion
The layer must actually publish the map, not merely be able to build one. The geometry tests cover `segmented_map` itself, so a hook that never f
tests/unit/checkpoint/test_affine_shard_map.py:1123
Function
test_blas_linear
(fp_dtype: torch.dtype, problem_shape: Tuple[int, int, int, int])
tests/unit/inference/v2/kernels/core_ops/test_blas_linear.py:39
Function
test_blas_linear_act_fn
(act_fn: ActivationType, use_bias: bool)
tests/unit/inference/v2/modules/test_blas_linear_module.py:109
Function
test_blas_linear_shapes
(tokens: int, in_channels: int, out_channels: int)
tests/unit/inference/v2/modules/test_blas_linear_module.py:91
Function
test_blas_linear_t
(fp_dtype: torch.dtype, problem_shape: Tuple[int, int, int, int])
tests/unit/inference/v2/kernels/core_ops/test_blas_linear.py:57
Function
test_blocking_aio_releases_gil
(tmp_path, operation_name)
tests/unit/v1/nvme/test_aio_gil.py:45
Method
test_bloom_alibi_uses_original_total_after_injection
(self)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:715
← previous
next →
11,601–11,700 of 14,579, ranked by callers