MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Methodforward
(self, x)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:280
Methodforward
(self, x)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:424
Methodforward
(self, input)
tests/unit/hybrid_engine/test_he_lora.py:97
Methodforward
(self, x)
tests/unit/ulysses_alst/test_tiled_compute.py:37
Methodforward
(self, x, y)
tests/unit/ulysses_alst/test_tiled_compute.py:56
Methodforward
(self, x)
tests/unit/module_inject/test_segment_ki_kernels.py:312
Methodforward
(self, x)
tests/unit/module_inject/test_segment_ki_kernels.py:326
Methodforward
(self, input_ids)
tests/unit/module_inject/test_tp_partition_config_path.py:393
Methodforward
(self, x)
tests/unit/module_inject/test_auto_ep_comm.py:1393
Methodforward
(self, x)
tests/lightning/test_simple.py:31
Methodforward
(self, hidden_states, **kwargs)
tests/benchmarks/bench_multimodal_sp.py:60
Methodforward
(self, hidden_states, **kwargs)
tests/benchmarks/bench_multimodal_sp.py:66
Methodforward
(self, hidden_states, **kwargs)
tests/benchmarks/bench_multimodal_sp.py:72
Methodforward
(self, hidden_states, **kwargs)
tests/benchmarks/bench_multimodal_sp.py:78
Methodforward
(self, x, **kwargs)
tests/benchmarks/bench_multimodal_sp.py:95
Methodforward
(self, local_patches: torch.Tensor, text_embeds: torch.Tensor, input_ids: torch.Tensor)
tests/benchmarks/bench_multimodal_sp.py:121
Methodforward
(self, local_patches: torch.Tensor, text_embeds: torch.Tensor, input_ids: torch.Tensor)
tests/benchmarks/bench_multimodal_sp.py:137
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:162
Methodforward
(ctx, gate: torch.Tensor, up: torch.Tensor, alpha: float, limit: float, oai: bool)
deepspeed/ops/triton_ops/swiglu_triton.py:366
Methodforward
(ctx, gate_up: torch.Tensor, alpha: float, limit: float, oai: bool)
deepspeed/ops/triton_ops/swiglu_triton.py:415
Methodforward
(ctx, hidden, weight, eps)
deepspeed/ops/triton_ops/fused_rms_norm.py:265
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, rows, weights)
deepspeed/ops/triton_ops/autoep_fused_token_ops.py:454
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:178
Methodforward
(ctx: Any, layernorm_output, attention_mask, inference_params,
deepspeed/sequence/fpdt_layer.py:608
Methodforward
(self, layernorm_output, attention_mask, inference_params,
deepspeed/sequence/fpdt_layer.py:1175
Methodforward
(ctx: Any, x, w1, b1, w2, b2, add_bias, chunk_size)
deepspeed/sequence/fpdt_layer.py:1222
Methodforward
(ctx: Any, lm_output, labels, logit_weights, rank, spg_size, spg, num_chunk)
deepspeed/sequence/fpdt_layer.py:1303
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:380
Methodforward
forward Arguments: query (Tensor): query input to the layer key (Tensor): key input to the layer value (
deepspeed/sequence/layer.py:542
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
← previousnext →9,401–9,500 of 15,468, ranked by callers