MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

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
Methodforward
(self, wrapped_batch: RaggedBatchWrapper)
deepspeed/inference/v2/model_implementations/falcon/model.py:201
Methodforward
(self, wrapped_batch: RaggedBatchWrapper)
deepspeed/inference/v2/model_implementations/qwen/model.py:213
Methodforward
(self, wrapped_batch: RaggedBatchWrapper)
deepspeed/inference/v2/model_implementations/opt/model.py:184
Methodforward
(self, wrapped_batch: RaggedBatchWrapper)
deepspeed/inference/v2/model_implementations/qwen_v2_moe/model.py:350
Methodforward
(self, wrapped_batch: RaggedBatchWrapper)
deepspeed/inference/v2/model_implementations/llama_v2/model.py:199
Methodforward
( self, input=None, input_mask=None, attention_mask=None,
deepspeed/model_implementations/transformers/ds_transformer.py:105
Methodforward
(self, *args, **kwargs)
deepspeed/model_implementations/transformers/ds_llama2.py:23
Methodforward
(self, *inputs, **kwargs)
deepspeed/model_implementations/transformers/clip_encoder.py:44
Methodforward
(self, *inputs, **kwargs)
deepspeed/model_implementations/diffusers/unet.py:36
Methodforward
(self, *inputs, **kwargs)
deepspeed/model_implementations/diffusers/vae.py:120
Methodforward
(ctx, logits, target, ignore_index)
deepspeed/runtime/chunked_cross_entropy.py:119
Methodforward
(ctx, logits, target, ignore_index, block_rows)
deepspeed/runtime/chunked_cross_entropy.py:163
Methodforward
r"""Execute forward propagation Arguments: *inputs: Variable length input list **kwargs: variable length keyword argum
deepspeed/runtime/engine.py:3130
Methodforward
(input, weight, bias=None)
deepspeed/runtime/zero/linear.py:96
Methodforward
(self, input: Tensor)
deepspeed/runtime/zero/linear.py:221
Methodforward
(outputs)
deepspeed/runtime/zero/parameter_offload.py:472
Methodforward
(output)
deepspeed/runtime/zero/parameter_offload.py:503
Methodforward
(self, input_)
deepspeed/runtime/zero/tiling.py:128
Methodforward
(phase)
deepspeed/runtime/pipe/schedule.py:392
Methodforward
(self, forward_input)
deepspeed/runtime/pipe/module.py:342
Methodforward
(ctx, input_, handle_dic, h_id)
deepspeed/runtime/domino/transformer.py:61
Methodforward
(self, query_layer, key_layer, value_layer, attention_mask)
deepspeed/runtime/domino/transformer.py:87
Methodforward
(self, hidden_states, attention_mask, micro_batch_num, rotary_pos_emb=None)
deepspeed/runtime/domino/transformer.py:158
Methodforward
(self, x: torch.Tensor, bias: torch.Tensor, residual: torch.Tensor)
deepspeed/runtime/domino/transformer.py:242
Methodforward
(self, hidden_states, attention_mask, rotary_pos_emb=None)
deepspeed/runtime/domino/transformer.py:320
Methodforward
(self, hidden_states, attention_mask, rotary_pos_emb=None)
deepspeed/runtime/domino/transformer.py:463
Methodforward
(ctx, inp, weight, bias, handle_dic, h_id)
deepspeed/runtime/domino/async_linear.py:21
Methodforward
(self, input_: torch.Tensor, handle_dic, h_id)
deepspeed/runtime/domino/async_linear.py:85
Methodforward
(self, input_)
deepspeed/runtime/domino/async_linear.py:134
Methodforward
forward Arguments: query (Tensor): query input to the layer key (Tensor): key input to the layer value (T
deepspeed/runtime/sequence_parallel/ulysses_sp.py:230
Methodforward
for args and return values see `sequence_tiled_compute`'s doc Currently we assume that all kwargs_to_shard values have a shape of `[
deepspeed/runtime/sequence_parallel/ulysses_sp.py:790
Methodforward
( ctx, fn, self, x, shards, compute_params, )
deepspeed/runtime/sequence_parallel/ulysses_sp.py:996
Methodforward
( ctx, fn, self, x, y, mask, shards, compute_p
deepspeed/runtime/sequence_parallel/ulysses_sp.py:1121
Methodforward
( ctx, fn, self, x, )
deepspeed/runtime/sequence_parallel/ulysses_sp.py:1247
Methodforward
(self, hidden_states, **kwargs)
deepspeed/runtime/data_pipeline/data_routing/basic_layer.py:66
Methodforward
(ctx, run_function, all_outputs, *args)
deepspeed/runtime/activation_checkpointing/checkpointing.py:579
Methodforward
(ctx, local: torch.Tensor, group, size: int)
deepspeed/models/glm_moe_dsa/attention.py:78
Methodforward
( self, hidden_states: torch.Tensor, position_embeddings: tuple[torch.Tensor, torch.Te
deepspeed/models/glm_moe_dsa/attention.py:209
Methodforward
(ctx, q, kv, indices, scale, d_v)
deepspeed/models/glm_moe_dsa/kernels/sparse_mla.py:16
Methodforward
(ctx, exchange: DeepEPExchange, tokens: torch.Tensor, topk_idx
deepspeed/module_inject/auto_ep_comm.py:491
Methodforward
(ctx, exchange: DeepEPExchange, rows: torch.Tensor, handle)
deepspeed/module_inject/auto_ep_comm.py:554
Methodforward
(ctx, exchange: DeepEPExchange, rows: torch.Tensor, handle)
deepspeed/module_inject/auto_ep_comm.py:572
Methodforward
(ctx, hidden, gate_w, up_w, kernel_op)
deepspeed/module_inject/segment_ki.py:140
Methodforward
(ctx, hidden, w_qkv, w_z, w_b, w_a, kernel_op)
deepspeed/module_inject/segment_ki.py:189
Methodforward
Forward pass.
deepspeed/module_inject/layers.py:217
Methodforward
(ctx, group, input, partition_sizes, tp_index)
deepspeed/module_inject/layers.py:246
Methodforward
Forward pass.
deepspeed/module_inject/layers.py:267
Methodforward
Forward pass.
deepspeed/module_inject/layers.py:304
Methodforward
Gather the shards of a column parallel output described by ``partition_sizes``. The widths were resolved when the layer was built, so they ne
deepspeed/module_inject/layers.py:327
Methodforward
Forward pass method. Must be implemented by subclasses to define layer-specific operations.
deepspeed/module_inject/layers.py:458
Methodforward
(self, input)
deepspeed/module_inject/layers.py:906
Methodforward
(self, input)
deepspeed/module_inject/layers.py:972
Methodforward
(self, input)
deepspeed/module_inject/layers.py:1001
Methodforward
(self, input)
deepspeed/module_inject/layers.py:1110
Methodforward
(self, input)
deepspeed/module_inject/layers.py:1187
Methodforward
(self, input)
deepspeed/module_inject/layers.py:1293
Methodforward
(self, input)
deepspeed/module_inject/layers.py:1857
Methodforward
(self, input: torch.Tensor)
deepspeed/module_inject/layers.py:1916
Methodforward
(self, input: torch.Tensor)
deepspeed/module_inject/layers.py:1931
Methodforward
(self, input)
deepspeed/module_inject/layers.py:1969
Methodforward
`input_ids_shape` is expected to be [bsz x seqlen].
deepspeed/module_inject/layers.py:1984
Methodforward
(self, input)
deepspeed/module_inject/layers.py:2294
Methodforward
(self, input)
deepspeed/module_inject/layers.py:2423
Methodforward
(self, hidden_states)
deepspeed/module_inject/layers.py:2505
Methodforward
(ctx, rows, weights)
deepspeed/module_inject/auto_ep_layer.py:191
Methodforward
(ctx, group, x, input_splits, output_splits)
deepspeed/module_inject/auto_ep_layer.py:369
Methodforward
Forward pass. Args: hidden_states: [B, S, H] Returns: [B, S, H] or ([B, S, H], [T, E]) if return_router_logi
deepspeed/module_inject/auto_ep_layer.py:1165
Methodforward
(ctx: Any, group: dist.ProcessGroup, input: Tensor)
deepspeed/moe/sharded_moe.py:100
Methodforward
(self, input: torch.Tensor, used_token: torch.Tensor = None, s
deepspeed/moe/sharded_moe.py:559
Methodforward
(self, *input: Tensor, **kwargs: Any)
deepspeed/moe/sharded_moe.py:649
Methodforward
(ctx, weight, num_tokens_per_expert)
deepspeed/moe/ep_experts.py:294
Methodforward
(ctx, x, num_tokens_per_expert, w1, w2,
deepspeed/moe/ep_experts.py:694
Methodforward
Args: x: Input tokens, shape ``(T, dim)``. num_tokens_per_expert: Token counts per expert, shape ``(E,)``.
deepspeed/moe/ep_experts.py:908
Methodforward
(self, inputs: torch.Tensor)
deepspeed/moe/experts.py:28
Methodforward
MoE forward Arguments: hidden_states (Tensor): input to the layer used_token (Tensor, optional): default: None, mask
deepspeed/moe/layer.py:105
Methodforward
Args: x: Input tensor of shape ``(T, dim)``. expert_bias: Optional bias tensor of shape ``(num_experts,)``
deepspeed/moe/ep_router.py:136
Methodforward
(ctx, rows, permuted_indices, inverse)
deepspeed/moe/ep_kernels.py:336
Methodforward
(ctx, rows, permuted_indices, inverse)
deepspeed/moe/ep_kernels.py:351
Methodforward
(ctx, tensor, group, counts, max_rows)
deepspeed/moe/ep_tp_dispatch.py:311
Methodforward
(ctx, tensor, group)
deepspeed/moe/ep_tp_dispatch.py:412
Methodforward
(ctx, input_, dim)
deepspeed/moe/mappings.py:79
Methodforward
(ctx, input_, dim)
deepspeed/moe/mappings.py:96
← previousnext →9,501–9,600 of 15,468, ranked by callers