MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

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:3057
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: torch.Tensor, topk_weights: to
deepspeed/module_inject/auto_ep_comm.py:465
Methodforward
(ctx, exchange: DeepEPExchange, rows: torch.Tensor, handle)
deepspeed/module_inject/auto_ep_comm.py:498
Methodforward
Forward pass.
deepspeed/module_inject/layers.py:217
Methodforward
(ctx, group, input, partition_sizes, tp_index)
deepspeed/module_inject/layers.py:242
Methodforward
Forward pass.
deepspeed/module_inject/layers.py:263
Methodforward
Forward pass.
deepspeed/module_inject/layers.py:300
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:323
Methodforward
Forward pass method. Must be implemented by subclasses to define layer-specific operations.
deepspeed/module_inject/layers.py:454
Methodforward
(self, input)
deepspeed/module_inject/layers.py:902
Methodforward
(self, input)
deepspeed/module_inject/layers.py:968
Methodforward
(self, input)
deepspeed/module_inject/layers.py:997
Methodforward
(self, input)
deepspeed/module_inject/layers.py:1106
Methodforward
(self, input)
deepspeed/module_inject/layers.py:1183
Methodforward
(self, input)
deepspeed/module_inject/layers.py:1289
Methodforward
(self, input)
deepspeed/module_inject/layers.py:1775
Methodforward
(self, input: torch.Tensor)
deepspeed/module_inject/layers.py:1834
Methodforward
(self, input: torch.Tensor)
deepspeed/module_inject/layers.py:1849
Methodforward
(self, input)
deepspeed/module_inject/layers.py:1887
Methodforward
`input_ids_shape` is expected to be [bsz x seqlen].
deepspeed/module_inject/layers.py:1902
Methodforward
(self, input)
deepspeed/module_inject/layers.py:2212
Methodforward
(self, input)
deepspeed/module_inject/layers.py:2341
Methodforward
(self, hidden_states)
deepspeed/module_inject/layers.py:2423
Methodforward
(ctx, group, x, input_splits, output_splits)
deepspeed/module_inject/auto_ep_layer.py:331
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:1060
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:272
Methodforward
Args: x: Input tokens, shape ``(T, dim)``. num_tokens_per_expert: Token counts per expert, shape ``(E,)``. R
deepspeed/moe/ep_experts.py:529
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
Methodforward
(self, x)
examples/sdma_allgather/train_zero3.py:43
Methodforward
(self, x)
examples/sdma_allgather/train_zero3.py:74
Methodforward
(self, input_ids, labels=None)
examples/sdma_allgather/train_zero3.py:92
Methodforward
(self, hidden_states, **kwargs)
benchmarks/autosp/bench_multimodal_sp.py:60
Methodforward
(self, hidden_states, **kwargs)
benchmarks/autosp/bench_multimodal_sp.py:66
Methodforward
(self, hidden_states, **kwargs)
benchmarks/autosp/bench_multimodal_sp.py:72
Methodforward
(self, hidden_states, **kwargs)
benchmarks/autosp/bench_multimodal_sp.py:78
Methodforward
(self, x, **kwargs)
benchmarks/autosp/bench_multimodal_sp.py:95
Methodforward
(self, local_patches: torch.Tensor, text_embeds: torch.Tensor, input_ids: torch.Tensor)
benchmarks/autosp/bench_multimodal_sp.py:121
Methodforward
(self, local_patches: torch.Tensor, text_embeds: torch.Tensor, input_ids: torch.Tensor)
benchmarks/autosp/bench_multimodal_sp.py:137
Methodforward_backward_chunk
(phase0, phase1, recv0=True)
deepspeed/runtime/pipe/schedule.py:411
Methodforward_chunk
(phase, recv=True, send=True)
deepspeed/runtime/pipe/schedule.py:402
Methodfree_blocks
Number of free KV blocks. This is a tensor of shape [n_kv_cache_groups] where each element is the number of free blocks in the corres
deepspeed/inference/v2/engine_v2.py:48
Methodfree_blocks
Return the number of free blocks in the KV cache.
deepspeed/inference/v2/ragged/ragged_manager.py:197
Methodfree_blocks
Return the number of free blocks in the KV-cache.
deepspeed/inference/v2/ragged/blocked_allocator.py:101
Methodfree_blocks
Return the number of free blocks in each cache
deepspeed/inference/v2/ragged/kv_cache.py:194
Methodfree_cpu_locked_tensor
csrc/pin_memory/py_ds_pin_memory.cpp:21
Methodfree_cpu_locked_tensor_by_ptr
csrc/pin_memory/py_ds_pin_memory.cpp:26
Methodfree_grad_in_param_list
(self, param_list)
deepspeed/runtime/zero/stage3.py:2610
Methodfree_kv_cache
Free blocks from the KV-cache for the sequence. Arguments: free_ids (Union[List[torch.IntTensor], torch.IntTensor]): The
deepspeed/inference/v2/ragged/sequence_descriptor.py:270
Functionfree_tensors
(tensors: List[torch.Tensor])
deepspeed/compile/fx.py:158
Functionfree_tensors
csrc/compile/deepcompile.cpp:122
Functionfree_tensors_meta
csrc/compile/deepcompile.cpp:134
← previousnext →9,101–9,200 of 14,579, ranked by callers