Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ functions
Functions
14,579 in github.com/deepspeedai/DeepSpeed
⨍
Functions
14,579
◇
Types & classes
2,353
↳
Endpoints
92
Method
backward
(ctx, a_gradients: torch.Tensor, g_gradients: torch.Tensor)
deepspeed/ops/random_ltd/dropping_utils.py:94
Method
backward
(ctx, out_gradients: torch.Tensor)
deepspeed/ops/random_ltd/dropping_utils.py:122
Method
backward
(ctx, grad_output)
deepspeed/ops/deepspeed4science/evoformer_attn.py:76
Method
backward
(ctx, grad_output)
deepspeed/ops/transformer/transformer.py:243
Method
backward
(ctx, grad_output)
deepspeed/ops/transformer/inference/moe_inference.py:127
Method
backward
(ctx, grad_output, grad_output1, grad_output2, grad_output3)
deepspeed/ops/transformer/inference/diffusers_attention.py:94
Method
backward
(ctx, grad_out)
deepspeed/ops/triton_ops/group_gemm_triton.py:430
Method
backward
(ctx, grad_out: torch.Tensor)
deepspeed/ops/triton_ops/swiglu_triton.py:97
Method
backward
(ctx, grad_out: torch.Tensor)
deepspeed/ops/triton_ops/swiglu_triton.py:179
Method
backward
(ctx, grad_out: torch.Tensor)
deepspeed/ops/triton_ops/swiglu_triton.py:359
Method
backward
(ctx, grad_out: torch.Tensor)
deepspeed/ops/triton_ops/swiglu_triton.py:410
Method
backward
(ctx, grad_out)
deepspeed/ops/triton_ops/fused_rms_norm.py:212
Method
backward
(ctx, grad_output)
deepspeed/ops/triton_ops/autoep_fused_token_ops.py:318
Method
backward
(ctx, grad_output)
deepspeed/ops/triton_ops/autoep_fused_token_ops.py:410
Method
backward
(ctx, grad_q, grad_k)
deepspeed/ops/triton_ops/fused_rotary_pos_emb.py:226
Method
backward
(ctx, grad_output)
deepspeed/sequence/fpdt_layer.py:309
Method
backward
(ctx, grad_output)
deepspeed/sequence/fpdt_layer.py:800
Method
backward
(ctx, grad_output, grad_bias)
deepspeed/sequence/fpdt_layer.py:1213
Method
backward
(ctx, grad_output)
deepspeed/sequence/fpdt_layer.py:1306
Method
backward
(ctx, grad_output)
deepspeed/sequence/cross_entropy.py:95
Method
backward
(ctx, grad_output)
deepspeed/sequence/cross_entropy.py:122
Method
backward
(ctx, grad_loss)
deepspeed/sequence/linear_cross_entropy.py:168
Method
backward
(ctx: Any, *grad_output: Tensor)
deepspeed/sequence/layer.py:457
Method
backward
(ctx, grad_output)
deepspeed/sequence/vocab_parallel_ops.py:236
Method
backward
(ctx, grad_output)
deepspeed/sequence/vocab_parallel_ops.py:284
Method
backward
(ctx, grad_output)
deepspeed/sequence/vocab_parallel_ops.py:342
Method
backward
(ctx, grad_output)
deepspeed/sequence/vocab_parallel_ops.py:440
Method
backward
(ctx, grad_loss)
deepspeed/runtime/chunked_cross_entropy.py:138
Method
backward
(ctx, grad_loss)
deepspeed/runtime/chunked_cross_entropy.py:181
Method
backward
r"""Execute backward pass on the loss Arguments: loss: Torch tensor on which to execute backward propagation retain_gr
deepspeed/runtime/engine.py:3465
Method
backward
(self, loss, **kwargs)
deepspeed/runtime/base_optimizer.py:465
Method
backward
(ctx, grad_output)
deepspeed/runtime/zero/linear.py:120
Method
backward
(ctx, *args)
deepspeed/runtime/zero/parameter_offload.py:484
Method
backward
(ctx, *args)
deepspeed/runtime/zero/parameter_offload.py:517
Method
backward
(phase)
deepspeed/runtime/pipe/schedule.py:397
Method
backward
(ctx, grad_output)
deepspeed/runtime/domino/transformer.py:67
Method
backward
(ctx, grad_output)
deepspeed/runtime/domino/async_linear.py:31
Method
backward
(ctx, *grads)
deepspeed/runtime/sequence_parallel/ulysses_sp.py:857
Method
backward
(ctx, *grads)
deepspeed/runtime/sequence_parallel/ulysses_sp.py:1221
Method
backward
(ctx, *grads)
deepspeed/runtime/sequence_parallel/ulysses_sp.py:1261
Method
backward
(ctx, *grads)
deepspeed/runtime/activation_checkpointing/checkpointing.py:666
Method
backward
:attr:`backward` performs the following steps: 1. fp32_loss = loss.float() 2. scaled_loss = fp32_loss*loss_scale 3.
deepspeed/runtime/fp16/fused_optimizer.py:389
Method
backward
(self, loss, retain_graph=False)
deepspeed/runtime/fp16/loss_scaler.py:171
Method
backward
:attr:`backward` performs the following steps: 1. fp32_loss = loss.float() 2. scaled_loss = fp32_loss*loss_scale 3.
deepspeed/runtime/fp16/unfused_optimizer.py:260
Method
backward
(ctx, grad_full: torch.Tensor)
deepspeed/models/glm_moe_dsa/attention.py:83
Method
backward
(ctx, grad_out)
deepspeed/models/glm_moe_dsa/kernels/sparse_mla.py:25
Method
backward
(ctx, grad_received, grad_recv_weights)
deepspeed/module_inject/auto_ep_comm.py:482
Method
backward
(ctx, grad_combined)
deepspeed/module_inject/auto_ep_comm.py:512
Method
backward
Backward pass.
deepspeed/module_inject/layers.py:231
Method
backward
(ctx, grad_output)
deepspeed/module_inject/layers.py:250
Method
backward
(ctx: Any, grad_output: torch.Tensor)
deepspeed/module_inject/layers.py:278
Method
backward
Backward pass.
deepspeed/module_inject/layers.py:308
Method
backward
(ctx: Any, grad_output: torch.Tensor)
deepspeed/module_inject/layers.py:361
Method
backward
(ctx, grad_out)
deepspeed/module_inject/auto_ep_layer.py:353
Method
backward
(ctx: Any, *grad_output: Tensor)
deepspeed/moe/sharded_moe.py:108
Method
backward
(ctx, grad)
deepspeed/moe/ep_experts.py:277
Method
backward
(ctx, grad_out)
deepspeed/moe/ep_kernels.py:341
Method
backward
(ctx, grad_out)
deepspeed/moe/ep_kernels.py:356
Method
backward
(ctx, grad_output)
deepspeed/moe/ep_tp_dispatch.py:324
Method
backward
(ctx, grad_output)
deepspeed/moe/ep_tp_dispatch.py:417
Method
backward
(ctx, grad_output)
deepspeed/moe/mappings.py:84
Method
backward_chunk
(phase, send=True)
deepspeed/runtime/pipe/schedule.py:407
Function
backward_comm_off
(flag=False)
deepspeed/comm/torch.py:130
Method
backward_epilogue
(self, update_hp_grads=True, clear_lp_grads=False, **bwd_kwargs)
deepspeed/runtime/bf16_optimizer.py:507
Method
backward_epilogue
(self)
deepspeed/runtime/zero/stage3.py:3162
Method
backward_hook
(grad)
deepspeed/runtime/utils.py:1395
Method
backward_prologue
(self)
deepspeed/runtime/bf16_optimizer.py:504
Method
backward_prologue
(self)
deepspeed/runtime/zero/stage3.py:3153
Method
backward_prologue
Prepare ZenFlow's per-microbatch state before the backward pass. Called by the engine at the start of each backward. Advances the mic
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:571
Function
barrier
csrc/cpu/comm/ccl.cpp:318
Method
barrier
(self, group=torch.distributed.GroupMember.WORLD, async_op=False, device_ids=None)
deepspeed/comm/torch.py:558
Function
base_config
()
tests/unit/runtime/test_ds_config_dict.py:43
Function
batch_input
()
tests/unit/pipe/test_pipe_module.py:58
Function
batch_isend_irecv
Launch a list of :class:`P2POp` as one batch and return their requests.
deepspeed/comm/comm.py:433
Method
batch_size
(self)
deepspeed/runtime/rollout/base.py:85
Method
bench_loss_and_time
(config)
tests/unit/runtime/zero/test_zero_leaf_module.py:505
Function
bert_sample_tokens
(reserved_length: int, seq_length: int, batch_size: int,
deepspeed/ops/random_ltd/dropping_utils.py:52
Method
bf16_optimizer_states
(self)
tests/unit/v1/ops/muon/test_muon_partial_training.py:395
Function
bias_activation
In-place bias and activation fusion kernel. */
deepspeed/inference/v2/kernels/core_ops/bias_activations/bias_activation.cpp:38
Method
bias_add_bf16
(input, bias)
op_builder/supa/inference.py:139
Method
bias_add_fallback
(cls, input, bias)
deepspeed/ops/transformer/inference/op_binding/bias_add.py:27
Method
bias_add_fp16
(input, bias)
op_builder/supa/inference.py:135
Method
bias_add_fp32
(input, bias)
op_builder/supa/inference.py:143
Function
bias_gelu_back
(g, x)
deepspeed/sequence/fpdt_layer.py:1172
Method
bias_gelu_bf16
(input, bias)
op_builder/supa/inference.py:151
Method
bias_gelu_fallback
(cls, activations, bias)
deepspeed/ops/transformer/inference/op_binding/bias_gelu.py:28
Method
bias_gelu_fp16
(input, bias)
op_builder/supa/inference.py:147
Method
bias_gelu_fp32
(input, bias)
op_builder/supa/inference.py:155
Method
bias_relu_bf16
(input, bias)
op_builder/supa/inference.py:163
Method
bias_relu_fallback
(cls, activations, bias)
deepspeed/ops/transformer/inference/op_binding/bias_relu.py:28
Method
bias_relu_fp16
(input, bias)
op_builder/supa/inference.py:159
Method
bias_relu_fp32
(input, bias)
op_builder/supa/inference.py:167
Method
bias_residual_fallback
(cls, output, residual, bias)
deepspeed/ops/transformer/inference/op_binding/bias_residual.py:25
Method
bias_residual_fp16
(input, residual, bias)
op_builder/supa/inference.py:171
Method
bias_residual_fp32
(input, residual, bias)
op_builder/supa/inference.py:175
Function
blas_4d_matmul
deepspeed/inference/v2/kernels/core_ops/blas_kernels/blas.h:99
Function
blas_linear
deepspeed/inference/v2/kernels/core_ops/blas_kernels/blas.h:31
Function
block
deepspeed/inference/v2/kernels/includes/reduction_utils.h:607
Method
blockCopyEvents
Common helper methods for flushReduceBucket implementations
csrc/includes/deepcompile.h:583
Method
bloom
BLOOM-style models (fused QKV with interleaved heads).
deepspeed/module_inject/autotp_config.py:382
← previous
next →
8,001–8,100 of 14,579, ranked by callers