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
↓ 35 callers
Function
allclose
(x, y, tolerances: Tuple[int, int] = None)
tests/unit/inference/v2/inference_test_utils.py:40
↓ 35 callers
Method
copy
Copy residency state, optionally starting a candidate-local peak.
deepspeed/compile/list_schedule.py:347
↓ 35 callers
Method
step
(engine)
tests/unit/compile/test_tp_compile.py:477
↓ 34 callers
Method
eval
(self)
tests/unit/hybrid_engine/test_he_lora.py:87
↓ 34 callers
Method
from_pretrained
(*args, **kwargs)
deepspeed/linear/context_manager.py:73
↓ 34 callers
Function
get_shard_size_list
(total_size, mp_size, meta: AutoTPMeta, name=None)
deepspeed/module_inject/tp_shard.py:142
↓ 34 callers
Method
synchronize
(self)
tests/unit/v1/zero/test_zero2_gradient_safety.py:243
↓ 33 callers
Method
stream
(self, stream)
accelerator/hpu_accelerator.py:105
↓ 31 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
↓ 31 callers
Method
get
(self, _guard)
tests/unit/compile/test_zero3_grad_dtype.py:88
↓ 31 callers
Method
load
(module, state_dict, prefix)
deepspeed/inference/engine.py:339
↓ 30 callers
Function
bf16_required_version_check
(accelerator_check=True)
tests/unit/util.py:39
↓ 30 callers
Method
clear
(self)
deepspeed/utils/debug.py:54
↓ 30 callers
Function
validate_autoep_config
Validate config constraints. Raises ValueError on invalid config.
deepspeed/module_inject/auto_ep_config.py:105
↓ 29 callers
Method
_replace_module
(self, r_module, prev_name='', prev_class_name='')
deepspeed/module_inject/auto_tp.py:1057
↓ 29 callers
Method
is_pinned
(self, device=None)
tests/unit/v1/compile/test_graph_profile.py:203
↓ 29 callers
Method
wait_stream
(self, stream)
tests/unit/v1/zero/test_zero2_gradient_safety.py:257
↓ 28 callers
Function
parse_autoep_config
Parse the 'expert_parallel' section from DS config JSON.
deepspeed/module_inject/auto_ep_config.py:42
↓ 28 callers
Method
sort
(*args, **kwargs)
tests/unit/v1/moe/test_autoep_unit.py:1900
↓ 28 callers
Method
wait
(self)
deepspeed/comm/torch.py:137
↓ 27 callers
Function
_make_tokenizer
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:43
↓ 27 callers
Function
_runtime_config
(**kwargs)
tests/unit/v1/moe/test_autoep_unit.py:77
↓ 27 callers
Method
cleanup
(self)
ci/test_tests_fetcher.py:112
↓ 27 callers
Method
is_rocm_pytorch
()
op_builder/builder.py:203
↓ 27 callers
Method
load
(module, state_dict, prefix, mp_group=None)
deepspeed/module_inject/auto_tp.py:162
↓ 27 callers
Function
safe_get_full_fp32_param
Assemble and return the fp32 parameter of a low-precision (e.g., fp16) parameter. Args: param (``torch.nn.Parameter``): A model p
deepspeed/utils/tensor_fragment.py:135
↓ 27 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:3550
↓ 26 callers
Method
Stream
(self)
accelerator/hpu_accelerator.py:102
↓ 26 callers
Method
copy_
(self, other)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:19
↓ 26 callers
Method
load
(self, name: str)
deepspeed/compile/util.py:213
↓ 26 callers
Method
resolves_data_dependency
(self)
accelerator/hpu_accelerator.py:50
↓ 26 callers
Method
supported_dtypes
(self)
accelerator/hpu_accelerator.py:169
↓ 25 callers
Method
all_gather
(param_list=None, async_op=False, hierarchy=0)
deepspeed/runtime/zero/partition_parameters.py:1327
↓ 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:695
↓ 25 callers
Method
free_cpu_locked_tensor
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:410
↓ 25 callers
Method
get
csrc/includes/memory_access_utils.h:74
↓ 25 callers
Function
get_caller_func
(frame=3)
deepspeed/utils/comms_logging.py:10
↓ 24 callers
Method
autotp_size
(self)
deepspeed/runtime/engine.py:1703
↓ 24 callers
Method
clear
(self)
deepspeed/runtime/zero/stage3.py:130
↓ 24 callers
Method
decode
(self, *inputs, **kwargs)
deepspeed/model_implementations/diffusers/vae.py:56
↓ 24 callers
Method
get_param_id
(self, param)
deepspeed/runtime/zero/stage3.py:1617
↓ 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
Method
partition_numel
()
deepspeed/runtime/zero/partition_parameters.py:1649
↓ 24 callers
Method
record_stream
(self, stream)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:23
↓ 24 callers
Function
seed_everything
(seed=1234)
tests/unit/v1/moe/autoep_test_utils.py:248
↓ 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_engine
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:36
↓ 23 callers
Function
_make_gm
(graph)
tests/unit/v1/compile/test_offload_activation.py:64
↓ 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
_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
get_param_id
(self, param)
deepspeed/runtime/zero/stage_1_and_2.py:1492
↓ 22 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
↓ 22 callers
Method
run
(self)
tests/unit/common.py:157
↓ 22 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
↓ 21 callers
Method
GetCurrentStream
csrc/transformer/inference/includes/inference_context.h:228
↓ 21 callers
Function
_make_spec
(**kwargs)
tests/unit/v1/moe/test_autoep_unit.py:82
↓ 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
ep_parser
Traverse model and detect MoE layers. Returns list of MoELayerSpec.
deepspeed/module_inject/auto_ep.py:417
↓ 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
skip_on_device
()
tests/unit/v1/autotp/test_autotp_training.py:39
↓ 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
_swappable_optimizer_subgroup
(self, sub_group_id)
deepspeed/runtime/zero/stage3.py:1311
↓ 20 callers
Method
all_reduce
(tensor, op)
tests/unit/v1/compile/test_offload_activation.py:314
↓ 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
on_accelerator
(self, tensor)
accelerator/hpu_accelerator.py:242
↓ 20 callers
Method
run
csrc/gds/py_lib/deepspeed_gds_op.cpp:121
↓ 20 callers
Method
select
(self, base: str | None, commit_message: str = "")
ci/tests_fetcher.py:492
↓ 20 callers
Function
skip_on_device
()
tests/unit/v1/autotp/test_autotp_custom_patterns.py:28
↓ 20 callers
Method
zero_optimization_partition_weights
(self)
deepspeed/runtime/engine.py:1652
↓ 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
Function
make_optimizer
(dtype=torch.bfloat16, device=None, low_precision=False, cpu_offload=True)
tests/unit/v1/zero/test_zero2_gradient_safety.py:25
↓ 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
validate_schedule
Validate that a DeepCompile pass schedule satisfies the registered pass contracts. ``schedule`` uses the ``[(step, passes), ...]`` format consume
deepspeed/compile/passes/contract.py:77
↓ 18 callers
Method
Event
(self)
accelerator/hpu_accelerator.py:115
↓ 18 callers
Function
_aws_config
()
ci/test_torch_latest.py:61
↓ 18 callers
Function
_expect_error
(function, *args, exception=ValueError, **kwargs)
ci/test_torch_latest.py:31
↓ 18 callers
Method
_incr_stats
(self, key, incr=1)
deepspeed/io/base_file_writer.py:35
↓ 18 callers
Function
_make_fwd_graph
A forward graph shaped like a partitioned one: the caller's output first, then saved values. x -> act_0 -> act_1 -> out. The activations are also
tests/unit/v1/compile/test_offload_activation.py:68
↓ 18 callers
Function
_make_profile
(graph, peak=10**9, num_fwd_outputs=1)
tests/unit/v1/compile/test_offload_activation.py:89
↓ 18 callers
Function
_rms_norm
()
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:37
↓ 18 callers
Method
bfloat16_enabled
(self)
deepspeed/runtime/engine.py:1709
↓ 18 callers
Function
checkpoint_correctness_verification
(config_dict, models, hidden_d
tests/unit/checkpoint/common.py:165
↓ 18 callers
Method
create_graph
(self)
accelerator/hpu_accelerator.py:195
↓ 18 callers
Method
data
(self)
deepspeed/runtime/utils.py:826
↓ 18 callers
Method
ds_summary
(slf: torch.Tensor, use_debug_name: bool = False)
deepspeed/runtime/zero/partition_parameters.py:1656
↓ 18 callers
Method
empty_cache
(self)
accelerator/hpu_accelerator.py:120
↓ 18 callers
Function
fn
(compat_tensor: nn.Parameter)
deepspeed/inference/quantization/utils.py:205
↓ 18 callers
Method
record
(self, handle)
deepspeed/module_inject/auto_ep_comm.py:422
↓ 18 callers
Method
set_device
(self, device_index)
accelerator/hpu_accelerator.py:63
↓ 18 callers
Method
to
(self, *args, **kwargs)
deepspeed/inference/v2/inference_parameter.py:40
↓ 18 callers
Method
wait
(self, **kwargs)
deepspeed/runtime/zero/partition_parameters.py:79
↓ 17 callers
Method
__init__
(self, dim=None, dtype=torch.float, eps=1e-5, weight=None, bias=None)
deepspeed/module_inject/layers.py:1858
↓ 17 callers
Function
compare_gradients
Compare gradients between DDP and DeepSpeed. Uses PyTorch's default tolerances for the tensor dtype (e.g., for bfloat16: rtol=1.6e-2, atol=1e
tests/unit/v1/zero/test_zero_user_backward.py:168
← previous
next →
101–200 of 14,579, ranked by callers