MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 2 callersFunctionadd_z1_reduce_fw
(gm: GraphModule, graph_id: int, profiling_results, param_manager, use_z2=False)
deepspeed/compile/passes/zero_1_and_2_compile.py:23
↓ 2 callersFunctionalign_dense_tensors
(tensor_list, alignment)
deepspeed/runtime/utils.py:1069
↓ 2 callersMethodaligned_piece_numel
The piece size step(bf16_copy=...) uses for ``piece_numel``: rounded down to a multiple of the kernel's widest vector block (at least one bloc
deepspeed/ops/adam/cpu_adam.py:236
↓ 2 callersMethodall_gather_scalar
(self, value, dp_group)
deepspeed/runtime/engine.py:4212
↓ 2 callersFunctionall_reduce_outer_loop
csrc/cpu/comm/shm.cpp:680
↓ 2 callersFunctionallclose
(x, y)
tests/unit/ops/transformer/inference/test_softmax.py:15
↓ 2 callersMethodallgatherParam
csrc/compile/z3.cpp:119
↓ 2 callersMethodallocate_blocks
(self, n_blocks: int, cache_group: int = 0)
deepspeed/inference/v2/ragged/ragged_manager.py:203
↓ 2 callersMethodallocate_workspace
(self, size)
deepspeed/model_implementations/transformers/ds_transformer.py:90
↓ 2 callersMethodallreduce_and_copy
(self, small_bucket, dp_group, dp_world_size=None)
deepspeed/runtime/engine.py:4032
↓ 2 callersMethodallreduce_no_retain
(self, bucket, dp_group, numel_per_bucket=500000000, dp_world_size=None)
deepspeed/runtime/engine.py:4037
↓ 2 callersMethodallreduce_no_retain
( self, bucket, communication_data_type: torch.dtype, numel_per_bucket=5000000
deepspeed/runtime/zero/stage_1_and_2.py:2536
↓ 2 callersMethodapply
Advance residency through one node without treating reduce_grad as a release.
deepspeed/compile/list_schedule.py:357
↓ 2 callersFunctionapply_autotp
(model, tp_size, partition_config)
tests/unit/v1/autotp/test_autotp_multiple_models.py:36
↓ 2 callersFunctionapply_autotp
Apply the AutoTP transformation passes to the graph.
deepspeed/compile/passes/tp_compile.py:263
↓ 2 callersFunctionapply_config_overrides
Apply explicit AutoEP config overrides to a preset. Return the original preset object when there are no overrides. When overrides are present
deepspeed/module_inject/auto_ep_presets/registry.py:121
↓ 2 callersFunctionapply_num_nodes_and_gpus
Trim resolved resources to the top num_nodes hosts and num_gpus slots per host. Split out of main() so the launcher backends can be exercised aga
deepspeed/launcher/runner.py:385
↓ 2 callersFunctionapply_rotary_pos_emb_backward
(grad_output, freqs_cos, freqs_sin)
deepspeed/sequence/fpdt_layer.py:33
↓ 2 callersFunctionapply_scores_before_experts_if_enabled
Pre-multiply token representations by router scores before expert compute.
deepspeed/module_inject/auto_ep_layer.py:165
↓ 2 callersMethodapply_tensor_parallelism
(self, mp_replace)
deepspeed/module_inject/containers/base.py:225
↓ 2 callersFunctionapply_to_tensors_only
Apply `function` to every Tensor in `value`. Args: function: The function class to apply. value (Any): Target object to appl
deepspeed/runtime/zero/utils.py:165
↓ 2 callersFunctionassert_all_partitioned
For ZeRO-3, assert every non-persistent param is released after backward. The recompute bug left frozen params gathered after backward, so the re
tests/unit/v1/zero/test_zero_user_backward.py:232
↓ 2 callersFunctionassert_causal_lm_outputs_close
(native_model, autoep_model, *,
tests/unit/v1/moe/autoep_test_utils.py:320
↓ 2 callersFunctionassert_close_for_preferred_dtype
(actual, expected)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:196
↓ 2 callersFunctionassert_device_binding
A device is bound for multi-rank jobs, and not for a single-rank one (#8248).
tests/unit/comm/test_dist.py:551
↓ 2 callersFunctionassert_group_matches_spec
Ensure cached ``ep_size_N`` rank lists match the requested folding spec.
deepspeed/module_inject/auto_ep_folding.py:506
↓ 2 callersFunctionassert_persistent_resident
For ZeRO-3, assert every persistent param stays gathered (AVAILABLE) after backward. Persistent frozen params are added to a recompute owner duri
tests/unit/v1/zero/test_zero_user_backward.py:249
↓ 2 callersFunctionassert_row_weighting_supported
Reject unsupported per-row weighting configurations before dispatch.
deepspeed/ops/triton_ops/autoep_fused_token_ops.py:348
↓ 2 callersMethodassert_same
(self, actual, expected)
tests/unit/module_inject/test_auto_ep_comm.py:1108
↓ 2 callersFunctionassert_same_training
(expected, actual)
tests/unit/v1/zero/test_reflow.py:383
↓ 2 callersFunctionassert_supported
Reject unsupported inputs before the fused path runs.
deepspeed/ops/triton_ops/fused_rms_norm.py:224
↓ 2 callersFunctionassert_supported
Reject inputs the kernels do not reproduce eager for, before the fused path runs.
deepspeed/ops/triton_ops/fused_rotary_pos_emb.py:125
↓ 2 callersFunctionassert_tp_payload_consistent
(payload: RoutedAssignmentPayload, *, tp_group, tp_size: int)
deepspeed/moe/ep_tp_dispatch.py:210
↓ 2 callersMethodasync_step
Queue parameter for optimization in the worker process. hyperparams (lr, betas, eps, weight_decay) replace those of the param group
deepspeed/runtime/superoffload/superoffload_utils.py:280
↓ 2 callersMethodattention
(q, k, v)
tests/unit/v1/sequence_parallelism/test_ulysses.py:882
↓ 2 callersMethodattention
(self, client_module)
deepspeed/module_inject/containers/vae.py:41
↓ 2 callersMethodattention_quantization
(self)
deepspeed/module_inject/containers/base.py:217
↓ 2 callersFunctionautoep_folding_gradient_reduction_strategy
Classify one folded TP/SP gradient as ``sum``, ``average``, or ``skip``. TP means Tensor Parallel and SP means Sequence Parallel. The parallel mo
deepspeed/module_inject/auto_ep_folding.py:351
↓ 2 callersFunctionautotp_storage_affine_maps
Describe what every process stores of each parameter of an AutoTP ``model`` under ZeRO. Returns ``{name: map}`` over ``model.named_parameters()``
deepspeed/checkpoint/zero_affine.py:261
↓ 2 callersFunctionavailable_preset_names
Return built-in AutoEP preset names in registry order.
deepspeed/module_inject/auto_ep_presets/registry.py:65
↓ 2 callersMethodavailable_swap_in_buffers
(self)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:80
↓ 2 callersFunctionawait_sandbox_start
Block until the Sandbox container is running, and return how long that took. ``Sandbox.create`` returns before the container exists, so the wait
ci/torch_latest.py:1623
↓ 2 callersMethodbackward
(ctx, grad_output)
tests/unit/runtime/zero/test_zero_params_to_release_cache.py:59
↓ 2 callersMethodbackward_epilogue
(self, **kwargs)
deepspeed/runtime/base_optimizer.py:462
↓ 2 callersFunctionbackward_threads
Threads per block of the backward kernel for ``heads_per_kv_group`` query heads per key-value group. With a 64-head block, 8 warps keep many more
deepspeed/models/glm_moe_dsa/kernels/sparse_mla_bwd.py:23
↓ 2 callersFunctionbasic_folder_validation
(dir)
deepspeed/checkpoint/reshape_utils.py:13
↓ 2 callersMethodbf16_accumulate
Accumulate half-precision gradients using AVX: ``dst += src``. Uses AVX512 for BF16 and AVX256/512 for FP16. Both tensors must be contiguous
deepspeed/runtime/reflow/reflow_cpu_adam.py:112
↓ 2 callersMethodbf16_optimizer_states
(self)
deepspeed/runtime/engine.py:1799
↓ 2 callersFunctionbias_add_activation
(C, bias=None, activation="")
deepspeed/ops/transformer/inference/triton/matmul_ext.py:70
↓ 2 callersFunctionbind_reflow_ready_work
csrc/includes/reflow_ready.h:187
↓ 2 callersFunctionblock
(layer, x)
tests/unit/v1/moe/test_autoep_deepep_parity.py:166
↓ 2 callersMethodbuffered_allreduce_fallback
(self, grads=None, elements_per_buffer=500000000)
deepspeed/runtime/engine.py:4130
↓ 2 callersFunctionbuild_autotp_config
(autotp_size)
tests/unit/v1/autotp/test_tp_plan_real_models.py:387
↓ 2 callersFunctionbuild_engine
(tp_size, use_compile_pass, gather_output_head=False)
tests/unit/compile/test_tp_compile.py:121
↓ 2 callersFunctionbuild_git_env
(source: Mapping[str, str] | None = None)
ci/torch_latest.py:387
↓ 2 callersFunctionbuild_inputs
(n_tokens: int, n_experts: int, n_top_k: int, do_padding: bool)
tests/unit/inference/v2/kernels/ragged_ops/test_moe_gather.py:40
↓ 2 callersFunctionbuild_qwen3_config
(num_key_value_heads)
tests/unit/v1/autotp/test_tp_plan_real_models.py:371
↓ 2 callersFunctionbuild_remote_commands
(inputs: ControllerInputs)
ci/torch_latest.py:629
↓ 2 callersFunctionbuild_rollout
Factory: construct the rollout engine specified by ``rollout_cfg.engine``. Args: rollout_cfg: :class:`RolloutConfig` (or any object with
deepspeed/runtime/rollout/__init__.py:38
↓ 2 callersFunctionbuild_sandbox_env
()
ci/torch_latest.py:564
↓ 2 callersFunctionbuild_sandbox_kwargs
(image: Any, *, timeout_seconds: int = SANDBOX_TIMEOUT_SECONDS)
ci/torch_latest.py:603
↓ 2 callersFunctionbuild_with_cuda_versions
(build_path, installed_cuda, torch_cuda)
tests/unit/ops/test_op_builder.py:256
↓ 2 callersFunctioncalc_bw_log
(comm_op, size, duration)
deepspeed/utils/comms_logging.py:34
↓ 2 callersFunctioncall_fn
()
tests/unit/v1/compile/test_graph_profile.py:98
↓ 2 callersMethodcan_reshape
(self, target_3d_desc)
deepspeed/checkpoint/reshape_3d_utils.py:59
↓ 2 callersFunctioncanonical_name
Generates a name from the acronyms of the tuning keys in the config dict. TRAIN_MICRO_BATCH_SIZE_PER_GPU is always included in the tuning keys. A
deepspeed/autotuning/utils.py:317
↓ 2 callersFunctionceil_div
Return ceil(a / b).
deepspeed/inference/v2/inference_utils.py:101
↓ 2 callersMethodcheck
(self, param_groups=None)
deepspeed/runtime/utils.py:279
↓ 2 callersFunctioncheck_equal
(first, second, atol=1e-2, verbose=False)
tests/unit/ops/adagrad/test_cpu_adagrad.py:20
↓ 2 callersFunctioncheck_equal
(first, second, atol=1e-2, verbose=False)
tests/unit/ops/lion/test_cpu_lion.py:20
↓ 2 callersFunctioncheck_equal
(first, second, atol=1e-2, verbose=False)
tests/unit/ops/adam/test_cpu_adam.py:33
↓ 2 callersMethodcheck_index
(self, i)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:168
↓ 2 callersFunctioncheck_internal_apis_for_count_used_parameters
Ensure the Torch internal APIs needed by `count_used_parameters_in_backward` exist.
deepspeed/runtime/utils.py:1514
↓ 2 callersMethodcheck_overflow
(self, partition_gradients=True)
deepspeed/runtime/zero/stage3.py:3699
↓ 2 callersMethodcheck_parity
(self, base_file, test_file, r_tol)
tests/model/Megatron_GPT2/run_func_test.py:536
↓ 2 callersFunctionclean_up
(exp: dict, reservations)
deepspeed/autotuning/scheduler.py:401
↓ 2 callersMethodcleanup
(self)
ci/test_torch_latest.py:218
↓ 2 callersMethodcleanup
(self)
deepspeed/runtime/checkpoint_engine/checkpoint_engine.py:59
↓ 2 callersMethodclear
< Efficiently disables all accesses guarded by mask
csrc/deepspeed4science/evoformer_attn/iterators/epilogue_predicated_tile_iterator.h:151
↓ 2 callersMethodclear_all_gathered_params
(self)
tests/unit/v1/compile/test_graph_profile.py:62
↓ 2 callersFunctionclear_autoep_folding_gradient_corrected
(param)
deepspeed/module_inject/auto_ep_folding.py:479
↓ 2 callersMethodclear_hp_grads
(self)
deepspeed/runtime/bf16_optimizer.py:610
↓ 2 callersMethodcmd
(self)
deepspeed/nvme/ds_aio_job.py:20
↓ 2 callersFunctioncode
(dtype)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:116
↓ 2 callersFunctioncompare_lr_scheduler_states
(saved_model, loaded_model)
tests/unit/checkpoint/common.py:125
↓ 2 callersFunctioncompare_opt_state_dicts
(state0, state1, expected_mismatch_keys=[])
tests/unit/checkpoint/common.py:104
↓ 2 callersFunctioncompare_optimizer_states
(saved_model, loaded_model, hidden_dim, fp16=True)
tests/unit/checkpoint/common.py:117
↓ 2 callersFunctioncompare_tensors_in_structures
Compare two lists or dictionaries for equality, including any tensors they may contain. Args: inputs1: First input, either a list or
deepspeed/runtime/utils.py:1283
↓ 2 callersMethodcompile
(self, *args, **kwargs)
deepspeed/runtime/pipe/module.py:688
↓ 2 callersMethodcomplete_component
Mark a component as completed. This should be called by the relevant setter of a direct property or a ParametrizedList. This method w
deepspeed/inference/v2/model_implementations/parameter_base.py:152
↓ 2 callersMethodcomplete_grad_norm_calculation_for_cpu_offload
(self, params)
deepspeed/runtime/zero/stage3.py:2215
↓ 2 callersFunctioncompute
(x, scale, model)
tests/unit/ulysses_alst/test_tiled_compute.py:237
↓ 2 callersFunctioncompute_split_plan_from_expert_indices
Compute EP AllToAllV splits for an already partitioned assignment list.
deepspeed/module_inject/auto_ep_layer.py:349
↓ 2 callersMethodconvert_to_zero_parameters
(param_list)
deepspeed/runtime/zero/partition_parameters.py:1671
↓ 2 callersFunctioncoordinate
The grid coordinate a storage offset names, or None when it names nothing.
deepspeed/checkpoint/affine_geometry.py:33
↓ 2 callersMethodcopy_mv_from_cpu
(self, params)
deepspeed/ops/adam/zenflow_torch_adam.py:404
↓ 2 callersMethodcopy_mv_to_cpu
(self, params)
deepspeed/ops/adam/zenflow_torch_adam.py:409
↓ 2 callersFunctioncopy_to_device
Return a copy of tensor on specified device. Works on individual tensors, and tensors contained/nested in lists, tuples, and dicts. Param
deepspeed/runtime/utils.py:152
↓ 2 callersFunctioncost
(count, width)
tests/unit/runtime/rollout/test_continuous_batching.py:89
↓ 2 callersFunctioncpp_standard
()
op_builder/npu/builder.py:22
← previousnext →2,701–2,800 of 15,767, ranked by callers