Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AIS-SNU/Smart-Infinity
/ functions
Functions
4,989 in github.com/AIS-SNU/Smart-Infinity
⨍
Functions
4,989
◇
Types & classes
624
Method
backward
(ctx, grad_output)
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:156
Method
backward
(ctx, grad_output)
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:172
Method
backward
(ctx, grad_output)
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:188
Method
backward
(ctx, grad_output)
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:204
Method
backward
(ctx, grad_output)
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:221
Method
backward
(ctx, grad_output)
DeepSpeedExample/megatron/core/tensor_parallel/mappings.py:246
Method
backward
(ctx, grad_output)
DeepSpeedExample/megatron/core/sequence_parallel/cross_entropy.py:37
Method
backward
(ctx, grad_output)
DeepSpeedExample/megatron/model/fused_layer_norm.py:55
Method
backward
(ctx, output_grads)
DeepSpeedExample/megatron/model/fused_softmax.py:42
Method
backward
(ctx, output_grads)
DeepSpeedExample/megatron/model/fused_softmax.py:72
Method
backward
(ctx, grad_output)
DeepSpeedExample/megatron/model/fused_bias_gelu.py:55
Method
backward
(self, loss, retain_graph=False)
DeepSpeedExample/megatron/fp16/loss_scaler.py:199
Method
backward
(ctx, grad_output)
DeepSpeedExample/megatron/mpu/cross_entropy.py:85
Method
backward
(ctx, grad_output)
DeepSpeedExample/megatron/mpu/mappings.py:88
Method
backward
(ctx, grad_output)
DeepSpeedExample/megatron/mpu/mappings.py:104
Method
backward
(ctx, grad_output)
DeepSpeedExample/megatron/mpu/mappings.py:120
Method
backward
(ctx, grad_output)
DeepSpeedExample/megatron/mpu/mappings.py:136
Method
backward
(ctx, dx)
deepspeed/ops/sparse_attention/softmax.py:213
Method
backward
(ctx, dc)
deepspeed/ops/sparse_attention/matmul.py:605
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/transformer/transformer.py:236
Method
backward
(ctx, grad_output)
deepspeed/ops/transformer/inference/moe_inference.py:129
Method
backward
(ctx, grad_output, grad_output1, grad_output2, grad_output3)
deepspeed/ops/transformer/inference/diffusers_attention.py:92
Method
backward
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
Method
backward
r"""Execute backward pass on the loss Arguments: loss: Torch tensor on which to execute backward propagation allreduce
deepspeed/runtime/engine.py:1822
Method
backward
(ctx, grad_output)
deepspeed/runtime/zero/linear.py:67
Method
backward
: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
Method
backward
(ctx, *args)
deepspeed/runtime/zero/parameter_offload.py:167
Method
backward
(ctx, *args)
deepspeed/runtime/zero/parameter_offload.py:193
Method
backward
: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
Method
backward
(ctx, *grads)
deepspeed/runtime/activation_checkpointing/checkpointing.py:592
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:340
Method
backward
(self, loss, retain_graph=False)
deepspeed/runtime/fp16/loss_scaler.py:61
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:261
Method
backward
(ctx, gradOutput)
deepspeed/compression/utils.py:54
Method
backward
(ctx, grad_output)
deepspeed/compression/utils.py:99
Method
backward
(ctx, grad_output)
deepspeed/compression/utils.py:143
Method
backward
(ctx, grad_output)
deepspeed/compression/utils.py:184
Method
backward
(ctx, grad_output)
deepspeed/compression/utils.py:220
Method
backward
(ctx, grad_output)
deepspeed/compression/basic_layer.py:706
Method
backward
(ctx, grad_output)
deepspeed/compression/basic_layer.py:718
Method
backward
(ctx, grad_output)
deepspeed/compression/basic_layer.py:730
Method
backward
(ctx, grad_output)
deepspeed/compression/basic_layer.py:742
Method
backward
(ctx: Any, *grad_output: Tensor)
deepspeed/moe/sharded_moe.py:105
Method
backward
(ctx, grad_output)
deepspeed/moe/mappings.py:72
Method
backward
(ctx, input_)
deepspeed/moe/mappings.py:89
Function
backwards_debug_hook
(grad)
DeepSpeedExample/megatron/fp16/fp16util.py:105
Function
barrier
deepspeed/ops/csrc/cpu/comm/ccl.cpp:196
Method
barrier
(self, group=torch.distributed.GroupMember.WORLD, async_op=False, device_ids=None)
deepspeed/comm/torch.py:211
Function
bert_attention_mask_func
(attention_scores, attention_mask)
DeepSpeedExample/megatron/model/bert_model.py:31
Function
bert_sample_tokens
(reserved_length: int, seq_length: int, batch_size: int,
deepspeed/ops/random_ltd/dropping_utils.py:52
Function
bias_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
Function
bias_dropout_add_fused_inference
(x, bias, residual, prob)
DeepSpeedExample/megatron/model/transformer.py:441
Function
bias_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
Function
bias_dropout_add_fused_train
(x, bias, residual, prob)
DeepSpeedExample/megatron/model/transformer.py:435
Function
block
deepspeed/ops/csrc/includes/reduction_utils.h:461
Function
broadcast
deepspeed/ops/csrc/cpu/comm/ccl.cpp:149
Function
broadcast
(tensor, src, group=None, async_op=False, prof=False, log_name='broadcast', debug=get_caller_func())
deepspeed/comm/comm.py:214
Method
broadcast
(self, tensor, src, group=None, async_op=False)
deepspeed/comm/torch.py:117
Function
broadcast_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
Function
broadcast_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
Function
bsh_decoder_gather
(reserved_length, hidden_states, mask)
deepspeed/runtime/data_pipeline/data_routing/utils.py:9
Function
bsh_decoder_scatter
(hidden_states, part_hidden_states, rand_list)
deepspeed/runtime/data_pipeline/data_routing/utils.py:24
Method
buffer_to_accumulate_to_in_cpu
()
deepspeed/runtime/zero/stage_1_and_2.py:1046
Function
build_blocks_mapping
DeepSpeedExample/megatron/data/helpers.cpp:614
Function
build_blocks_mapping_impl
DeepSpeedExample/megatron/data/helpers.cpp:397
Function
build_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
Method
build_extension
(self)
deepspeed/accelerator/cpu_accelerator.py:258
Method
build_extension
(self)
deepspeed/accelerator/npu_accelerator.py:239
Method
build_extension
(self)
deepspeed/accelerator/cuda_accelerator.py:264
Method
build_extension
(self)
deepspeed/accelerator/abstract_accelerator.py:243
Method
build_layer
(layer_number)
DeepSpeedExample/megatron/core/transformer/transformer_block.py:56
Method
build_layer
(layer_number)
DeepSpeedExample/megatron/model/transformer.py:893
Method
build_layer_part1
(layer_number)
DeepSpeedExample/megatron/model/transformer.py:898
Method
build_layer_part2
(layer_number)
DeepSpeedExample/megatron/model/transformer.py:902
Function
build_mapping
DeepSpeedExample/megatron/data/helpers.cpp:370
Function
build_mapping_impl
DeepSpeedExample/megatron/data/helpers.cpp:138
Function
build_sample_idx
DeepSpeedExample/megatron/data/helpers.cpp:36
Method
builder
(self)
deepspeed/ops/op_builder/builder.py:435
Method
builder
(self)
deepspeed/ops/op_builder/builder.py:603
Method
builder
(self)
deepspeed/ops/op_builder/cpu/builder.py:17
Function
bwd
DeepSpeedExample/megatron/fused_kernels/scaled_upper_triang_masked_softmax.cpp:42
Function
bwd
DeepSpeedExample/megatron/fused_kernels/scaled_masked_softmax.cpp:47
Function
cb
()
DeepSpeedExample/megatron/core/tensor_parallel/random.py:75
Function
cb
()
DeepSpeedExample/megatron/mpu/random.py:82
Function
cb
()
deepspeed/runtime/activation_checkpointing/checkpointing.py:99
Function
check
deepspeed/ops/csrc/includes/gemm_test.h:22
Method
check_enabled
(cls, values)
deepspeed/monitor/config.py:76
Method
check_key_exist
(partial_key, sd)
deepspeed/runtime/state_dict_factory.py:412
Function
checkpoint
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
Function
checkpoint
Checkpoint a model or part of the model. This has been directly copied from torch.utils.checkpoint.
DeepSpeedExample/megatron/mpu/random.py:316
Function
checkpoint
Checkpoint a model or part of the model. This has been directly copied from torch.utils.checkpoint.
deepspeed/runtime/activation_checkpointing/checkpointing.py:708
Function
chunk
deepspeed/ops/csrc/includes/dequantization_utils.h:68
Method
ckpt_prefix
Build a prefix for all checkpoint files written by this module.
deepspeed/runtime/pipe/module.py:512
Function
cli_main
()
deepspeed/env_report.py:119
Function
clip_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
Function
clip_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
Function
clone_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
Method
cls
(self)
DeepSpeedExample/megatron/tokenizer/tokenizer.py:102
← previous
next →
3,501–3,600 of 4,989, ranked by callers