MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 1 callersMethodreset_partition_gradient_structures
(self)
deepspeed/runtime/zero/stage_1_and_2.py:1198
↓ 1 callersMethodreset_profile
Resets the profiling. Adds or resets the extra attributes.
deepspeed/profiling/flops_profiler/profiler.py:164
↓ 1 callersMethodreset_qkv
Perform any necessary resets of the model parameters for the QKV components.
deepspeed/module_inject/containers/features/hybrid_engine.py:164
↓ 1 callersMethodreset_step
indicate that we have completed one fwd+bwd for the model
deepspeed/runtime/zero/partitioned_param_coordinator.py:273
↓ 1 callersMethodreset_to_init
(self)
deepspeed/runtime/data_pipeline/data_routing/scheduler.py:58
↓ 1 callersMethodreset_tokens
(initial_tokens=1)
op_builder/npu/inference.py:61
↓ 1 callersMethodreshape
(self, target_3d_desc: model_3d_desc)
deepspeed/checkpoint/zero_checkpoint.py:91
↓ 1 callersMethodreshuffle_clusters
(self, cidx)
deepspeed/runtime/data_pipeline/data_sampling/data_sampler.py:240
↓ 1 callersFunctionresidual_add_bias
(hidden_state: torch.Tensor, residual: torch.Tensor, attn_output: torch.Tensor, attn_bia
deepspeed/ops/transformer/inference/triton/residual_add.py:57
↓ 1 callersFunctionresidual_ds_implementation
(vals, bias, res, gamma, beta, epsilon)
tests/unit/ops/transformer/inference/test_layer_norm.py:80
↓ 1 callersFunctionresidual_ds_triton_implementation
(vals, bias, res, gamma, beta, epsilon)
tests/unit/ops/transformer/inference/test_layer_norm.py:84
↓ 1 callersFunctionresidual_ref_implementation
(vals, bias, res, gamma, beta, epsilon, channels, dtype)
tests/unit/ops/transformer/inference/test_layer_norm.py:68
↓ 1 callersFunctionresidual_store_ds_implementation
(vals, bias, res, gamma, beta, epsilon)
tests/unit/ops/transformer/inference/test_layer_norm.py:131
↓ 1 callersFunctionresidual_store_ref_implementation
(vals, bias, res, gamma, beta, epsilon, channels, dtype)
tests/unit/ops/transformer/inference/test_layer_norm.py:119
↓ 1 callersFunctionresolve_autoep_config_defaults
Return config with preset-level AutoEP defaults applied where the user did not override.
deepspeed/module_inject/auto_ep_presets/registry.py:102
↓ 1 callersFunctionresolve_combine_impl
Resolve combine implementation from config override or default.
deepspeed/module_inject/auto_ep_layer.py:109
↓ 1 callersFunctionresolve_controller_inputs
(env: Mapping[str, str])
ci/torch_latest.py:517
↓ 1 callersFunctionresolve_expert_ckpt_path
Find the expert checkpoint file for a given (layer, expert) pair. Resolves using glob pattern without assuming mp_rank=0. Returns: P
deepspeed/checkpoint/autoep_universal.py:128
↓ 1 callersMethodresolve_expert_layout
( self, experts_module: nn.Module, preset: MoEModelPreset, )
deepspeed/module_inject/auto_ep_presets/base.py:277
↓ 1 callersFunctionresolve_gpu_numa_assignment
Return (my_numa_node, num_gpus_sharing_node, my_position_on_node) from the real GPU PCIe-NUMA topology, considering only the GPUs this job actuall
deepspeed/runtime/reflow/reflow_utils.py:117
↓ 1 callersMethodresolve_group_routing
( self, config: AutoEPConfig, model_config, )
deepspeed/module_inject/auto_ep_presets/base.py:267
↓ 1 callersMethodresolve_route_norm
( self, config: AutoEPConfig, preset: MoEModelPreset, model_config, )
deepspeed/module_inject/auto_ep_presets/base.py:253
↓ 1 callersMethodresource_request
(self, exp)
deepspeed/autotuning/scheduler.py:132
↓ 1 callersFunctionrestore_aotautograd
Restore only this invocation's patch without clobbering a newer owner.
deepspeed/compile/inductor.py:218
↓ 1 callersMethodrestore_input
Restore an offloaded tensor for a single consumption (no caching).
deepspeed/runtime/activation_checkpointing/offload_activations.py:232
↓ 1 callersFunctionrestore_layer
Local method for restoring a layer container from a flattened buffer. This only constructs views for the parameters onto the buffer.
deepspeed/inference/v2/model_implementations/flat_model_helpers.py:239
↓ 1 callersFunctionrestore_optimizer_state_dtype
Reload the floating-point states of ``state_dict`` as ``dtype`` after ``optimizer.load_state_dict(state_dict)``. ``torch.optim.Optimizer.load_sta
deepspeed/utils/torch.py:50
↓ 1 callersMethodretake_inference_cache
(self)
deepspeed/runtime/hybrid_engine.py:184
↓ 1 callersMethodretake_workspace
csrc/transformer/inference/includes/inference_context.h:244
↓ 1 callersMethodretarget_transformers_output_recorders
( self, model: nn.Module, spec: MoELayerSpec, replacement: nn.Module,
deepspeed/module_inject/auto_ep_presets/base.py:287
↓ 1 callersMethodrms_norm
(inputs, gamma, epsilon)
op_builder/supa/inference.py:75
↓ 1 callersFunctionroute
(sender: int, receiver: int)
deepspeed/checkpoint/affine_transfer_cost.py:105
↓ 1 callersMethodroute
(x, gate)
tests/unit/module_inject/test_auto_ep_comm.py:907
↓ 1 callersFunctionrow_major_range_boxes
Split the row-major index range ``[low, high)`` of ``shape`` into ``(origin, extent)`` boxes. At most two boxes per axis: a partial run at either
deepspeed/checkpoint/affine_geometry.py:87
↓ 1 callersFunctionrow_scaled_grouped_mm
``out[m] = A[m] B[e]^T`` for rows ``m`` of group ``e``, operands from :func:`quantize_rows`. ``a_q`` is ``[M, K]`` with ``a_amax`` ``[M]``; ``b_q
deepspeed/ops/triton_ops/subchannel_quant.py:713
↓ 1 callersFunctionrow_scaled_grouped_wgrad
``out[e] = A[:, span(e)] B[:, span(e)]^T``, operands from :func:`quantize_rows` with the same ``group_ends``. ``a_q`` is ``[M, K]`` with ``a_amax
deepspeed/ops/triton_ops/subchannel_quant.py:745
↓ 1 callersFunctionrows_of
(padded)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:633
↓ 1 callersFunctionrun
(command, **kwargs)
ci/install_accelerate.py:31
↓ 1 callersFunctionrun
(sp_stream)
tests/unit/v1/sequence_parallelism/test_overlap_grad_permutation.py:52
↓ 1 callersFunctionrun
(rank)
tests/unit/runtime/pipe/test_pipe_schedule.py:217
↓ 1 callersMethodrun
(self, tmpdir, ds_config, zero_stage, dtype, load_optim, use_torch_adam)
tests/unit/checkpoint/test_universal_checkpoint.py:166
↓ 1 callersMethodrun
(self, **fixture_kwargs)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:65
↓ 1 callersMethodrun
csrc/aio/py_lib/deepspeed_cpu_op.cpp:73
↓ 1 callersMethodrun_BingBertSquad_test
(self, test_config, output)
tests/model/BingBertSquad/BingBertSquad_test_common.py:49
↓ 1 callersMethodrun_after_tuning
Launches the training with the optimal DeepSpeed configuration found through the autotuning process. "ds_config_optimal.json" describing
deepspeed/autotuning/autotuner.py:1107
↓ 1 callersFunctionrun_all_gather
(device, dtype, maxsize, warmup=5, trials=10, async_op=False)
deepspeed/compile/profilers/comm_profile.py:79
↓ 1 callersFunctionrun_autotuning
(args, active_resources)
deepspeed/launcher/runner.py:415
↓ 1 callersFunctionrun_aws_controller
( env: Mapping[str, str], run_command: Any = _default_command, *, sleep: Any = time.sleep,
ci/torch_latest.py:1795
↓ 1 callersFunctionrun_aws_infrastructure_smoke
( env: Mapping[str, str], region_name: str, run_command: Any = _default_command, *, sleep:
ci/torch_latest.py:1900
↓ 1 callersFunctionrun_backward
(ds_config, seq_len, atol=1e-2, verbose=False)
tests/unit/ops/accelerators/test_accelerator_backward.py:215
↓ 1 callersFunctionrun_bias_add_ds
(activations, bias)
tests/unit/ops/transformer/inference/test_bias_add.py:23
↓ 1 callersFunctionrun_bias_add_reference
(activations, bias)
tests/unit/ops/transformer/inference/test_bias_add.py:19
↓ 1 callersFunctionrun_bias_geglu_ds
(activation, bias)
tests/unit/ops/transformer/inference/test_bias_geglu.py:27
↓ 1 callersFunctionrun_bias_geglu_reference
(activations, bias)
tests/unit/ops/transformer/inference/test_bias_geglu.py:19
↓ 1 callersFunctionrun_bias_gelu_ds
(activations, bias)
tests/unit/ops/transformer/inference/test_bias_gelu.py:26
↓ 1 callersFunctionrun_bias_gelu_reference
(activations, bias)
tests/unit/ops/transformer/inference/test_bias_gelu.py:20
↓ 1 callersFunctionrun_bias_relu_ds
(activations, bias)
tests/unit/ops/transformer/inference/test_bias_relu.py:24
↓ 1 callersFunctionrun_bias_relu_reference
(activations, bias)
tests/unit/ops/transformer/inference/test_bias_relu.py:19
↓ 1 callersFunctionrun_command
(_argv, *, timeout=None)
ci/test_torch_latest.py:1214
↓ 1 callersFunctionrun_controller
(env: Mapping[str, str], modal_module: Any | None = None)
ci/torch_latest.py:1666
↓ 1 callersFunctionrun_dequantize_ds
(activations, params, num_groups, q_bits, is_symmetric_quant)
tests/unit/ops/quantizer/test_quantize.py:27
↓ 1 callersFunctionrun_float_dequantize
(q_bits, is_symmetric_quant, data_i8, params, num_groups)
tests/unit/ops/quantizer/test_quantize.py:107
↓ 1 callersFunctionrun_float_quantize
(q_bits, is_symmetric_quant, activations_ref, num_groups)
tests/unit/ops/quantizer/test_quantize.py:74
↓ 1 callersFunctionrun_gated_silu_ds
(activation, bias)
tests/unit/ops/transformer/inference/test_bias_geglu.py:53
↓ 1 callersFunctionrun_gated_silu_reference
(activations, bias)
tests/unit/ops/transformer/inference/test_bias_geglu.py:45
↓ 1 callersFunctionrun_gelu_ds
(activations, use_triton_ops=False)
tests/unit/ops/transformer/inference/test_gelu.py:37
↓ 1 callersFunctionrun_gelu_reference
(activations)
tests/unit/ops/transformer/inference/test_gelu.py:32
↓ 1 callersMethodrun_job
(self, exp: dict, reservations)
deepspeed/autotuning/scheduler.py:89
↓ 1 callersMethodrun_map_helper
(self, thread_id)
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:153
↓ 1 callersMethodrun_map_helper
(self, thread_id=0, metric_queues=None)
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:502
↓ 1 callersMethodrun_map_reduce
(self)
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:563
↓ 1 callersFunctionrun_matmul_ds
(a, b, use_triton_ops=False)
tests/unit/ops/transformer/inference/test_matmul.py:27
↓ 1 callersFunctionrun_matmul_ref
(a, b)
tests/unit/ops/transformer/inference/test_matmul.py:23
↓ 1 callersFunctionrun_matmuls
()
tests/unit/utils/test_timer.py:17
↓ 1 callersFunctionrun_modal_infrastructure_smoke
(env: Mapping[str, str], modal_module: Any | None = None)
ci/torch_latest.py:1708
↓ 1 callersFunctionrun_model_step
(model, x_sample, y_label, grad_value)
tests/unit/v1/zero/test_invalid_grad_norm.py:25
↓ 1 callersFunctionrun_model_zero12
This function runs a training step, offloads states, reloads them, and verifies correctness for ZeRO-1/2. The logic is carefully structured t
tests/unit/v1/zero/test_offload_states.py:82
↓ 1 callersFunctionrun_model_zero3
(model, param_groups, config_dict, hidden_dim, dtype, offloaded_states, pin_memory, non_blocking)
tests/unit/v1/zero/test_offload_states.py:368
↓ 1 callersFunctionrun_moe_res_matmul_ds
(residual, coef, output)
tests/unit/ops/transformer/inference/test_moe_res_matmult.py:22
↓ 1 callersFunctionrun_moe_res_matmul_reference
(residual, coef1, coef2, output)
tests/unit/ops/transformer/inference/test_moe_res_matmult.py:18
↓ 1 callersMethodrun_node
(self, n: torch.fx.Node)
deepspeed/compile/profilers/graph_profile.py:256
↓ 1 callersFunctionrun_profile
(*, local_failure, peer_failed)
tests/unit/v1/compile/test_graph_profile.py:308
↓ 1 callersFunctionrun_quantize_ds
(activations, num_groups, q_bits, is_symmetric_quant)
tests/unit/ops/quantizer/test_quantize.py:18
↓ 1 callersFunctionrun_read_sweep
(sweep_config, flush_cache_job, sync_job, cmd_lines)
deepspeed/nvme/perf_run_sweep.py:263
↓ 1 callersMethodrun_reduce
(self)
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:439
↓ 1 callersFunctionrun_residual_add_reference
(hidden_state, residual, attn_output, attn_bias, final_bias, mlp_after_attn, ad
tests/unit/ops/transformer/inference/test_residual_add.py:56
↓ 1 callersMethodrun_route
(self, overlap, gate_up_impl="separate", checkpoint=None)
tests/unit/module_inject/test_auto_ep_comm.py:884
↓ 1 callersFunctionrun_softmax_ds
(input, use_triton_ops=False)
tests/unit/ops/transformer/inference/test_softmax.py:25
↓ 1 callersFunctionrun_softmax_reference
(input)
tests/unit/ops/transformer/inference/test_softmax.py:21
↓ 1 callersMethodrun_tuning_micro_batch_sizes
(self, tuning_micro_batch_sizes, max_train_batch_size_per_gpu, min_micro_
deepspeed/autotuning/autotuner.py:745
↓ 1 callersFunctionrun_unbalanced_gradients
(model, data_loader)
tests/unit/v1/zero/test_zero.py:380
↓ 1 callersFunctionrun_with_sm_carveout
Run ``compute`` with ``num_sms`` SMs withheld from the GEMMs it launches. torch._grouped_mm launches persistent kernels sized to every SM, which
deepspeed/module_inject/auto_ep_comm.py:397
↓ 1 callersMethodrun_worker
Process-mode driver: run in the optimizer process, block on the shared-memory control block, and run each requested step on the pinned pool. Returns o
csrc/adam/cpu_adam_impl.cpp:724
↓ 1 callersFunctionrun_write_sweep
(sweep_config, flush_cache_job, sync_job, cmd_lines)
deepspeed/nvme/perf_run_sweep.py:277
↓ 1 callersFunctionrvv_adam_block
Adam update for one m4 block (vl lanes) of the four FP32 streams. The operation order matches the scalar Step_1 tail and the SVE kernel so every arith
csrc/includes/rvv.h:16
↓ 1 callersFunctionsafe_set_full_fp32_param
Update the partitioned fp32 parameter of a low-precision (e.g., fp16) parameter. Args: param (``torch.nn.Parameter``): A model pa
deepspeed/utils/tensor_fragment.py:154
↓ 1 callersFunctionsafe_set_local_fp32_param
Update the local partition of ZeRO-3 partitioned parameter. Args: param (``torch.nn.Parameter``): A model parameter.
deepspeed/utils/tensor_fragment.py:328
↓ 1 callersFunctionsafe_set_local_optimizer_state
Update the local optimizer state partition of a ZeRO-3 partitioned parameter. Args: param (``torch.nn.Parameter``): A model param
deepspeed/utils/tensor_fragment.py:316
↓ 1 callersMethodsample_from_clusters
(self)
deepspeed/runtime/data_pipeline/data_sampling/data_sampler.py:232
↓ 1 callersMethodsample_sort
perform a distributed random sort of a tensor, and returns the sorted partial tensor
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:770
← previousnext →6,001–6,100 of 15,767, ranked by callers