MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 1,102 callersFunctionget_accelerator
()
accelerator/real_accelerator.py:51
↓ 918 callersMethodappend
(self, raw_name, record_name, latency, msg_size)
deepspeed/utils/comms_logging.py:104
↓ 531 callersMethodparameters
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 callersMethodinitialize
Create the inference parameter.
deepspeed/inference/v2/inference_parameter.py:56
↓ 355 callersMethodmanual_seed
(self, seed)
accelerator/hpu_accelerator.py:88
↓ 312 callersMethodbackward
(ctx, grad_output)
tests/unit/v1/zero/test_zero_activation_checkpoint_lifecycle.py:68
↓ 303 callersMethodsum
(self, *args, **kwargs)
tests/unit/v1/moe/test_autoep_unit.py:1842
↓ 299 callersMethodget_rank
(self, group=None)
deepspeed/comm/torch.py:569
↓ 298 callersMethodassert_close
(actual, expected, name)
tests/unit/v1/sequence_parallelism/test_ulysses.py:464
↓ 290 callersMethodto
(self, *args, **kwargs)
deepspeed/ops/fp_quantizer/quantize.py:110
↓ 276 callersMethodnumel
(self)
deepspeed/checkpoint/affine.py:84
↓ 264 callersMethoddevice_name
()
tests/unit/runtime/test_determinism.py:24
↓ 263 callersMethodreshape
(self, target_3d_desc, verbose=False)
deepspeed/checkpoint/reshape_3d_utils.py:27
↓ 253 callersMethodcopy_
(self, source)
tests/unit/comm/test_dist.py:202
↓ 249 callersMethodget_world_size
(self, group=None)
deepspeed/comm/torch.py:572
↓ 238 callersMethodget
Retrieve and materialize stored real inputs Returns: Materialized real inputs with actual tensors Raises:
deepspeed/compile/input_storage.py:165
↓ 237 callersMethodcontiguous
Merge partitioned weights from flat_groups into a single tensor.
deepspeed/utils/zero_to_fp32.py:478
↓ 195 callersMethodto
(self, *args, **kwargs)
tests/unit/v1/compile/test_graph_profile.py:206
↓ 194 callersMethodto
(self, device)
tests/unit/comm/test_dist.py:199
↓ 190 callersMethodcurrent_device_name
(self)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:42
↓ 168 callersMethodstep
(self, step_id, closure=None)
tests/unit/v1/ops/muon/test_muon_partial_training.py:320
↓ 166 callersMethodbackward
(ctx, grad)
tests/unit/runtime/zero/test_zero_shared_loss_gradient.py:36
↓ 166 callersMethoddestroy
(self)
deepspeed/runtime/engine.py:1267
↓ 164 callersMethodnumel
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:60
↓ 150 callersMethodget_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 callersFunctionrandom_dataloader
(model, total_samples, hidden_dim, device, dtype=preferred_dtype())
tests/unit/simple_model.py:252
↓ 124 callersMethoddata_ptr
csrc/gds/py_lib/deepspeed_gds_op.cpp:108
↓ 123 callersMethodfull
(self, device=None)
deepspeed/runtime/utils.py:790
↓ 120 callersMethodis_fp16_supported
(self)
accelerator/hpu_accelerator.py:163
↓ 120 callersMethodwarning
(self, msg)
op_builder/builder.py:578
↓ 114 callersMethodget
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 callersMethodis_bf16_supported
(self)
accelerator/hpu_accelerator.py:160
↓ 102 callersMethodall_reduce
(self, tensor, op=ReduceOp.SUM, group=None, async_op=False)
deepspeed/comm/ccl.py:79
↓ 100 callersMethodsize
(self, index)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:207
↓ 99 callersMethodsize
csrc/adam/cpu_adam_impl.cpp:416
↓ 97 callersMethodbarrier
(self, group=None, async_op=False, device_ids=None)
deepspeed/comm/ccl.py:137
↓ 96 callersMethodcurrent_device_name
(self)
accelerator/hpu_accelerator.py:69
↓ 94 callersMethodstep
(self, closure=None)
tests/unit/runtime/sparse_tensor/test_sparse_grads.py:36
↓ 92 callersMethodadd
(self, b)
deepspeed/runtime/sparse_tensor.py:47
↓ 92 callersMethoddevice
(self)
tests/unit/v1/moe/test_autoep_unit.py:1839
↓ 90 callersMethodpop
(self)
deepspeed/sequence/linear_cross_entropy.py:338
↓ 89 callersMethod__new__
(cls, data)
tests/unit/v1/compile/test_graph_profile.py:200
↓ 86 callersMethodis_initialized
(self)
deepspeed/comm/ccl.py:60
↓ 86 callersMethodload
(self)
tests/unit/v1/accelerator/test_accelerator.py:271
↓ 85 callersMethodmean
(self)
deepspeed/utils/timer.py:187
↓ 83 callersMethodis_available
(self)
accelerator/hpu_accelerator.py:176
↓ 81 callersMethodupdate
Update the tuner with what configurations have been evaluated and their performance results
deepspeed/autotuning/tuner/base_tuner.py:35
↓ 80 callersMethodapply
(self, module, enable_cuda_graph=True)
deepspeed/module_inject/containers/vae.py:36
↓ 70 callersMethoddevice
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:77
↓ 69 callersMethodsynchronize
(self, device_index=None)
accelerator/hpu_accelerator.py:75
↓ 66 callersFunctionpreferred_dtype
()
tests/unit/common.py:515
↓ 66 callersFunctionrequired_torch_version
(min_version=None, max_version=None)
deepspeed/utils/torch.py:17
↓ 64 callersFunctionplan_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 callersMethodload
(self)
deepspeed/ops/transformer/inference/triton/matmul_ext.py:117
↓ 61 callersMethodstate_dict
(self)
deepspeed/runtime/lr_schedules.py:696
↓ 60 callersMethodnew_group
(self, ranks)
deepspeed/comm/ccl.py:154
↓ 59 callersMethodtranspose
(self)
deepspeed/module_inject/containers/base.py:283
↓ 58 callersMethodstart
(self)
deepspeed/utils/timer.py:172
↓ 57 callersMethodzero_grad
(self)
deepspeed/ops/lion/fused_lion.py:47
↓ 56 callersMethodsave_checkpoint
Save training checkpoint Arguments: save_dir: Required. Directory for saving the checkpoint tag: Optional. Checkpoint
deepspeed/runtime/engine.py:4975
↓ 54 callersMethodbroadcast
(self, tensor, src, group=None, async_op=False)
deepspeed/comm/ccl.py:94
↓ 52 callersMethod_op
Return torch.ops.deepspeed.<name>, raising clearly if not registered.
op_builder/supa/inference.py:25
↓ 52 callersMethodload_checkpoint
Load training checkpoint Arguments: load_dir: Required. Directory to load the checkpoint from tag: Checkpoin
deepspeed/runtime/engine.py:4477
↓ 51 callersMethoddtype
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:80
↓ 51 callersFunctionreplicated_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 callersMethoddevice_name
(self, device_index=None)
accelerator/hpu_accelerator.py:56
↓ 49 callersMethodcurrent_device
(self)
tests/unit/v1/compile/test_list_schedule.py:141
↓ 49 callersMethodsave
(self, name: str, v: Argument, offload)
deepspeed/compile/util.py:210
↓ 47 callersMethodload_state_dict
(self, sd)
deepspeed/runtime/lr_schedules.py:699
↓ 46 callersFunctioncontiguous_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 callersMethodexists
(path)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:211
↓ 46 callersMethodextract
Produce one rank's shard from the full parameter. The inverse of ``rebuild``.
deepspeed/checkpoint/affine.py:451
↓ 46 callersMethodstore
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:155
↓ 45 callersMethodpin_memory
(self, tensor, make_copy=True, match_shape=True)
accelerator/cpu_accelerator.py:430
↓ 45 callersFunctionsee_memory_usage
(message, force=False)
deepspeed/runtime/utils.py:903
↓ 44 callersMethodcompile
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 callersMethodcurrent_stream
(self, device_index=None)
accelerator/hpu_accelerator.py:108
↓ 41 callersMethoddevice
(self, device_index=None)
accelerator/hpu_accelerator.py:60
↓ 41 callersMethodgenerate
(self, request: RolloutRequest, sampling: SamplingConfig)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:173
↓ 40 callersMethodall_gather
(self, tensor_list, tensor, group=None, async_op=False)
deepspeed/comm/ccl.py:97
↓ 40 callersMethodmakedirs
(self, path, exist_ok=False)
deepspeed/runtime/checkpoint_engine/checkpoint_engine.py:35
↓ 40 callersMethodrebuild
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 callersMethodcurrent_device
(self)
accelerator/hpu_accelerator.py:66
↓ 39 callersFunctioninitialize_distributed
()
tests/unit/v1/zero/test_zero_user_backward.py:102
↓ 39 callersMethodlog
(self, names, normalizer=1.0, reset=True, memory_breakdown=False, ranks=None)
deepspeed/utils/timer.py:199
↓ 39 callersMethodwrite
(self, rel: str, content: str = "")
ci/test_tests_fetcher.py:97
↓ 38 callersMethodall_gather_into_tensor
(self, output_tensor, input_tensor, group=None, async_op=False)
deepspeed/comm/ccl.py:111
↓ 38 callersMethodcollect
Run an explicit collection without changing the automatic-GC policy.
deepspeed/runtime/python_gc.py:65
↓ 38 callersMethodget
(self, model)
tests/unit/v1/moe/test_autoep_unit.py:2419
↓ 38 callersFunctiongetCurrentCUDAStream
csrc/xpu/adam/multi_tensor_apply.dp.hpp:23
↓ 38 callersFunctionget_scalar_param
(param_dict, param_name, param_default_value)
deepspeed/runtime/config_utils.py:193
↓ 38 callersMethodread
(self, args, tid)
deepspeed/nvme/torch_io.py:23
↓ 38 callersMethodstop
(self, **kwargs)
deepspeed/utils/timer.py:178
↓ 37 callersFunction_ensure_dc_ops
()
tests/unit/v1/compile/test_offload_activation.py:40
↓ 37 callersMethodget_world_group
(self)
deepspeed/comm/torch.py:592
↓ 37 callersFunctionmake_autoep_placement_descriptor
Build a versioned descriptor from expert IDs in rank-local packed order.
deepspeed/checkpoint/autoep_affine.py:36
↓ 37 callersMethodoutput
Returns the pre-allocated, padded output Tensor.
deepspeed/inference/v2/modules/interfaces/moe_base.py:79
↓ 37 callersFunctionsafe_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 callersMethodadd
Track the rng state.
deepspeed/runtime/activation_checkpointing/checkpointing.py:164
↓ 36 callersFunctionlog_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