Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ functions
Functions
14,579 in github.com/deepspeedai/DeepSpeed
⨍
Functions
14,579
◇
Types & classes
2,353
↳
Endpoints
92
↓ 6 callers
Function
_tol
(dtype)
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:43
↓ 6 callers
Function
_tol
(dtype)
tests/unit/v1/ops/triton_ops/test_group_gemm_triton.py:28
↓ 6 callers
Function
_train
Train on the same SAMPLES_PER_STEP samples per step, split into `gas` micro-batches.
tests/unit/v1/ops/muon/test_muon_zero3_grad_accum.py:55
↓ 6 callers
Method
_update_autotune_table
()
deepspeed/ops/transformer/inference/triton/matmul_ext.py:466
↓ 6 callers
Method
_update_scale
(self, skip)
deepspeed/runtime/fp16/fused_optimizer.py:404
↓ 6 callers
Function
_validate_handle_state
(handle, single_submit, overlap_events)
tests/unit/v1/nvme/test_gds.py:59
↓ 6 callers
Function
_validate_handle_state
(handle, single_submit, overlap_events)
tests/unit/v1/nvme/test_aio.py:76
↓ 6 callers
Function
_weighted_by_probs
(log_probs, values, probs=None)
deepspeed/sequence/vocab_parallel_ops.py:176
↓ 6 callers
Function
_with_meta
(node, tensor_size=0, device_time=0)
tests/unit/v1/compile/test_list_schedule.py:73
↓ 6 callers
Method
accum_ref
csrc/deepspeed4science/evoformer_attn/gemm/mma_from_smem.h:116
↓ 6 callers
Method
activate_phase
Expose the layers of ``phase`` as this module's forward pass.
deepspeed/runtime/pipe/dualpipev.py:62
↓ 6 callers
Function
add_bias
(input, bias, training=None)
deepspeed/module_inject/layers.py:192
↓ 6 callers
Method
all_gather_coalesced
(self, output_tensors, input_tensors, group=None, async_op=False)
deepspeed/comm/torch.py:448
↓ 6 callers
Function
assert_fn
(model_w_task)
tests/unit/inference/test_inference.py:230
↓ 6 callers
Method
async_pread
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:379
↓ 6 callers
Method
available_memory
(self, device_index=None)
accelerator/hpu_accelerator.py:156
↓ 6 callers
Method
average_tensor
(self, tensor: torch.Tensor, communication_data_type: torch.dtype)
deepspeed/runtime/zero/stage_1_and_2.py:1697
↓ 6 callers
Function
basic_parser
()
tests/unit/launcher/test_ds_arguments.py:12
↓ 6 callers
Method
begin_sequence
Decide once, before any decode step, whether this sequence uses graphs. Args: num_decode_steps: How many single-token forwards th
deepspeed/runtime/hybrid_engine_graph.py:75
↓ 6 callers
Function
bwc_pipeline_parallel_world_size
Backwards-compatible way of querying the pipeline parallel world size.
deepspeed/utils/bwc.py:81
↓ 6 callers
Function
ceil_div
csrc/deepspeed4science/evoformer_attn/gemm_kernel_utils.h:121
↓ 6 callers
Method
clear
csrc/includes/deepcompile.h:236
↓ 6 callers
Method
clear_mask
Clears the predicate set efficiently
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:810
↓ 6 callers
Function
collect_deepspeed_parameters
Collect parameters from DeepSpeed engine (handles ZeRO-3 gathering)
tests/unit/v1/zero/test_zero_user_backward.py:203
↓ 6 callers
Function
compare_parameters
Compare parameters between DDP and DeepSpeed
tests/unit/v1/zero/test_zero_user_backward.py:216
↓ 6 callers
Method
config_tp_params
Configures the weight tensor for training with tensor parallelism. This includes enabling gradients and associating necessary methods
deepspeed/module_inject/layers.py:487
↓ 6 callers
Method
copy_grads_in_partition
(self, param, group_idx=None)
deepspeed/runtime/zero/stage_1_and_2.py:2225
↓ 6 callers
Function
create_config_from_dict
(tmpdir, config_dict)
tests/unit/simple_model.py:268
↓ 6 callers
Function
data_file_path
(prefix_path)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:127
↓ 6 callers
Method
default_stream
(self, device_index=None)
accelerator/hpu_accelerator.py:111
↓ 6 callers
Function
detect_model_sp_info
Recursively scan *model* and return an :class:`SPModelInfo`. The function identifies: * ViT encoder attention layers → wrapped with :class:`U
deepspeed/sequence/autosp_detector.py:89
↓ 6 callers
Method
disable
(self)
deepspeed/linear/optimized_linear.py:120
↓ 6 callers
Method
elapsed_total
(self, **kwargs)
deepspeed/utils/timer.py:184
↓ 6 callers
Method
enable
< CUTLASS_HOST_DEVICE enables all accesses guarded by mask
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_atomic.h:551
↓ 6 callers
Method
enable_mask
Clears the predicate set efficiently
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:814
↓ 6 callers
Function
ensure_zero_ordered_dict
Wrap ``module._parameters`` in :class:`ZeROOrderedDict` if not already. PyTorch 2.5+ defaults ``nn.Module._parameters`` to a plain ``dict`` (
deepspeed/runtime/zero/parameter_offload.py:113
↓ 6 callers
Function
fill_with_head_ids
tests/unit/inference/v2/model_implementations/sharding/test_qkv_sharding.py:15
↓ 6 callers
Method
finalize_gradient_accumulation_boundary
(self)
deepspeed/runtime/zero/stage3.py:1488
↓ 6 callers
Method
from_dict
(cls, entry)
deepspeed/checkpoint/affine.py:485
↓ 6 callers
Method
from_model_config
The single source of truth for reading kv-head / hidden / attention-head counts. ``model_config`` may be ``None`` for callers that build a sy
deepspeed/module_inject/tp_shard.py:66
↓ 6 callers
Method
get
deepspeed/inference/v2/kernels/includes/memory_access_utils.h:74
↓ 6 callers
Method
get_data_parallel_group
The group of ranks within the same stage of all pipelines.
deepspeed/runtime/pipe/topology.py:434
↓ 6 callers
Method
get_global_grad_norm
Return the 2-norm of all gradients. If there is model parallelism, the norm will be global. The computed norm will be cached and reuse
deepspeed/runtime/engine.py:1389
↓ 6 callers
Method
get_global_rank
(self)
deepspeed/runtime/pipe/topology.py:405
↓ 6 callers
Function
get_input_id_node
(gm: GraphModule)
deepspeed/compile/util.py:551
↓ 6 callers
Function
get_input_nodes
(graph: Graph)
deepspeed/compile/util.py:133
↓ 6 callers
Method
get_param_gradient_attribute
(self, param)
deepspeed/runtime/zero/stage_1_and_2.py:1296
↓ 6 callers
Method
get_partition_dim
Get effective partition dimension.
deepspeed/module_inject/autotp_config.py:180
↓ 6 callers
Function
get_shard_size
Size of one shard of ``total_size`` split across a tensor-parallel group of ``mp_size``. ``meta`` carries this model's ``num_kv_heads`` / ``tp_gr
deepspeed/module_inject/tp_shard.py:95
↓ 6 callers
Method
get_stage_id
(self)
deepspeed/runtime/pipe/topology.py:365
↓ 6 callers
Method
get_swap_paths
(self)
deepspeed/runtime/swap_tensor/utils.py:77
↓ 6 callers
Method
get_tensor_model_parallel_world_size
(self)
tests/unit/v1/moe/test_autoep_unit.py:499
↓ 6 callers
Function
index_file_path
(prefix_path)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:123
↓ 6 callers
Method
insert_sequence
Incrementally insert a sequence into the ragged batch. This will update the metadata for the ragged batch and the sequence.
deepspeed/inference/v2/ragged/ragged_wrapper.py:134
↓ 6 callers
Function
install_head_sharded_helper
Give ``module`` a head-slicing wrapper around one of its own methods. The wrapper is bound to this instance instead of installed on its class. A
deepspeed/module_inject/auto_tp_model_utils.py:35
↓ 6 callers
Method
is_complete_trace
(self)
deepspeed/runtime/zero/partitioned_param_coordinator.py:183
↓ 6 callers
Method
is_deepcompile_active
(self)
deepspeed/runtime/engine.py:6107
↓ 6 callers
Function
is_deepcompile_supported
()
deepspeed/compile/util.py:29
↓ 6 callers
Method
layer
(ep_size=2, comm_backend=DEEPEP_BACKEND, *, return_router_logits=False)
tests/unit/module_inject/test_auto_ep_comm.py:588
↓ 6 callers
Method
load
csrc/deepspeed4science/evoformer_attn/transform/bias_broadcast.h:42
↓ 6 callers
Method
load_hp_checkpoint_state
(self, folder, key, param=None)
deepspeed/runtime/zero/stage3.py:3856
↓ 6 callers
Function
log_rank0
(msg: str, enable: bool = False)
deepspeed/compile/util.py:86
↓ 6 callers
Function
make_folding_metadata
(*, tp_size, tp_rank, ep_size,
deepspeed/checkpoint/autoep_universal.py:54
↓ 6 callers
Function
maybe_copy_qkv
(module, sd, weight_quantizer, mp_replace, dst_name, src_names, split_qkv=False)
deepspeed/module_inject/policy.py:166
↓ 6 callers
Method
memory_allocated
(self)
tests/unit/v1/compile/test_graph_profile.py:33
↓ 6 callers
Method
memory_breakdown
(self)
deepspeed/runtime/engine.py:1519
↓ 6 callers
Function
move
(tensor, device, copy=True)
deepspeed/module_inject/auto_tp.py:29
↓ 6 callers
Method
mp_size
(self)
deepspeed/autotuning/autotuner.py:247
↓ 6 callers
Method
offload_states
Offload the engine's states to the specified device. Arguments: include: Optional. The set of states to offload. If not provided,
deepspeed/runtime/engine.py:6126
↓ 6 callers
Function
open_file
csrc/aio/common/deepspeed_aio_common.cpp:301
↓ 6 callers
Method
optimizer_name
(self)
deepspeed/runtime/engine.py:1557
↓ 6 callers
Method
quantize
(self, param, groups=None)
deepspeed/runtime/zero/partition_parameters.py:862
↓ 6 callers
Method
quantize
(self, inputs, qkv=True, count=1, parallel_dim=0)
deepspeed/module_inject/replace_module.py:51
↓ 6 callers
Method
reduce
(self, tensor, dst, op=ReduceOp.SUM, group=None, async_op=False)
deepspeed/comm/ccl.py:151
↓ 6 callers
Function
reference_kl
(student_logits, teacher_logits, reverse)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:30
↓ 6 callers
Method
register_with_transformers
Register "ulysses" attn_implementation with HF transformers and return mpu (Megatron-LM-style parallel state groups object). If seque
deepspeed/runtime/sequence_parallel/ulysses_sp.py:391
↓ 6 callers
Method
remove_partition_and_release_buffers
(self, params)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:236
↓ 6 callers
Function
report_file_error
csrc/aio/common/deepspeed_aio_common.cpp:294
↓ 6 callers
Method
reset_peak_memory_stats
(self, device_index=None)
accelerator/hpu_accelerator.py:144
↓ 6 callers
Function
restore_combined
Gather TP-partitioned assignment outputs and combine back by token index. The all-gather rebuilds an identical full output on every TP peer, so a
deepspeed/moe/ep_tp_dispatch.py:431
↓ 6 callers
Method
rollback_subgroup
Rollback the optimizer state for a specific subgroup.
deepspeed/ops/adam/cpu_adam.py:210
↓ 6 callers
Method
route
Drive _deepep_route with a stub exchange, recording what each stage saw.
tests/unit/module_inject/test_auto_ep_comm.py:350
↓ 6 callers
Method
run
Run the graph with profiling enabled. args: inputs to the graph. Tensors in the inpusts must be real tensors, not fake tensors. args can cont
deepspeed/compile/profilers/graph_profile.py:223
↓ 6 callers
Function
run_model_step
(model, x_sample, y_label, grad_value)
tests/unit/runtime/half_precision/test_zero_optim_overflow.py:24
↓ 6 callers
Function
run_tp_layer_fwd_bwd
(tp_size, tp_overlap_comm, column_parallel,
tests/unit/v1/autotp/test_autotp_training.py:1102
↓ 6 callers
Function
safe_get_full_optimizer_state
Assemble and return the fp32 optimizer state of a low-precision (e.g., fp16) parameter. Args: param (``torch.nn.Parameter``): A m
deepspeed/utils/tensor_fragment.py:170
↓ 6 callers
Function
shard_param
Utility for sharding a parameter. This will return the slice of the parameter that should exist on the given shard_rank given the sharding co
deepspeed/inference/v2/model_implementations/sharding/utils.py:43
↓ 6 callers
Function
sp_size
()
deepspeed/compile/custom_ops/sp_dp_registry.py:38
↓ 6 callers
Function
split
(requests)
tests/unit/checkpoint/test_affine_replica_policy.py:240
↓ 6 callers
Method
step
Update the model parameters. .. note:: This method will be called internally by ZeRO-Offload. DeepSpeed users should
deepspeed/ops/adam/cpu_adam.py:117
↓ 6 callers
Method
steps_per_print
(self)
deepspeed/runtime/engine.py:1776
↓ 6 callers
Method
stop_profile
Stop profiling. All torch.nn.functionals are restored to their originals.
deepspeed/profiling/flops_profiler/profiler.py:134
↓ 6 callers
Function
store_with_byte_offset
Stores a fragment to memory
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_atomic.h:679
↓ 6 callers
Function
swiglu_packed
Fused SwiGLU of a packed gate+up tensor: ``silu(gate_up[..., :I]) * gate_up[..., I:]``. Args: gate_up: The gate and up projections side b
deepspeed/ops/triton_ops/swiglu_triton.py:232
↓ 6 callers
Method
sync_pwrite
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:372
↓ 6 callers
Method
tokens_to_seq
Mapping of token to which sequence it belongs to in the ragged batch. If the device Tensor is requested, the Tensor is truncated to t
deepspeed/inference/v2/ragged/ragged_wrapper.py:240
↓ 6 callers
Function
topkgating
Implements TopKGating on logits.
deepspeed/moe/sharded_moe.py:415
↓ 6 callers
Method
train_batch
Progress the pipeline to train the next batch of data. The engine will ingest ``self.train_batch_size()`` total samples collectively across al
deepspeed/runtime/pipe/engine.py:332
↓ 6 callers
Method
update_mp_params
(self, child, name=None)
deepspeed/module_inject/auto_tp.py:989
↓ 6 callers
Function
validate_aio_operation
csrc/aio/common/deepspeed_aio_common.cpp:377
← previous
next →
701–800 of 14,579, ranked by callers