MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 35 callersFunctionallclose
(x, y, tolerances: Tuple[int, int] = None)
tests/unit/inference/v2/inference_test_utils.py:40
↓ 35 callersMethodcopy
Copy residency state, optionally starting a candidate-local peak.
deepspeed/compile/list_schedule.py:347
↓ 35 callersMethodstep
(engine)
tests/unit/compile/test_tp_compile.py:477
↓ 34 callersMethodeval
(self)
tests/unit/hybrid_engine/test_he_lora.py:87
↓ 34 callersMethodfrom_pretrained
(*args, **kwargs)
deepspeed/linear/context_manager.py:73
↓ 34 callersFunctionget_shard_size_list
(total_size, mp_size, meta: AutoTPMeta, name=None)
deepspeed/module_inject/tp_shard.py:142
↓ 34 callersMethodsynchronize
(self)
tests/unit/v1/zero/test_zero2_gradient_safety.py:243
↓ 33 callersMethodstream
(self, stream)
accelerator/hpu_accelerator.py:105
↓ 31 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
↓ 31 callersMethodget
(self, _guard)
tests/unit/compile/test_zero3_grad_dtype.py:88
↓ 31 callersMethodload
(module, state_dict, prefix)
deepspeed/inference/engine.py:339
↓ 30 callersFunctionbf16_required_version_check
(accelerator_check=True)
tests/unit/util.py:39
↓ 30 callersMethodclear
(self)
deepspeed/utils/debug.py:54
↓ 30 callersFunctionvalidate_autoep_config
Validate config constraints. Raises ValueError on invalid config.
deepspeed/module_inject/auto_ep_config.py:105
↓ 29 callersMethod_replace_module
(self, r_module, prev_name='', prev_class_name='')
deepspeed/module_inject/auto_tp.py:1057
↓ 29 callersMethodis_pinned
(self, device=None)
tests/unit/v1/compile/test_graph_profile.py:203
↓ 29 callersMethodwait_stream
(self, stream)
tests/unit/v1/zero/test_zero2_gradient_safety.py:257
↓ 28 callersFunctionparse_autoep_config
Parse the 'expert_parallel' section from DS config JSON.
deepspeed/module_inject/auto_ep_config.py:42
↓ 28 callersMethodsort
(*args, **kwargs)
tests/unit/v1/moe/test_autoep_unit.py:1900
↓ 28 callersMethodwait
(self)
deepspeed/comm/torch.py:137
↓ 27 callersFunction_make_tokenizer
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:43
↓ 27 callersFunction_runtime_config
(**kwargs)
tests/unit/v1/moe/test_autoep_unit.py:77
↓ 27 callersMethodcleanup
(self)
ci/test_tests_fetcher.py:112
↓ 27 callersMethodis_rocm_pytorch
()
op_builder/builder.py:203
↓ 27 callersMethodload
(module, state_dict, prefix, mp_group=None)
deepspeed/module_inject/auto_tp.py:162
↓ 27 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
↓ 27 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:3550
↓ 26 callersMethodStream
(self)
accelerator/hpu_accelerator.py:102
↓ 26 callersMethodcopy_
(self, other)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:19
↓ 26 callersMethodload
(self, name: str)
deepspeed/compile/util.py:213
↓ 26 callersMethodresolves_data_dependency
(self)
accelerator/hpu_accelerator.py:50
↓ 26 callersMethodsupported_dtypes
(self)
accelerator/hpu_accelerator.py:169
↓ 25 callersMethodall_gather
(param_list=None, async_op=False, hierarchy=0)
deepspeed/runtime/zero/partition_parameters.py:1327
↓ 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:695
↓ 25 callersMethodfree_cpu_locked_tensor
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:410
↓ 25 callersMethodget
csrc/includes/memory_access_utils.h:74
↓ 25 callersFunctionget_caller_func
(frame=3)
deepspeed/utils/comms_logging.py:10
↓ 24 callersMethodautotp_size
(self)
deepspeed/runtime/engine.py:1703
↓ 24 callersMethodclear
(self)
deepspeed/runtime/zero/stage3.py:130
↓ 24 callersMethoddecode
(self, *inputs, **kwargs)
deepspeed/model_implementations/diffusers/vae.py:56
↓ 24 callersMethodget_param_id
(self, param)
deepspeed/runtime/zero/stage3.py:1617
↓ 24 callersFunctionhasKey
csrc/includes/deepcompile.h:33
↓ 24 callersFunctionleaf
(tensor)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:50
↓ 24 callersMethodpartition_numel
()
deepspeed/runtime/zero/partition_parameters.py:1649
↓ 24 callersMethodrecord_stream
(self, stream)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:23
↓ 24 callersFunctionseed_everything
(seed=1234)
tests/unit/v1/moe/autoep_test_utils.py:248
↓ 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_engine
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:36
↓ 23 callersFunction_make_gm
(graph)
tests/unit/v1/compile/test_offload_activation.py:64
↓ 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_selection_file
(content: str)
ci/test_torch_latest.py:39
↓ 22 callersMethodcommit
(self, message: str)
ci/test_tests_fetcher.py:105
↓ 22 callersMethodget_param_id
(self, param)
deepspeed/runtime/zero/stage_1_and_2.py:1492
↓ 22 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
↓ 22 callersMethodrun
(self)
tests/unit/common.py:157
↓ 22 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
↓ 21 callersMethodGetCurrentStream
csrc/transformer/inference/includes/inference_context.h:228
↓ 21 callersFunction_make_spec
(**kwargs)
tests/unit/v1/moe/test_autoep_unit.py:82
↓ 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 callersMethodep_parser
Traverse model and detect MoE layers. Returns list of MoELayerSpec.
deepspeed/module_inject/auto_ep.py:417
↓ 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 callersFunctionskip_on_device
()
tests/unit/v1/autotp/test_autotp_training.py:39
↓ 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 callersMethod_swappable_optimizer_subgroup
(self, sub_group_id)
deepspeed/runtime/zero/stage3.py:1311
↓ 20 callersMethodall_reduce
(tensor, op)
tests/unit/v1/compile/test_offload_activation.py:314
↓ 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 callersMethodon_accelerator
(self, tensor)
accelerator/hpu_accelerator.py:242
↓ 20 callersMethodrun
csrc/gds/py_lib/deepspeed_gds_op.cpp:121
↓ 20 callersMethodselect
(self, base: str | None, commit_message: str = "")
ci/tests_fetcher.py:492
↓ 20 callersFunctionskip_on_device
()
tests/unit/v1/autotp/test_autotp_custom_patterns.py:28
↓ 20 callersMethodzero_optimization_partition_weights
(self)
deepspeed/runtime/engine.py:1652
↓ 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 callersFunctionmake_optimizer
(dtype=torch.bfloat16, device=None, low_precision=False, cpu_offload=True)
tests/unit/v1/zero/test_zero2_gradient_safety.py:25
↓ 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 callersFunctionvalidate_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 callersMethodEvent
(self)
accelerator/hpu_accelerator.py:115
↓ 18 callersFunction_aws_config
()
ci/test_torch_latest.py:61
↓ 18 callersFunction_expect_error
(function, *args, exception=ValueError, **kwargs)
ci/test_torch_latest.py:31
↓ 18 callersMethod_incr_stats
(self, key, incr=1)
deepspeed/io/base_file_writer.py:35
↓ 18 callersFunction_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 callersFunction_make_profile
(graph, peak=10**9, num_fwd_outputs=1)
tests/unit/v1/compile/test_offload_activation.py:89
↓ 18 callersFunction_rms_norm
()
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:37
↓ 18 callersMethodbfloat16_enabled
(self)
deepspeed/runtime/engine.py:1709
↓ 18 callersFunctioncheckpoint_correctness_verification
(config_dict, models, hidden_d
tests/unit/checkpoint/common.py:165
↓ 18 callersMethodcreate_graph
(self)
accelerator/hpu_accelerator.py:195
↓ 18 callersMethoddata
(self)
deepspeed/runtime/utils.py:826
↓ 18 callersMethodds_summary
(slf: torch.Tensor, use_debug_name: bool = False)
deepspeed/runtime/zero/partition_parameters.py:1656
↓ 18 callersMethodempty_cache
(self)
accelerator/hpu_accelerator.py:120
↓ 18 callersFunctionfn
(compat_tensor: nn.Parameter)
deepspeed/inference/quantization/utils.py:205
↓ 18 callersMethodrecord
(self, handle)
deepspeed/module_inject/auto_ep_comm.py:422
↓ 18 callersMethodset_device
(self, device_index)
accelerator/hpu_accelerator.py:63
↓ 18 callersMethodto
(self, *args, **kwargs)
deepspeed/inference/v2/inference_parameter.py:40
↓ 18 callersMethodwait
(self, **kwargs)
deepspeed/runtime/zero/partition_parameters.py:79
↓ 17 callersMethod__init__
(self, dim=None, dtype=torch.float, eps=1e-5, weight=None, bias=None)
deepspeed/module_inject/layers.py:1858
↓ 17 callersFunctioncompare_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
← previousnext →101–200 of 14,579, ranked by callers