MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 39 callersMethodstop
(self, **kwargs)
deepspeed/utils/timer.py:178
↓ 38 callersMethodcollect
Run an explicit collection without changing the automatic-GC policy.
deepspeed/runtime/python_gc.py:65
↓ 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 callersMethodlog
(self, names, normalizer=1.0, reset=True, memory_breakdown=False, ranks=None)
deepspeed/utils/timer.py:199
↓ 38 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
↓ 38 callersMethodoutput
Returns the pre-allocated, padded output Tensor.
deepspeed/inference/v2/modules/interfaces/moe_base.py:79
↓ 38 callersMethodstep
(engine)
tests/unit/compile/test_tp_compile.py:477
↓ 38 callersMethodstream
(self, stream)
accelerator/hpu_accelerator.py:105
↓ 38 callersMethodwrite
(self, rel: str, content: str = "")
ci/test_tests_fetcher.py:97
↓ 37 callersFunction_ensure_dc_ops
()
tests/unit/v1/compile/test_offload_activation.py:40
↓ 37 callersMethodadd
csrc/includes/reflow_ready.h:39
↓ 37 callersFunctionmake_autoep_placement_descriptor
Build a versioned descriptor from expert IDs in rank-local packed order.
deepspeed/checkpoint/autoep_affine.py:36
↓ 36 callersFunctioncheckpoint
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 callersMethodget_param_id
(self, param)
deepspeed/runtime/zero/stage3.py:1759
↓ 35 callersFunctionallclose
(x, y, tolerances: Tuple[int, int] = None)
tests/unit/inference/v2/inference_test_utils.py:40
↓ 35 callersFunctionparse_autoep_config
Parse the 'expert_parallel' section from DS config JSON.
deepspeed/module_inject/auto_ep_config.py:44
↓ 33 callersFunctionget_shard_size_list
(total_size, mp_size, meta: AutoTPMeta, name=None)
deepspeed/module_inject/tp_shard.py:160
↓ 33 callersFunctionvalidate_autoep_config
Validate config constraints. Raises ValueError on invalid config.
deepspeed/module_inject/auto_ep_config.py:111
↓ 33 callersMethodwait_stream
(self, stream)
tests/unit/v1/zero/test_zero2_gradient_safety.py:266
↓ 32 callersMethodclear
(self)
deepspeed/utils/debug.py:54
↓ 32 callersMethodclear
(self)
deepspeed/runtime/zero/stage3.py:134
↓ 32 callersFunctionget_variant_config
(reflow, variant)
tests/unit/v1/zero/test_reflow.py:457
↓ 31 callersFunctionbf16_required_version_check
(accelerator_check=True)
tests/unit/util.py:39
↓ 31 callersMethodload
(module, state_dict, prefix)
deepspeed/inference/engine.py:339
↓ 30 callersMethodStream
(self)
accelerator/hpu_accelerator.py:102
↓ 30 callersMethodis_pinned
(self, device=None)
tests/unit/v1/compile/test_graph_profile.py:203
↓ 30 callersMethodpartition_numel
()
deepspeed/runtime/zero/partition_parameters.py:1649
↓ 29 callersFunction_make_tokenizer
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:43
↓ 29 callersMethod_replace_module
(self, r_module, prev_name='', prev_class_name='')
deepspeed/module_inject/auto_tp.py:1161
↓ 29 callersFunction_runtime_config
(**kwargs)
tests/unit/v1/moe/test_autoep_unit.py:77
↓ 29 callersMethod_swappable_optimizer_subgroup
(self, sub_group_id)
deepspeed/runtime/zero/stage3.py:1373
↓ 28 callersMethodcopy_
(self, other)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:19
↓ 28 callersFunctionmuon_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 callersMethodresolves_data_dependency
(self)
accelerator/hpu_accelerator.py:50
↓ 28 callersMethodset_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 callersMethodsort
(*args, **kwargs)
tests/unit/v1/moe/test_autoep_unit.py:1958
↓ 27 callersMethodcleanup
(self)
ci/test_tests_fetcher.py:112
↓ 27 callersMethodload
(self, name: str)
deepspeed/compile/util.py:213
↓ 27 callersMethodload
(module, state_dict, prefix, mp_group=None)
deepspeed/module_inject/auto_tp.py:177
↓ 27 callersFunctionskip_on_device
()
tests/unit/v1/autotp/test_autotp_training.py:40
↓ 26 callersMethodall_gather
(param_list=None, async_op=False, hierarchy=0)
deepspeed/runtime/zero/partition_parameters.py:1327
↓ 26 callersMethodrecord_stream
(self, stream)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:23
↓ 26 callersFunctionseed_everything
(seed=1234)
tests/unit/v1/moe/autoep_test_utils.py:248
↓ 26 callersMethodsupported_dtypes
(self)
accelerator/hpu_accelerator.py:169
↓ 25 callersFunction_make_engine
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:36
↓ 25 callersFunctioncollect_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 callersMethodgenerate
(self, request: RolloutRequest, sampling: SamplingConfig)
tests/unit/runtime/rollout/test_rollout_interface.py:174
↓ 25 callersFunctionget_caller_func
(frame=3)
deepspeed/utils/comms_logging.py:10
↓ 25 callersMethodrecord
(self, handle)
deepspeed/module_inject/auto_ep_comm.py:448
↓ 25 callersMethodwait
(self)
deepspeed/comm/torch.py:137
↓ 24 callersMethodautotp_size
(self)
deepspeed/runtime/engine.py:1756
↓ 24 callersMethodep_parser
Traverse model and detect MoE layers. Returns list of MoELayerSpec.
deepspeed/module_inject/auto_ep.py:417
↓ 24 callersMethodget
csrc/includes/memory_access_utils.h:74
↓ 24 callersFunctionhasKey
csrc/includes/deepcompile.h:33
↓ 24 callersFunctionleaf
(tensor)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:50
↓ 24 callersFunctionmake_optimizer
(dtype=torch.bfloat16, device=None, low_precision=False, cpu_offload=True)
tests/unit/v1/zero/test_zero2_gradient_safety.py:25
↓ 24 callersMethodon_accelerator
(self, tensor)
accelerator/hpu_accelerator.py:242
↓ 24 callersMethodrun
csrc/gds/deepspeed_gds_op.cpp:121
↓ 23 callersFunction_config
(zero_stage, world_size=2, contiguous_gradients=False, overlap_comm=False,
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:16
↓ 23 callersFunction_make_gm
(graph)
tests/unit/v1/compile/test_offload_activation.py:64
↓ 23 callersMethodall_reduce
(tensor, op)
tests/unit/v1/compile/test_offload_activation.py:314
↓ 23 callersMethodfree_cpu_locked_tensor
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:410
↓ 23 callersFunctionmake_batches
(hidden_dim, count, dtype=torch.bfloat16)
tests/unit/v1/zero/test_reflow.py:331
↓ 23 callersFunctionz3_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 callersMethodEvent
(self)
accelerator/hpu_accelerator.py:115
↓ 22 callersFunction_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 callersFunction_make_spec
(**kwargs)
tests/unit/v1/moe/test_autoep_unit.py:82
↓ 22 callersFunction_rms_norm
()
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:60
↓ 22 callersFunction_selection_file
(content: str)
ci/test_torch_latest.py:39
↓ 22 callersMethodcommit
(self, message: str)
ci/test_tests_fetcher.py:105
↓ 22 callersMethoddecode
(self, *inputs, **kwargs)
deepspeed/model_implementations/diffusers/vae.py:56
↓ 22 callersMethodget_param_id
(self, param)
deepspeed/runtime/zero/stage_1_and_2.py:1500
↓ 22 callersMethodis_synchronized_device
(self)
accelerator/hpu_accelerator.py:44
↓ 22 callersMethodset_device
(self, device_index)
accelerator/hpu_accelerator.py:63
↓ 22 callersMethodwait
(self)
tests/unit/v1/sequence_parallelism/test_overlap_grad_permutation.py:22
↓ 21 callersMethodGetCurrentStream
csrc/transformer/inference/includes/inference_context.h:228
↓ 21 callersFunction_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 callersMethodcreate_graph
(self)
accelerator/hpu_accelerator.py:195
↓ 21 callersMethodget_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 callersFunctionrun
(mask, phase)
tests/unit/v1/ops/test_reflow_cpu_optimizers.py:366
↓ 21 callersFunctionsafe_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 callersFunction_make_mock_process_group
Return a mock object that satisfies dist.get_world_size / get_rank.
deepspeed/sequence/test_autosp.py:92
↓ 20 callersFunction_node_names
(graph)
tests/unit/v1/compile/test_offload_activation.py:135
↓ 20 callersMethod_splice_visual_into_text
(self, text_embeds, visual_embeds, input_ids)
deepspeed/sequence/test_autosp.py:282
↓ 20 callersMethodbfloat16_enabled
(self)
deepspeed/runtime/engine.py:1762
↓ 20 callersFunctionfn
(compat_tensor: nn.Parameter)
deepspeed/inference/quantization/utils.py:205
↓ 20 callersMethodget_tensor_model_parallel_rank
(self)
deepspeed/runtime/pipe/topology.py:460
↓ 20 callersMethodlayer_norm
(inputs, gamma, beta, epsilon)
op_builder/npu/inference.py:110
↓ 20 callersMethodselect
(self, base: str | None, commit_message: str = "")
ci/tests_fetcher.py:498
↓ 20 callersFunctionskip_on_device
()
tests/unit/v1/autotp/test_autotp_custom_patterns.py:30
↓ 20 callersMethodzero_optimization_partition_weights
(self)
deepspeed/runtime/engine.py:1705
↓ 19 callersFunction_valid_env
(path: Path, **overrides: str)
ci/test_torch_latest.py:46
↓ 19 callersFunctioncollect_gradients_safe
Collect gradients from model parameters using safe_get_full_grad API
tests/unit/v1/zero/test_zero_user_backward.py:89
↓ 19 callersMethodempty_cache
(self)
accelerator/hpu_accelerator.py:120
↓ 19 callersMethodintersection
(self, other: 'LogicalBox')
deepspeed/checkpoint/affine_geometry.py:141
↓ 19 callersMethodrun_test
(self, test_config, r_tol)
tests/model/Megatron_GPT2/run_func_test.py:483
↓ 19 callersMethodsizes
(self)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:546
↓ 19 callersFunctionskip_on_arch
(min_arch=7)
tests/unit/util.py:18
↓ 19 callersFunctionskip_unless_h100_tests_enabled
(reason)
tests/unit/v1/moe/autoep_test_utils.py:32
← previousnext →101–200 of 15,468, ranked by callers