Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ functions
Functions
15,468 in github.com/deepspeedai/DeepSpeed
⨍
Functions
15,468
◇
Types & classes
2,493
↳
Endpoints
106
↓ 1 callers
Method
_backward_prologue
(ctx, *grad_outputs)
tests/unit/compile/test_backend.py:101
↓ 1 callers
Method
_backward_prologue
(self)
deepspeed/runtime/engine.py:3277
↓ 1 callers
Function
_backward_through_boundary
Run the micro-batches of one optimizer step and stop after the last backward, before the update. Returns the fp32 reference for the accumulated gr
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:292
↓ 1 callers
Function
_batch
(logical_rank, logical_world_size, micro_step, device)
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:131
↓ 1 callers
Function
_batch_assert
(status, ds_config, batch, micro_batch, gas, success)
tests/unit/runtime/test_ds_config_dict.py:68
↓ 1 callers
Method
_batch_assertion
(self)
deepspeed/runtime/config.py:594
↓ 1 callers
Method
_bcast_pipe_scalar
(self, data, src_rank=None, dtype=torch.float32)
deepspeed/runtime/pipe/engine.py:558
↓ 1 callers
Method
_bf16_reduce_grads
(self)
deepspeed/runtime/pipe/engine.py:297
↓ 1 callers
Method
_bias_add_transform_0213
(vals, bias, hidden_dim, seq_length, seq_offset, heads, num_kv, rotary_dim, r
op_builder/npu/inference.py:136
↓ 1 callers
Function
_bias_subparam_shape_spec
View spec describing how a partitioned bias is laid out over its sub-parameters. The weight's spec cannot be reused: it carries the input dimensi
deepspeed/module_inject/layers.py:2114
↓ 1 callers
Function
_bigcode_type_transpose
(input, mp_size, meta=meta)
deepspeed/module_inject/fusedqkv_utils.py:225
↓ 1 callers
Method
_block_forward
(self, block, x)
tests/unit/v1/zero/test_zero_user_backward.py:1662
↓ 1 callers
Function
_block_hidden
Choose a power-of-two tile within the FP32 register budget.
deepspeed/ops/triton_ops/autoep_fused_token_ops.py:250
↓ 1 callers
Function
_block_rows
(vocab_size: int)
deepspeed/runtime/chunked_cross_entropy.py:91
↓ 1 callers
Function
_bring_back
Undo one activation's move: the graph keeps it resident again.
deepspeed/compile/passes/offload_activation.py:590
↓ 1 callers
Method
_broadcast_model
(self)
deepspeed/runtime/engine.py:2163
↓ 1 callers
Method
_bucketwise_cancel_inflight_updates
(self)
deepspeed/runtime/reflow/reflow_stage3.py:1438
↓ 1 callers
Method
_bucketwise_enqueue_range
(self, sub_group_id, dest_offset,
deepspeed/runtime/reflow/reflow_stage3.py:1346
↓ 1 callers
Method
_bucketwise_run_full_partition_updates
(self, combined_scale, param_ids=None)
deepspeed/runtime/reflow/reflow_stage3.py:1538
↓ 1 callers
Function
_budget_overflow_diagnostic
(scheduler_budget: SchedulerMemoryBudget, task: AllgatherTask, path: str, live
deepspeed/compile/list_schedule.py:563
↓ 1 callers
Method
_buffer_idx
Map a micro-batch index to a pipeline buffer index. This method uses a cyclic allocation strategy. Args: micro_batch_id
deepspeed/runtime/pipe/schedule.py:111
↓ 1 callers
Method
_buffered_reduce_fallback_preserving_fp32
(self, grads, grad_params, communication_data_type, elements
deepspeed/runtime/zero/stage_1_and_2.py:2608
↓ 1 callers
Function
_buffers_alias
Whether a target buffer shares storage with a source or with another target of the batch. Usually none does, and then no region can alias. Otherw
deepspeed/checkpoint/affine_transfer_executor.py:244
↓ 1 callers
Function
_build
()
deepspeed/comm/custom_collective.py:31
↓ 1 callers
Method
_build
(self)
deepspeed/runtime/pipe/module.py:234
↓ 1 callers
Method
_build_config
(self, tp_size: int)
tests/unit/v1/autotp/test_autotp_training.py:877
↓ 1 callers
Function
_build_custom_preset
(config: AutoEPConfig)
deepspeed/module_inject/auto_ep_presets/registry.py:197
↓ 1 callers
Method
_build_data_iter
(self, dataset)
deepspeed/runtime/pipe/engine.py:259
↓ 1 callers
Function
_build_dtype_map
torch.dtype -> mori_cpp.DataType (NCCL-style enum).
deepspeed/comm/mori.py:75
↓ 1 callers
Function
_build_flat_partition_grad_views
(optimizer, group_idx)
deepspeed/compile/init_z1_and_2.py:65
↓ 1 callers
Function
_build_folded_engine
(combine_impl, zero_stage, reference_state, seed)
tests/unit/v1/moe/test_autoep_fused_parity.py:104
↓ 1 callers
Function
_build_gate_up_layer
(out_features, tp_world_size, tp_index, meta)
tests/unit/module_inject/test_fused_repartition.py:20
↓ 1 callers
Method
_build_global_attention
(self)
deepspeed/inference/v2/model_implementations/exaone4_5/model.py:140
↓ 1 callers
Method
_build_inputs
Build deterministic visual and text tensors identical on every rank.
tests/unit/v1/sequence_parallelism/test_autosp_equivalence.py:158
↓ 1 callers
Method
_build_inputs
Build deterministic inputs with a run of IMG_CONTEXT tokens in the middle.
tests/unit/v1/sequence_parallelism/test_autosp_equivalence.py:257
↓ 1 callers
Method
_build_inputs
Build inputs with a single vision_start/end block containing num_inner placeholders.
tests/unit/v1/sequence_parallelism/test_autosp_equivalence.py:353
↓ 1 callers
Function
_build_model
(hidden_dim, nlayers, config, seed=42)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:53
↓ 1 callers
Function
_build_model_and_inputs
(arch: str, args, sp_group, device)
tests/benchmarks/bench_multimodal_sp.py:148
↓ 1 callers
Method
_build_muon_exchange_layout
Precompute the slices needed to reconstruct locally-owned split matrices.
deepspeed/runtime/bf16_optimizer.py:244
↓ 1 callers
Method
_build_p2p_groups
Groups for sending and receiving activations and gradients across model parallel stages.
deepspeed/runtime/pipe/topology.py:371
↓ 1 callers
Function
_build_param_uc_conversion_meta
Build the conversion-facing subset of parameter UC metadata. This is the only schema that should flow into model-level `UNIVERSAL_CHECKPOINT_
deepspeed/module_inject/layers.py:79
↓ 1 callers
Function
_build_parser
()
ci/torch_latest.py:1966
↓ 1 callers
Function
_build_partition_grad_views
(optimizer, group_idx)
deepspeed/compile/init_z1_and_2.py:35
↓ 1 callers
Method
_build_pp_transformer_map
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:284
↓ 1 callers
Function
_build_release_expected
Derive the final-release count for every gathered parameter interval.
deepspeed/compile/list_schedule.py:433
↓ 1 callers
Function
_build_sandbox_image
Bake the static dependency chain into content-addressed image layers. Layers apply in chain order, mirroring the previous runtime sequence: requi
ci/torch_latest.py:582
↓ 1 callers
Function
_build_scheduler_budget_from_operator_profile
Build a budget only when every node has trustworthy operator profile data.
deepspeed/compile/passes/zero3_compile.py:82
↓ 1 callers
Method
_build_tp_other_layer_map
(self, layer_index: int)
deepspeed/checkpoint/deepspeed_checkpoint.py:268
↓ 1 callers
Method
_build_transformer_file_map
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:301
↓ 1 callers
Function
_build_zero3_rank_grid
(files)
deepspeed/checkpoint/ds_to_universal.py:638
↓ 1 callers
Function
_bypass_parity_ok
One-shot behavioral gate for the in-place recurrent launch. Runs the wrapper and the direct launch on clones of the live decode tensors and c
deepspeed/module_inject/segment_ki.py:471
↓ 1 callers
Function
_bytes
(node)
deepspeed/compile/passes/offload_activation.py:506
↓ 1 callers
Function
_call_seconds
(stage: TransferStage, model: TransferCostModel)
deepspeed/checkpoint/affine_transfer_cost.py:148
↓ 1 callers
Method
_can_batch_ready
(self, item)
deepspeed/runtime/reflow/reflow_stage3.py:1186
↓ 1 callers
Method
_can_copy_back_from_cpu_adam
Whether _cpu_adam_step_and_copy_back can replace _optimizer_step + _reassign_or_swap_out_partitioned_parameters for this CPU sub-group (asked
deepspeed/runtime/zero/stage3.py:3120
↓ 1 callers
Method
_candidate_cutlass_paths
(self)
op_builder/evoformer_attn.py:111
↓ 1 callers
Method
_cann_supports_int4
Return whether CANN provides aclnnLeftShifts for the int4 packer. The int4 inference path as a whole needs CANN >= 9.0.0. Returns True
op_builder/npu/quantizer.py:276
↓ 1 callers
Function
_capacity
(model: TransferCostModel, resource: Resource)
deepspeed/checkpoint/affine_transfer_cost.py:178
↓ 1 callers
Method
_capture
Record a graph for ``position`` and keep its static input buffers.
deepspeed/runtime/hybrid_engine_graph.py:107
↓ 1 callers
Method
_cast_inputs_half
(self, inputs)
deepspeed/runtime/engine.py:3180
↓ 1 callers
Function
_cgroup_dirs
Directories of this process's cgroup, nearest first, mount point last.
accelerator/cpu_accelerator.py:115
↓ 1 callers
Function
_cgroup_membership
The cgroup path of this process from /proc/self/cgroup, relative to the hierarchy root.
accelerator/cpu_accelerator.py:61
↓ 1 callers
Function
_cgroup_mount
Returns (mount point, mount root) of the cgroup hierarchy from /proc/self/mountinfo. The mount can expose a subtree of the hierarchy (mount root
accelerator/cpu_accelerator.py:78
↓ 1 callers
Function
_changed_paths
(base: str, head: str)
ci/check_paths.py:45
↓ 1 callers
Function
_check_autosp_compatibility
()
deepspeed/compile/custom_ops/sp_compat.py:10
↓ 1 callers
Function
_check_autotp_compatibility
(model)
deepspeed/compile/init_tp.py:18
↓ 1 callers
Method
_check_autotp_frozen_replicated_params
(self)
deepspeed/runtime/engine.py:3266
↓ 1 callers
Method
_check_bucketwise_worker_error
(self)
deepspeed/runtime/reflow/reflow_stage3.py:510
↓ 1 callers
Function
_check_causal_only
The kernels compute causal attention over every whole sequence of the batch. Raise for any input that asks for something else: transformers builds
deepspeed/models/glm_moe_dsa/attention.py:126
↓ 1 callers
Method
_check_for_duplicates
(self, optimizer)
deepspeed/runtime/engine.py:2407
↓ 1 callers
Function
_check_for_required_state
(ds_checkpoint)
deepspeed/checkpoint/ds_to_universal.py:1091
↓ 1 callers
Method
_check_fused_linear_vocab_parallel_loss
(self)
deepspeed/runtime/engine.py:1044
↓ 1 callers
Function
_check_fused_rms_norm_handles_head_major_non_contiguous_input
(dtype)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:242
↓ 1 callers
Function
_check_fused_rms_norm_handles_strided_weight
(dtype)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:295
↓ 1 callers
Function
_check_fused_rms_norm_large_and_tiny_magnitudes
(dtype, scale)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:273
↓ 1 callers
Function
_check_fused_rms_norm_rejects_double_backward
()
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:335
↓ 1 callers
Function
_check_fused_rms_norm_rejects_unsupported_inputs
(hidden_dtype, weight_dtype, width)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:327
↓ 1 callers
Function
_check_fused_rms_norm_weight_gradient_is_deterministic
(width)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:226
↓ 1 callers
Method
_check_int4_inference_support
()
op_builder/npu/quantizer.py:304
↓ 1 callers
Function
_check_label_consumers
Labels stay unsharded, so they may only flow into cross entropy targets.
deepspeed/compile/passes/sp_compile.py:328
↓ 1 callers
Function
_check_monotone_dest
(piece)
deepspeed/checkpoint/affine.py:898
↓ 1 callers
Method
_check_overflow
(self, partition_gradients=True)
deepspeed/runtime/zero/stage3.py:3369
↓ 1 callers
Method
_check_overflow
(self, partition_gradients=True)
deepspeed/runtime/zero/stage_1_and_2.py:3345
↓ 1 callers
Function
_check_pair_budget
(name: str, parts: int, budget: PlanBudget)
deepspeed/checkpoint/affine_transfer.py:697
↓ 1 callers
Method
_check_reload_holds_pin_buffers
(self)
tests/unit/v1/pin_memory/test_offload_route.py:111
↓ 1 callers
Function
_check_replace_rms_norm_data_parallel_matches_eager_training
()
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:617
↓ 1 callers
Function
_check_replace_rms_norm_fuses_supported_norms
(qualified_name)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:655
↓ 1 callers
Function
_check_replace_rms_norm_runs_the_kernels_only_where_they_apply
()
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:701
↓ 1 callers
Function
_check_secondary_tensor_existence
(model: Module)
tests/unit/runtime/zero/test_zeropp.py:151
↓ 1 callers
Function
_checkout_exact
( head_url: str, head_sha: str, base_url: str, base_sha: str, destination: Path, )
ci/torch_latest.py:446
↓ 1 callers
Function
_checkpoint_autoep_layers
(engine)
tests/unit/v1/moe/test_autoep_grad_parity.py:594
↓ 1 callers
Function
_checkpoint_decoder_layers
Hugging Face per-layer gradient checkpointing: each decoder layer checkpoints its own block, reentrantly.
tests/unit/v1/moe/test_autoep_deepep_parity.py:159
↓ 1 callers
Function
_checkpoint_moe_layers
Recompute each MoE block in backward, as the benchmarked runs do.
tests/unit/v1/moe/test_autoep_fused_parity.py:139
↓ 1 callers
Method
_checkpoint_tag_validation
(self, tag)
deepspeed/runtime/engine.py:5040
↓ 1 callers
Method
_checkpointed_block
Block that will be checkpointed
tests/unit/v1/zero/test_zero_user_backward.py:1335
↓ 1 callers
Method
_checkpointed_block
(self, x)
tests/unit/v1/zero/test_zero_user_backward.py:1605
↓ 1 callers
Method
_checkpointed_block
(self, x)
tests/unit/v1/zero/test_zero_user_backward.py:1693
↓ 1 callers
Method
_checkpointed_block
(self, x)
tests/unit/v1/zero/test_zero_user_backward.py:1735
↓ 1 callers
Method
_choose_module_key
(self, sd)
deepspeed/inference/engine.py:504
↓ 1 callers
Function
_chunks
Tile a strided rectangle by its packed payload, retaining both address spaces.
deepspeed/checkpoint/affine_transfer_executor.py:129
← previous
next →
3,501–3,600 of 15,468, ranked by callers