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
↓ 39 callers
Method
stop
(self, **kwargs)
deepspeed/utils/timer.py:178
↓ 38 callers
Method
collect
Run an explicit collection without changing the automatic-GC policy.
deepspeed/runtime/python_gc.py:65
↓ 38 callers
Function
getCurrentCUDAStream
csrc/xpu/adam/multi_tensor_apply.dp.hpp:23
↓ 38 callers
Function
get_scalar_param
(param_dict, param_name, param_default_value)
deepspeed/runtime/config_utils.py:193
↓ 38 callers
Method
log
(self, names, normalizer=1.0, reset=True, memory_breakdown=False, ranks=None)
deepspeed/utils/timer.py:199
↓ 38 callers
Function
log_dist
Log message when get_dist_msg() deems it should be logged, see its docstring for details. Args: message (str) ranks (list)
deepspeed/utils/logging.py:113
↓ 38 callers
Method
output
Returns the pre-allocated, padded output Tensor.
deepspeed/inference/v2/modules/interfaces/moe_base.py:79
↓ 38 callers
Method
step
(engine)
tests/unit/compile/test_tp_compile.py:477
↓ 38 callers
Method
stream
(self, stream)
accelerator/hpu_accelerator.py:105
↓ 38 callers
Method
write
(self, rel: str, content: str = "")
ci/test_tests_fetcher.py:97
↓ 37 callers
Function
_ensure_dc_ops
()
tests/unit/v1/compile/test_offload_activation.py:40
↓ 37 callers
Method
add
csrc/includes/reflow_ready.h:39
↓ 37 callers
Function
make_autoep_placement_descriptor
Build a versioned descriptor from expert IDs in rank-local packed order.
deepspeed/checkpoint/autoep_affine.py:36
↓ 36 callers
Function
checkpoint
Checkpoint a model or part of the model. This has been directly copied from torch.utils.checkpoint. Tensor arguments passed by keyword partic
deepspeed/runtime/activation_checkpointing/checkpointing.py:1047
↓ 36 callers
Method
get_param_id
(self, param)
deepspeed/runtime/zero/stage3.py:1759
↓ 35 callers
Function
allclose
(x, y, tolerances: Tuple[int, int] = None)
tests/unit/inference/v2/inference_test_utils.py:40
↓ 35 callers
Function
parse_autoep_config
Parse the 'expert_parallel' section from DS config JSON.
deepspeed/module_inject/auto_ep_config.py:44
↓ 33 callers
Function
get_shard_size_list
(total_size, mp_size, meta: AutoTPMeta, name=None)
deepspeed/module_inject/tp_shard.py:160
↓ 33 callers
Function
validate_autoep_config
Validate config constraints. Raises ValueError on invalid config.
deepspeed/module_inject/auto_ep_config.py:111
↓ 33 callers
Method
wait_stream
(self, stream)
tests/unit/v1/zero/test_zero2_gradient_safety.py:266
↓ 32 callers
Method
clear
(self)
deepspeed/utils/debug.py:54
↓ 32 callers
Method
clear
(self)
deepspeed/runtime/zero/stage3.py:134
↓ 32 callers
Function
get_variant_config
(reflow, variant)
tests/unit/v1/zero/test_reflow.py:457
↓ 31 callers
Function
bf16_required_version_check
(accelerator_check=True)
tests/unit/util.py:39
↓ 31 callers
Method
load
(module, state_dict, prefix)
deepspeed/inference/engine.py:339
↓ 30 callers
Method
Stream
(self)
accelerator/hpu_accelerator.py:102
↓ 30 callers
Method
is_pinned
(self, device=None)
tests/unit/v1/compile/test_graph_profile.py:203
↓ 30 callers
Method
partition_numel
()
deepspeed/runtime/zero/partition_parameters.py:1649
↓ 29 callers
Function
_make_tokenizer
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:43
↓ 29 callers
Method
_replace_module
(self, r_module, prev_name='', prev_class_name='')
deepspeed/module_inject/auto_tp.py:1161
↓ 29 callers
Function
_runtime_config
(**kwargs)
tests/unit/v1/moe/test_autoep_unit.py:77
↓ 29 callers
Method
_swappable_optimizer_subgroup
(self, sub_group_id)
deepspeed/runtime/zero/stage3.py:1373
↓ 28 callers
Method
copy_
(self, other)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:19
↓ 28 callers
Function
muon_update
Muon update, optionally orthogonalizing each attention head separately. With ``num_heads`` set, the update for an attention projection of shape
deepspeed/runtime/zero/muon/original_muon.py:190
↓ 28 callers
Method
resolves_data_dependency
(self)
accelerator/hpu_accelerator.py:50
↓ 28 callers
Method
set_gradient_accumulation_boundary
Manually overrides the DeepSpeed engine's gradient accumulation boundary state, this is an optional feature and should be used with c
deepspeed/runtime/engine.py:3627
↓ 28 callers
Method
sort
(*args, **kwargs)
tests/unit/v1/moe/test_autoep_unit.py:1958
↓ 27 callers
Method
cleanup
(self)
ci/test_tests_fetcher.py:112
↓ 27 callers
Method
load
(self, name: str)
deepspeed/compile/util.py:213
↓ 27 callers
Method
load
(module, state_dict, prefix, mp_group=None)
deepspeed/module_inject/auto_tp.py:177
↓ 27 callers
Function
skip_on_device
()
tests/unit/v1/autotp/test_autotp_training.py:40
↓ 26 callers
Method
all_gather
(param_list=None, async_op=False, hierarchy=0)
deepspeed/runtime/zero/partition_parameters.py:1327
↓ 26 callers
Method
record_stream
(self, stream)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:23
↓ 26 callers
Function
seed_everything
(seed=1234)
tests/unit/v1/moe/autoep_test_utils.py:248
↓ 26 callers
Method
supported_dtypes
(self)
accelerator/hpu_accelerator.py:169
↓ 25 callers
Function
_make_engine
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:36
↓ 25 callers
Function
collect_autotp_universal_checkpoint_info
Collect the model-level conversion schema for AutoTP universal checkpoints. The returned `UNIVERSAL_CHECKPOINT_INFO` is intentionally limited to
deepspeed/module_inject/layers.py:699
↓ 25 callers
Method
generate
(self, request: RolloutRequest, sampling: SamplingConfig)
tests/unit/runtime/rollout/test_rollout_interface.py:174
↓ 25 callers
Function
get_caller_func
(frame=3)
deepspeed/utils/comms_logging.py:10
↓ 25 callers
Method
record
(self, handle)
deepspeed/module_inject/auto_ep_comm.py:448
↓ 25 callers
Method
wait
(self)
deepspeed/comm/torch.py:137
↓ 24 callers
Method
autotp_size
(self)
deepspeed/runtime/engine.py:1756
↓ 24 callers
Method
ep_parser
Traverse model and detect MoE layers. Returns list of MoELayerSpec.
deepspeed/module_inject/auto_ep.py:417
↓ 24 callers
Method
get
csrc/includes/memory_access_utils.h:74
↓ 24 callers
Function
hasKey
csrc/includes/deepcompile.h:33
↓ 24 callers
Function
leaf
(tensor)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:50
↓ 24 callers
Function
make_optimizer
(dtype=torch.bfloat16, device=None, low_precision=False, cpu_offload=True)
tests/unit/v1/zero/test_zero2_gradient_safety.py:25
↓ 24 callers
Method
on_accelerator
(self, tensor)
accelerator/hpu_accelerator.py:242
↓ 24 callers
Method
run
csrc/gds/deepspeed_gds_op.cpp:121
↓ 23 callers
Function
_config
(zero_stage, world_size=2, contiguous_gradients=False, overlap_comm=False,
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:16
↓ 23 callers
Function
_make_gm
(graph)
tests/unit/v1/compile/test_offload_activation.py:64
↓ 23 callers
Method
all_reduce
(tensor, op)
tests/unit/v1/compile/test_offload_activation.py:314
↓ 23 callers
Method
free_cpu_locked_tensor
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:410
↓ 23 callers
Function
make_batches
(hidden_dim, count, dtype=torch.bfloat16)
tests/unit/v1/zero/test_reflow.py:331
↓ 23 callers
Function
z3_leaf_module
Returns whether a module in `model` has been flagged as a 'leaf' module. See `set_z3_leaf_modules` for more details. Args:
deepspeed/utils/z3_leaf_module.py:15
↓ 22 callers
Method
Event
(self)
accelerator/hpu_accelerator.py:115
↓ 22 callers
Function
_attention_head_count
Heads this projection splits into on dim 0, or None to leave it on the full-matrix path. Takes the model for callers holding one parameter. `set_
deepspeed/__init__.py:288
↓ 22 callers
Function
_make_spec
(**kwargs)
tests/unit/v1/moe/test_autoep_unit.py:82
↓ 22 callers
Function
_rms_norm
()
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:60
↓ 22 callers
Function
_selection_file
(content: str)
ci/test_torch_latest.py:39
↓ 22 callers
Method
commit
(self, message: str)
ci/test_tests_fetcher.py:105
↓ 22 callers
Method
decode
(self, *inputs, **kwargs)
deepspeed/model_implementations/diffusers/vae.py:56
↓ 22 callers
Method
get_param_id
(self, param)
deepspeed/runtime/zero/stage_1_and_2.py:1500
↓ 22 callers
Method
is_synchronized_device
(self)
accelerator/hpu_accelerator.py:44
↓ 22 callers
Method
set_device
(self, device_index)
accelerator/hpu_accelerator.py:63
↓ 22 callers
Method
wait
(self)
tests/unit/v1/sequence_parallelism/test_overlap_grad_permutation.py:22
↓ 21 callers
Method
GetCurrentStream
csrc/transformer/inference/includes/inference_context.h:228
↓ 21 callers
Function
_run_pass
Drive both halves the way the schedule does: move everything, then keep what fits. The floor pass is profiled by the caller in production; here t
tests/unit/v1/compile/test_offload_activation.py:120
↓ 21 callers
Method
create_graph
(self)
accelerator/hpu_accelerator.py:195
↓ 21 callers
Method
get_cache
Get the tensor associated with the given cache ID. Parameters: cache_id (int): The ID of the cache tensor to get.
deepspeed/inference/v2/ragged/kv_cache.py:183
↓ 21 callers
Function
run
(mask, phase)
tests/unit/v1/ops/test_reflow_cpu_optimizers.py:366
↓ 21 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
↓ 20 callers
Function
_make_mock_process_group
Return a mock object that satisfies dist.get_world_size / get_rank.
deepspeed/sequence/test_autosp.py:92
↓ 20 callers
Function
_node_names
(graph)
tests/unit/v1/compile/test_offload_activation.py:135
↓ 20 callers
Method
_splice_visual_into_text
(self, text_embeds, visual_embeds, input_ids)
deepspeed/sequence/test_autosp.py:282
↓ 20 callers
Method
bfloat16_enabled
(self)
deepspeed/runtime/engine.py:1762
↓ 20 callers
Function
fn
(compat_tensor: nn.Parameter)
deepspeed/inference/quantization/utils.py:205
↓ 20 callers
Method
get_tensor_model_parallel_rank
(self)
deepspeed/runtime/pipe/topology.py:460
↓ 20 callers
Method
layer_norm
(inputs, gamma, beta, epsilon)
op_builder/npu/inference.py:110
↓ 20 callers
Method
select
(self, base: str | None, commit_message: str = "")
ci/tests_fetcher.py:498
↓ 20 callers
Function
skip_on_device
()
tests/unit/v1/autotp/test_autotp_custom_patterns.py:30
↓ 20 callers
Method
zero_optimization_partition_weights
(self)
deepspeed/runtime/engine.py:1705
↓ 19 callers
Function
_valid_env
(path: Path, **overrides: str)
ci/test_torch_latest.py:46
↓ 19 callers
Function
collect_gradients_safe
Collect gradients from model parameters using safe_get_full_grad API
tests/unit/v1/zero/test_zero_user_backward.py:89
↓ 19 callers
Method
empty_cache
(self)
accelerator/hpu_accelerator.py:120
↓ 19 callers
Method
intersection
(self, other: 'LogicalBox')
deepspeed/checkpoint/affine_geometry.py:141
↓ 19 callers
Method
run_test
(self, test_config, r_tol)
tests/model/Megatron_GPT2/run_func_test.py:483
↓ 19 callers
Method
sizes
(self)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:546
↓ 19 callers
Function
skip_on_arch
(min_arch=7)
tests/unit/util.py:18
↓ 19 callers
Function
skip_unless_h100_tests_enabled
(reason)
tests/unit/v1/moe/autoep_test_utils.py:32
← previous
next →
101–200 of 15,468, ranked by callers