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
↓ 1,102 callers
Function
get_accelerator
()
accelerator/real_accelerator.py:51
↓ 918 callers
Method
append
(self, raw_name, record_name, latency, msg_size)
deepspeed/utils/comms_logging.py:104
↓ 531 callers
Method
parameters
This method should create a generator of tuples of the form (name, parameter) for all parameters in the model. The name should be the
deepspeed/inference/v2/checkpoint/base_engine.py:26
↓ 479 callers
Method
initialize
Create the inference parameter.
deepspeed/inference/v2/inference_parameter.py:56
↓ 355 callers
Method
manual_seed
(self, seed)
accelerator/hpu_accelerator.py:88
↓ 312 callers
Method
backward
(ctx, grad_output)
tests/unit/v1/zero/test_zero_activation_checkpoint_lifecycle.py:68
↓ 303 callers
Method
sum
(self, *args, **kwargs)
tests/unit/v1/moe/test_autoep_unit.py:1842
↓ 299 callers
Method
get_rank
(self, group=None)
deepspeed/comm/torch.py:569
↓ 298 callers
Method
assert_close
(actual, expected, name)
tests/unit/v1/sequence_parallelism/test_ulysses.py:464
↓ 290 callers
Method
to
(self, *args, **kwargs)
deepspeed/ops/fp_quantizer/quantize.py:110
↓ 276 callers
Method
numel
(self)
deepspeed/checkpoint/affine.py:84
↓ 264 callers
Method
device_name
()
tests/unit/runtime/test_determinism.py:24
↓ 263 callers
Method
reshape
(self, target_3d_desc, verbose=False)
deepspeed/checkpoint/reshape_3d_utils.py:27
↓ 253 callers
Method
copy_
(self, source)
tests/unit/comm/test_dist.py:202
↓ 249 callers
Method
get_world_size
(self, group=None)
deepspeed/comm/torch.py:572
↓ 238 callers
Method
get
Retrieve and materialize stored real inputs Returns: Materialized real inputs with actual tensors Raises:
deepspeed/compile/input_storage.py:165
↓ 237 callers
Method
contiguous
Merge partitioned weights from flat_groups into a single tensor.
deepspeed/utils/zero_to_fp32.py:478
↓ 195 callers
Method
to
(self, *args, **kwargs)
tests/unit/v1/compile/test_graph_profile.py:206
↓ 194 callers
Method
to
(self, device)
tests/unit/comm/test_dist.py:199
↓ 190 callers
Method
current_device_name
(self)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:42
↓ 168 callers
Method
step
(self, step_id, closure=None)
tests/unit/v1/ops/muon/test_muon_partial_training.py:320
↓ 166 callers
Method
backward
(ctx, grad)
tests/unit/runtime/zero/test_zero_shared_loss_gradient.py:36
↓ 166 callers
Method
destroy
(self)
deepspeed/runtime/engine.py:1267
↓ 164 callers
Method
numel
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:60
↓ 150 callers
Method
get_rank
Return the global rank of a process via its coordinates. Coordinates are specified as kwargs. For example: >>> X = ProcessTopolo
deepspeed/runtime/pipe/topology.py:49
↓ 125 callers
Function
random_dataloader
(model, total_samples, hidden_dim, device, dtype=preferred_dtype())
tests/unit/simple_model.py:252
↓ 124 callers
Method
data_ptr
csrc/gds/py_lib/deepspeed_gds_op.cpp:108
↓ 123 callers
Method
full
(self, device=None)
deepspeed/runtime/utils.py:790
↓ 120 callers
Method
is_fp16_supported
(self)
accelerator/hpu_accelerator.py:163
↓ 120 callers
Method
warning
(self, msg)
op_builder/builder.py:578
↓ 114 callers
Method
get
Retrieves a single item from the dataset with the option to only return a portion of the item. get(idx) is the same as [idx] but get
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:532
↓ 107 callers
Method
is_bf16_supported
(self)
accelerator/hpu_accelerator.py:160
↓ 102 callers
Method
all_reduce
(self, tensor, op=ReduceOp.SUM, group=None, async_op=False)
deepspeed/comm/ccl.py:79
↓ 100 callers
Method
size
(self, index)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:207
↓ 99 callers
Method
size
csrc/adam/cpu_adam_impl.cpp:416
↓ 97 callers
Method
barrier
(self, group=None, async_op=False, device_ids=None)
deepspeed/comm/ccl.py:137
↓ 96 callers
Method
current_device_name
(self)
accelerator/hpu_accelerator.py:69
↓ 94 callers
Method
step
(self, closure=None)
tests/unit/runtime/sparse_tensor/test_sparse_grads.py:36
↓ 92 callers
Method
add
(self, b)
deepspeed/runtime/sparse_tensor.py:47
↓ 92 callers
Method
device
(self)
tests/unit/v1/moe/test_autoep_unit.py:1839
↓ 90 callers
Method
pop
(self)
deepspeed/sequence/linear_cross_entropy.py:338
↓ 89 callers
Method
__new__
(cls, data)
tests/unit/v1/compile/test_graph_profile.py:200
↓ 86 callers
Method
is_initialized
(self)
deepspeed/comm/ccl.py:60
↓ 86 callers
Method
load
(self)
tests/unit/v1/accelerator/test_accelerator.py:271
↓ 85 callers
Method
mean
(self)
deepspeed/utils/timer.py:187
↓ 83 callers
Method
is_available
(self)
accelerator/hpu_accelerator.py:176
↓ 81 callers
Method
update
Update the tuner with what configurations have been evaluated and their performance results
deepspeed/autotuning/tuner/base_tuner.py:35
↓ 80 callers
Method
apply
(self, module, enable_cuda_graph=True)
deepspeed/module_inject/containers/vae.py:36
↓ 70 callers
Method
device
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:77
↓ 69 callers
Method
synchronize
(self, device_index=None)
accelerator/hpu_accelerator.py:75
↓ 66 callers
Function
preferred_dtype
()
tests/unit/common.py:515
↓ 66 callers
Function
required_torch_version
(min_version=None, max_version=None)
deepspeed/utils/torch.py:17
↓ 64 callers
Function
plan_transfer
Plan copies from shards laid out by ``source_map`` into shards laid out by ``target_map``. Both maps must describe the same logical parameter. Wh
deepspeed/checkpoint/affine_transfer.py:494
↓ 61 callers
Method
load
(self)
deepspeed/ops/transformer/inference/triton/matmul_ext.py:117
↓ 61 callers
Method
state_dict
(self)
deepspeed/runtime/lr_schedules.py:696
↓ 60 callers
Method
new_group
(self, ranks)
deepspeed/comm/ccl.py:154
↓ 59 callers
Method
transpose
(self)
deepspeed/module_inject/containers/base.py:283
↓ 58 callers
Method
start
(self)
deepspeed/utils/timer.py:172
↓ 57 callers
Method
zero_grad
(self)
deepspeed/ops/lion/fused_lion.py:47
↓ 56 callers
Method
save_checkpoint
Save training checkpoint Arguments: save_dir: Required. Directory for saving the checkpoint tag: Optional. Checkpoint
deepspeed/runtime/engine.py:4975
↓ 54 callers
Method
broadcast
(self, tensor, src, group=None, async_op=False)
deepspeed/comm/ccl.py:94
↓ 52 callers
Method
_op
Return torch.ops.deepspeed.<name>, raising clearly if not registered.
op_builder/supa/inference.py:25
↓ 52 callers
Method
load_checkpoint
Load training checkpoint Arguments: load_dir: Required. Directory to load the checkpoint from tag: Checkpoin
deepspeed/runtime/engine.py:4477
↓ 51 callers
Method
dtype
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:80
↓ 51 callers
Function
replicated_map
Every rank holds the whole parameter. One piece, named by every rank, which is what lets a converter read it from whichever rank is cheapest
deepspeed/checkpoint/affine.py:568
↓ 50 callers
Method
device_name
(self, device_index=None)
accelerator/hpu_accelerator.py:56
↓ 49 callers
Method
current_device
(self)
tests/unit/v1/compile/test_list_schedule.py:141
↓ 49 callers
Method
save
(self, name: str, v: Argument, offload)
deepspeed/compile/util.py:210
↓ 47 callers
Method
load_state_dict
(self, sd)
deepspeed/runtime/lr_schedules.py:699
↓ 46 callers
Function
contiguous_split_map
Each rank holds one contiguous block along ``partition_dim``. Covers row-parallel and column-parallel layers alike: they differ only in which axi
deepspeed/checkpoint/affine.py:598
↓ 46 callers
Method
exists
(path)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:211
↓ 46 callers
Method
extract
Produce one rank's shard from the full parameter. The inverse of ``rebuild``.
deepspeed/checkpoint/affine.py:451
↓ 46 callers
Method
store
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:155
↓ 45 callers
Method
pin_memory
(self, tensor, make_copy=True, match_shape=True)
accelerator/cpu_accelerator.py:430
↓ 45 callers
Function
see_memory_usage
(message, force=False)
deepspeed/runtime/utils.py:903
↓ 44 callers
Method
compile
Compile the module using the specified backend and kwargs. With ``compile.autoep_non_moe`` enabled in the DeepSpeed config, compile the
deepspeed/runtime/engine.py:5950
↓ 43 callers
Method
current_stream
(self, device_index=None)
accelerator/hpu_accelerator.py:108
↓ 41 callers
Method
device
(self, device_index=None)
accelerator/hpu_accelerator.py:60
↓ 41 callers
Method
generate
(self, request: RolloutRequest, sampling: SamplingConfig)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:173
↓ 40 callers
Method
all_gather
(self, tensor_list, tensor, group=None, async_op=False)
deepspeed/comm/ccl.py:97
↓ 40 callers
Method
makedirs
(self, path, exist_ok=False)
deepspeed/runtime/checkpoint_engine/checkpoint_engine.py:35
↓ 40 callers
Method
rebuild
Rebuild the full parameter from per-rank shards, using the pieces as the plan. ``shards`` maps a rank to its shard. ``scale_power``
deepspeed/checkpoint/affine.py:364
↓ 39 callers
Method
current_device
(self)
accelerator/hpu_accelerator.py:66
↓ 39 callers
Function
initialize_distributed
()
tests/unit/v1/zero/test_zero_user_backward.py:102
↓ 39 callers
Method
log
(self, names, normalizer=1.0, reset=True, memory_breakdown=False, ranks=None)
deepspeed/utils/timer.py:199
↓ 39 callers
Method
write
(self, rel: str, content: str = "")
ci/test_tests_fetcher.py:97
↓ 38 callers
Method
all_gather_into_tensor
(self, output_tensor, input_tensor, group=None, async_op=False)
deepspeed/comm/ccl.py:111
↓ 38 callers
Method
collect
Run an explicit collection without changing the automatic-GC policy.
deepspeed/runtime/python_gc.py:65
↓ 38 callers
Method
get
(self, model)
tests/unit/v1/moe/test_autoep_unit.py:2419
↓ 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
read
(self, args, tid)
deepspeed/nvme/torch_io.py:23
↓ 38 callers
Method
stop
(self, **kwargs)
deepspeed/utils/timer.py:178
↓ 37 callers
Function
_ensure_dc_ops
()
tests/unit/v1/compile/test_offload_activation.py:40
↓ 37 callers
Method
get_world_group
(self)
deepspeed/comm/torch.py:592
↓ 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
↓ 37 callers
Method
output
Returns the pre-allocated, padded output Tensor.
deepspeed/inference/v2/modules/interfaces/moe_base.py:79
↓ 37 callers
Function
safe_get_full_grad
Assemble and return the fp32 gradient of a low-precision (e.g., fp16) parameter. The return data type is that used for gradient accum
deepspeed/utils/tensor_fragment.py:208
↓ 36 callers
Method
add
Track the rng state.
deepspeed/runtime/activation_checkpointing/checkpointing.py:164
↓ 36 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
next →
1–100 of 14,579, ranked by callers