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
Function
test_construction_succeeds_on_supported_torch
()
tests/unit/accelerator/test_mps_accelerator.py:16
Function
test_constructor_defaults_without_cfg
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:105
Function
test_constructor_stores_config
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:86
Method
test_consumer_stream_can_finish_before_storage_reuse
(self)
tests/torch_compile/test_deepcompile_z3_release.py:105
Method
test_context_activation_is_idempotent_and_persistent
(self)
tests/unit/runtime/zero/test_zero_linear_direct_init.py:117
Function
test_context_exception_restores_fallback_and_user_ownership_depth
(monkeypatch)
tests/unit/v1/compile/test_z3_eager_fallback.py:465
Method
test_context_tokens_replaced_with_visual
IMG_CONTEXT positions must carry visual embeddings after splice.
deepspeed/sequence/test_autosp.py:519
Function
test_contiguify_roundtrip
Validate that contiguify round trips and reconstructions are correct.
tests/unit/inference/v2/model_implementations/parameters/test_contiguify.py:52
Method
test_contiguous_gradients
(self, contiguous_gradients)
tests/unit/v1/zero/test_zero.py:980
Function
test_contiguous_offload_buffer_pin_flag
(use_pin_memory)
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:331
Function
test_continuation
Test continued generation/prompt processing.
tests/unit/inference/v2/modules/test_blocked_attn.py:154
Function
test_continuation
Test continued generation/prompt processing.
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_flash.py:156
Function
test_continuous_batching_details_are_not_public_exports
()
tests/unit/runtime/rollout/test_rollout_interface.py:70
Function
test_continuous_cache_span_does_not_sum_independent_requests
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:402
Function
test_continuous_generation_applies_repetition_penalty
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:867
Function
test_continuous_generation_applies_repetition_penalty_in_float32
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:923
Function
test_continuous_generation_covers_modern_static_cache_path
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:517
Function
test_continuous_generation_falls_back_to_eager_without_graph_capture_opt_in
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:173
Function
test_continuous_generation_profile_on_accelerator
()
tests/unit/v1/test_hybrid_engine_rollout_v1.py:238
Function
test_continuous_generation_refills_padded_prompts_after_trim
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:808
Function
test_continuous_generation_rejects_legacy_cache_model
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:475
Function
test_continuous_generation_rejects_unsupported_inputs
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:115
Function
test_continuous_generation_reports_cache_capacity_remedies
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:428
Function
test_continuous_generation_routes_graph_capture_to_fixed_capacity_path
(graph_capture_accelerator)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:220
Function
test_continuous_generation_samples_when_temperature_is_set
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1010
Function
test_continuous_generation_treats_none_repetition_penalty_as_one
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:886
Function
test_continuous_generation_trims_cache_after_staggered_eos
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:749
Function
test_continuous_generation_uses_local_kv_shape
(local_heads, use_graph, monkeypatch)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:104
Function
test_continuous_generation_validates_each_request_length
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:409
Function
test_continuous_graph_capture_preserves_attention_implementation
(mock_get_accelerator)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:286
Function
test_continuous_graph_capture_uses_fixed_capacity_buffers
(mock_get_accelerator)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:242
Function
test_continuous_graph_generation_refills_a_fixed_slot_on_cuda
()
tests/unit/v1/test_hybrid_engine_rollout_v1.py:289
Function
test_continuous_graph_generation_rejects_legacy_cache_model
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:495
Function
test_continuous_graph_keeps_cache_position_alive_for_replay
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:321
Function
test_continuous_graph_matches_pretrained_model_when_enabled
()
tests/unit/v1/test_hybrid_engine_rollout_v1.py:428
Function
test_continuous_graph_rejects_flash_attention
(graph_capture_accelerator)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:160
Function
test_continuous_graph_rejects_incompatible_fixed_layout_options
(cfg, message, graph_capture_accelerator)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:137
Function
test_continuous_graph_state_reuses_matching_capture_and_rebuilds_for_weight_updates
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:350
Function
test_continuous_prefill_applies_repetition_penalty
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:944
Function
test_continuous_prefill_requests_last_logits_only
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:563
Function
test_continuous_rollout_matches_native_llama_generation_on_accelerator
(attn_implementation, left_padding,
tests/unit/v1/test_hybrid_engine_rollout_v1.py:367
Function
test_continuous_sampling_applies_repetition_penalty_before_warpers
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:903
Function
test_controller_aborts_without_running_tests_when_sandbox_never_starts
()
ci/test_torch_latest.py:651
Function
test_controller_creates_one_sandbox_without_forwarding_secrets_and_cleans_up
()
ci/test_torch_latest.py:609
Function
test_controller_inputs_and_push_manual_fallback
()
ci/test_torch_latest.py:512
Function
test_controller_propagates_command_and_cleanup_failures
()
ci/test_torch_latest.py:707
Function
test_controller_reports_modal_no_progress_as_terminal_timeout
()
ci/test_torch_latest.py:693
Function
test_controller_reports_sandbox_lifetime_exhaustion_as_timeout
()
ci/test_torch_latest.py:673
Function
test_controller_treats_empty_subset_selection_as_success
()
ci/test_torch_latest.py:744
Function
test_conv_transpose_flops
A transposed convolution scatters every input element across the kernel and adds the bias once per output element, so the two counts follow differ
tests/unit/profiling/flops_profiler/test_flops_profiler.py:59
Function
test_conv_transpose_flops_with_output_size
`output_size=` makes torch compute the per-dimension output_padding itself, and it hands it over as a list rather than a tuple.
tests/unit/profiling/flops_profiler/test_flops_profiler.py:89
Function
test_conversion_helper_reads_builder_nested_view
()
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:247
Function
test_conversion_refuses_a_destination_collision_of_any_stride
()
tests/unit/checkpoint/test_affine_shard_map.py:569
Function
test_conversion_refuses_a_map_that_does_not_cover_the_parameter
(logical_shape, source_offsets, match)
tests/unit/checkpoint/test_affine_shard_map.py:638
Method
test_convert_zero_checkpoint_to_fp32_state_dict
(self, tmp_path)
tests/unit/checkpoint/test_convert_checkpoint.py:142
Function
test_core_binding_arguments
()
tests/unit/launcher/test_ds_arguments.py:104
Function
test_core_deepscale_arguments
()
tests/unit/launcher/test_ds_arguments.py:86
Function
test_core_runtime_file_runs_all
()
ci/test_tests_fetcher.py:150
Method
test_correctness
(self, batch_size, model_name)
tests/unit/hybrid_engine/test_he_llama.py:66
Method
test_correctness
(self, batch_size, model_name)
tests/unit/hybrid_engine/test_he_all.py:64
Function
test_count_used_parameters_enables_grad_for_grad_acc_lookup
count_used_parameters_in_backward should enable grad for grad-acc lookup.
tests/unit/runtime/test_runtime_utils.py:365
Function
test_cpu_accelerator_exports_cgroup_memory_switch
The launcher forwards env vars listed by export_envs() to every node.
tests/unit/v1/accelerator/test_accelerator.py:512
Function
test_cpu_accumulator_waits_before_pageable_source_is_read
(first_boundary)
tests/unit/v1/zero/test_zero2_gradient_safety.py:380
Method
test_cpu_adagrad_gpu_error
(self)
tests/unit/ops/adagrad/test_cpu_adagrad.py:121
Method
test_cpu_adagrad_opt
(self, model_size=64)
tests/unit/ops/adagrad/test_cpu_adagrad.py:55
Method
test_cpu_adagrad_opt_sparse_embedding
(self, model_size=32, vocabulary_size=64, dim=16)
tests/unit/ops/adagrad/test_cpu_adagrad.py:76
Function
test_cpu_adagrad_weight_decay
(model_size, weight_decay)
tests/unit/ops/adagrad/test_cpu_adagrad.py:32
Method
test_cpu_adam_gpu_error
(self)
tests/unit/ops/adam/test_cpu_adam.py:372
Function
test_cpu_adam_rejects_amsgrad
()
tests/unit/ops/adam/test_cpu_adam.py:117
Function
test_cpu_adam_strict_state_updates
(model_size, adamw_mode, weight_decay, bias_correction)
tests/unit/ops/adam/test_cpu_adam.py:82
Method
test_cpu_autocast_backward_matches_functional_linear
Backward must re-enter the autocast of the operands' device, which is not always the accelerator.
tests/unit/v1/zero/test_zero_functorch_linear.py:199
Function
test_cpu_buffer_reuse_waits_for_offload_copies
(operation)
tests/unit/v1/zero/test_zero2_gradient_safety.py:568
Function
test_cpu_device_registration_is_noop
()
tests/unit/v1/pin_memory/test_pin_memory.py:182
Method
test_cpu_flatten_fallback_preserves_layout_and_trains
(self, monkeypatch, zero_stage)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:209
Function
test_cpu_gloo_crosslane_tp2_ep4_zero0_router_gate_and_layernorm_grad_parity
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:482
Function
test_cpu_gloo_crosslane_tp2_ep4_zero2_router_gate_and_layernorm_grad_parity
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:487
Function
test_cpu_gloo_crosslane_tp4_ep4_dp1_zero0_router_gate_and_layernorm_grad_parity
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:491
Function
test_cpu_gloo_expert_weight_parity_crosslane_tp4_ep4_dp1
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:642
Function
test_cpu_gloo_expert_weight_parity_crosslane_tp4_ep4_dp1_zero2
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:652
Function
test_cpu_gloo_expert_weight_parity_crosslane_tp4_ep4_edp2
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:647
Function
test_cpu_gloo_expert_weight_parity_mvp_tp2_ep4
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:637
Function
test_cpu_gloo_folded_checkpoint_edp_replica_resume
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_checkpoint.py:290
Function
test_cpu_gloo_folded_runtime_smoke
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_runtime.py:194
Function
test_cpu_gloo_folded_zero0_router_gate_and_layernorm_grad_parity
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:397
Function
test_cpu_gloo_folded_zero2_optimizer_state_smoke
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:706
Function
test_cpu_gloo_folded_zero2_router_gate_and_layernorm_grad_parity
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:401
Method
test_cpu_lion_gpu_error
(self)
tests/unit/ops/lion/test_cpu_lion.py:128
Function
test_cpu_lion_matches_reference
(model_size, weight_decay)
tests/unit/ops/lion/test_cpu_lion.py:56
Function
test_cpu_memory_cgroup_default_and_override
RESPECT_CGROUP_MEMORY_BY_DEFAULT is the one line that flips the behavior; the env var overrides it.
tests/unit/v1/accelerator/test_accelerator.py:357
Function
test_cpu_memory_checks_headroom_of_every_limited_ancestor
A parent limit also counts its other children: an empty 1 GiB child under a 2 GiB parent whose siblings use 1.75 GiB can still take only 0.25 GiB.
tests/unit/v1/accelerator/test_accelerator.py:371
Function
test_cpu_memory_picks_the_cgroup_mount_that_contains_the_process
An unrelated delegated cgroup2 subtree mounted before the main mount must not hide the process's limit.
tests/unit/v1/accelerator/test_accelerator.py:405
Function
test_cpu_memory_reads_a_real_cgroup_v1_docker_layout
The other v1 tests use files written by hand. These come from a real host: /proc/self/cgroup has the host path of the container plus a "0::" line
tests/unit/v1/accelerator/test_accelerator.py:485
Function
test_cpu_memory_resolves_cgroup_mount_from_mountinfo
The mount can expose a subtree of the hierarchy, and cgroup v1 can co-mount controllers as "cpu,memory".
tests/unit/v1/accelerator/test_accelerator.py:390
Function
test_cpu_memory_smallest_limit_and_v1_sentinel
(cpu_cgroup)
tests/unit/v1/accelerator/test_accelerator.py:344
Function
test_cpu_memory_subtree_alias_does_not_hide_a_parent_limit
The full hierarchy and a bind-mounted subtree both contain the process. The full view must win, because the parent limit still applies. Reported b
tests/unit/v1/accelerator/test_accelerator.py:422
Function
test_cpu_memory_uses_limit_on_parent_cgroup
Kubernetes sets the pod limit on the parent cgroup; the container's own memory.max is 'max'.
tests/unit/v1/accelerator/test_accelerator.py:328
Function
test_cpu_native_pin_with_register_env_on
CPU accelerator has no register hook; native pin still works with default-on.
tests/unit/v1/pin_memory/test_pin_memory.py:351
Method
test_cpu_offload_bit_exact
(self, zero_stage, offload_optimizer, offload_param)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:162
Method
test_cpu_offload_matches_baseline
(self)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing_non_reentrant.py:58
Method
test_cpu_offload_matches_baseline
(self)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:186
← previous
next →
11,901–12,000 of 14,579, ranked by callers