MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 1,268 callersFunctionget_accelerator
()
accelerator/real_accelerator.py:51
↓ 736 callersMethodappend
(self, raw_name, record_name, latency, msg_size)
deepspeed/utils/comms_logging.py:104
↓ 648 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
↓ 551 callersMethodinitialize
(name)
tests/unit/runtime/zero/test_nvme_checkpointing.py:198
↓ 469 callersMethodmanual_seed
(self, seed)
accelerator/hpu_accelerator.py:88
↓ 390 callersMethodassert_close
(actual, expected, name)
tests/unit/v1/sequence_parallelism/test_ulysses.py:600
↓ 361 callersMethodget_rank
(self, group=None)
deepspeed/comm/torch.py:602
↓ 348 callersMethodsum
(self, *args, **kwargs)
tests/unit/v1/moe/test_autoep_unit.py:2075
↓ 340 callersMethodto
(self, *args, **kwargs)
deepspeed/ops/fp_quantizer/quantize.py:110
↓ 326 callersMethoddevice_name
()
tests/unit/runtime/test_determinism.py:24
↓ 320 callersMethodbackward
(experts, index, **staging_kwargs)
tests/unit/v1/moe/test_autoep_expert_activation.py:857
↓ 311 callersMethodnumel
(self)
deepspeed/checkpoint/affine.py:88
↓ 300 callersMethodreshape
(self, target_3d_desc, verbose=False)
deepspeed/checkpoint/reshape_3d_utils.py:27
↓ 298 callersMethodappend
(self, item)
deepspeed/runtime/reflow/ready_batch.py:24
↓ 284 callersMethodget_world_size
(self, group=None)
deepspeed/comm/torch.py:605
↓ 280 callersMethodcopy_
(self, source)
tests/unit/comm/test_dist.py:202
↓ 274 callersMethodcontiguous
Merge partitioned weights from flat_groups into a single tensor.
deepspeed/utils/zero_to_fp32.py:478
↓ 260 callersMethodto
(self, *args, **kwargs)
tests/unit/v1/compile/test_graph_profile.py:206
↓ 245 callersMethodget
Retrieve and materialize stored real inputs Returns: Materialized real inputs with actual tensors Raises:
deepspeed/compile/input_storage.py:165
↓ 236 callersMethodcurrent_device_name
(self)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:42
↓ 224 callersMethoddestroy
(self)
deepspeed/runtime/engine.py:1348
↓ 213 callersMethodstep
(self, step_id, closure=None)
tests/unit/v1/ops/muon/test_muon_partial_training.py:322
↓ 212 callersMethodto
(self, device)
tests/unit/comm/test_dist.py:199
↓ 167 callersMethodnumel
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:60
↓ 159 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
↓ 147 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
↓ 145 callersMethodfull
(self, device=None)
deepspeed/runtime/utils.py:791
↓ 139 callersMethoddata_ptr
csrc/gds/deepspeed_gds_op.cpp:108
↓ 133 callersMethodbackward
(ctx, grad_output)
tests/unit/v1/zero/test_zero_activation_checkpoint_lifecycle.py:68
↓ 130 callersFunctionrandom_dataloader
(model, total_samples, hidden_dim, device, dtype=preferred_dtype())
tests/unit/simple_model.py:252
↓ 123 callersMethodwarning
(self, msg)
op_builder/builder.py:464
↓ 122 callersMethodis_fp16_supported
(self)
accelerator/hpu_accelerator.py:163
↓ 122 callersFunctionmodel
()
tests/unit/module_inject/test_hf_parity.py:28
↓ 118 callersMethoddevice
(self)
tests/unit/v1/moe/test_autoep_unit.py:2072
↓ 115 callersMethodis_bf16_supported
(self)
accelerator/hpu_accelerator.py:160
↓ 113 callersMethodbackward
(ctx, grad)
tests/unit/runtime/zero/test_zero_shared_loss_gradient.py:36
↓ 110 callersMethodall_reduce
(self, tensor, op=ReduceOp.SUM, group=None, async_op=False)
deepspeed/comm/ccl.py:79
↓ 109 callersMethodpop
(self)
deepspeed/sequence/linear_cross_entropy.py:338
↓ 105 callersMethodmean
(self)
deepspeed/utils/timer.py:187
↓ 103 callersMethodcurrent_device_name
(self)
accelerator/hpu_accelerator.py:69
↓ 103 callersMethodupdate
Update the tuner with what configurations have been evaluated and their performance results
deepspeed/autotuning/tuner/base_tuner.py:35
↓ 101 callersMethodload
(self)
tests/unit/v1/accelerator/test_accelerator.py:271
↓ 101 callersMethodstep
(self, closure=None)
tests/unit/runtime/sparse_tensor/test_sparse_grads.py:36
↓ 99 callersMethodbarrier
(self, group=None, async_op=False, device_ids=None)
deepspeed/comm/ccl.py:137
↓ 99 callersMethodsize
(self, index)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:207
↓ 98 callersMethod__new__
(cls, data)
tests/unit/v1/compile/test_graph_profile.py:200
↓ 92 callersMethodis_initialized
(self)
deepspeed/comm/ccl.py:60
↓ 92 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:546
↓ 91 callersMethodis_available
(self)
accelerator/hpu_accelerator.py:176
↓ 83 callersMethodsynchronize
(self, device_index=None)
accelerator/hpu_accelerator.py:75
↓ 78 callersMethodstate_dict
(self)
deepspeed/runtime/lr_schedules.py:696
↓ 77 callersMethodapply
Record or replace a router's selected expert IDs.
deepspeed/moe/routing_replay.py:112
↓ 76 callersMethodtranspose
(self)
deepspeed/module_inject/containers/base.py:283
↓ 74 callersMethoddevice
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:77
↓ 73 callersMethodload
(self)
deepspeed/ops/transformer/inference/triton/matmul_ext.py:117
↓ 72 callersMethodgenerate
(self, request: RolloutRequest, sampling: SamplingConfig)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:313
↓ 72 callersMethodnew_group
(self, ranks)
deepspeed/comm/ccl.py:154
↓ 71 callersMethodsave_checkpoint
Save training checkpoint Arguments: save_dir: Required. Directory for saving the checkpoint tag: Optional. Checkpoint
deepspeed/runtime/engine.py:5152
↓ 71 callersMethodsize
csrc/adam/cpu_adam_impl.cpp:575
↓ 70 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:561
↓ 68 callersMethodadd
(self, b)
deepspeed/runtime/sparse_tensor.py:47
↓ 68 callersFunctionpreferred_dtype
()
tests/unit/common.py:528
↓ 67 callersFunctionrequired_torch_version
(min_version=None, max_version=None)
deepspeed/utils/torch.py:17
↓ 66 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:531
↓ 66 callersMethodzero_grad
(self)
deepspeed/ops/lion/fused_lion.py:47
↓ 65 callersMethodload_checkpoint
Load training checkpoint Arguments: load_dir: Required. Directory to load the checkpoint from tag: Checkpoin
deepspeed/runtime/engine.py:4603
↓ 61 callersMethodstart
(self)
deepspeed/utils/timer.py:172
↓ 60 callersMethodget
(self, model)
tests/unit/v1/moe/test_autoep_unit.py:2665
↓ 59 callersMethodextract
Produce one rank's shard from the full parameter. The inverse of ``rebuild``.
deepspeed/checkpoint/affine.py:430
↓ 57 callersMethodload_state_dict
(self, sd)
deepspeed/runtime/lr_schedules.py:699
↓ 56 callersMethoddtype
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:80
↓ 54 callersMethodbroadcast
(self, tensor, src, group=None, async_op=False)
deepspeed/comm/ccl.py:94
↓ 54 callersMethodstore
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:155
↓ 53 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:6152
↓ 52 callersMethod_op
Return torch.ops.deepspeed.<name>, raising clearly if not registered.
op_builder/supa/inference.py:25
↓ 52 callersMethodeval
(self)
tests/unit/hybrid_engine/test_he_lora.py:87
↓ 52 callersMethodsave
(self, name: str, v: Argument, offload)
deepspeed/compile/util.py:210
↓ 51 callersMethodcurrent_device
(self)
tests/unit/v1/compile/test_list_schedule.py:141
↓ 51 callersMethodcurrent_stream
(self, device_index=None)
accelerator/hpu_accelerator.py:108
↓ 49 callersMethoddevice_name
(self, device_index=None)
accelerator/hpu_accelerator.py:56
↓ 48 callersFunctionskip_if_reflow_training_unsupported
(optimizer_kind="adam")
tests/unit/v1/zero/test_reflow.py:315
↓ 47 callersMethodadd
Track the rng state.
deepspeed/runtime/activation_checkpointing/checkpointing.py:164
↓ 47 callersFunctionsafe_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
↓ 46 callersMethodexists
(path)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:211
↓ 45 callersFunctionsee_memory_usage
(message, force=False)
deepspeed/runtime/utils.py:904
↓ 45 callersMethodsynchronize
(self)
tests/unit/v1/zero/test_zero2_gradient_safety.py:245
↓ 44 callersMethodget
(self, _guard)
tests/unit/compile/test_zero3_grad_dtype.py:88
↓ 44 callersMethodpin_memory
(self, tensor, make_copy=True, match_shape=True)
accelerator/cpu_accelerator.py:430
↓ 43 callersMethodall_gather
(self, tensor_list, tensor, group=None, async_op=False)
deepspeed/comm/ccl.py:97
↓ 43 callersMethodcollect
Run an explicit collection without changing the automatic-GC policy.
deepspeed/runtime/python_gc.py:65
↓ 43 callersMethodfrom_pretrained
(*args, **kwargs)
deepspeed/linear/context_manager.py:73
↓ 43 callersMethodread
(self, args, tid)
deepspeed/nvme/torch_io.py:23
↓ 42 callersMethodcurrent_device
(self)
accelerator/hpu_accelerator.py:66
↓ 42 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:343
↓ 42 callersMethodstep
(engine)
tests/unit/compile/test_tp_compile.py:477
↓ 41 callersMethoddevice
(self, device_index=None)
accelerator/hpu_accelerator.py:60
↓ 41 callersMethodget_world_group
(self)
deepspeed/comm/torch.py:625
↓ 40 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
↓ 39 callersMethodall_gather_into_tensor
(self, output_tensor, input_tensor, group=None, async_op=False)
deepspeed/comm/ccl.py:111
↓ 39 callersMethodcopy
Copy residency state, optionally starting a candidate-local peak.
deepspeed/compile/list_schedule.py:347
next →1–100 of 15,767, ranked by callers