MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

Functiontest_construction_succeeds_on_supported_torch
()
tests/unit/accelerator/test_mps_accelerator.py:16
Functiontest_constructor_defaults_without_cfg
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:105
Functiontest_constructor_stores_config
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:86
Methodtest_consumer_stream_can_finish_before_storage_reuse
(self)
tests/torch_compile/test_deepcompile_z3_release.py:105
Methodtest_context_activation_is_idempotent_and_persistent
(self)
tests/unit/runtime/zero/test_zero_linear_direct_init.py:117
Functiontest_context_exception_restores_fallback_and_user_ownership_depth
(monkeypatch)
tests/unit/v1/compile/test_z3_eager_fallback.py:465
Methodtest_context_tokens_replaced_with_visual
IMG_CONTEXT positions must carry visual embeddings after splice.
deepspeed/sequence/test_autosp.py:519
Functiontest_contiguify_roundtrip
Validate that contiguify round trips and reconstructions are correct.
tests/unit/inference/v2/model_implementations/parameters/test_contiguify.py:52
Methodtest_contiguous_gradients
(self, contiguous_gradients)
tests/unit/v1/zero/test_zero.py:980
Functiontest_contiguous_offload_buffer_pin_flag
(use_pin_memory)
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:331
Functiontest_continuation
Test continued generation/prompt processing.
tests/unit/inference/v2/modules/test_blocked_attn.py:154
Functiontest_continuation
Test continued generation/prompt processing.
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_flash.py:156
Functiontest_continuous_batching_details_are_not_public_exports
()
tests/unit/runtime/rollout/test_rollout_interface.py:70
Functiontest_continuous_cache_span_does_not_sum_independent_requests
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:402
Functiontest_continuous_generation_applies_repetition_penalty
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:867
Functiontest_continuous_generation_applies_repetition_penalty_in_float32
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:923
Functiontest_continuous_generation_covers_modern_static_cache_path
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:517
Functiontest_continuous_generation_falls_back_to_eager_without_graph_capture_opt_in
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:173
Functiontest_continuous_generation_profile_on_accelerator
()
tests/unit/v1/test_hybrid_engine_rollout_v1.py:238
Functiontest_continuous_generation_refills_padded_prompts_after_trim
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:808
Functiontest_continuous_generation_rejects_legacy_cache_model
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:475
Functiontest_continuous_generation_rejects_unsupported_inputs
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:115
Functiontest_continuous_generation_reports_cache_capacity_remedies
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:428
Functiontest_continuous_generation_routes_graph_capture_to_fixed_capacity_path
(graph_capture_accelerator)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:220
Functiontest_continuous_generation_samples_when_temperature_is_set
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1010
Functiontest_continuous_generation_treats_none_repetition_penalty_as_one
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:886
Functiontest_continuous_generation_trims_cache_after_staggered_eos
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:749
Functiontest_continuous_generation_uses_local_kv_shape
(local_heads, use_graph, monkeypatch)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:104
Functiontest_continuous_generation_validates_each_request_length
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:409
Functiontest_continuous_graph_capture_preserves_attention_implementation
(mock_get_accelerator)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:286
Functiontest_continuous_graph_capture_uses_fixed_capacity_buffers
(mock_get_accelerator)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:242
Functiontest_continuous_graph_generation_refills_a_fixed_slot_on_cuda
()
tests/unit/v1/test_hybrid_engine_rollout_v1.py:289
Functiontest_continuous_graph_generation_rejects_legacy_cache_model
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:495
Functiontest_continuous_graph_keeps_cache_position_alive_for_replay
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:321
Functiontest_continuous_graph_matches_pretrained_model_when_enabled
()
tests/unit/v1/test_hybrid_engine_rollout_v1.py:428
Functiontest_continuous_graph_rejects_flash_attention
(graph_capture_accelerator)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:160
Functiontest_continuous_graph_rejects_incompatible_fixed_layout_options
(cfg, message, graph_capture_accelerator)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:137
Functiontest_continuous_graph_state_reuses_matching_capture_and_rebuilds_for_weight_updates
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:350
Functiontest_continuous_prefill_applies_repetition_penalty
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:944
Functiontest_continuous_prefill_requests_last_logits_only
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:563
Functiontest_continuous_rollout_matches_native_llama_generation_on_accelerator
(attn_implementation, left_padding,
tests/unit/v1/test_hybrid_engine_rollout_v1.py:367
Functiontest_continuous_sampling_applies_repetition_penalty_before_warpers
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:903
Functiontest_controller_aborts_without_running_tests_when_sandbox_never_starts
()
ci/test_torch_latest.py:651
Functiontest_controller_creates_one_sandbox_without_forwarding_secrets_and_cleans_up
()
ci/test_torch_latest.py:609
Functiontest_controller_inputs_and_push_manual_fallback
()
ci/test_torch_latest.py:512
Functiontest_controller_propagates_command_and_cleanup_failures
()
ci/test_torch_latest.py:707
Functiontest_controller_reports_modal_no_progress_as_terminal_timeout
()
ci/test_torch_latest.py:693
Functiontest_controller_reports_sandbox_lifetime_exhaustion_as_timeout
()
ci/test_torch_latest.py:673
Functiontest_controller_treats_empty_subset_selection_as_success
()
ci/test_torch_latest.py:744
Functiontest_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
Functiontest_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
Functiontest_conversion_helper_reads_builder_nested_view
()
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:247
Functiontest_conversion_refuses_a_destination_collision_of_any_stride
()
tests/unit/checkpoint/test_affine_shard_map.py:569
Functiontest_conversion_refuses_a_map_that_does_not_cover_the_parameter
(logical_shape, source_offsets, match)
tests/unit/checkpoint/test_affine_shard_map.py:638
Methodtest_convert_zero_checkpoint_to_fp32_state_dict
(self, tmp_path)
tests/unit/checkpoint/test_convert_checkpoint.py:142
Functiontest_core_binding_arguments
()
tests/unit/launcher/test_ds_arguments.py:104
Functiontest_core_deepscale_arguments
()
tests/unit/launcher/test_ds_arguments.py:86
Functiontest_core_runtime_file_runs_all
()
ci/test_tests_fetcher.py:150
Methodtest_correctness
(self, batch_size, model_name)
tests/unit/hybrid_engine/test_he_llama.py:66
Methodtest_correctness
(self, batch_size, model_name)
tests/unit/hybrid_engine/test_he_all.py:64
Functiontest_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
Functiontest_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
Functiontest_cpu_accumulator_waits_before_pageable_source_is_read
(first_boundary)
tests/unit/v1/zero/test_zero2_gradient_safety.py:380
Methodtest_cpu_adagrad_gpu_error
(self)
tests/unit/ops/adagrad/test_cpu_adagrad.py:121
Methodtest_cpu_adagrad_opt
(self, model_size=64)
tests/unit/ops/adagrad/test_cpu_adagrad.py:55
Methodtest_cpu_adagrad_opt_sparse_embedding
(self, model_size=32, vocabulary_size=64, dim=16)
tests/unit/ops/adagrad/test_cpu_adagrad.py:76
Functiontest_cpu_adagrad_weight_decay
(model_size, weight_decay)
tests/unit/ops/adagrad/test_cpu_adagrad.py:32
Methodtest_cpu_adam_gpu_error
(self)
tests/unit/ops/adam/test_cpu_adam.py:372
Functiontest_cpu_adam_rejects_amsgrad
()
tests/unit/ops/adam/test_cpu_adam.py:117
Functiontest_cpu_adam_strict_state_updates
(model_size, adamw_mode, weight_decay, bias_correction)
tests/unit/ops/adam/test_cpu_adam.py:82
Methodtest_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
Functiontest_cpu_buffer_reuse_waits_for_offload_copies
(operation)
tests/unit/v1/zero/test_zero2_gradient_safety.py:568
Functiontest_cpu_device_registration_is_noop
()
tests/unit/v1/pin_memory/test_pin_memory.py:182
Methodtest_cpu_flatten_fallback_preserves_layout_and_trains
(self, monkeypatch, zero_stage)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:209
Functiontest_cpu_gloo_crosslane_tp2_ep4_zero0_router_gate_and_layernorm_grad_parity
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:482
Functiontest_cpu_gloo_crosslane_tp2_ep4_zero2_router_gate_and_layernorm_grad_parity
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:487
Functiontest_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
Functiontest_cpu_gloo_expert_weight_parity_crosslane_tp4_ep4_dp1
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:642
Functiontest_cpu_gloo_expert_weight_parity_crosslane_tp4_ep4_dp1_zero2
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:652
Functiontest_cpu_gloo_expert_weight_parity_crosslane_tp4_ep4_edp2
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:647
Functiontest_cpu_gloo_expert_weight_parity_mvp_tp2_ep4
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:637
Functiontest_cpu_gloo_folded_checkpoint_edp_replica_resume
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_checkpoint.py:290
Functiontest_cpu_gloo_folded_runtime_smoke
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_runtime.py:194
Functiontest_cpu_gloo_folded_zero0_router_gate_and_layernorm_grad_parity
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:397
Functiontest_cpu_gloo_folded_zero2_optimizer_state_smoke
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:706
Functiontest_cpu_gloo_folded_zero2_router_gate_and_layernorm_grad_parity
(tmpdir)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:401
Methodtest_cpu_lion_gpu_error
(self)
tests/unit/ops/lion/test_cpu_lion.py:128
Functiontest_cpu_lion_matches_reference
(model_size, weight_decay)
tests/unit/ops/lion/test_cpu_lion.py:56
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_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
Functiontest_cpu_memory_smallest_limit_and_v1_sentinel
(cpu_cgroup)
tests/unit/v1/accelerator/test_accelerator.py:344
Functiontest_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
Functiontest_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
Functiontest_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
Methodtest_cpu_offload_bit_exact
(self, zero_stage, offload_optimizer, offload_param)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:162
Methodtest_cpu_offload_matches_baseline
(self)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing_non_reentrant.py:58
Methodtest_cpu_offload_matches_baseline
(self)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:186
← previousnext →11,901–12,000 of 14,579, ranked by callers