MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Methodreset_cache
(cls)
deepspeed/model_implementations/transformers/ds_transformer.py:101
Methodreset_cache
()
op_builder/supa/inference.py:65
Methodreset_cache_fallback
(self)
deepspeed/ops/transformer/inference/op_binding/workspace.py:222
Functionreset_log
Clear all accumulated communication logging data. This function clears the communication logger's internal data dictionary, allowing for
deepspeed/comm/comm.py:560
Methodreset_max_memory_allocated
(self, device_index=None)
accelerator/supa_accelerator.py:124
Methodreset_max_memory_allocated
(self, device_index=None)
accelerator/sdaa_accelerator.py:145
Methodreset_max_memory_allocated
(self, device_index=None)
accelerator/cpu_accelerator.py:300
Methodreset_max_memory_allocated
(self, device_index=None)
accelerator/mlu_accelerator.py:115
Methodreset_max_memory_allocated
(self, device_index=None)
accelerator/npu_accelerator.py:149
Methodreset_max_memory_allocated
(self, device_index=None)
accelerator/xpu_accelerator.py:282
Methodreset_max_memory_allocated
(self, device_index=None)
accelerator/cuda_accelerator.py:150
Methodreset_max_memory_allocated
(self, device_index=None)
accelerator/mps_accelerator.py:128
Methodreset_max_memory_allocated
(self, device_index=None)
accelerator/abstract_accelerator.py:129
Methodreset_max_memory_cached
(self, device_index=None)
accelerator/supa_accelerator.py:133
Methodreset_max_memory_cached
(self, device_index=None)
accelerator/sdaa_accelerator.py:154
Methodreset_max_memory_cached
(self, device_index=None)
accelerator/cpu_accelerator.py:311
Methodreset_max_memory_cached
(self, device_index=None)
accelerator/mlu_accelerator.py:124
Methodreset_max_memory_cached
(self, device_index=None)
accelerator/npu_accelerator.py:158
Methodreset_max_memory_cached
(self, device_index=None)
accelerator/xpu_accelerator.py:291
Methodreset_max_memory_cached
(self, device_index=None)
accelerator/cuda_accelerator.py:159
Methodreset_max_memory_cached
(self, device_index=None)
accelerator/mps_accelerator.py:137
Methodreset_max_memory_cached
(self, device_index=None)
accelerator/abstract_accelerator.py:141
Methodreset_mlp
(self)
deepspeed/module_inject/containers/features/gated_mlp.py:71
Functionreset_offload_activation_stats
()
deepspeed/compile/passes/offload_activation.py:90
Functionreset_offload_op_stats
()
deepspeed/compile/passes/offload_adam_states.py:237
Methodreset_parameters
(self)
tests/unit/modeling.py:123
Methodreset_parameters
(self)
tests/unit/modelingpreln.py:122
Methodreset_peak_memory_stats
(self, device_index=None)
accelerator/supa_accelerator.py:140
Methodreset_peak_memory_stats
(self, device_index=None)
accelerator/sdaa_accelerator.py:161
Methodreset_peak_memory_stats
(self, device_index=None)
accelerator/cpu_accelerator.py:322
Methodreset_peak_memory_stats
(self, device_index=None)
accelerator/mlu_accelerator.py:131
Methodreset_peak_memory_stats
(self, device_index=None)
accelerator/npu_accelerator.py:165
Methodreset_peak_memory_stats
(self, device_index=None)
accelerator/xpu_accelerator.py:297
Methodreset_peak_memory_stats
(self, device_index=None)
accelerator/cuda_accelerator.py:166
Methodreset_peak_memory_stats
(self, device_index=None)
accelerator/mps_accelerator.py:147
Methodreset_peak_memory_stats
(self, device_index=None)
accelerator/abstract_accelerator.py:149
Methodreset_qkv
(self)
deepspeed/module_inject/containers/features/split_qkv.py:64
Methodreset_qkv_experimental
WIP - experimental and likely to be changed/improved. Unused by keeping for now.
deepspeed/module_inject/containers/features/split_qkv.py:89
Methodreset_random
(self, seed=1234)
tests/unit/v1/autotp/test_configurable_parallel_pp.py:52
Methodreset_random
(self, seed=1234)
tests/unit/v1/autotp/test_configurable_parallel_mp.py:45
Functionreset_swap_buffers
()
tests/unit/checkpoint/test_fp32_master_only.py:272
Functionreshape
reshape([tp_size_src, pp_size_src, dp_size_src], [tp_size_tgt, pp_size_tgt, dp_size_tgt])
deepspeed/checkpoint/reshape_meg_2d.py:175
Methodresidual_add_bias_bf16
(hidden_state, residual, attention_output, attention_bias, final_bias, mp_size,
op_builder/npu/inference.py:476
Methodresidual_add_bias_bf16
(hidden_state, residual, attention_output, attention_bias, final_bias, mp_size,
op_builder/supa/inference.py:186
Methodresidual_add_bias_fp16
(hidden_state, residual, attention_output, attention_bias, final_bias, mp_size,
op_builder/npu/inference.py:470
Methodresidual_add_bias_fp16
(hidden_state, residual, attention_output, attention_bias, final_bias, mp_size,
op_builder/supa/inference.py:179
Methodresidual_add_bias_fp32
(hidden_state, residual, attention_output, attention_bias, final_bias, mp_size,
op_builder/npu/inference.py:482
Methodresidual_add_bias_fp32
(hidden_state, residual, attention_output, attention_bias, final_bias, mp_size,
op_builder/supa/inference.py:193
Functionresidual_add_bias_kernel
( hidden_state_ptr, residual_ptr, attn_output_ptr, hidden_state_size, attn_bias_ptr, f
deepspeed/ops/transformer/inference/triton/residual_add.py:13
Methodresidual_add_fallback
(hidden_state, residual, attention_output, attention_bias, final_bias, mp_size,
deepspeed/ops/transformer/inference/op_binding/residual_add.py:38
Functionresolve_available_cores
Return (total_cpus, available_cores) honoring an existing process affinity.
deepspeed/runtime/reflow/reflow_utils.py:22
Functionresolve_backend
(*_)
tests/unit/compile/test_zero3_grad_dtype.py:440
Methodresolve_expert_layout
( self, experts_module: nn.Module, preset: MoEModelPreset, )
deepspeed/module_inject/auto_ep_presets/deepseek_v3.py:60
Functionresolve_group
(group_name)
tests/unit/runtime/zero/test_autoep_zero3_init.py:78
Methodresolve_group_routing
( self, config: AutoEPConfig, model_config, )
deepspeed/module_inject/auto_ep_presets/deepseek_v3.py:48
Methodresolve_group_routing
( self, config: AutoEPConfig, model_config, )
deepspeed/module_inject/auto_ep_presets/deepseek_v2.py:58
Methodresolve_route_norm
( self, config: AutoEPConfig, preset: MoEModelPreset, model_config, )
deepspeed/module_inject/auto_ep_presets/deepseek_v2.py:48
Methodresolves_data_dependency
(self)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:33
Methodresolves_data_dependency
(self)
tests/unit/runtime/zero/test_zeropp.py:84
Methodresolves_data_dependency
(self)
accelerator/supa_accelerator.py:27
Methodresolves_data_dependency
(self)
accelerator/sdaa_accelerator.py:59
Methodresolves_data_dependency
(self)
accelerator/cpu_accelerator.py:188
Methodresolves_data_dependency
(self)
accelerator/mlu_accelerator.py:29
Methodresolves_data_dependency
(self)
accelerator/npu_accelerator.py:63
Methodresolves_data_dependency
(self)
accelerator/xpu_accelerator.py:195
Methodresolves_data_dependency
(self)
accelerator/cuda_accelerator.py:57
Methodresolves_data_dependency
(self)
accelerator/mps_accelerator.py:41
Methodresolves_data_dependency
(self)
accelerator/abstract_accelerator.py:27
Functionrestore
()
deepspeed/compile/init_z3.py:60
Methodrestore
Restore KV-cache blocks from the host to accelerator memory. Parameters: blocks (Iterable[int]): The blocks to restore.
deepspeed/inference/v2/ragged/kv_cache.py:173
Methodrestore_gdn_states
()
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1980
Functionrestore_init_context
This function is used to restore the wrappers after deepspeed engine is initialized.
deepspeed/runtime/zero/partition_parameters.py:690
Functionrestore_rotary_pos_emb
Undo ``replace_rotary_pos_emb`` in every patched modeling module; returns how many were restored.
deepspeed/ops/triton_ops/fused_rotary_pos_emb.py:346
Methodrestore_slots
(self)
deepspeed/autotuning/scheduler.py:281
Methodretake_workspace
(self)
deepspeed/ops/transformer/inference/op_binding/workspace.py:51
Methodretake_workspace
()
op_builder/supa/inference.py:61
Methodretake_workspace_fallback
(self)
deepspeed/ops/transformer/inference/op_binding/workspace.py:228
Methodretarget_transformers_output_recorders
( self, model: nn.Module, spec: MoELayerSpec, replacement: nn.Module,
deepspeed/module_inject/auto_ep_presets/base.py:440
Methodretarget_transformers_output_recorders
( self, model: nn.Module, spec: MoELayerSpec, replacement: nn.Module,
deepspeed/module_inject/auto_ep_presets/qwen3_5_moe.py:66
Functionrevert_transformer_layer
Revert DeepSpeed's transformer layer back to original bert-style transformer layer Arguments: orig_layer_impl (torch.nn.Module): the orig
deepspeed/module_inject/replace_module.py:548
Methodrms_mlp_gemm_bf16
(input, residual, weight_interm, weight_out, gamma, eps, interm_scale, out_scale, q_int8,
op_builder/supa/inference.py:254
Methodrms_mlp_gemm_fallback
(self, input, residual, weight_interm, weight_out, gamma, eps, interm_scale, out_scale,
deepspeed/ops/transformer/inference/op_binding/mlp_gemm.py:57
Methodrms_mlp_gemm_fp16
(input, residual, weight_interm, weight_out, gamma, eps, interm_scale, out_scale, q_int8,
op_builder/supa/inference.py:248
Functionrms_norm
deepspeed/inference/v2/kernels/core_ops/cuda_rms_norm/rms_norm.cpp:39
Functionrms_pre_norm
deepspeed/inference/v2/kernels/core_ops/cuda_rms_norm/rms_norm.cpp:75
Methodrms_qkv_gemm_bf16
(inputs, weight, q_scale, gamma, eps, q_int8, transpose)
op_builder/supa/inference.py:221
Methodrms_qkv_gemm_fallback
(input, weight, q_scale, gamma, eps, q_int8, transpose)
deepspeed/ops/transformer/inference/op_binding/qkv_gemm.py:70
Methodrms_qkv_gemm_fp16
(inputs, weight, q_scale, gamma, eps, q_int8, transpose)
op_builder/supa/inference.py:217
Methodrope_theta
The rotary base, read from wherever the installed transformers keeps it. transformers 5.0 folded the rotary settings into ``config.rope_param
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:192
Methodrope_with_cast
(q, k, cos, sin, unsqueeze_dim=1)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:332
Functionrow_major_strides
Element stride per axis for a densely packed tensor of this shape.
deepspeed/checkpoint/affine_geometry.py:25
Functionrows
(requests)
tests/unit/checkpoint/test_affine_replica_policy.py:350
Methodrs_fn_counter
(*a, **k)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:415
Methodrun
(self, **fixture_kwargs)
tests/unit/common.py:496
Methodrun
(self, class_tmpdir, elastic_save, load_optim)
tests/unit/checkpoint/test_zero_optimizer.py:226
Methodrun
(self, class_tmpdir)
tests/unit/checkpoint/test_zero_optimizer.py:260
Methodrun
(self, tmpdir, affine_layout)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1720
Methodrun
(self, tmpdir)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1776
Methodrun
(self, tmpdir)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1958
Methodrun
(self, model_name, class_tmpdir)
tests/unit/inference/test_checkpoint_sharding.py:64
← previousnext →11,201–11,300 of 15,468, ranked by callers