MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 1 callersFunctionpopulate_registry
Populate rank to SP/DP mesh index.
deepspeed/compile/custom_ops/sp_dp_registry.py:50
↓ 1 callersMethodpost_accumulate_hook
(self, *_unused)
deepspeed/module_inject/layers.py:1523
↓ 1 callersMethodpost_backward
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:244
↓ 1 callersMethodpost_sub_module_forward_function
(self, sub_module)
deepspeed/runtime/zero/parameter_offload.py:552
↓ 1 callersFunctionpostprocess
( B, S_kv, D, D_tail, kv_group=1, block_N=64, threads=128, dtype=T.bfloat16,
deepspeed/models/glm_moe_dsa/kernels/sparse_mla_bwd.py:73
↓ 1 callersFunctionpostprocess_kernel
( dKV: T.Tensor(dkv_shape, accum_dtype), dKV_out: T.Tensor(dkv_shape, dtype), )
deepspeed/models/glm_moe_dsa/kernels/sparse_mla_bwd.py:89
↓ 1 callersMethodpre_backward
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:241
↓ 1 callersFunctionpre_ds_implementation
(vals, residual, gamma, epsilon)
tests/unit/ops/transformer/inference/test_rms_norm.py:50
↓ 1 callersFunctionpre_ref_implementation
(vals, residual, gamma, epsilon)
tests/unit/ops/transformer/inference/test_rms_norm.py:54
↓ 1 callersMethodpre_rms_norm
(inputs, residual, gamma, epsilon)
op_builder/supa/inference.py:79
↓ 1 callersMethodpre_sub_module_backward_function
(self, sub_module)
deepspeed/runtime/zero/parameter_offload.py:570
↓ 1 callersMethodpre_sub_module_forward_function
(self, sub_module)
deepspeed/runtime/zero/parameter_offload.py:528
↓ 1 callersMethodpredict
(self, xs)
deepspeed/autotuning/tuner/cost_model.py:62
↓ 1 callersMethodprefer_triton_grouped_mm
(self)
accelerator/klxpu_accelerator.py:34
↓ 1 callersFunctionprefetch
csrc/deepspeed4science/evoformer_attn/iterators/epilogue_predicated_tile_iterator.h:278
↓ 1 callersMethodprefetchParamsFused
csrc/compile/z3.cpp:166
↓ 1 callersFunctionprefix_check
()
deepspeed/module_inject/load_checkpoint.py:33
↓ 1 callersFunctionprefix_sum_inc
Compute an inclusive prefix sum. Example: >>> prefix_sum_inc([3,4,5]) [3, 7, 12]
deepspeed/runtime/utils.py:668
↓ 1 callersFunctionprepare
(*args, **kwargs)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2199
↓ 1 callersMethodprepare_batch
(self, wrapped_batch: RaggedBatchWrapper)
deepspeed/inference/v2/model_implementations/exaone4_5/model.py:154
↓ 1 callersMethodprepare_shared_prefill
Allocate a target-batch workspace before a shared prompt forward.
deepspeed/runtime/hybrid_engine.py:197
↓ 1 callersFunctionpreprocess
( B, S, H, D, block_ND=32, num_stages=5, dtype=T.bfloat16, accum_dtype=T.float
deepspeed/models/glm_moe_dsa/kernels/sparse_mla_bwd.py:35
↓ 1 callersFunctionpreprocess_kernel
( O: T.Tensor(shape, dtype), dO: T.Tensor(shape, dtype), Delta: T.Tensor([
deepspeed/models/glm_moe_dsa/kernels/sparse_mla_bwd.py:50
↓ 1 callersMethodprint
(self, name)
deepspeed/runtime/config.py:673
↓ 1 callersFunctionprint0
(msg)
tests/small_model_debugging/test_model.py:66
↓ 1 callersFunctionprint0
(msg)
tests/small_model_debugging/partial_offload_test.py:67
↓ 1 callersFunctionprint_configuration
(args, name)
deepspeed/utils/logging.py:79
↓ 1 callersMethodprint_forward_breakdown
(self, fwd_time)
deepspeed/runtime/engine.py:3196
↓ 1 callersMethodprint_model_aggregated_profile
Prints the names of the top top_modules modules in terms of aggregated time, flops, and parameters at depth module_depth. Args: m
deepspeed/profiling/flops_profiler/profiler.py:457
↓ 1 callersFunctionprint_rank_0
(message)
deepspeed/utils/comms_logging.py:15
↓ 1 callersFunctionprint_rank_0
(message)
deepspeed/compile/passes/prefetch.py:31
↓ 1 callersFunctionprint_rank_0
(message)
deepspeed/compile/passes/selective_gather.py:30
↓ 1 callersFunctionprint_rank_0
(message, debug=False, force=False)
deepspeed/runtime/bf16_optimizer.py:34
↓ 1 callersMethodprint_rank_0
(self, message)
deepspeed/runtime/zero/stage_1_and_2.py:1605
↓ 1 callersMethodprint_tuning_results
Print the autotuning results in tabular format.
deepspeed/autotuning/autotuner.py:108
↓ 1 callersMethodprint_user_config
(self)
deepspeed/runtime/config.py:663
↓ 1 callersMethodprocess
(self, process: int)
deepspeed/checkpoint/affine_transfer_analysis.py:82
↓ 1 callersMethodprocess_gradients
(self, param, i)
deepspeed/runtime/zero/stage_1_and_2.py:2379
↓ 1 callersFunctionprocess_layer
Iterate over the parameters of a single container and collect metadata for the final flattened buffer. Arguments:
deepspeed/inference/v2/model_implementations/flat_model_helpers.py:122
↓ 1 callersFunctionprocess_linear_layer
(hidden_dim, input, output_dim=None)
tests/unit/v1/autotp/test_autotp_training.py:1089
↓ 1 callersMethodprofile_model_time
(self, use_cuda_events=True)
deepspeed/inference/engine.py:198
↓ 1 callersFunctionprofiled_non_gathered_peak
Return a conservative peak for scheduler-budget headroom. Operator profiling invalidates gathered parameters between nodes, so a source-order
deepspeed/compile/list_schedule.py:462
↓ 1 callersFunctionprune_config
Prunes the input configurations Args: config (dict): A configuration dictionary. ignored_keys (list, optional): the keys of the
deepspeed/autotuning/utils.py:230
↓ 1 callersFunctionprune_configs
Prunes the input list of configurations Args: configs (list): A list of configuration dictionaries. ignored_keys (list, optional
deepspeed/autotuning/utils.py:254
↓ 1 callersMethodpush_range
(self, message=None, domain=None, category=None)
tests/unit/utils/test_nvtx.py:92
↓ 1 callersFunctionqkv_out_features
Helper to calculate the expected output projection dimension of a QKV projection matrix. Args: in_features (int): The model dimensio
deepspeed/inference/v2/model_implementations/sharding/qkv.py:116
↓ 1 callersFunctionquant_dequant_implementation
(hidden_states: torch.Tensor, weight: torch.Tensor, bias: Optional[torch.Tensor],
tests/unit/inference/v2/modules/test_quantized_linear_module.py:55
↓ 1 callersMethodquantize
csrc/includes/quantization_utils.h:65
↓ 1 callersFunctionquantize_fn
(child)
deepspeed/module_inject/module_quantize.py:44
↓ 1 callersFunctionquantize_module
(model, orig_class, quantize_fn)
deepspeed/module_inject/module_quantize.py:57
↓ 1 callersMethodquantized_reduction
Dequantize, sum across the intra-node ranks, and re-quantize. input_vals holds the packed data of devices_per_node ranks back to back
op_builder/npu/quantizer.py:214
↓ 1 callersMethodqueue_post_backward_callback
Queue post-backward hooks to run after the current graph finishes.
deepspeed/runtime/base_optimizer.py:207
↓ 1 callersMethodqueue_post_backward_callback
Queue post-backward hooks to run after autograd completes.
deepspeed/runtime/base_optimizer.py:511
↓ 1 callersMethodrandom_ltd_initialize
(self)
deepspeed/runtime/engine.py:1511
↓ 1 callersMethodread_index
(self, path)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:149
↓ 1 callersFunctionread_longs
(f, n)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:91
↓ 1 callersMethodread_unswapped_gradients
(self, dest_buffer)
deepspeed/runtime/swap_tensor/optimizer_utils.py:133
↓ 1 callersFunctionread_zero_config_deprecated
(param_dict)
deepspeed/runtime/zero/config.py:61
↓ 1 callersMethodready
(self, world_size: int)
op_builder/custom_collective.py:146
↓ 1 callersFunctionrecord
(event, stream)
tests/unit/v1/moe/test_autoep_unit.py:1865
↓ 1 callersMethodrecord
(self)
tests/unit/modelingpreln.py:90
↓ 1 callersMethodrecord
(optimizer)
tests/unit/v1/zero/test_zero.py:2257
↓ 1 callersMethodrecord
(self)
tests/unit/v1/compile/test_graph_profile.py:72
↓ 1 callersFunctionrecord_deepep_row_weights
apply_deepep_row_weights for a result nobody reads: the same backward, an uninitialized result.
deepspeed/module_inject/auto_ep_layer.py:205
↓ 1 callersMethodrecord_deferred_user_update
Preserve modifier-rank update provenance until the graph claim releases.
deepspeed/compile/z3_eager_fallback.py:155
↓ 1 callersMethodrecord_guard_suppressed_param
Record a guard probe that intentionally observed the partitioned parameter.
deepspeed/compile/z3_eager_fallback.py:159
↓ 1 callersMethodrecord_param_access
Associate an already-gathered fallback parameter with the current forward.
deepspeed/compile/z3_eager_fallback.py:122
↓ 1 callersMethodrecord_parameters
(self, sub_module: Module)
deepspeed/runtime/zero/partitioned_param_coordinator.py:250
↓ 1 callersFunctionrecord_tp_model_init_args
(tp_size, dtype, tp_group, dist_module)
deepspeed/runtime/tensor_parallel/init_utils.py:36
↓ 1 callersFunctionrecurse
(cl)
deepspeed/runtime/zero/partition_parameters.py:295
↓ 1 callersFunctionrecursive_setattr
Recursively set the attribute of a module. Args: model (`torch.nn.Module`) The model to set the attribute in. mod
deepspeed/inference/quantization/utils.py:172
↓ 1 callersMethodreduceGrad
csrc/compile/z1.cpp:33
↓ 1 callersFunctionreduce_bf16_buffers
csrc/cpu/comm/shm.cpp:154
↓ 1 callersFunctionreduce_fp16_buffers
csrc/cpu/comm/shm.cpp:217
↓ 1 callersFunctionreduce_fp32_buffers
csrc/cpu/comm/shm.cpp:280
↓ 1 callersFunctionreduce_from_tp_region
All-reduce in the forward pass, identity in the backward pass. Inserted after a row-parallel matmul, whose output is only a partial sum becau
deepspeed/compile/custom_ops/tp_collectives.py:35
↓ 1 callersMethodreduce_independent_p_g_buckets_and_remove_grads
(self, param, i)
deepspeed/runtime/zero/stage_1_and_2.py:1534
↓ 1 callersFunctionreduce_scatter
(output, input_list, op=ReduceOp.SUM, group=None,
deepspeed/comm/comm.py:652
↓ 1 callersFunctionreduce_scatter_comm_off
(flag=False)
deepspeed/comm/torch.py:108
↓ 1 callersFunctionreduce_scatter_sequence
Sum `input` over the SP group and keep this rank's shard along `dim`; the adjoint of all_gather_sequence.
deepspeed/compile/custom_ops/all_to_all.py:169
↓ 1 callersFunctionreduce_scatter_tensor
(output_tensor, tensor, op=ReduceOp.SUM,
deepspeed/comm/comm.py:309
↓ 1 callersFunctionref_bias_add
(activations, bias)
tests/unit/ops/spatial/test_nhwc_bias_add.py:23
↓ 1 callersFunctionref_bias_add_add
(activations, bias, other)
tests/unit/ops/spatial/test_nhwc_bias_add.py:46
↓ 1 callersFunctionref_bias_add_bias_add
(activations, bias, other, other_bias)
tests/unit/ops/spatial/test_nhwc_bias_add.py:69
↓ 1 callersFunctionref_implementation
(vals, gamma, beta, epsilon, channels, dtype)
tests/unit/ops/transformer/inference/test_layer_norm.py:26
↓ 1 callersFunctionref_implementation
(vals, gamma, epsilon)
tests/unit/ops/transformer/inference/test_rms_norm.py:19
↓ 1 callersFunctionref_torch_attention
(q, k, v, mask, sm_scale)
tests/unit/ops/transformer/inference/test_attention.py:14
↓ 1 callersFunctionreference_adam_step
Adam/AdamW step with fp32 math and storage-dtype rounding, matching csrc/adam/multi_tensor_adam.cu.
tests/unit/ops/adam/test_adamw.py:85
↓ 1 callersFunctionreference_bias_act_implementation
(input: torch.Tensor, bias: Optional[torch.Tensor], act_type: Activation
tests/unit/inference/v2/kernels/core_ops/test_bias_activation.py:22
↓ 1 callersFunctionreference_implementation
(residual: torch.Tensor, hidden_states: Optional[torch.Tensor], gamma: torch.Tensor,
tests/unit/inference/v2/modules/test_pre_rms_module.py:18
↓ 1 callersFunctionreference_implementation
(residual: torch.Tensor, hidden_states: torch.Tensor, gamma: torch.Tensor, beta:
tests/unit/inference/v2/modules/test_custom_module.py:17
↓ 1 callersFunctionreference_implementation
(hidden_states: torch.Tensor, weight: torch.Tensor, bias: Optional[torch.Tensor],
tests/unit/inference/v2/modules/test_blas_linear_module.py:19
↓ 1 callersFunctionreference_implementation
(residual: torch.Tensor, hidden_states: Optional[torch.Tensor], gamma: torch.Tensor,
tests/unit/inference/v2/modules/test_cuda_pre_ln_module.py:18
↓ 1 callersFunctionreference_implementation
(residual: torch.Tensor, hidden_states: torch.Tensor, gamma: torch.Tensor, beta:
tests/unit/inference/v2/modules/test_post_ln_module.py:16
↓ 1 callersFunctionreference_implementation
(residual: torch.Tensor, hidden_states: torch.Tensor, gamma: torch.Tensor, beta:
tests/unit/inference/v2/kernels/core_ops/test_post_ln.py:19
↓ 1 callersFunctionreference_implementation
(residual: torch.Tensor, hidden_states: torch.Tensor, gamma: torch.Tensor, beta:
tests/unit/inference/v2/kernels/core_ops/test_pre_ln.py:19
↓ 1 callersFunctionreference_rms_pre_norm
(vals: torch.Tensor, residual: torch.Tensor, gamma: torc
tests/unit/inference/v2/kernels/core_ops/test_rms_norm.py:30
↓ 1 callersMethodrefill
(self)
deepspeed/runtime/sequence_parallel/ulysses_sp.py:646
↓ 1 callersFunctionrefine_args
(args)
deepspeed/nvme/ds_aio_args.py:18
↓ 1 callersFunctionrefine_integer_value
(value)
deepspeed/nvme/test_ds_aio_utils.py:63
← previousnext →5,701–5,800 of 15,468, ranked by callers