MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

Methodforward
In the forward function we accept a Variable of input data and we must return a Variable of output data. We can use Modules defined i
tests/accelerator/test_ds_init.py:22
Methodforward
(self, x, y)
tests/small_model_debugging/test_model.py:26
Methodforward
(self, x)
tests/small_model_debugging/stage3_test.py:39
Methodforward
(self, x, y)
tests/small_model_debugging/partial_offload_test.py:27
Methodforward
(ctx, activations: torch.Tensor, sorted_indices: torch.Tensor, batch_first: bool)
deepspeed/ops/random_ltd/dropping_utils.py:85
Methodforward
(ctx, all_activations: torch.Tensor, layer_activations: torch.Tensor, sorted_indices: torch.Tensor,
deepspeed/ops/random_ltd/dropping_utils.py:109
Methodforward
q, k, v: are in shape [*, L, H, D]
deepspeed/ops/deepspeed4science/evoformer_attn.py:62
Methodforward
(ctx, input, input_mask, self, grads, layer_id, attn_qkvw, attn_qkvb, attn_ow, attn_ob, attn_nw,
deepspeed/ops/transformer/transformer.py:151
Methodforward
(self, hidden_states, attention_mask=None, head_mask=None,
deepspeed/ops/transformer/transformer.py:405
Methodforward
(ctx, input, inter_w, inter_b, config, output_b, output_w, q_scales, q_groups, merge_count, mp_group,
deepspeed/ops/transformer/inference/moe_inference.py:113
Methodforward
(self, input, async_op=False)
deepspeed/ops/transformer/inference/moe_inference.py:154
Methodforward
(self, input, input_mask=None, attention_mask=None,
deepspeed/ops/transformer/inference/moe_inference.py:271
Methodforward
(self, input, residual, residual_norm, bias)
deepspeed/ops/transformer/inference/ds_mlp.py:92
Methodforward
(self, input, input_mask, head_mask=None, laye
deepspeed/ops/transformer/inference/ds_attention.py:132
Methodforward
(ctx, input, context, input_mask, config, attn_qkvw, attn_qw, attn_kw, attn_vw, attn_qkvb, num
deepspeed/ops/transformer/inference/diffusers_attention.py:38
Methodforward
(self, input, context=None, input_mask=None)
deepspeed/ops/transformer/inference/diffusers_attention.py:182
Methodforward
(self, hidden_states, context=None, timestep=None, **kwargs)
deepspeed/ops/transformer/inference/diffusers_transformer_block.py:65
Methodforward
(self, q, k, v, sm_scale, block_128=True)
deepspeed/ops/transformer/inference/triton_ops.py:121
Methodforward
( A, B, ref_dtype=torch.float32, # fp32 only bias=None,
deepspeed/ops/transformer/inference/triton/matmul_ext.py:199
Methodforward
(A, B, use_triton=True, bias=None, activation="")
deepspeed/ops/transformer/inference/triton/matmul_ext.py:230
Methodforward
( self, input, input_mask, head_mask=None, layer_p
deepspeed/ops/transformer/inference/triton/attention.py:126
Methodforward
(self, input, residual, residual_norm, bias)
deepspeed/ops/transformer/inference/triton/mlp.py:55
Methodforward
(self, input: torch.Tensor, weight: torch.Tensor, bias: torch.
deepspeed/ops/transformer/inference/op_binding/linear.py:37
Methodforward
(self, input: torch.Tensor, residual: torch.Tensor, weight_int
deepspeed/ops/transformer/inference/op_binding/mlp_gemm.py:82
Methodforward
(self, activation: torch.Tensor, bias: torch.Tensor)
deepspeed/ops/transformer/inference/op_binding/bias_add.py:30
Methodforward
(self, query_key_value: torch.Tensor, attn_mask: torch.Tensor, heads: int, num_kv: int, norm_f
deepspeed/ops/transformer/inference/op_binding/softmax_context.py:127
Methodforward
(self, output, residual, bias)
deepspeed/ops/transformer/inference/op_binding/bias_residual.py:28
Methodforward
(self, a, b, gamma)
deepspeed/ops/transformer/inference/op_binding/vector_add.py:27
Methodforward
(self, query, key, value, heads, do_flash_attn)
deepspeed/ops/transformer/inference/op_binding/pad_transform.py:25
Methodforward
(self, activation: torch.Tensor, bias: torch.Tensor, activation_func_type: ActivationFuncType)
deepspeed/ops/transformer/inference/op_binding/gated_activation.py:39
Methodforward
(self, Q, W)
deepspeed/ops/transformer/inference/op_binding/einsum_sec_sm_ecm.py:28
Methodforward
(self, input: torch.Tensor, weight: torch.Tensor, bias: torch.Tensor, weight_out: torch.Tensor)
deepspeed/ops/transformer/inference/op_binding/gelu_gemm.py:40
Methodforward
(self, hidden_state: torch.Tensor, residual: torch.Tensor, add
deepspeed/ops/transformer/inference/op_binding/residual_add.py:53
Methodforward
(self, vals, gamma, epsilon)
deepspeed/ops/transformer/inference/op_binding/rms_norm.py:32
Methodforward
(self, residual, coef, output)
deepspeed/ops/transformer/inference/op_binding/moe_res_matmul.py:28
Methodforward
(self, activation: torch.Tensor, bias: torch.Tensor)
deepspeed/ops/transformer/inference/op_binding/bias_gelu.py:32
Methodforward
(self, activation: torch.Tensor, bias: torch.Tensor)
deepspeed/ops/transformer/inference/op_binding/bias_relu.py:32
Methodforward
(self, input: torch.Tensor, weight: torch.Tensor, bias: torch.Tensor, gamma: torch.Tensor, bet
deepspeed/ops/transformer/inference/op_binding/qkv_gemm.py:77
Methodforward
(self, input: torch.Tensor, weight: torch.Tensor, async_op: bool = False)
deepspeed/ops/transformer/inference/op_binding/vector_matmul.py:38
Methodforward
(self, attn_scores: torch.Tensor, attn_mask: torch.Tensor, alibi: torch.Tensor, triangular: bool,
deepspeed/ops/transformer/inference/op_binding/softmax.py:65
Methodforward
(self, vals, residual, gamma, epsilon)
deepspeed/ops/transformer/inference/op_binding/pre_rms_norm.py:30
Methodforward
(self, vals, gamma, beta, epsilon)
deepspeed/ops/transformer/inference/op_binding/layer_norm.py:59
Methodforward
(ctx, mat_a, mat_b, offs, trans_b)
deepspeed/ops/triton_ops/group_gemm_triton.py:409
Methodforward
(ctx, gate: torch.Tensor, up: torch.Tensor)
deepspeed/ops/triton_ops/swiglu_triton.py:83
Methodforward
(ctx, gate_up: torch.Tensor)
deepspeed/ops/triton_ops/swiglu_triton.py:158
Methodforward
(ctx, gate: torch.Tensor, up: torch.Tensor, alpha: float, limit: float, oai: bool)
deepspeed/ops/triton_ops/swiglu_triton.py:336
Methodforward
(ctx, gate_up: torch.Tensor, alpha: float, limit: float, oai: bool)
deepspeed/ops/triton_ops/swiglu_triton.py:385
Methodforward
(ctx, hidden, weight, eps)
deepspeed/ops/triton_ops/fused_rms_norm.py:188
Methodforward
(ctx, combined_rows, top_scores, inverse, top_k)
deepspeed/ops/triton_ops/autoep_fused_token_ops.py:291
Methodforward
(ctx, rows, weights)
deepspeed/ops/triton_ops/autoep_fused_token_ops.py:387
Methodforward
(ctx, q, k, cos, sin)
deepspeed/ops/triton_ops/fused_rotary_pos_emb.py:209
Methodforward
(self, input_tensor)
deepspeed/linear/optimized_linear.py:206
Methodforward
(self, input: torch.Tensor)
deepspeed/linear/quantization.py:149
Methodforward
(ctx: Any, layernorm_output, attention_mask, inference_params,
deepspeed/sequence/fpdt_layer.py:139
Methodforward
(ctx: Any, layernorm_output, attention_mask, inference_params,
deepspeed/sequence/fpdt_layer.py:569
Methodforward
(self, layernorm_output, attention_mask, inference_params,
deepspeed/sequence/fpdt_layer.py:1136
Methodforward
(ctx: Any, x, w1, b1, w2, b2, add_bias, chunk_size)
deepspeed/sequence/fpdt_layer.py:1183
Methodforward
(ctx: Any, lm_output, labels, logit_weights, rank, spg_size, spg, num_chunk)
deepspeed/sequence/fpdt_layer.py:1264
Methodforward
(ctx, vocab_parallel_logits, target, tp_group, vocab_start_index, vocab_end_index, ignore_index)
deepspeed/sequence/cross_entropy.py:64
Methodforward
(ctx, local_loss, sp_group, sum_gradients)
deepspeed/sequence/cross_entropy.py:110
Methodforward
(self, vocab_parallel_logits, target)
deepspeed/sequence/cross_entropy.py:329
Methodforward
(ctx, hidden, weight, bias, target, tp_group, vocab_start_index, vocab_end_index, ignore_index,
deepspeed/sequence/linear_cross_entropy.py:118
Methodforward
(self, hidden_states, **kwargs)
deepspeed/sequence/test_autosp.py:37
Methodforward
(self, hidden_states, **kwargs)
deepspeed/sequence/test_autosp.py:44
Methodforward
(self, query, key, value, *args, **kwargs)
deepspeed/sequence/test_autosp.py:52
Methodforward
(self, x)
deepspeed/sequence/test_autosp.py:376
Methodforward
Parameters ---------- hidden_states: Shape ``[bs, local_seq_len, hidden_dim]`` where ``local_seq_len
deepspeed/sequence/autosp_vit.py:76
Methodforward
(ctx: Any, group: dist.ProcessGroup, input: Tensor, scatter_id
deepspeed/sequence/layer.py:374
Methodforward
forward Arguments: query (Tensor): query input to the layer key (Tensor): key input to the layer value (
deepspeed/sequence/layer.py:508
Methodforward
(ctx, vocab_parallel_logits, index, tp_group, vocab_start_index, ignore_index)
deepspeed/sequence/vocab_parallel_ops.py:207
Methodforward
(ctx, vocab_parallel_logits, tp_group)
deepspeed/sequence/vocab_parallel_ops.py:265
Methodforward
(ctx, student_logits, teacher_logits, reverse, tp_group)
deepspeed/sequence/vocab_parallel_ops.py:314
Methodforward
(ctx, student_logits, teacher_logits, beta, tp_group)
deepspeed/sequence/vocab_parallel_ops.py:413
Methodforward
Project visual features and return a sharded fused embedding. Parameters ---------- visual_features: Raw visual f
deepspeed/sequence/autosp_fusion.py:113
Methodforward
Project visual features and return a sharded fused embedding. Parameters ---------- visual_features: Raw visual f
deepspeed/sequence/autosp_fusion.py:298
Methodforward
Execute forward propagation Arguments: *inputs: Variable length input list **kwargs: variable length keyword argument
deepspeed/inference/engine.py:588
Methodforward
(self, input: Tensor)
deepspeed/inference/quantization/layers.py:64
Methodforward
(self, input: Tensor)
deepspeed/inference/quantization/layers.py:102
Methodforward
Since the CUDA FP only supports all data types being the same, we will alias the residual with our output.
deepspeed/inference/v2/modules/implementations/post_norm/cuda_post_ln.py:48
Methodforward
Forward implementation. Args: q_k_v (torch.Tensor): Query/Key/Value projection Tensor of shape [n_heads,
deepspeed/inference/v2/modules/implementations/attention/dense_blocked_attention.py:152
Methodforward
(self, hidden_states: torch.Tensor, w: torch.Tensor, b: Optional[torch.Tensor] = None)
deepspeed/inference/v2/modules/implementations/linear/blas_fp_linear.py:84
Methodforward
(self, hidden_states: torch.Tensor, w: torch.Tensor, b: Optional[torch.Tensor] = None)
deepspeed/inference/v2/modules/implementations/linear/quantized_linear.py:183
Methodforward
Return final model logits. Args: hidden_states (torch.Tensor): The hidden states from the model. This is the output of t
deepspeed/inference/v2/modules/implementations/unembed/ragged_unembed.py:83
Methodforward
Parameters: ragged_batch (RaggedBatchWrapper): The input ids and associated ragged batch metadata. word_embeddings (t
deepspeed/inference/v2/modules/implementations/embedding/ragged_embedding.py:62
Methodforward
Since the CUDA FP only supports all data types being the same, we will alias the residual with our output. If hidden_in is N
deepspeed/inference/v2/modules/implementations/pre_norm/cuda_pre_rms.py:58
Methodforward
Since the CUDA FP only supports all data types being the same, we will alias the residual with our output. If hidden_in is N
deepspeed/inference/v2/modules/implementations/pre_norm/cuda_pre_ln.py:55
Methodforward
MoE forward pass built on top of CUTLASS multi-GEMM. Parameters: hidden_states (torch.Tensor): Hidden states tensor. Exp
deepspeed/inference/v2/modules/implementations/moe/cutlass_multi_gemm.py:195
Methodforward
Parameters: ragged_batch (torch.Tensor): Ragged batch of token ids + associated metadata. word_embeddings (torch.Tens
deepspeed/inference/v2/modules/interfaces/embedding_base.py:58
Methodforward
Parameters: residual (torch.Tensor): Residual tensor. hidden_states (torch.Tensor): Hidden states tensor. Re
deepspeed/inference/v2/modules/interfaces/pre_norm_base.py:52
Methodforward
Parameters: q_k_v (torch.Tensor): Query, key, and value tensors. Expected shape is: [ batch,
deepspeed/inference/v2/modules/interfaces/attention_base.py:58
Methodforward
Parameters: residual (torch.Tensor): Residual tensor. hidden_states (torch.Tensor): Hidden states tensor. Re
deepspeed/inference/v2/modules/interfaces/post_norm_base.py:47
Methodforward
Parameters: hidden_states (torch.Tensor): Hidden states tensor. Expected shape is either [batch, seq_len, in_chan
deepspeed/inference/v2/modules/interfaces/linear_base.py:46
Methodforward
Forward interface. Gamma and beta are optional parameters passed depending on `self.config.do_normalization`. Args:
deepspeed/inference/v2/modules/interfaces/unembed_base.py:33
Methodforward
Complete a forward pass of the model. This interface should be graphable, so it should not rely on the ability to use python control
deepspeed/inference/v2/model_implementations/inference_model_base.py:267
Methodforward
(self, wrapped_batch: RaggedBatchWrapper)
deepspeed/inference/v2/model_implementations/mixtral/model.py:252
Methodforward
(self, wrapped_batch: RaggedBatchWrapper)
deepspeed/inference/v2/model_implementations/phi/model.py:187
Methodforward
(self, wrapped_batch: RaggedBatchWrapper)
deepspeed/inference/v2/model_implementations/mistral/model.py:198
Methodforward
(self, wrapped_batch: RaggedBatchWrapper)
deepspeed/inference/v2/model_implementations/exaone4/model.py:202
Methodforward
(self, wrapped_batch: RaggedBatchWrapper)
deepspeed/inference/v2/model_implementations/qwen_v2/model.py:211
Methodforward
(self, wrapped_batch: RaggedBatchWrapper)
deepspeed/inference/v2/model_implementations/phi3/model.py:195
← previousnext →9,001–9,100 of 14,579, ranked by callers