MCPcopy Create free account

hub / github.com/AIS-SNU/Smart-Infinity / functions

Functions4,989 in github.com/AIS-SNU/Smart-Infinity

Methodbackward
(ctx, grad_output)
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:156
Methodbackward
(ctx, grad_output)
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:172
Methodbackward
(ctx, grad_output)
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:188
Methodbackward
(ctx, grad_output)
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:204
Methodbackward
(ctx, grad_output)
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:221
Methodbackward
(ctx, grad_output)
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:246
Methodbackward
(ctx, grad_output)
DeepSpeedExample/megatron/core/sequence_parallel/cross_entropy.py:37
Methodbackward
(ctx, grad_output)
DeepSpeedExample/megatron/model/fused_layer_norm.py:55
Methodbackward
(ctx, output_grads)
DeepSpeedExample/megatron/model/fused_softmax.py:42
Methodbackward
(ctx, output_grads)
DeepSpeedExample/megatron/model/fused_softmax.py:72
Methodbackward
(ctx, grad_output)
DeepSpeedExample/megatron/model/fused_bias_gelu.py:55
Methodbackward
(self, loss, retain_graph=False)
DeepSpeedExample/megatron/fp16/loss_scaler.py:199
Methodbackward
(ctx, grad_output)
DeepSpeedExample/megatron/mpu/cross_entropy.py:85
Methodbackward
(ctx, grad_output)
DeepSpeedExample/megatron/mpu/mappings.py:88
Methodbackward
(ctx, grad_output)
DeepSpeedExample/megatron/mpu/mappings.py:104
Methodbackward
(ctx, grad_output)
DeepSpeedExample/megatron/mpu/mappings.py:120
Methodbackward
(ctx, grad_output)
DeepSpeedExample/megatron/mpu/mappings.py:136
Methodbackward
(ctx, dx)
deepspeed/ops/sparse_attention/softmax.py:213
Methodbackward
(ctx, dc)
deepspeed/ops/sparse_attention/matmul.py:605
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/transformer/transformer.py:236
Methodbackward
(ctx, grad_output)
deepspeed/ops/transformer/inference/moe_inference.py:129
Methodbackward
(ctx, grad_output, grad_output1, grad_output2, grad_output3)
deepspeed/ops/transformer/inference/diffusers_attention.py:92
Methodbackward
Perform a backward pass and copy the low-precision gradients to the high-precision copy. We copy/accumulate to the high-precision gra
deepspeed/runtime/bf16_optimizer.py:258
Methodbackward
r"""Execute backward pass on the loss Arguments: loss: Torch tensor on which to execute backward propagation allreduce
deepspeed/runtime/engine.py:1822
Methodbackward
(ctx, grad_output)
deepspeed/runtime/zero/linear.py:67
Methodbackward
:attr:`backward` performs the following steps: 1. fp32_loss = loss.float() 2. scaled_loss = fp32_loss*loss_scale 3.
deepspeed/runtime/zero/stage3.py:2108
Methodbackward
(ctx, *args)
deepspeed/runtime/zero/parameter_offload.py:167
Methodbackward
(ctx, *args)
deepspeed/runtime/zero/parameter_offload.py:193
Methodbackward
:attr:`backward` performs the following steps: 1. fp32_loss = loss.float() 2. scaled_loss = fp32_loss*loss_scale 3.
deepspeed/runtime/zero/stage_1_and_2.py:1872
Methodbackward
(ctx, *grads)
deepspeed/runtime/activation_checkpointing/checkpointing.py:592
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:340
Methodbackward
(self, loss, retain_graph=False)
deepspeed/runtime/fp16/loss_scaler.py:61
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:261
Methodbackward
(ctx, gradOutput)
deepspeed/compression/utils.py:54
Methodbackward
(ctx, grad_output)
deepspeed/compression/utils.py:99
Methodbackward
(ctx, grad_output)
deepspeed/compression/utils.py:143
Methodbackward
(ctx, grad_output)
deepspeed/compression/utils.py:184
Methodbackward
(ctx, grad_output)
deepspeed/compression/utils.py:220
Methodbackward
(ctx, grad_output)
deepspeed/compression/basic_layer.py:706
Methodbackward
(ctx, grad_output)
deepspeed/compression/basic_layer.py:718
Methodbackward
(ctx, grad_output)
deepspeed/compression/basic_layer.py:730
Methodbackward
(ctx, grad_output)
deepspeed/compression/basic_layer.py:742
Methodbackward
(ctx: Any, *grad_output: Tensor)
deepspeed/moe/sharded_moe.py:105
Methodbackward
(ctx, grad_output)
deepspeed/moe/mappings.py:72
Methodbackward
(ctx, input_)
deepspeed/moe/mappings.py:89
Functionbackwards_debug_hook
(grad)
DeepSpeedExample/megatron/fp16/fp16util.py:105
Functionbarrier
deepspeed/ops/csrc/cpu/comm/ccl.cpp:196
Methodbarrier
(self, group=torch.distributed.GroupMember.WORLD, async_op=False, device_ids=None)
deepspeed/comm/torch.py:211
Functionbert_attention_mask_func
(attention_scores, attention_mask)
DeepSpeedExample/megatron/model/bert_model.py:31
Functionbert_sample_tokens
(reserved_length: int, seq_length: int, batch_size: int,
deepspeed/ops/random_ltd/dropping_utils.py:52
Functionbias_dropout_add_fused_inference
( x_with_bias: Tuple[torch.Tensor, Optional[torch.Tensor]], residual: torch.Tensor, pr
DeepSpeedExample/megatron/core/fusions/fused_bias_dropout.py:35
Functionbias_dropout_add_fused_inference
(x, bias, residual, prob)
DeepSpeedExample/megatron/model/transformer.py:441
Functionbias_dropout_add_fused_train
( x_with_bias: Tuple[torch.Tensor, Optional[torch.Tensor]], residual: torch.Tensor, pr
DeepSpeedExample/megatron/core/fusions/fused_bias_dropout.py:26
Functionbias_dropout_add_fused_train
(x, bias, residual, prob)
DeepSpeedExample/megatron/model/transformer.py:435
Functionblock
deepspeed/ops/csrc/includes/reduction_utils.h:461
Functionbroadcast
deepspeed/ops/csrc/cpu/comm/ccl.cpp:149
Functionbroadcast
(tensor, src, group=None, async_op=False, prof=False, log_name='broadcast', debug=get_caller_func())
deepspeed/comm/comm.py:214
Methodbroadcast
(self, tensor, src, group=None, async_op=False)
deepspeed/comm/torch.py:117
Functionbroadcast_data
Broadcast data from rank zero of each model parallel group to the members of the same model parallel group. Arguments: keys: list of
DeepSpeedExample/megatron/core/tensor_parallel/data.py:75
Functionbroadcast_data
Broadcast data from rank zero of each model parallel group to the members of the same model parallel group. Arguments: keys: list of
DeepSpeedExample/megatron/mpu/data.py:76
Functionbsh_decoder_gather
(reserved_length, hidden_states, mask)
deepspeed/runtime/data_pipeline/data_routing/utils.py:9
Functionbsh_decoder_scatter
(hidden_states, part_hidden_states, rand_list)
deepspeed/runtime/data_pipeline/data_routing/utils.py:24
Methodbuffer_to_accumulate_to_in_cpu
()
deepspeed/runtime/zero/stage_1_and_2.py:1046
Functionbuild_blocks_mapping
DeepSpeedExample/megatron/data/helpers.cpp:614
Functionbuild_blocks_mapping_impl
DeepSpeedExample/megatron/data/helpers.cpp:397
Functionbuild_bloom_alibi_tensor
Link to paper: https://arxiv.org/abs/2108.12409 Alibi tensor is not causal as the original paper mentions, it relies on a translation invaria
deepspeed/inference/engine.py:37
Methodbuild_extension
(self)
deepspeed/accelerator/cpu_accelerator.py:258
Methodbuild_extension
(self)
deepspeed/accelerator/npu_accelerator.py:239
Methodbuild_extension
(self)
deepspeed/accelerator/cuda_accelerator.py:264
Methodbuild_extension
(self)
deepspeed/accelerator/abstract_accelerator.py:243
Methodbuild_layer
(layer_number)
DeepSpeedExample/megatron/core/transformer/transformer_block.py:56
Methodbuild_layer
(layer_number)
DeepSpeedExample/megatron/model/transformer.py:893
Methodbuild_layer_part1
(layer_number)
DeepSpeedExample/megatron/model/transformer.py:898
Methodbuild_layer_part2
(layer_number)
DeepSpeedExample/megatron/model/transformer.py:902
Functionbuild_mapping
DeepSpeedExample/megatron/data/helpers.cpp:370
Functionbuild_mapping_impl
DeepSpeedExample/megatron/data/helpers.cpp:138
Functionbuild_sample_idx
DeepSpeedExample/megatron/data/helpers.cpp:36
Methodbuilder
(self)
deepspeed/ops/op_builder/builder.py:435
Methodbuilder
(self)
deepspeed/ops/op_builder/builder.py:603
Methodbuilder
(self)
deepspeed/ops/op_builder/cpu/builder.py:17
Functionbwd
DeepSpeedExample/megatron/fused_kernels/scaled_upper_triang_masked_softmax.cpp:42
Functionbwd
DeepSpeedExample/megatron/fused_kernels/scaled_masked_softmax.cpp:47
Functioncb
()
DeepSpeedExample/megatron/core/tensor_parallel/random.py:75
Functioncb
()
DeepSpeedExample/megatron/mpu/random.py:82
Functioncb
()
deepspeed/runtime/activation_checkpointing/checkpointing.py:99
Functioncheck
deepspeed/ops/csrc/includes/gemm_test.h:22
Methodcheck_enabled
(cls, values)
deepspeed/monitor/config.py:76
Methodcheck_key_exist
(partial_key, sd)
deepspeed/runtime/state_dict_factory.py:412
Functioncheckpoint
Checkpoint a model or part of the model. This has been directly copied from torch.utils.checkpoint.
DeepSpeedExample/megatron/core/tensor_parallel/random.py:314
Functioncheckpoint
Checkpoint a model or part of the model. This has been directly copied from torch.utils.checkpoint.
DeepSpeedExample/megatron/mpu/random.py:316
Functioncheckpoint
Checkpoint a model or part of the model. This has been directly copied from torch.utils.checkpoint.
deepspeed/runtime/activation_checkpointing/checkpointing.py:708
Functionchunk
deepspeed/ops/csrc/includes/dequantization_utils.h:68
Methodckpt_prefix
Build a prefix for all checkpoint files written by this module.
deepspeed/runtime/pipe/module.py:512
Functioncli_main
()
deepspeed/env_report.py:119
Functionclip_grad_norm
Clips gradient norm of an iterable of parameters. This is adapted from torch.nn.utils.clip_grad.clip_grad_norm_ and added functionality to ha
DeepSpeedExample/megatron/mpu/grads.py:74
Functionclip_gradients
Clip the gradient of a list of parameters. Args: parameters: List of parameters whose .grad will be clipped. global_grad_norm (flo
deepspeed/runtime/utils.py:830
Functionclone_tensors_for_torch_save
Returns a copy of ``item`` with all enclosed tensors replaced by clones on a specified device. Works on individual tensors, and tensors conta
deepspeed/checkpoint/utils.py:41
Methodcls
(self)
DeepSpeedExample/megatron/tokenizer/tokenizer.py:102
← previousnext →3,501–3,600 of 4,989, ranked by callers