MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

MethodZ3CustomOpExecutor
csrc/compile/z3.cpp:17
MethodZenFlowAdam
csrc/adam/cpu_adam_impl.cpp:669
Method__add_grad_to_ipg_bucket
(self, param: Parameter)
deepspeed/runtime/zero/stage3.py:1843
Method__bool__
(self)
deepspeed/module_inject/auto_ep_layer.py:1385
Method__call__
(self, argv, *, timeout=None)
ci/test_torch_latest.py:1022
Method__call__
(self, argv, *, timeout=None)
ci/test_torch_latest.py:1250
Method__call__
(self, argv, *, timeout=None)
ci/test_torch_latest.py:1330
Method__call__
(self, argv, *, timeout=None)
ci/test_torch_latest.py:1376
Method__call__
(self, argv, *, timeout=None)
ci/test_torch_latest.py:1421
Method__call__
(self, argv, *, timeout=None)
ci/test_torch_latest.py:1546
Method__call__
(self, argv, *, timeout=None)
ci/test_torch_latest.py:1584
Method__call__
(self, request)
tests/unit/common.py:172
Method__call__
(self, request)
tests/unit/common.py:499
Method__call__
(self, *args, **kwargs)
tests/unit/compile/test_backend.py:87
Method__call__
(self, *args)
tests/unit/inference/v2/model_implementations/test_exaone4_5.py:105
Method__call__
(self, name)
tests/unit/v1/zero/test_zero2_gradient_safety.py:590
Method__call__
(self, tensor, op=None, group=None)
tests/unit/v1/compile/test_graph_profile.py:231
Method__call__
(self, *args, **kwargs)
tests/unit/hybrid_engine/test_he_graph.py:113
Method__call__
(self, op, noop_flag_buffer, tensor_lists, *args)
deepspeed/ops/lion/multi_tensor_apply.py:16
Method__call__
(self, op, noop_flag_buffer, tensor_lists, *args)
deepspeed/ops/adam/multi_tensor_apply.py:16
Method__call__
(self, name)
deepspeed/utils/timer.py:130
Method__call__
(self, name)
deepspeed/utils/timer.py:193
Method__call__
(self, logits, labels=None, vocab_size=None, shift_labels=None, num_items_in_batch=None, **kwargs)
deepspeed/sequence/cross_entropy.py:394
Method__call__
(self, logits, labels=None, vocab_size=None, shift_labels=None, num_items_in_batch=None, **kwargs)
deepspeed/sequence/linear_cross_entropy.py:369
Method__call__
However the kernel needs to be called, it can be called here. Auto-tuning should never be performed here. All inputs/outputs
deepspeed/inference/v2/kernels/ds_kernel.py:24
Method__call__
Matmul kernel of FP6 weight-only quantized linear. All inputs should be contiguous. It does not support batched-matmul. Para
deepspeed/inference/v2/kernels/core_ops/cuda_linear/cuda_linear.py:164
Method__call__
Add an optional bias and perform the non-linear activation function. Parameters: activation (torch.Tensor): Input tensor
deepspeed/inference/v2/kernels/core_ops/bias_activations/bias_activation.py:51
Method__call__
Matmul kernel as implemented by platform BLAS library. The input must be 2D or larger. If n-dimensional, the leading dimensions are f
deepspeed/inference/v2/kernels/core_ops/blas_kernels/blas_linear.py:37
Method__call__
Either input_x or input_y can alias output_z. Parameters: output_z (torch.Tensor): Output tensor. input_x (t
deepspeed/inference/v2/kernels/core_ops/cuda_layer_norm/cuda_post_ln.py:18
Method__call__
output_z may alias input_x directly. All Tensors should have the same shape. Parameters: output_z (torch.Tensor): Output
deepspeed/inference/v2/kernels/core_ops/cuda_layer_norm/cuda_ln.py:18
Method__call__
z_res can alias x_res. All non-parameter input/output tensors must have the same shape. z_hid can alias y_hid. Parameters:
deepspeed/inference/v2/kernels/core_ops/cuda_layer_norm/cuda_pre_ln.py:21
Method__call__
Performs gated activation on the input tensor, writing the result to the output tensor. Args: output (torch.Tensor): Out
deepspeed/inference/v2/kernels/core_ops/gated_activations/gated_activation.py:57
Method__call__
output_z may alias input_x directly. All Tensors should have the same shape. Parameters: output_z (torch.Tensor): Output
deepspeed/inference/v2/kernels/core_ops/cuda_rms_norm/rms_norm.py:18
Method__call__
z_res can alias x_res. All non-parameter input/output tensors must have the same shape. z_hid can alias y_hid. Parameters:
deepspeed/inference/v2/kernels/core_ops/cuda_rms_norm/rms_pre_norm.py:21
Method__call__
Populates the attention atoms for the blocked attention kernel. Args: atoms (torch.Tensor): Pre-allocated int32 tensor o
deepspeed/inference/v2/kernels/ragged_ops/atom_builder/atom_builder.py:28
Method__call__
Gather the hidden states of the final token of each sequence from `all_activations` into `final_token_activations`. Args:
deepspeed/inference/v2/kernels/ragged_ops/logits_gather/logits_gather.py:38
Method__call__
Perform the ragged top_k_gating. Arguments: expert_counts (torch.Tensor): Tensor of 0s of shape [n_experts] to be filled
deepspeed/inference/v2/kernels/ragged_ops/top_k_gating/top_k_gating.py:35
Method__call__
Scatters the hidden states such that the token stride for each expert's input is contiguous. Arguments: moe_input (torch
deepspeed/inference/v2/kernels/ragged_ops/moe_scatter/moe_scatter.py:36
Method__call__
Ragged aware embedding lookup. Args: embedded_tokens (torch.Tensor): Output tensor of shape [num_tokens, embed_dim]
deepspeed/inference/v2/kernels/ragged_ops/embed/embed.py:49
Method__call__
Perform rotary embeddings on the queries and keys before copying into a blocked KV cache. Args: kv_cache (torch.Tensor):
deepspeed/inference/v2/kernels/ragged_ops/linear_blocked_kv_rotary/blocked_kv_rotary.py:57
Method__call__
Perform rotary embeddings on the queries and keys before copying into a blocked KV cache. Args: kv_cache (torch.Tensor):
deepspeed/inference/v2/kernels/ragged_ops/linear_blocked_kv_rotary/linear_blocked_kv_copy.py:59
Method__call__
Perform rotary embeddings on the queries and keys before copying into a blocked KV cache. Args: kv_cache (torch.Tensor):
deepspeed/inference/v2/kernels/ragged_ops/linear_blocked_kv_rotary/blocked_trained_kv_rotary.py:59
Method__call__
Reorders the moe_output tokens into their original order and scales them by their gating scale. This will be a no-op for padded token
deepspeed/inference/v2/kernels/ragged_ops/moe_gather/moe_gather.py:36
Method__call__
Flash attention implementation atop a blocked KV-cache. Atoms should be pre-populated. See attention_atom.h for further details on th
deepspeed/inference/v2/kernels/ragged_ops/blocked_flash/blocked_flash.py:88
Method__call__
Performs a MoE GEMM. Note that the stride between token inputs must be even (the distance between byte 1 of token 0 and token 1 must be t
deepspeed/inference/v2/kernels/cutlass_ops/mixed_gemm/mixed_gemm.py:44
Method__call__
Performs a MoE GEMM. Note that the stride between token inputs must be even (the distance between byte 1 of token 0 and token 1 must be t
deepspeed/inference/v2/kernels/cutlass_ops/moe_gemm/moe_gemm.py:40
Method__call__
Performs a MoE GEMM. Note that the stride between token inputs must be even (the distance between byte 1 of token 0 and token 1 must be t
deepspeed/inference/v2/kernels/cutlass_ops/moe_gemm/mixed_moe_gemm.py:44
Method__call__
(cls, *args, **kwargs)
deepspeed/inference/v2/model_implementations/layer_container_base.py:150
Method__call__
(cls, *args, **kwargs)
deepspeed/inference/v2/model_implementations/parameter_base.py:89
Method__call__
(self, *args, **kwargs)
deepspeed/runtime/hybrid_engine_graph.py:150
Method__call__
(self, logits, labels, vocab_size, num_ite
deepspeed/runtime/chunked_cross_entropy.py:255
Method__call__
(self, local_work_remaining)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:91
Method__call__
(self, input_ids, scores, **kwargs)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:106
Method__contains__
(self, obj)
deepspeed/utils/debug.py:48
Method__copy__
(self)
deepspeed/linear/quantization.py:107
Method__deepcopy__
(self, memo)
deepspeed/ops/triton_ops/fused_rms_norm.py:46
Method__deepcopy__
(self, memo)
deepspeed/linear/quantization.py:98
Method__deepcopy__
(self, memo)
deepspeed/module_inject/layers.py:627
Method__del__
(self)
deepspeed/ops/adagrad/cpu_adagrad.py:29
Method__del__
(self)
deepspeed/ops/lion/cpu_lion.py:65
Method__del__
(self)
deepspeed/ops/adam/cpu_adam.py:129
Method__del__
(self)
deepspeed/io/fast_file_writer.py:105
Method__del__
(self)
deepspeed/runtime/engine.py:1309
Method__del__
(self)
deepspeed/runtime/swap_tensor/utils.py:231
Method__del__
(self)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:172
Method__del__
(self)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:456
Method__del__
(self)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:506
Method__del__
(self)
deepspeed/runtime/checkpoint_engine/datastates_checkpoint_engine.py:28
Method__del__
(self)
deepspeed/runtime/checkpoint_engine/decoupled_checkpoint_engine.py:109
Method__del__
(self)
deepspeed/runtime/reflow/reflow_cpu_adam.py:122
Method__del__
(self)
deepspeed/runtime/reflow/reflow_cpu_lion.py:95
Method__enter__
(self)
tests/unit/common.py:549
Method__enter__
(self)
tests/unit/util.py:110
Method__enter__
(self)
tests/unit/util.py:247
Method__enter__
(self)
tests/unit/util.py:336
Method__enter__
(self)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:79
Method__enter__
(self)
tests/unit/v1/compile/test_graph_profile.py:18
Method__enter__
(self)
tests/unit/v1/moe/test_autoep_unit.py:183
Method__enter__
(self)
tests/unit/module_inject/test_hybrid_megatron.py:20
Method__enter__
(self)
deepspeed/utils/init_on_device.py:64
Method__enter__
(self)
deepspeed/linear/context_manager.py:52
Method__enter__
(self)
deepspeed/runtime/utils.py:106
Method__enter__
(self)
deepspeed/runtime/zero/partition_parameters.py:353
Method__enter__
(self)
deepspeed/runtime/zero/partition_parameters.py:2420
Method__enter__
(self)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:379
Method__enter__
Enter the context manager. If enabled, gather parameters for the replaced module.
deepspeed/module_inject/layers.py:872
Method__eq__
(self, other)
deepspeed/checkpoint/affine.py:148
Method__exit__
(self, type, value, traceback)
tests/unit/common.py:566
Method__exit__
(self, *_)
tests/unit/util.py:123
Method__exit__
(self, *exc)
tests/unit/util.py:260
Method__exit__
(self, *exc)
tests/unit/util.py:340
Method__exit__
(self, *args)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:82
Method__exit__
(self, exc_type, exc, traceback)
tests/unit/v1/compile/test_graph_profile.py:21
Method__exit__
(self, *exc)
tests/unit/v1/moe/test_autoep_unit.py:190
Method__exit__
(self, exc_type, exc_value, traceback)
tests/unit/module_inject/test_hybrid_megatron.py:23
Method__exit__
(self, exc_type, exc_value, traceback)
deepspeed/utils/init_on_device.py:74
Method__exit__
(self, *args, **kwargs)
deepspeed/linear/context_manager.py:87
Method__exit__
(self, exc_type, exc_val, exc_tb)
deepspeed/runtime/utils.py:109
Method__exit__
(self, exc_type, exc_value, traceback)
deepspeed/runtime/zero/partition_parameters.py:365
Method__exit__
(self, *exc)
deepspeed/runtime/zero/partition_parameters.py:2440
← previousnext →6,601–6,700 of 15,468, ranked by callers