MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

Methodremove_partition_and_release_buffers
(self, params)
tests/unit/ops/adam/test_zf_torch_adam.py:222
Methodremove_profile_attrs
(module)
deepspeed/profiling/flops_profiler/profiler.py:145
Methodreorder_cache
(self, beam_idx: torch.LongTensor)
deepspeed/utils/static_cache.py:186
Functionreplace_attn
(child, policy)
deepspeed/module_inject/replace_module.py:88
Functionreplace_attn_block
(child, policy)
deepspeed/module_inject/replace_module.py:132
Functionreplace_fn
(child, _policy, layer_id=0, prefix="", state_dict=None)
deepspeed/module_inject/replace_module.py:322
Functionreplace_rms_norm
Run the fused kernels in place of each supported RMSNorm module's eager forward. A module is replaced if its exact class is listed in ``SUPPO
deepspeed/ops/triton_ops/fused_rms_norm.py:331
Functionreplace_rotary_pos_emb
Run the fused kernel in place of the Hugging Face ``apply_rotary_pos_emb`` used by ``model``. Attention modules look the function up in their mod
deepspeed/ops/triton_ops/fused_rotary_pos_emb.py:308
Functionreplay
(graph)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:71
Methodreplay_graph
(self, graph)
accelerator/supa_accelerator.py:194
Methodreplay_graph
(self, graph)
accelerator/sdaa_accelerator.py:221
Methodreplay_graph
(self, graph)
accelerator/cpu_accelerator.py:396
Methodreplay_graph
(self, graph)
accelerator/mlu_accelerator.py:192
Methodreplay_graph
(self, graph)
accelerator/npu_accelerator.py:262
Methodreplay_graph
(self, graph)
accelerator/xpu_accelerator.py:346
Methodreplay_graph
(self, graph)
accelerator/cuda_accelerator.py:303
Methodreplay_graph
(self, graph)
accelerator/mps_accelerator.py:207
Methodreplay_graph
(self, graph)
accelerator/abstract_accelerator.py:240
Functionreplay_pack
save recompute activations
deepspeed/runtime/activation_checkpointing/checkpointing.py:885
Functionreplay_unpack
recompute graph need not to backward
deepspeed/runtime/activation_checkpointing/checkpointing.py:898
Functionreset
Resets memory buffers related to contiguous memory optimizations. Should be called during eval when multiple forward propagations are computed
deepspeed/runtime/activation_checkpointing/checkpointing.py:1090
Methodreset
Reset timer.
deepspeed/utils/timer.py:86
Methodreset
(self)
deepspeed/io/double_io_buffer.py:64
Methodreset
(self)
deepspeed/io/single_io_buffer.py:43
Methodreset
Reset the preprocessing flag without removing hooks.
deepspeed/runtime/utils.py:1464
Methodreset_activation_shape
(self)
deepspeed/runtime/pipe/dualpipev.py:154
Methodreset_activation_shape
Reset the buffers when the shape of activation and gradient change. For example, for curriculum learning that changes the seqlen of each
deepspeed/runtime/pipe/engine.py:316
Functionreset_cache
csrc/transformer/inference/csrc/pt_binding.cpp:437
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:266
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_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
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
← previousnext →10,701–10,800 of 14,579, ranked by callers