MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 3 callersFunctionget_sized_buffers
(buffer_list, num_elems_list)
deepspeed/runtime/swap_tensor/utils.py:253
↓ 3 callersMethodget_slice_parallel_rank
(self)
deepspeed/runtime/pipe/topology.py:454
↓ 3 callersMethodget_src_tp_degree
(self)
deepspeed/checkpoint/zero_checkpoint.py:35
↓ 3 callersMethodget_swap_tensors
(self)
deepspeed/runtime/swap_tensor/utils.py:74
↓ 3 callersFunctionget_test_path
(filename)
tests/unit/common.py:522
↓ 3 callersFunctionget_topology
(mp, pp, world_size)
tests/unit/v1/autotp/test_configurable_parallel_pp.py:39
↓ 3 callersFunctionget_tp_group
Return the tensor-parallel group created by the existing AutoTP setup.
deepspeed/compile/custom_ops/tp_collectives.py:13
↓ 3 callersFunctionget_weight_norm
Get norm of an iterable of parameters. This is adapted from torch.nn.utils.clip_grad.clip_grad_norm_ and added functionality to handle model
deepspeed/runtime/utils.py:612
↓ 3 callersFunctionget_zero_files
(dir)
deepspeed/checkpoint/reshape_utils.py:58
↓ 3 callersMethodgrad_scale_supported
Whether step(grad_scale=...) is available (every kernel but RVV).
deepspeed/ops/adam/cpu_adam.py:232
↓ 3 callersMethodgradient_predivide_factor
(self)
deepspeed/runtime/engine.py:1826
↓ 3 callersFunctiongrouped_linear
Unified projection: matmul against each weight, optional GLU epilogue. The portable interface's single entry point for all GEMV/GEMM paths (f
deepspeed/module_inject/kernel_reference.py:27
↓ 3 callersMethodhasGatheredParam
csrc/includes/deepcompile.h:440
↓ 3 callersFunctionhas_inf_or_nan
(x)
tests/unit/runtime/half_precision/test_zero_optim_overflow.py:16
↓ 3 callersFunctionhas_moe_layers
(m: nn.Module)
deepspeed/moe/utils.py:15
↓ 3 callersMethodhas_reduce_scatter_tensor
(self)
deepspeed/comm/torch.py:305
↓ 3 callersMethodholders
Map each element offset of the full tensor to the set of ranks holding it.
deepspeed/checkpoint/affine.py:222
↓ 3 callersFunctioninit_distributed
Initialize dist backend, potentially performing MPI discovery if needed Arguments: dist_backend: Optional (str). torch distributed backe
deepspeed/comm/comm.py:839
↓ 3 callersFunctioninit_z3
(engine, backend, compile_config, compile_kwargs, schedule=None)
deepspeed/compile/init_z3.py:87
↓ 3 callersMethodisPersistent
csrc/includes/deepcompile.h:304
↓ 3 callersMethodis_autocast_enabled
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_linear_cross_entropy.py:221
↓ 3 callersFunctionis_autocast_initialized
()
deepspeed/runtime/torch_autocast.py:65
↓ 3 callersFunctionis_autoep_folding_gradient_corrected
(param)
deepspeed/module_inject/auto_ep_folding.py:475
↓ 3 callersMethodis_available
(self)
accelerator/cuda_accelerator.py:235
↓ 3 callersMethodis_compatible
(self, verbose=False)
op_builder/gds.py:53
↓ 3 callersMethodis_compatible
Check if all non-python dependencies are satisfied to build this op
op_builder/builder.py:286
↓ 3 callersFunctionis_compile_supported
()
deepspeed/runtime/compiler.py:40
↓ 3 callersMethodis_current_stream_capturing
(self)
accelerator/npu_accelerator.py:253
↓ 3 callersMethodis_data_parallel_writer
(self, dp_rank)
deepspeed/runtime/checkpoint_engine/checkpoint_engine.py:47
↓ 3 callersFunctionis_functorch_transforming
True when called under torch.func.grad / vmap / jacrev / etc.
deepspeed/utils/torch.py:31
↓ 3 callersMethodis_initialized
(self)
deepspeed/comm/torch.py:608
↓ 3 callersMethodis_last_stage
True if the configured ``stage_id`` is the last stage in the pipeline.
deepspeed/runtime/pipe/schedule.py:107
↓ 3 callersMethodis_managed
csrc/pin_memory/deepspeed_pin_tensor.cpp:83
↓ 3 callersMethodis_moe_group
(self, group)
deepspeed/runtime/zero/stage_1_and_2.py:881
↓ 3 callersFunctionis_nfs_path
(path)
deepspeed/ops/transformer/inference/triton/matmul_ext.py:21
↓ 3 callersFunctionis_rocm_pytorch
()
tests/unit/common.py:35
↓ 3 callersMethodis_synchronized_device
(self)
accelerator/supa_accelerator.py:21
↓ 3 callersMethodis_synchronized_device
(self)
accelerator/sdaa_accelerator.py:53
↓ 3 callersMethodis_synchronized_device
(self)
accelerator/cpu_accelerator.py:182
↓ 3 callersMethodis_synchronized_device
(self)
accelerator/mlu_accelerator.py:23
↓ 3 callersMethodis_synchronized_device
(self)
accelerator/npu_accelerator.py:57
↓ 3 callersMethodis_synchronized_device
(self)
accelerator/xpu_accelerator.py:189
↓ 3 callersMethodis_synchronized_device
(self)
accelerator/cuda_accelerator.py:51
↓ 3 callersMethodkey
(self)
deepspeed/checkpoint/affine_transfer_executor.py:118
↓ 3 callersFunctionlayer_norm
(a, weight, bias, eps)
deepspeed/ops/transformer/inference/triton/layer_norm.py:167
↓ 3 callersFunctionlayer_norm_residual
(a, input_bias, residual, weight, bias, eps)
deepspeed/ops/transformer/inference/triton/layer_norm.py:199
↓ 3 callersFunctionload
(module, prefix)
deepspeed/module_inject/load_checkpoint.py:46
↓ 3 callersMethodload
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:140
↓ 3 callersMethodload
csrc/deepspeed4science/evoformer_attn/gemm/mma_from_smem.h:276
↓ 3 callersFunctionload_aws_config
(raw: str)
ci/torch_latest.py:815
↓ 3 callersFunctionload_module_recursive
(module, prefix='', level=0)
deepspeed/module_inject/load_checkpoint.py:222
↓ 3 callersMethodload_with_byte_offset
Loads a fragment from memory
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:819
↓ 3 callersMethodloss_function
(self)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:352
↓ 3 callersMethodmake_attn_layer
Builds the attention layer for the model. This sets the `self.attn` attribute.
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:394
↓ 3 callersMethodmake_attn_out_layer
Instantiates the linear projection layer for the attention output linear layer. This sets the `self.attn_out` attribute.
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:476
↓ 3 callersFunctionmake_graph_from_schedule
(scheduled: List[Node])
deepspeed/compile/list_schedule.py:24
↓ 3 callersMethodmake_layer
(self, log, skip, score_apply)
tests/unit/module_inject/test_auto_ep_comm.py:1410
↓ 3 callersFunctionmake_metadata_filename
Make a filename for a metadata file. Arguments: rank: Rank of the file. n_ranks: Total number of ranks. Returns:
deepspeed/inference/v2/model_implementations/flat_model_helpers.py:73
↓ 3 callersMethodmake_qkv_layer
Instantiates the linear projection layer for the QKV linear layer. This sets the `self.qkv` attribute.
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:363
↓ 3 callersMethodmake_unembedding_layer
Performs setup and creates an unembedding layer. This implementation assumes normalization prior to the LM head projection. If this d
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:325
↓ 3 callersMethodmax_memory_cached
(self, device_index=None)
accelerator/hpu_accelerator.py:135
↓ 3 callersFunctionmaybe_copy_geglu
(module, sd, weight_quantizer, mp_replace, dst_name, src_names)
deepspeed/module_inject/policy.py:189
↓ 3 callersMethodmemory_cached
(self, device_index=None)
accelerator/hpu_accelerator.py:132
↓ 3 callersMethodmemory_reserved
(self, device_index=None)
accelerator/hpu_accelerator.py:147
↓ 3 callersMethodmodule_state_dict
(self, destination=None, prefix="", keep_vars=False, exclude_frozen_parameters=False)
deepspeed/runtime/engine.py:4173
↓ 3 callersFunctionmoe_test_helper
Helper function for validating the GEMM kernel for a single expert.
tests/unit/inference/v2/kernels/cutlass_ops/test_moe_gemm.py:53
↓ 3 callersFunctionnew_exchange_scope
A fresh sharing scope, normally one per model AutoEP converts. Layers sharing a scope share a buffer. Two models do not, even on one expert-p
deepspeed/module_inject/auto_ep_comm.py:79
↓ 3 callersFunctionnode_path_of
Classify by node, for processes numbered node by node.
deepspeed/checkpoint/affine_transfer_calibration.py:53
↓ 3 callersMethodnum_tensors
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:74
↓ 3 callersFunctionoffload_adam_states_sync
()
deepspeed/compile/passes/offload_adam_states.py:156
↓ 3 callersFunctionoffload_optimizer_states
(optimizer, device, pin_memory=False, non_blocking=False)
deepspeed/runtime/zero/offload_states.py:17
↓ 3 callersMethodoperand_B_ref
Returns a TensorRef to the B operand
csrc/deepspeed4science/evoformer_attn/gemm/mma_from_smem.h:214
↓ 3 callersMethodoverlapping_partition_gradients_reduce_epilogue
(self)
deepspeed/runtime/zero/stage3.py:1678
↓ 3 callersFunctionparse_range_list
(range_str)
deepspeed/utils/numa.py:89
↓ 3 callersFunctionpatch_fake_tensor
()
deepspeed/compile/patch_fake_tensor.py:78
↓ 3 callersFunctionphysical_cpu_groups
Group available CPU IDs by the Linux package/core topology, without adding unavailable siblings.
deepspeed/runtime/reflow/reflow_utils.py:188
↓ 3 callersFunctionpinned_memory_summary
(tag: str = "")
deepspeed/utils/pin_memory_tracker.py:66
↓ 3 callersMethodplan_expert_transfer
Plan the copies that move the live expert parameters to ``target_placement``. ``target_placement`` is an AutoEP placement descriptor in the t
deepspeed/module_inject/auto_ep_layer.py:941
↓ 3 callersMethodpostscale_gradients
(self)
deepspeed/runtime/engine.py:1823
↓ 3 callersMethodprefer_triton_grouped_mm
(self)
accelerator/cuda_accelerator.py:275
↓ 3 callersFunctionprepare_tp_model
(hidden_dim, nlayers, linear_indices, allreduce_indices, group, return_global_copy=False)
tests/unit/v1/autotp/test_autotp_training.py:1932
↓ 3 callersFunctionpreset_name_for_hf_model_type
Return the AutoEP preset name for a supported HF model_type.
deepspeed/module_inject/auto_ep_presets/registry.py:86
↓ 3 callersMethodprint_model_profile
Prints the model graph with the measured profile attached to each module. Args: profile_step (int, optional): The global training
deepspeed/profiling/flops_profiler/profiler.py:286
↓ 3 callersMethodpwrite
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:349
↓ 3 callersFunctionpytest_hack
This is an ugly hack to get the unittest suites to play nicely with pytest. Otherwise failed tests are not reported by pytest for some reason.
tests/model/run_sanity_check.py:20
↓ 3 callersFunctionqtorch_quantize
(input, exp_bits=4, man_bits=3, rounding="nearest", group_size=1024)
tests/unit/ops/fp_quantizer/test_fp_quant.py:23
↓ 3 callersMethodquantize
(self, param, groups, num_bits, quant_type)
tests/unit/runtime/zero/test_zeropp.py:54
↓ 3 callersMethodquantize
(self, tensor: Tensor)
deepspeed/inference/quantization/utils.py:56
↓ 3 callersMethodrange_pop
(self)
tests/unit/utils/test_nvtx.py:124
↓ 3 callersMethodrange_push
(self, msg)
tests/unit/utils/test_nvtx.py:120
↓ 3 callersMethodreduce_scatter_tensor
(self, output_tensor, input_tensor, op, group=None, async_op=False)
deepspeed/comm/ccl.py:104
↓ 3 callersMethodreenter_backward_if_needed
Re-enter backward context for subsequent phases in reentrant checkpointing.
deepspeed/runtime/base_optimizer.py:503
↓ 3 callersFunctionreflow_get_available_cpu_count
Affinity-aware available-core count (falls back to omp_get_num_procs()).
csrc/adam/reflow_cpu_adam_impl.cpp:36
↓ 3 callersMethodrefresh_fp32_params
(self)
deepspeed/runtime/zero/stage3.py:3903
↓ 3 callersMethodregister
(self, module)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:50
↓ 3 callersMethodregisterGatheredParam
csrc/includes/deepcompile.h:419
↓ 3 callersFunctionregister_all_to_all_group
Make ``group`` reachable by name from inside the exchange operator, and return that name. Call this outside any compiled region, before the first
deepspeed/sequence/layer.py:322
↓ 3 callersMethodrelease_unswapped_gradients
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:151
↓ 3 callersMethodrelease_workspace
(self)
deepspeed/ops/transformer/inference/op_binding/workspace.py:189
↓ 3 callersMethodreload
csrc/includes/deepcompile.h:330
← previousnext →1,801–1,900 of 15,468, ranked by callers