Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ functions
Functions
15,767 in github.com/deepspeedai/DeepSpeed
⨍
Functions
15,767
◇
Types & classes
2,543
↳
Endpoints
107
Method
available_memory
(self, device_index=None)
accelerator/mlu_accelerator.py:146
Method
available_memory
(self, device_index=None)
accelerator/npu_accelerator.py:180
Method
available_memory
(self, device_index=None)
accelerator/xpu_accelerator.py:309
Method
available_memory
(self, device_index=None)
accelerator/cuda_accelerator.py:196
Method
available_memory
(self, device_index=None)
accelerator/mps_accelerator.py:160
Method
available_memory
(self, device_index=None)
accelerator/abstract_accelerator.py:165
Method
average_tensor
(self, tensor: torch.Tensor, communication_data_type: torch.dtype)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:446
Function
backend
(_gm, _inputs)
tests/unit/compile/test_zero3_grad_dtype.py:129
Function
backend
(gm, example_inputs)
tests/unit/compile/test_tp_compile.py:806
Method
backend_exists
(self)
tests/unit/launcher/test_user_args.py:17
Method
backend_exists
Return whether the corresponding backend exists
deepspeed/launcher/multinode_runner.py:30
Method
backend_exists
(self)
deepspeed/launcher/multinode_runner.py:70
Method
backend_exists
(self)
deepspeed/launcher/multinode_runner.py:139
Method
backend_exists
(self)
deepspeed/launcher/multinode_runner.py:200
Method
backend_exists
(self)
deepspeed/launcher/multinode_runner.py:272
Method
backend_exists
(self)
deepspeed/launcher/multinode_runner.py:450
Function
backend_fn
(gm: GraphModule, real_inputs)
deepspeed/compile/init_tp.py:58
Function
backend_fn
(gm: GraphModule, real_inputs)
deepspeed/compile/backend.py:323
Function
backend_fn
(gm: GraphModule, real_inputs)
deepspeed/compile/init_sp.py:19
Method
backward
(ctx, grad_output)
tests/unit/v1/zero/test_zero_activation_checkpoint_lifecycle.py:50
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:183
Method
backward
(ctx, grad_out: torch.Tensor)
deepspeed/ops/triton_ops/swiglu_triton.py:389
Method
backward
(ctx, grad_out: torch.Tensor)
deepspeed/ops/triton_ops/swiglu_triton.py:440
Method
backward
(ctx, grad_out)
deepspeed/ops/triton_ops/fused_rms_norm.py:302
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:348
Method
backward
(ctx, grad_output)
deepspeed/sequence/fpdt_layer.py:839
Method
backward
(ctx, grad_output, grad_bias)
deepspeed/sequence/fpdt_layer.py:1252
Method
backward
(ctx, grad_output)
deepspeed/sequence/fpdt_layer.py:1345
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:463
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:3570
Method
backward
(self, loss, **kwargs)
deepspeed/runtime/base_optimizer.py:465
Method
backward
(ctx, grad_output)
deepspeed/runtime/zero/linear.py:126
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_out)
deepspeed/runtime/quantization/subchannel.py:273
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:518
Method
backward
(ctx, grad_combined)
deepspeed/module_inject/auto_ep_comm.py:559
Method
backward
(ctx, grad_out)
deepspeed/module_inject/segment_ki.py:168
Method
backward
(ctx, grad_out)
deepspeed/module_inject/segment_ki.py:237
Method
backward
Backward pass.
deepspeed/module_inject/layers.py:235
Method
backward
(ctx, grad_output)
deepspeed/module_inject/layers.py:254
Method
backward
(ctx: Any, grad_output: torch.Tensor)
deepspeed/module_inject/layers.py:282
Method
backward
Backward pass.
deepspeed/module_inject/layers.py:312
Method
backward
(ctx: Any, grad_output: torch.Tensor)
deepspeed/module_inject/layers.py:365
Method
backward
(ctx, grad_output)
deepspeed/module_inject/auto_ep_layer.py:196
Method
backward
(ctx, grad_out)
deepspeed/module_inject/auto_ep_layer.py:391
Method
backward
(ctx: Any, *grad_output: Tensor)
deepspeed/moe/sharded_moe.py:108
Method
backward
(ctx, grad)
deepspeed/moe/ep_experts.py:299
Method
backward
(ctx, grad_out)
deepspeed/moe/ep_experts.py:733
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
(ctx, input_)
deepspeed/moe/mappings.py:101
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:508
Method
backward_epilogue
(self)
deepspeed/runtime/zero/stage3.py:3441
Method
backward_hook
(grad)
deepspeed/runtime/utils.py:1403
Method
backward_prologue
(self)
deepspeed/runtime/bf16_optimizer.py:505
Method
backward_prologue
(self)
deepspeed/runtime/zero/stage3.py:3432
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
Method
backward_prologue
(self)
deepspeed/runtime/reflow/reflow_stage3.py:1581
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:591
Function
base_config
()
tests/unit/runtime/test_ds_config_dict.py:43
Function
batch_input
()
tests/unit/pipe/test_pipe_module.py:58
← previous
next →
8,501–8,600 of 15,767, ranked by callers