MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 2 callersMethod_write_latest_tag
(save_dir, tag)
deepspeed/runtime/engine.py:5175
↓ 2 callersMethod_writeback_gradients
Persist a parameter's gradient partitions, whichever way they are stored.
deepspeed/runtime/swap_tensor/optimizer_utils.py:212
↓ 2 callersFunction_zero0_baseline_config
()
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:228
↓ 2 callersFunction_zero2_baseline_config
()
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:214
↓ 2 callersFunction_zero3_bounds
(numel, partition_numel, index)
deepspeed/checkpoint/zero_affine.py:50
↓ 2 callersFunction_zero3_config
(dtype)
tests/unit/runtime/zero/test_zero_late_module_attach.py:34
↓ 2 callersFunction_zero3_local_numel
(param)
deepspeed/checkpoint/zero_affine.py:97
↓ 2 callersFunction_zero3_optimizer_offloaded
(param)
deepspeed/checkpoint/zero_affine.py:161
↓ 2 callersFunction_zero3_parameter_guard_metadata
(param)
deepspeed/compile/patch_fake_tensor.py:49
↓ 2 callersFunction_zero3_rank_from_file
(path)
deepspeed/checkpoint/ds_to_universal.py:620
↓ 2 callersMethod_zero3_work_remaining
Return a rendezvous over the group used for ZeRO-3 parameter gathers.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1694
↓ 2 callersMethod_zero_init_param
(self, param)
deepspeed/runtime/zero/partition_parameters.py:1195
↓ 2 callersFunction_zero_params_with_collective_stubs
(*ds_ids)
tests/unit/v1/compile/test_z3_eager_fallback.py:498
↓ 2 callersFunction_zero_partitioned_param_info
(unpartitioned_numel, world_size)
deepspeed/checkpoint/ds_to_universal.py:607
↓ 2 callersFunction_zero_partitions_cut_at_columns
ZeRO flat partitions of a (rows, cols) parameter, each piece cut at the given column edges. A partition holds the flat range [a, b) of the parame
tests/unit/checkpoint/test_affine_transfer_plan.py:487
↓ 2 callersFunction_zero_partitions_of
(full, sizes)
tests/unit/checkpoint/test_affine_transfer_plan.py:516
↓ 2 callersMethodabsolute_name
(self)
op_builder/gds.py:22
↓ 2 callersMethodabsolute_name
(self)
op_builder/xpu/async_io.py:19
↓ 2 callersMethodaccumulate
csrc/aio/common/deepspeed_aio_types.cpp:47
↓ 2 callersFunctionacquire_aws_instance
( regions: Sequence[AwsRegionConfig], run_identity: str, run_command: Any = _default_command,
ci/torch_latest.py:916
↓ 2 callersFunctionadd_gather_and_release
Insert gather/wait lifetimes and attach releases to ordinary parameter consumers.
deepspeed/compile/passes/zero3_compile.py:335
↓ 2 callersMethodadd_item_numpy
(self, np_array)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:596
↓ 2 callersFunctionadd_pointer_offset
Adds a pointer offset in units of Element
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:289
↓ 2 callersFunctionadd_pre_backward_hook
(hook)
deepspeed/compile/util.py:64
↓ 2 callersFunctionadd_z1_reduce_bw
(gm: GraphModule, graph_id: int, graph_order: List[Tuple[int, bool]], param_manager)
deepspeed/compile/passes/zero_1_and_2_compile.py:36
↓ 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:4168
↓ 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:3988
↓ 2 callersMethodallreduce_no_retain
(self, bucket, dp_group, numel_per_bucket=500000000, dp_world_size=None)
deepspeed/runtime/engine.py:3993
↓ 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:33
↓ 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.
deepspeed/runtime/superoffload/superoffload_utils.py:238
↓ 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_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:1771
↓ 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:4086
↓ 2 callersFunctionbuild_autotp_config
(autotp_size)
tests/unit/v1/autotp/test_tp_plan_real_models.py:387
↓ 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 callersFunctioncarries_collective
True if the module's own forward executes a collective.
deepspeed/module_inject/segment_ki.py:46
↓ 2 callersFunctionceil_div
Return ceil(a / b).
deepspeed/inference/v2/inference_utils.py:101
↓ 2 callersMethodcheck
(self, param_groups=None)
deepspeed/runtime/utils.py:278
↓ 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:30
↓ 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:1506
↓ 2 callersMethodcheck_overflow
(self, partition_gradients=True)
deepspeed/runtime/zero/stage3.py:3698
↓ 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
← previousnext →2,601–2,700 of 15,468, ranked by callers