MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Functionreduce_grad_meta
csrc/compile/deepcompile.cpp:117
Methodreduce_gradients_at_owner
(param_list=None, hierarchy=0)
deepspeed/runtime/zero/partition_parameters.py:1623
Methodreduce_leaf_module_grads
(module, grad_input, grad_output)
deepspeed/runtime/zero/stage3.py:1732
Methodreduce_partition_and_remove_grads
(*notneeded)
deepspeed/runtime/zero/stage3.py:1703
Methodreduce_prompt_batch
(_module, args, kwargs)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1719
Methodreduce_scatter
(self, output, input_list, op=ReduceOp.SUM, group=None, async_op=False)
deepspeed/comm/torch.py:406
Functionreduce_scatter_fn
(output_tensor, tensor, op=ReduceOp.SUM, gro
deepspeed/comm/comm.py:275
Functionreduce_scatter_sequence_fake
(input: torch.Tensor, dim: int)
deepspeed/compile/custom_ops/all_to_all.py:182
Methodreduce_scatter_tensor
(self, output_tensor, input_tensor, op=ReduceOp.SUM, group=None, async_op=False)
deepspeed/comm/torch.py:510
Methodreenter_backward_if_needed
Re-enter backward context for subsequent phases in reentrant checkpointing. With reentrant gradient checkpointing, gradient hooks can fire in
deepspeed/runtime/base_optimizer.py:187
Functionreference_implementation
(hidden_states: torch.Tensor, weight: torch.Tensor, bias: Optional[torch.Tensor],
tests/unit/inference/v2/modules/test_quantized_linear_module.py:19
Methodreference_step
()
tests/unit/runtime/pipe/test_pipe.py:334
Functionreflow_adam_memory_fence
Memory fence to enforce store ordering after non-temporal (streaming) stores.
csrc/adam/reflow_cpu_adam_bindings.cpp:8
Methodreflow_compat_check
(self)
deepspeed/runtime/zero/config.py:430
Functionreflow_create_adam_optimizer
csrc/adam/reflow_cpu_adam_impl.cpp:60
Functionreflow_create_lion_optimizer
csrc/lion/reflow_cpu_lion_impl.cpp:210
Functionreflow_destroy_adam_optimizer
csrc/adam/reflow_cpu_adam_impl.cpp:509
Functionreflow_destroy_lion_optimizer
csrc/lion/reflow_cpu_lion_impl.cpp:453
Functionreflow_ds_adam_state_step_halfgrad
Commit the FP32 master and optimizer state from half-precision gradients.
csrc/adam/reflow_cpu_adam_impl.cpp:412
Functionreflow_ds_adam_step_params_halfgrad
Half/BFloat16 gradient FP16-store path (params only, state skipped). * params_fp32 stays FP32; the half_params buffer receives FP16/BF16. */
csrc/adam/reflow_cpu_adam_impl.cpp:293
Functionreflow_ds_bf16_accumulate
BF16/FP16 gradient accumulation using AVX: dst[i] += src[i]. * Both tensors must be contiguous BF16/FP16 tensors on CPU. */
csrc/adam/reflow_cpu_adam_impl.cpp:519
Functionreflow_ds_lion_state_step_halfgrad
Half/BFloat16 gradient params (FP32 master) + state commit.
csrc/lion/reflow_cpu_lion_impl.cpp:366
Functionreflow_ds_lion_step_params_halfgrad
Half/BFloat16 gradient FP16-store path (params only, state skipped). * params_fp32 stays FP32; the half_params buffer receives FP16/BF16. */
csrc/lion/reflow_cpu_lion_impl.cpp:255
Functionreflow_lion_memory_fence
Memory fence to enforce store ordering after non-temporal (streaming) stores.
csrc/lion/reflow_cpu_lion_bindings.cpp:8
Functionreflow_simd_load
csrc/includes/reflow_simd.h:60
Functionreflow_simd_store
csrc/includes/reflow_simd.h:51
Functionreflow_simd_store_ready
csrc/includes/reflow_simd.h:79
Functionreflow_stream_ready_output
csrc/includes/reflow_simd.h:71
Methodrefresh_fp32_params
(self)
deepspeed/runtime/zero/stage_1_and_2.py:3688
Methodrefresh_fp32_params
(self)
deepspeed/runtime/fp16/fused_optimizer.py:488
Methodrefresh_fp32_params
(self)
deepspeed/runtime/fp16/unfused_optimizer.py:371
Functionrefuse_walk
(self)
tests/unit/checkpoint/test_affine_shard_map.py:504
Functionregister_arg
(n: Node)
deepspeed/compile/list_schedule.py:246
Methodregister_grad_acc_post_hook
Register a callback to run when all gradient hooks have fired.
deepspeed/runtime/base_optimizer.py:114
Functionregister_graph_z1
csrc/compile/z1.cpp:109
Functionregister_graph_z2
csrc/compile/z2.cpp:105
Functionregister_graph_z3
csrc/compile/z3.cpp:478
Methodregister_host_memory
(self, address, num_bytes)
tests/unit/v1/pin_memory/test_pin_memory.py:141
Methodregister_host_memory
(self, address, num_bytes)
accelerator/supa_accelerator.py:65
Methodregister_host_memory
(self, address, num_bytes)
accelerator/xpu_accelerator.py:414
Methodregister_host_memory
(self, address, num_bytes)
accelerator/cuda_accelerator.py:344
Methodregister_host_memory
Register page-locked host memory with the active device runtime.
accelerator/abstract_accelerator.py:293
Methodregister_module
Register a module with this registry.
deepspeed/inference/v2/modules/module_registry.py:49
Methodregister_module_hooks
(module, ignore_list)
deepspeed/profiling/flops_profiler/profiler.py:88
Functionregister_param
csrc/compile/z1.cpp:121
Functionregister_z3_param
csrc/compile/z3.cpp:493
Functionreject_optimizer_without_reflow
(engine: "DeepSpeedEngine", optimizer)
deepspeed/runtime/reflow/engine.py:29
Methodrelative_error
(got)
tests/unit/v1/moe/test_autoep_expert_activation.py:528
Methodrelease_backward_leftovers
Release leftover submodules whose post-backward hook never fired (e.g. a no-grad block input): drain the backward stack and release as the mis
deepspeed/runtime/zero/partitioned_param_coordinator.py:568
Methodrelease_grad_buffers
(self)
deepspeed/compile/init_z1_and_2.py:31
Methodrelease_memory
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:83
Methodrelease_memory
Delete module parameters if they exist and point them back to the container. The primary purpose of this is for TP-inference with ZeR
deepspeed/module_inject/containers/features/hybrid_engine.py:111
Methodrelease_mlp
(self)
deepspeed/module_inject/containers/features/gated_mlp.py:60
Functionrelease_param
csrc/compile/z3.cpp:619
Functionrelease_param_meta
csrc/compile/z3.cpp:626
Methodrelease_qkv
(self)
deepspeed/module_inject/containers/features/split_qkv.py:51
Methodrelease_readers_on_failure
(done)
deepspeed/runtime/reflow/reflow_stage3.py:982
Methodrelease_workspace
(self)
deepspeed/ops/transformer/inference/op_binding/workspace.py:122
Methodrelease_workspace_fallback
(self)
deepspeed/ops/transformer/inference/op_binding/workspace.py:225
Methodreload
(self, in_place)
deepspeed/compile/util.py:412
Methodreload
csrc/includes/deepcompile.h:443
Functionreload_adam_states
Move optimizer states to device. Note that this assumes the state structure of DeepSpeed Adam.
deepspeed/runtime/utils.py:1252
Functionreload_parameter
csrc/compile/z3.cpp:671
Functionreload_parameter_meta
csrc/compile/z3.cpp:682
Methodreload_states
(self, non_blocking: bool = False)
deepspeed/runtime/zero/stage3.py:4412
Methodreload_states
Reload previously offloaded optimizer states from CPU back to GPU. Args: non_blocking (bool, optional):
deepspeed/runtime/zero/stage_1_and_2.py:4084
Functionreload_tensor
csrc/compile/z3.cpp:646
Methodremove_buffer_from_registry
csrc/gds/deepspeed_gds_op.cpp:79
Functionremove_file
(test_id, filename)
tests/model/Megatron_GPT2/run_checkpoint_test.py:21
Functionremove_folder
(folder)
deepspeed/nvme/perf_run_sweep.py:258
Functionremove_pad
(t)
tests/unit/checkpoint/test_universal_checkpoint.py:56
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:200
Functionrepeat_qk
Head-repeat for the GDN scan's v-head layout: out[...,hv,:] = in[...,hv/ratio,:].
deepspeed/module_inject/kernel_reference.py:88
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:439
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:73
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:358
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
← previousnext →11,101–11,200 of 15,468, ranked by callers