MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 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:273
↓ 1 callersMethodresolve_group_routing
( self, config: AutoEPConfig, model_config, )
deepspeed/module_inject/auto_ep_presets/base.py:263
↓ 1 callersMethodresolve_route_norm
( self, config: AutoEPConfig, preset: MoEModelPreset, model_config, )
deepspeed/module_inject/auto_ep_presets/base.py:249
↓ 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:283
↓ 1 callersMethodrms_norm
(inputs, gamma, epsilon)
op_builder/supa/inference.py:75
↓ 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:57
↓ 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_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_bandwidth_test
Measure allgather bandwidth following the ZeRO-3 overlap pattern.
examples/sdma_allgather/test_sdma_allgather_zero3.py:67
↓ 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:287
↓ 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 callersFunctionrun_read_sweep
(sweep_config, flush_cache_job, sync_job, cmd_lines)
csrc/aio/py_test/aio_bench_perf_sweep.py:250
↓ 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 callersFunctionrun_single_allgather
Execute one allgather call following the ZeRO-3 ``_all_gather_dtype`` path.
examples/sdma_allgather/test_sdma_allgather_zero3.py:49
↓ 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:252
↓ 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:565
↓ 1 callersFunctionrun_write_sweep
(sweep_config, flush_cache_job, sync_job, cmd_lines)
deepspeed/nvme/perf_run_sweep.py:277
↓ 1 callersFunctionrun_write_sweep
(sweep_config, flush_cache_job, sync_job, cmd_lines)
csrc/aio/py_test/aio_bench_perf_sweep.py:261
↓ 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 callersFunctionsafe_update_full_grad_vectorized
Vectorized update of the partitioned gradients of a list of low-precision (e.g., fp16) parameters. To avoid precision issues, the upd
deepspeed/utils/tensor_fragment.py:343
↓ 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
↓ 1 callersMethodsanity_check
(self, ckpt_file_name)
deepspeed/runtime/state_dict_factory.py:399
↓ 1 callersMethodsave
(self, state_dict, path: str)
deepspeed/runtime/checkpoint_engine/fast_checkpoint_engine.py:33
↓ 1 callersMethodscale_expert_output
(self, attention_output, expert_output, combined_weights)
deepspeed/ops/transformer/inference/moe_inference.py:265
↓ 1 callersFunctionscale_lr
given a reference lr and batch_size, compute the new LR for a given batch size
deepspeed/runtime/data_pipeline/data_sampling/variable_batch_size_and_lr.py:149
↓ 1 callersMethodscaled_init_method_normal
Init method based on N(0, sigma/sqrt(2*num_layers).
tests/unit/megatron_model.py:96
↓ 1 callersFunctionschedule_without_allgather
(scheduled: List[Node], unscheduled: List[Node], edges: Dict[Node, List[Node]])
deepspeed/compile/list_schedule.py:146
↓ 1 callersMethodscheduler_params
(self)
deepspeed/runtime/engine.py:1569
↓ 1 callersFunctionscript_path
()
deepspeed/nvme/perf_run_sweep.py:246
↓ 1 callersFunctionscript_path
()
csrc/aio/py_test/aio_bench_perf_sweep.py:237
↓ 1 callersMethodsd_quantize_megatron
(self, sd, quantize_bits, groups)
deepspeed/runtime/weight_quantizer.py:98
↓ 1 callersFunctionsee_memory_usage
(message)
tests/small_model_debugging/test.py:12
↓ 1 callersMethodselect_causal_logits
Align model logits with this batch's shifted response targets.
deepspeed/runtime/rollout/opsd.py:53
↓ 1 callersMethodselective_dequantize
(self, input_q, indexes,
deepspeed/ops/fp_quantizer/quantize.py:145
↓ 1 callersMethodselective_optimizer_step
(self, closure=None)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:611
↓ 1 callersFunctionselector
(request)
tests/unit/checkpoint/test_zero_affine.py:34
↓ 1 callersFunctionsender
(index: int)
deepspeed/checkpoint/affine_replica_policy.py:53
↓ 1 callersMethodsequential_execution
(self, function, message, group=None)
deepspeed/runtime/zero/stage3.py:2325
↓ 1 callersMethodsequential_execution
(self, function, message, group=None)
deepspeed/runtime/zero/stage_1_and_2.py:2419
↓ 1 callersMethodsetGradBuffer
csrc/includes/deepcompile.h:296
↓ 1 callersFunctionset_accelerator
(accel_obj)
accelerator/real_accelerator.py:267
← previousnext →5,601–5,700 of 14,579, ranked by callers