Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ functions
Functions
15,468 in github.com/deepspeedai/DeepSpeed
⨍
Functions
15,468
◇
Types & classes
2,493
↳
Endpoints
106
Function
reduce_grad_meta
csrc/compile/deepcompile.cpp:117
Method
reduce_gradients_at_owner
(param_list=None, hierarchy=0)
deepspeed/runtime/zero/partition_parameters.py:1623
Method
reduce_leaf_module_grads
(module, grad_input, grad_output)
deepspeed/runtime/zero/stage3.py:1732
Method
reduce_partition_and_remove_grads
(*notneeded)
deepspeed/runtime/zero/stage3.py:1703
Method
reduce_prompt_batch
(_module, args, kwargs)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1719
Method
reduce_scatter
(self, output, input_list, op=ReduceOp.SUM, group=None, async_op=False)
deepspeed/comm/torch.py:406
Function
reduce_scatter_fn
(output_tensor, tensor, op=ReduceOp.SUM, gro
deepspeed/comm/comm.py:275
Function
reduce_scatter_sequence_fake
(input: torch.Tensor, dim: int)
deepspeed/compile/custom_ops/all_to_all.py:182
Method
reduce_scatter_tensor
(self, output_tensor, input_tensor, op=ReduceOp.SUM, group=None, async_op=False)
deepspeed/comm/torch.py:510
Method
reenter_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
Function
reference_implementation
(hidden_states: torch.Tensor, weight: torch.Tensor, bias: Optional[torch.Tensor],
tests/unit/inference/v2/modules/test_quantized_linear_module.py:19
Method
reference_step
()
tests/unit/runtime/pipe/test_pipe.py:334
Function
reflow_adam_memory_fence
Memory fence to enforce store ordering after non-temporal (streaming) stores.
csrc/adam/reflow_cpu_adam_bindings.cpp:8
Method
reflow_compat_check
(self)
deepspeed/runtime/zero/config.py:430
Function
reflow_create_adam_optimizer
csrc/adam/reflow_cpu_adam_impl.cpp:60
Function
reflow_create_lion_optimizer
csrc/lion/reflow_cpu_lion_impl.cpp:210
Function
reflow_destroy_adam_optimizer
csrc/adam/reflow_cpu_adam_impl.cpp:509
Function
reflow_destroy_lion_optimizer
csrc/lion/reflow_cpu_lion_impl.cpp:453
Function
reflow_ds_adam_state_step_halfgrad
Commit the FP32 master and optimizer state from half-precision gradients.
csrc/adam/reflow_cpu_adam_impl.cpp:412
Function
reflow_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
Function
reflow_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
Function
reflow_ds_lion_state_step_halfgrad
Half/BFloat16 gradient params (FP32 master) + state commit.
csrc/lion/reflow_cpu_lion_impl.cpp:366
Function
reflow_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
Function
reflow_lion_memory_fence
Memory fence to enforce store ordering after non-temporal (streaming) stores.
csrc/lion/reflow_cpu_lion_bindings.cpp:8
Function
reflow_simd_load
csrc/includes/reflow_simd.h:60
Function
reflow_simd_store
csrc/includes/reflow_simd.h:51
Function
reflow_simd_store_ready
csrc/includes/reflow_simd.h:79
Function
reflow_stream_ready_output
csrc/includes/reflow_simd.h:71
Method
refresh_fp32_params
(self)
deepspeed/runtime/zero/stage_1_and_2.py:3688
Method
refresh_fp32_params
(self)
deepspeed/runtime/fp16/fused_optimizer.py:488
Method
refresh_fp32_params
(self)
deepspeed/runtime/fp16/unfused_optimizer.py:371
Function
refuse_walk
(self)
tests/unit/checkpoint/test_affine_shard_map.py:504
Function
register_arg
(n: Node)
deepspeed/compile/list_schedule.py:246
Method
register_grad_acc_post_hook
Register a callback to run when all gradient hooks have fired.
deepspeed/runtime/base_optimizer.py:114
Function
register_graph_z1
csrc/compile/z1.cpp:109
Function
register_graph_z2
csrc/compile/z2.cpp:105
Function
register_graph_z3
csrc/compile/z3.cpp:478
Method
register_host_memory
(self, address, num_bytes)
tests/unit/v1/pin_memory/test_pin_memory.py:141
Method
register_host_memory
(self, address, num_bytes)
accelerator/supa_accelerator.py:65
Method
register_host_memory
(self, address, num_bytes)
accelerator/xpu_accelerator.py:414
Method
register_host_memory
(self, address, num_bytes)
accelerator/cuda_accelerator.py:344
Method
register_host_memory
Register page-locked host memory with the active device runtime.
accelerator/abstract_accelerator.py:293
Method
register_module
Register a module with this registry.
deepspeed/inference/v2/modules/module_registry.py:49
Method
register_module_hooks
(module, ignore_list)
deepspeed/profiling/flops_profiler/profiler.py:88
Function
register_param
csrc/compile/z1.cpp:121
Function
register_z3_param
csrc/compile/z3.cpp:493
Function
reject_optimizer_without_reflow
(engine: "DeepSpeedEngine", optimizer)
deepspeed/runtime/reflow/engine.py:29
Method
relative_error
(got)
tests/unit/v1/moe/test_autoep_expert_activation.py:528
Method
release_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
Method
release_grad_buffers
(self)
deepspeed/compile/init_z1_and_2.py:31
Method
release_memory
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:83
Method
release_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
Method
release_mlp
(self)
deepspeed/module_inject/containers/features/gated_mlp.py:60
Function
release_param
csrc/compile/z3.cpp:619
Function
release_param_meta
csrc/compile/z3.cpp:626
Method
release_qkv
(self)
deepspeed/module_inject/containers/features/split_qkv.py:51
Method
release_readers_on_failure
(done)
deepspeed/runtime/reflow/reflow_stage3.py:982
Method
release_workspace
(self)
deepspeed/ops/transformer/inference/op_binding/workspace.py:122
Method
release_workspace_fallback
(self)
deepspeed/ops/transformer/inference/op_binding/workspace.py:225
Method
reload
(self, in_place)
deepspeed/compile/util.py:412
Method
reload
csrc/includes/deepcompile.h:443
Function
reload_adam_states
Move optimizer states to device. Note that this assumes the state structure of DeepSpeed Adam.
deepspeed/runtime/utils.py:1252
Function
reload_parameter
csrc/compile/z3.cpp:671
Function
reload_parameter_meta
csrc/compile/z3.cpp:682
Method
reload_states
(self, non_blocking: bool = False)
deepspeed/runtime/zero/stage3.py:4412
Method
reload_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
Function
reload_tensor
csrc/compile/z3.cpp:646
Method
remove_buffer_from_registry
csrc/gds/deepspeed_gds_op.cpp:79
Function
remove_file
(test_id, filename)
tests/model/Megatron_GPT2/run_checkpoint_test.py:21
Function
remove_folder
(folder)
deepspeed/nvme/perf_run_sweep.py:258
Function
remove_pad
(t)
tests/unit/checkpoint/test_universal_checkpoint.py:56
Method
remove_partition_and_release_buffers
(self, params)
tests/unit/ops/adam/test_zf_torch_adam.py:222
Method
remove_profile_attrs
(module)
deepspeed/profiling/flops_profiler/profiler.py:145
Method
reorder_cache
(self, beam_idx: torch.LongTensor)
deepspeed/utils/static_cache.py:200
Function
repeat_qk
Head-repeat for the GDN scan's v-head layout: out[...,hv,:] = in[...,hv/ratio,:].
deepspeed/module_inject/kernel_reference.py:88
Function
replace_attn
(child, policy)
deepspeed/module_inject/replace_module.py:88
Function
replace_attn_block
(child, policy)
deepspeed/module_inject/replace_module.py:132
Function
replace_fn
(child, _policy, layer_id=0, prefix="", state_dict=None)
deepspeed/module_inject/replace_module.py:322
Function
replace_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
Function
replace_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
Function
replay
(graph)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:73
Method
replay_graph
(self, graph)
accelerator/supa_accelerator.py:194
Method
replay_graph
(self, graph)
accelerator/sdaa_accelerator.py:221
Method
replay_graph
(self, graph)
accelerator/cpu_accelerator.py:396
Method
replay_graph
(self, graph)
accelerator/mlu_accelerator.py:192
Method
replay_graph
(self, graph)
accelerator/npu_accelerator.py:262
Method
replay_graph
(self, graph)
accelerator/xpu_accelerator.py:358
Method
replay_graph
(self, graph)
accelerator/cuda_accelerator.py:303
Method
replay_graph
(self, graph)
accelerator/mps_accelerator.py:207
Method
replay_graph
(self, graph)
accelerator/abstract_accelerator.py:240
Function
replay_pack
save recompute activations
deepspeed/runtime/activation_checkpointing/checkpointing.py:885
Function
replay_unpack
recompute graph need not to backward
deepspeed/runtime/activation_checkpointing/checkpointing.py:898
Function
reset
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
Method
reset
Reset timer.
deepspeed/utils/timer.py:86
Method
reset
(self)
deepspeed/io/double_io_buffer.py:64
Method
reset
(self)
deepspeed/io/single_io_buffer.py:43
Method
reset
Reset the preprocessing flag without removing hooks.
deepspeed/runtime/utils.py:1464
Method
reset_activation_shape
(self)
deepspeed/runtime/pipe/dualpipev.py:154
Method
reset_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
Function
reset_cache
csrc/transformer/inference/csrc/pt_binding.cpp:437
← previous
next →
11,101–11,200 of 15,468, ranked by callers