MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

Methodavailable_memory
(self, device_index=None)
accelerator/mlu_accelerator.py:146
Methodavailable_memory
(self, device_index=None)
accelerator/npu_accelerator.py:180
Methodavailable_memory
(self, device_index=None)
accelerator/xpu_accelerator.py:309
Methodavailable_memory
(self, device_index=None)
accelerator/cuda_accelerator.py:196
Methodavailable_memory
(self, device_index=None)
accelerator/mps_accelerator.py:160
Methodavailable_memory
(self, device_index=None)
accelerator/abstract_accelerator.py:165
Methodaverage_tensor
(self, tensor: torch.Tensor, communication_data_type: torch.dtype)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:446
Functionbackend
(_gm, _inputs)
tests/unit/compile/test_zero3_grad_dtype.py:129
Functionbackend
(gm, example_inputs)
tests/unit/compile/test_tp_compile.py:806
Methodbackend_exists
(self)
tests/unit/launcher/test_user_args.py:17
Methodbackend_exists
Return whether the corresponding backend exists
deepspeed/launcher/multinode_runner.py:30
Methodbackend_exists
(self)
deepspeed/launcher/multinode_runner.py:70
Methodbackend_exists
(self)
deepspeed/launcher/multinode_runner.py:139
Methodbackend_exists
(self)
deepspeed/launcher/multinode_runner.py:200
Methodbackend_exists
(self)
deepspeed/launcher/multinode_runner.py:272
Methodbackend_exists
(self)
deepspeed/launcher/multinode_runner.py:450
Functionbackend_fn
(gm: GraphModule, real_inputs)
deepspeed/compile/init_tp.py:58
Functionbackend_fn
(gm: GraphModule, real_inputs)
deepspeed/compile/backend.py:323
Functionbackend_fn
(gm: GraphModule, real_inputs)
deepspeed/compile/init_sp.py:19
Methodbackward
(ctx, grad_output)
tests/unit/v1/zero/test_zero_activation_checkpoint_lifecycle.py:50
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:183
Methodbackward
(ctx, grad_out: torch.Tensor)
deepspeed/ops/triton_ops/swiglu_triton.py:389
Methodbackward
(ctx, grad_out: torch.Tensor)
deepspeed/ops/triton_ops/swiglu_triton.py:440
Methodbackward
(ctx, grad_out)
deepspeed/ops/triton_ops/fused_rms_norm.py:302
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:348
Methodbackward
(ctx, grad_output)
deepspeed/sequence/fpdt_layer.py:839
Methodbackward
(ctx, grad_output, grad_bias)
deepspeed/sequence/fpdt_layer.py:1252
Methodbackward
(ctx, grad_output)
deepspeed/sequence/fpdt_layer.py:1345
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:463
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:3570
Methodbackward
(self, loss, **kwargs)
deepspeed/runtime/base_optimizer.py:465
Methodbackward
(ctx, grad_output)
deepspeed/runtime/zero/linear.py:126
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_out)
deepspeed/runtime/quantization/subchannel.py:273
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:518
Methodbackward
(ctx, grad_combined)
deepspeed/module_inject/auto_ep_comm.py:559
Methodbackward
(ctx, grad_out)
deepspeed/module_inject/segment_ki.py:168
Methodbackward
(ctx, grad_out)
deepspeed/module_inject/segment_ki.py:237
Methodbackward
Backward pass.
deepspeed/module_inject/layers.py:235
Methodbackward
(ctx, grad_output)
deepspeed/module_inject/layers.py:254
Methodbackward
(ctx: Any, grad_output: torch.Tensor)
deepspeed/module_inject/layers.py:282
Methodbackward
Backward pass.
deepspeed/module_inject/layers.py:312
Methodbackward
(ctx: Any, grad_output: torch.Tensor)
deepspeed/module_inject/layers.py:365
Methodbackward
(ctx, grad_output)
deepspeed/module_inject/auto_ep_layer.py:196
Methodbackward
(ctx, grad_out)
deepspeed/module_inject/auto_ep_layer.py:391
Methodbackward
(ctx: Any, *grad_output: Tensor)
deepspeed/moe/sharded_moe.py:108
Methodbackward
(ctx, grad)
deepspeed/moe/ep_experts.py:299
Methodbackward
(ctx, grad_out)
deepspeed/moe/ep_experts.py:733
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
(ctx, input_)
deepspeed/moe/mappings.py:101
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:508
Methodbackward_epilogue
(self)
deepspeed/runtime/zero/stage3.py:3441
Methodbackward_hook
(grad)
deepspeed/runtime/utils.py:1403
Methodbackward_prologue
(self)
deepspeed/runtime/bf16_optimizer.py:505
Methodbackward_prologue
(self)
deepspeed/runtime/zero/stage3.py:3432
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
Methodbackward_prologue
(self)
deepspeed/runtime/reflow/reflow_stage3.py:1581
Functionbarrier
csrc/cpu/comm/ccl.cpp:318
Methodbarrier
(self, group=torch.distributed.GroupMember.WORLD, async_op=False, device_ids=None)
deepspeed/comm/torch.py:591
Functionbase_config
()
tests/unit/runtime/test_ds_config_dict.py:43
Functionbatch_input
()
tests/unit/pipe/test_pipe_module.py:58
← previousnext →8,501–8,600 of 15,767, ranked by callers