MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

Methodbackward
(ctx, a_gradients: torch.Tensor, g_gradients: torch.Tensor)
deepspeed/ops/random_ltd/dropping_utils.py:94
Methodbackward
(ctx, out_gradients: torch.Tensor)
deepspeed/ops/random_ltd/dropping_utils.py:122
Methodbackward
(ctx, grad_output)
deepspeed/ops/deepspeed4science/evoformer_attn.py:76
Methodbackward
(ctx, grad_output)
deepspeed/ops/transformer/transformer.py:243
Methodbackward
(ctx, grad_output)
deepspeed/ops/transformer/inference/moe_inference.py:127
Methodbackward
(ctx, grad_output, grad_output1, grad_output2, grad_output3)
deepspeed/ops/transformer/inference/diffusers_attention.py:94
Methodbackward
(ctx, grad_out)
deepspeed/ops/triton_ops/group_gemm_triton.py:430
Methodbackward
(ctx, grad_out: torch.Tensor)
deepspeed/ops/triton_ops/swiglu_triton.py:97
Methodbackward
(ctx, grad_out: torch.Tensor)
deepspeed/ops/triton_ops/swiglu_triton.py:179
Methodbackward
(ctx, grad_out: torch.Tensor)
deepspeed/ops/triton_ops/swiglu_triton.py:359
Methodbackward
(ctx, grad_out: torch.Tensor)
deepspeed/ops/triton_ops/swiglu_triton.py:410
Methodbackward
(ctx, grad_out)
deepspeed/ops/triton_ops/fused_rms_norm.py:212
Methodbackward
(ctx, grad_output)
deepspeed/ops/triton_ops/autoep_fused_token_ops.py:318
Methodbackward
(ctx, grad_output)
deepspeed/ops/triton_ops/autoep_fused_token_ops.py:410
Methodbackward
(ctx, grad_q, grad_k)
deepspeed/ops/triton_ops/fused_rotary_pos_emb.py:226
Methodbackward
(ctx, grad_output)
deepspeed/sequence/fpdt_layer.py:309
Methodbackward
(ctx, grad_output)
deepspeed/sequence/fpdt_layer.py:800
Methodbackward
(ctx, grad_output, grad_bias)
deepspeed/sequence/fpdt_layer.py:1213
Methodbackward
(ctx, grad_output)
deepspeed/sequence/fpdt_layer.py:1306
Methodbackward
(ctx, grad_output)
deepspeed/sequence/cross_entropy.py:95
Methodbackward
(ctx, grad_output)
deepspeed/sequence/cross_entropy.py:122
Methodbackward
(ctx, grad_loss)
deepspeed/sequence/linear_cross_entropy.py:168
Methodbackward
(ctx: Any, *grad_output: Tensor)
deepspeed/sequence/layer.py:457
Methodbackward
(ctx, grad_output)
deepspeed/sequence/vocab_parallel_ops.py:236
Methodbackward
(ctx, grad_output)
deepspeed/sequence/vocab_parallel_ops.py:284
Methodbackward
(ctx, grad_output)
deepspeed/sequence/vocab_parallel_ops.py:342
Methodbackward
(ctx, grad_output)
deepspeed/sequence/vocab_parallel_ops.py:440
Methodbackward
(ctx, grad_loss)
deepspeed/runtime/chunked_cross_entropy.py:138
Methodbackward
(ctx, grad_loss)
deepspeed/runtime/chunked_cross_entropy.py:181
Methodbackward
r"""Execute backward pass on the loss Arguments: loss: Torch tensor on which to execute backward propagation retain_gr
deepspeed/runtime/engine.py:3465
Methodbackward
(self, loss, **kwargs)
deepspeed/runtime/base_optimizer.py:465
Methodbackward
(ctx, grad_output)
deepspeed/runtime/zero/linear.py:120
Methodbackward
(ctx, *args)
deepspeed/runtime/zero/parameter_offload.py:484
Methodbackward
(ctx, *args)
deepspeed/runtime/zero/parameter_offload.py:517
Methodbackward
(phase)
deepspeed/runtime/pipe/schedule.py:397
Methodbackward
(ctx, grad_output)
deepspeed/runtime/domino/transformer.py:67
Methodbackward
(ctx, grad_output)
deepspeed/runtime/domino/async_linear.py:31
Methodbackward
(ctx, *grads)
deepspeed/runtime/sequence_parallel/ulysses_sp.py:857
Methodbackward
(ctx, *grads)
deepspeed/runtime/sequence_parallel/ulysses_sp.py:1221
Methodbackward
(ctx, *grads)
deepspeed/runtime/sequence_parallel/ulysses_sp.py:1261
Methodbackward
(ctx, *grads)
deepspeed/runtime/activation_checkpointing/checkpointing.py:666
Methodbackward
: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
Methodbackward
(self, loss, retain_graph=False)
deepspeed/runtime/fp16/loss_scaler.py:171
Methodbackward
: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
Methodbackward
(ctx, grad_full: torch.Tensor)
deepspeed/models/glm_moe_dsa/attention.py:83
Methodbackward
(ctx, grad_out)
deepspeed/models/glm_moe_dsa/kernels/sparse_mla.py:25
Methodbackward
(ctx, grad_received, grad_recv_weights)
deepspeed/module_inject/auto_ep_comm.py:482
Methodbackward
(ctx, grad_combined)
deepspeed/module_inject/auto_ep_comm.py:512
Methodbackward
Backward pass.
deepspeed/module_inject/layers.py:231
Methodbackward
(ctx, grad_output)
deepspeed/module_inject/layers.py:250
Methodbackward
(ctx: Any, grad_output: torch.Tensor)
deepspeed/module_inject/layers.py:278
Methodbackward
Backward pass.
deepspeed/module_inject/layers.py:308
Methodbackward
(ctx: Any, grad_output: torch.Tensor)
deepspeed/module_inject/layers.py:361
Methodbackward
(ctx, grad_out)
deepspeed/module_inject/auto_ep_layer.py:353
Methodbackward
(ctx: Any, *grad_output: Tensor)
deepspeed/moe/sharded_moe.py:108
Methodbackward
(ctx, grad)
deepspeed/moe/ep_experts.py:277
Methodbackward
(ctx, grad_out)
deepspeed/moe/ep_kernels.py:341
Methodbackward
(ctx, grad_out)
deepspeed/moe/ep_kernels.py:356
Methodbackward
(ctx, grad_output)
deepspeed/moe/ep_tp_dispatch.py:324
Methodbackward
(ctx, grad_output)
deepspeed/moe/ep_tp_dispatch.py:417
Methodbackward
(ctx, grad_output)
deepspeed/moe/mappings.py:84
Methodbackward_chunk
(phase, send=True)
deepspeed/runtime/pipe/schedule.py:407
Functionbackward_comm_off
(flag=False)
deepspeed/comm/torch.py:130
Methodbackward_epilogue
(self, update_hp_grads=True, clear_lp_grads=False, **bwd_kwargs)
deepspeed/runtime/bf16_optimizer.py:507
Methodbackward_epilogue
(self)
deepspeed/runtime/zero/stage3.py:3162
Methodbackward_hook
(grad)
deepspeed/runtime/utils.py:1395
Methodbackward_prologue
(self)
deepspeed/runtime/bf16_optimizer.py:504
Methodbackward_prologue
(self)
deepspeed/runtime/zero/stage3.py:3153
Methodbackward_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
Functionbarrier
csrc/cpu/comm/ccl.cpp:318
Methodbarrier
(self, group=torch.distributed.GroupMember.WORLD, async_op=False, device_ids=None)
deepspeed/comm/torch.py:558
Functionbase_config
()
tests/unit/runtime/test_ds_config_dict.py:43
Functionbatch_input
()
tests/unit/pipe/test_pipe_module.py:58
Functionbatch_isend_irecv
Launch a list of :class:`P2POp` as one batch and return their requests.
deepspeed/comm/comm.py:433
Methodbatch_size
(self)
deepspeed/runtime/rollout/base.py:85
Methodbench_loss_and_time
(config)
tests/unit/runtime/zero/test_zero_leaf_module.py:505
Functionbert_sample_tokens
(reserved_length: int, seq_length: int, batch_size: int,
deepspeed/ops/random_ltd/dropping_utils.py:52
Methodbf16_optimizer_states
(self)
tests/unit/v1/ops/muon/test_muon_partial_training.py:395
Functionbias_activation
In-place bias and activation fusion kernel. */
deepspeed/inference/v2/kernels/core_ops/bias_activations/bias_activation.cpp:38
Methodbias_add_bf16
(input, bias)
op_builder/supa/inference.py:139
Methodbias_add_fallback
(cls, input, bias)
deepspeed/ops/transformer/inference/op_binding/bias_add.py:27
Methodbias_add_fp16
(input, bias)
op_builder/supa/inference.py:135
Methodbias_add_fp32
(input, bias)
op_builder/supa/inference.py:143
Functionbias_gelu_back
(g, x)
deepspeed/sequence/fpdt_layer.py:1172
Methodbias_gelu_bf16
(input, bias)
op_builder/supa/inference.py:151
Methodbias_gelu_fallback
(cls, activations, bias)
deepspeed/ops/transformer/inference/op_binding/bias_gelu.py:28
Methodbias_gelu_fp16
(input, bias)
op_builder/supa/inference.py:147
Methodbias_gelu_fp32
(input, bias)
op_builder/supa/inference.py:155
Methodbias_relu_bf16
(input, bias)
op_builder/supa/inference.py:163
Methodbias_relu_fallback
(cls, activations, bias)
deepspeed/ops/transformer/inference/op_binding/bias_relu.py:28
Methodbias_relu_fp16
(input, bias)
op_builder/supa/inference.py:159
Methodbias_relu_fp32
(input, bias)
op_builder/supa/inference.py:167
Methodbias_residual_fallback
(cls, output, residual, bias)
deepspeed/ops/transformer/inference/op_binding/bias_residual.py:25
Methodbias_residual_fp16
(input, residual, bias)
op_builder/supa/inference.py:171
Methodbias_residual_fp32
(input, residual, bias)
op_builder/supa/inference.py:175
Functionblas_4d_matmul
deepspeed/inference/v2/kernels/core_ops/blas_kernels/blas.h:99
Functionblas_linear
deepspeed/inference/v2/kernels/core_ops/blas_kernels/blas.h:31
Functionblock
deepspeed/inference/v2/kernels/includes/reduction_utils.h:607
MethodblockCopyEvents
Common helper methods for flushReduceBucket implementations
csrc/includes/deepcompile.h:583
Methodbloom
BLOOM-style models (fused QKV with interleaved heads).
deepspeed/module_inject/autotp_config.py:382
← previousnext →8,001–8,100 of 14,579, ranked by callers