MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Functiontest_continuous_generation_uses_local_kv_shape
(local_heads, use_graph, monkeypatch)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:150
Functiontest_continuous_generation_validates_each_request_length
(adaptive_prefill, length, max_positions)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:458
Functiontest_continuous_graph_capture_preserves_attention_implementation
(mock_get_accelerator)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:293
Functiontest_continuous_graph_capture_uses_fixed_capacity_buffers
(mock_get_accelerator)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:249
Functiontest_continuous_graph_generation_refills_a_fixed_slot_on_cuda
()
tests/unit/v1/test_hybrid_engine_rollout_v1.py:337
Functiontest_continuous_graph_generation_rejects_legacy_cache_model
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:546
Functiontest_continuous_graph_keeps_cache_position_alive_for_replay
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:328
Functiontest_continuous_graph_matches_pretrained_model_when_enabled
()
tests/unit/v1/test_hybrid_engine_rollout_v1.py:535
Functiontest_continuous_graph_recaptures_only_when_tensor_layout_changes
()
tests/unit/v1/test_hybrid_engine_rollout_v1.py:782
Functiontest_continuous_graph_rejects_flash_attention
(graph_capture_accelerator)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:167
Functiontest_continuous_graph_rejects_incompatible_fixed_layout_options
(cfg, message, graph_capture_accelerator)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:144
Functiontest_continuous_graph_state_survives_in_place_weight_updates
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:357
Functiontest_continuous_opt_matches_eager_with_static_cache
(adaptive_prefill)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2110
Functiontest_continuous_prefill_applies_repetition_penalty
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:996
Functiontest_continuous_prefill_requests_last_logits_only
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:614
Functiontest_continuous_repetition_penalty_matches_hf_in_bfloat16
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1366
Functiontest_continuous_rollout_matches_native_llama_generation_on_accelerator
(attn_implementation, left_padding,
tests/unit/v1/test_hybrid_engine_rollout_v1.py:415
Functiontest_continuous_rows_end_on_a_generation_config_eos_id
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1155
Functiontest_continuous_sampling_applies_repetition_penalty_before_warpers
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:955
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:572
Functiontest_conversion_refuses_a_map_that_does_not_cover_the_parameter
(logical_shape, source_offsets, match)
tests/unit/checkpoint/test_affine_shard_map.py:686
Methodtest_convert_zero_checkpoint_to_fp32_state_dict
(self, tmp_path)
tests/unit/checkpoint/test_convert_checkpoint.py:142
Functiontest_convolution_overflow_preserves_shape_and_momentum
The guard has to return the gradient's own shape so the step can be discarded.
tests/unit/v1/ops/muon/test_muon_conv.py:107
Functiontest_convolution_scale_comes_from_the_flattened_matrix
The aspect-ratio scale is read off [out, in*kh*kw], not off the kernel. For this weight the two readings are sqrt(max(1, 32/12)) = 1.633 and
tests/unit/v1/ops/muon/test_muon_conv.py:61
Functiontest_convolution_update_matches_the_flattened_update
A rank-4 weight and its own flattened copy have to receive the same update. Both go through `update.view(len(update), -1)`, so the iteration sees
tests/unit/v1/ops/muon/test_muon_conv.py:38
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_counts_physical_cores
(monkeypatch, cores)
tests/unit/ops/adam/test_cpu_adam_threads.py:61
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:567
Methodtest_cpu_adagrad_gpu_error
(self)
tests/unit/ops/adagrad/test_cpu_adagrad.py:140
Methodtest_cpu_adagrad_non_contiguous_param
(self)
tests/unit/ops/adagrad/test_cpu_adagrad.py:76
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:95
Functiontest_cpu_adagrad_weight_decay
(model_size, weight_decay)
tests/unit/ops/adagrad/test_cpu_adagrad.py:32
Functiontest_cpu_adam_bf16_copy_matches_step
step(bf16_copy=...) updates in pieces and writes a bfloat16 copy of each updated piece in the same kernel pass: the parameters and moments must be
tests/unit/ops/adam/test_cpu_adam.py:153
Functiontest_cpu_adam_bf16_copy_runs_step_hooks
step(bf16_copy=...) is still torch's wrapped Optimizer.step: step hooks run, and a learning-rate scheduler on the optimizer sees the step (no "lr_
tests/unit/ops/adam/test_cpu_adam.py:198
Methodtest_cpu_adam_gpu_error
(self)
tests/unit/ops/adam/test_cpu_adam.py:502
Functiontest_cpu_adam_grad_scale_matches_scaling_in_place
step(grad_scale=s) multiplies each gradient by s as the kernel loads it: the parameters and moments must be bitwise equal to grad.mul_(s) followed
tests/unit/ops/adam/test_cpu_adam.py:121
Functiontest_cpu_adam_rejects_amsgrad
()
tests/unit/ops/adam/test_cpu_adam.py:247
Functiontest_cpu_adam_strict_state_updates
(model_size, adamw_mode, weight_decay, bias_correction)
tests/unit/ops/adam/test_cpu_adam.py:83
Functiontest_cpu_adam_updates_non_contiguous_param
()
tests/unit/ops/adam/test_cpu_adam.py:223
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:755
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_lion_updates_non_contiguous_param
()
tests/unit/ops/lion/test_cpu_lion.py:142
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
Functiontest_cpu_offload_orders_successive_writes_across_streams
(monkeypatch)
tests/unit/v1/zero/test_zero2_gradient_safety.py:531
Methodtest_cpu_offload_skips_non_float_input
(self)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:189
Functiontest_cpu_optimizer_load_state_dict_keeps_state_dtype
Resuming from a state_dict must keep the states in the dtype step() uses for them, so that the resumed optimizer takes the same step as the one th
tests/unit/ops/adam/test_cpu_adam.py:264
Functiontest_cpu_placement_options_are_validated
()
tests/unit/v1/zero/test_reflow.py:76
Functiontest_cpu_split_keeps_a_worker_when_main_reservation_is_too_large
(count)
tests/unit/v1/zero/test_reflow.py:157
Functiontest_cpu_split_respects_rank_and_numa_boundaries
(main_type, worker_type)
tests/unit/v1/zero/test_reflow.py:121
Functiontest_cpu_staging_uses_requested_group
(monkeypatch, default_backend, subgroup_backend, group_argument, exp
tests/unit/comm/test_dist.py:185
Methodtest_create_graph_is_rejected
(self, gate_up_impl)
tests/unit/v1/moe/test_autoep_expert_activation.py:724
Functiontest_cross_lane_ep_groups_accepted
(world_size, tp_size, ep_size, expected_dp, expected_edp)
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:205
Functiontest_cross_lane_expected_folding_tables
()
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:216
Methodtest_csv_monitor
(self)
tests/unit/monitor/test_monitor.py:81
Functiontest_cuda_accelerator_falls_back_to_torch_nvtx_without_nvtx_package
(monkeypatch, capsys)
tests/unit/utils/test_nvtx.py:115
Functiontest_cuda_accelerator_uses_nvtx_domain_when_available
(monkeypatch, capsys)
tests/unit/utils/test_nvtx.py:72
← previousnext →12,501–12,600 of 15,468, ranked by callers