MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 1 callersMethod_flatten_dense_tensors_aligned
(self, tensor_list, alignment)
deepspeed/runtime/bf16_optimizer.py:384
↓ 1 callersMethod_flush
(self)
deepspeed/moe/ep_experts.py:661
↓ 1 callersMethod_flush_coalesced_reduction_zero12
(self, optimizer)
deepspeed/runtime/engine.py:3460
↓ 1 callersMethod_flush_coalesced_reduction_zero3
(self, optimizer)
deepspeed/runtime/engine.py:3487
↓ 1 callersMethod_flush_keep_last
(self, newest_id: int)
deepspeed/runtime/activation_checkpointing/offload_activations.py:212
↓ 1 callersFunction_folded_checkpoint_config
(*, ep_size=2, mixed_precision=True)
tests/unit/v1/moe/test_autoep_autotp_checkpoint.py:114
↓ 1 callersFunction_folded_config
(zero_stage=0, *, ep_size=2, mixed_precision=True)
tests/unit/v1/moe/test_autoep_autotp_runtime.py:131
↓ 1 callersFunction_folded_sgd_config
(tp_size, ep_size, zero_stage=0)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:527
↓ 1 callersFunction_folded_zero0_tp2_ep4_config
()
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:194
↓ 1 callersFunction_folded_zero0_tp4_ep4_config
()
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:414
↓ 1 callersMethod_force_drain
(self)
deepspeed/io/fast_file_writer.py:145
↓ 1 callersFunction_format_payload_debug
(payload: RoutedAssignmentPayload, *, digest: torch.Tensor, max_digest: torch.Tensor,
deepspeed/moe/ep_tp_dispatch.py:166
↓ 1 callersMethod_forward
(self, *inputs, **kwargs)
deepspeed/model_implementations/transformers/clip_encoder.py:76
↓ 1 callersMethod_forward
(self, hidden_states: torch.Tensor)
deepspeed/module_inject/auto_ep_layer.py:1194
↓ 1 callersMethod_forward_embed
Performs the embedding lookup prior to running the transformer of the model. Arguments: ragged_batch (RaggedBatchWrapper
deepspeed/inference/v2/model_implementations/mixtral/model.py:170
↓ 1 callersMethod_forward_embed
Performs the embedding lookup prior to running the transformer of the model. Arguments: ragged_batch (RaggedBatchWrapper
deepspeed/inference/v2/model_implementations/phi/model.py:106
↓ 1 callersMethod_forward_embed
Performs the embedding lookup prior to running the transformer of the model. Arguments: ragged_batch (RaggedBatchWrapper
deepspeed/inference/v2/model_implementations/mistral/model.py:115
↓ 1 callersMethod_forward_embed
(self, ragged_batch: RaggedBatchWrapper)
deepspeed/inference/v2/model_implementations/exaone4/model.py:138
↓ 1 callersMethod_forward_embed
Performs the embedding lookup prior to running the transformer of the model. Arguments: ragged_batch (RaggedBatchWrapper
deepspeed/inference/v2/model_implementations/qwen_v2/model.py:128
↓ 1 callersMethod_forward_embed
Performs the embedding lookup prior to running the transformer of the model. Arguments: ragged_batch (RaggedBatchWrapper
deepspeed/inference/v2/model_implementations/phi3/model.py:115
↓ 1 callersMethod_forward_embed
Performs the embedding lookup prior to running the transformer of the model. Arguments: ragged_batch (RaggedBatchWrapper
deepspeed/inference/v2/model_implementations/falcon/model.py:109
↓ 1 callersMethod_forward_embed
Performs the embedding lookup prior to running the transformer of the model. Arguments: ragged_batch (RaggedBatchWrapper
deepspeed/inference/v2/model_implementations/qwen/model.py:130
↓ 1 callersMethod_forward_embed
(self, ragged_batch: RaggedBatchWrapper)
deepspeed/inference/v2/model_implementations/opt/model.py:119
↓ 1 callersMethod_forward_embed
Performs the embedding lookup prior to running the transformer of the model. Arguments: ragged_batch (RaggedBatchWrapper
deepspeed/inference/v2/model_implementations/qwen_v2_moe/model.py:262
↓ 1 callersMethod_forward_embed
Performs the embedding lookup prior to running the transformer of the model. Arguments: ragged_batch (RaggedBatchWrapper
deepspeed/inference/v2/model_implementations/llama_v2/model.py:116
↓ 1 callersMethod_forward_epilogue
(self)
deepspeed/runtime/engine.py:3111
↓ 1 callersMethod_forward_prologue
(self, inputs, kwargs)
deepspeed/runtime/engine.py:3077
↓ 1 callersMethod_forward_transformer
Executes one (slightly offset) layer of the transformer. This implementation does a peak-ahead optimization to fuse the layer norm of
deepspeed/inference/v2/model_implementations/mixtral/model.py:187
↓ 1 callersMethod_forward_transformer
Executes one (slightly offset) layer of the transformer. This implementation does a peak-ahead optimization to fuse the layer norm of
deepspeed/inference/v2/model_implementations/mistral/model.py:132
↓ 1 callersMethod_forward_transformer
EXAONE 4.0 uses post-norm architecture: hidden = attn(hidden) hidden = post_attn_norm(hidden) residual =
deepspeed/inference/v2/model_implementations/exaone4/model.py:148
↓ 1 callersMethod_forward_transformer
Executes one (slightly offset) layer of the transformer. This implementation does a peak-ahead optimization to fuse the layer norm of
deepspeed/inference/v2/model_implementations/qwen_v2_moe/model.py:279
↓ 1 callersMethod_forward_transformer_layer
Executes one (slightly offset) layer of the transformer. This implementation does a peak-ahead optimization to fuse the layer norm of
deepspeed/inference/v2/model_implementations/phi/model.py:123
↓ 1 callersMethod_forward_transformer_layer
Executes one (slightly offset) layer of the transformer. This implementation does a peak-ahead optimization to fuse the layer norm of
deepspeed/inference/v2/model_implementations/qwen_v2/model.py:145
↓ 1 callersMethod_forward_transformer_layer
Executes one (slightly offset) layer of the transformer. This implementation does a peak-ahead optimization to fuse the layer norm of
deepspeed/inference/v2/model_implementations/phi3/model.py:132
↓ 1 callersMethod_forward_transformer_layer
Executes one (slightly offset) layer of the transformer. This implementation does a peak-ahead optimization to fuse the layer norm of
deepspeed/inference/v2/model_implementations/falcon/model.py:126
↓ 1 callersMethod_forward_transformer_layer
Executes one (slightly offset) layer of the transformer. This implementation does a peak-ahead optimization to fuse the layer norm of
deepspeed/inference/v2/model_implementations/qwen/model.py:147
↓ 1 callersMethod_forward_transformer_layer
(self, layer_idx: int, residual: torch.Tensor, hidden_states: torch.Tensor,
deepspeed/inference/v2/model_implementations/opt/model.py:126
↓ 1 callersMethod_forward_transformer_layer
Executes one (slightly offset) layer of the transformer. This implementation does a peak-ahead optimization to fuse the layer norm of
deepspeed/inference/v2/model_implementations/llama_v2/model.py:133
↓ 1 callersMethod_forward_unembed
Performs unembedding of the hidden states to logits. This will only sample the final token of each sequence.
deepspeed/inference/v2/model_implementations/mixtral/model.py:230
↓ 1 callersMethod_forward_unembed
Performs unembedding of the hidden states to logits. This will only sample the final token of each sequence.
deepspeed/inference/v2/model_implementations/phi/model.py:163
↓ 1 callersMethod_forward_unembed
Performs unembedding of the hidden states to logits. This will only sample the final token of each sequence.
deepspeed/inference/v2/model_implementations/mistral/model.py:176
↓ 1 callersMethod_forward_unembed
(self, hidden_states: torch.Tensor, ragged_batch_info: RaggedBatchWrapper)
deepspeed/inference/v2/model_implementations/exaone4/model.py:188
↓ 1 callersMethod_forward_unembed
Performs unembedding of the hidden states to logits. This will only sample the final token of each sequence.
deepspeed/inference/v2/model_implementations/qwen_v2/model.py:189
↓ 1 callersMethod_forward_unembed
Performs unembedding of the hidden states to logits. This will only sample the final token of each sequence.
deepspeed/inference/v2/model_implementations/phi3/model.py:173
↓ 1 callersMethod_forward_unembed
Performs unembedding of the hidden states to logits. This will only sample the final token of each sequence.
deepspeed/inference/v2/model_implementations/falcon/model.py:178
↓ 1 callersMethod_forward_unembed
Performs unembedding of the hidden states to logits. This will only sample the final token of each sequence.
deepspeed/inference/v2/model_implementations/qwen/model.py:191
↓ 1 callersMethod_forward_unembed
(self, hidden_states: torch.Tensor, ragged_batch_info: RaggedBatchWrapper)
deepspeed/inference/v2/model_implementations/opt/model.py:165
↓ 1 callersMethod_forward_unembed
Performs unembedding of the hidden states to logits. This will only sample the final token of each sequence.
deepspeed/inference/v2/model_implementations/qwen_v2_moe/model.py:328
↓ 1 callersMethod_forward_unembed
Performs unembedding of the hidden states to logits. This will only sample the final token of each sequence.
deepspeed/inference/v2/model_implementations/llama_v2/model.py:177
↓ 1 callersFunction_fp6_quant_dequant_weights
(weight: torch.Tensor)
tests/unit/inference/v2/modules/test_quantized_linear_module.py:49
↓ 1 callersFunction_frame_of
Accept a piece only as an axis-aligned box, and refuse whatever else it might be. Both stride vectors must be the row-major strides of the tensor
deepspeed/checkpoint/affine_transfer.py:235
↓ 1 callersMethod_from_cpu
(self, v)
deepspeed/compile/util.py:205
↓ 1 callersFunction_full_optimizer_value
(param, key)
tests/unit/checkpoint/test_zero_affine.py:259
↓ 1 callersFunction_fully_qualified_class_name
(module: torch.nn.Module)
deepspeed/utils/z3_leaf_module.py:52
↓ 1 callersFunction_fused_engine_available
()
tests/unit/v1/ops/triton_ops/test_autoep_fused_token_ops.py:15
↓ 1 callersFunction_fused_engine_available
()
tests/unit/v1/moe/test_autoep_fused_parity.py:48
↓ 1 callersFunction_fused_module_forward
(self, hidden_states, eager_forward)
deepspeed/ops/triton_ops/fused_rms_norm.py:417
↓ 1 callersFunction_fused_torch_adamw
(params)
tests/unit/checkpoint/test_universal_checkpoint.py:282
↓ 1 callersFunction_gamma_before_cast_forward
(self, hidden_states)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:402
↓ 1 callersMethod_gate
Helper function to isolate the logit for gating. This will take the hidden states and produce the metadata + tensors for the CUTLASS
deepspeed/inference/v2/modules/implementations/moe/cutlass_multi_gemm.py:163
↓ 1 callersFunction_gate_activation_matches
Names of the registered forms whose gate function agrees with the experts' ``act_fn``. Returns ``None`` when the module has no ``act_fn`` that ru
deepspeed/module_inject/auto_ep.py:215
↓ 1 callersFunction_gate_fetch_depth
The checkout depth check-paths.yml requests; actions/checkout defaults to 1.
ci/test_tests_fetcher.py:381
↓ 1 callersFunction_gate_step_script
The ``run:`` script of the detection step (``id: filter``) in check-paths.yml.
ci/test_tests_fetcher.py:366
↓ 1 callersFunction_gather_autoep_expert_grad
(param, group)
tests/unit/v1/moe/test_autoep_grad_parity.py:130
↓ 1 callersFunction_gather_expert_grads
(layer, param, get=safe_get_full_grad)
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:156
↓ 1 callersFunction_gather_full_experts
All-gather a local routed-expert tensor over the EP group into the full (num_experts, ...) tensor, ordered by ep_rank (expert_start = ep_rank * nu
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:565
↓ 1 callersFunction_gather_tp_shards
(tensor, dim)
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:149
↓ 1 callersFunction_gating_reference
Reference gating code.
tests/unit/inference/v2/modules/test_cutlass_moe.py:21
↓ 1 callersFunction_gelu_tanh
(x: torch.Tensor)
deepspeed/moe/ep_experts.py:102
↓ 1 callersMethod_generate
(self, *inputs, **kwargs)
deepspeed/inference/engine.py:617
↓ 1 callersMethod_generate_continuous
Generate independent greedy requests in an experimental continuous batch. Continuous batching currently requires one prompt row per request a
deepspeed/runtime/rollout/hybrid_engine_rollout.py:443
↓ 1 callersMethod_generate_continuous_graph
Run continuous decoding with a fixed-capacity graph. Scheduler slots stay attached to physical cache rows for their whole lifetime. R
deepspeed/runtime/rollout/hybrid_engine_rollout.py:829
↓ 1 callersMethod_generate_experiments
Generates a list of autotuning experiments given a tuning_space. The corresponding parameter values are replaced by user-defined values in
deepspeed/autotuning/autotuner.py:304
↓ 1 callersMethod_generate_graph
Decode with DeepSpeedStaticCache + graph capture, greedy or sampled per ``sampling``.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1826
↓ 1 callersFunction_geometry_candidates
Every (heads, per-head width) this leaf could plausibly have, each labelled. Candidates are collected rather than chosen. `q_proj` is the case th
deepspeed/__init__.py:174
↓ 1 callersMethod_get_all_ckpt_names
(self, checkpoints_path, tag)
deepspeed/inference/engine.py:423
↓ 1 callersMethod_get_all_ckpt_names
(self, checkpoints_path, tag)
deepspeed/runtime/engine.py:4547
↓ 1 callersMethod_get_all_zero_checkpoint_state_dicts
(self, zero_ckpt_names)
deepspeed/runtime/engine.py:4987
↓ 1 callersFunction_get_async_split_plan_stream
(device_index: int)
deepspeed/module_inject/auto_ep_layer.py:263
↓ 1 callersFunction_get_autocast_decorators
()
deepspeed/runtime/zero/linear.py:46
↓ 1 callersFunction_get_autocast_device_type
(tensor)
deepspeed/runtime/zero/linear.py:80
↓ 1 callersFunction_get_autocast_dtype
(device_type)
deepspeed/runtime/zero/linear.py:70
↓ 1 callersMethod_get_base_optimizer_state
(self)
deepspeed/runtime/zero/stage_1_and_2.py:3483
↓ 1 callersMethod_get_buffer_names
(self)
deepspeed/runtime/engine.py:5605
↓ 1 callersMethod_get_ckpt_name
(self, checkpoints_path, tag, mp_placeholder=None)
deepspeed/inference/engine.py:431
↓ 1 callersMethod_get_compact_grad_partition_buffer
(self, group_idx)
deepspeed/runtime/zero/stage_1_and_2.py:1359
↓ 1 callersFunction_get_compiled_autograd_enable
()
deepspeed/runtime/compiler.py:28
↓ 1 callersFunction_get_cpu_socket_count
()
tests/unit/common.py:67
↓ 1 callersMethod_get_current_test_func
(self, request)
tests/unit/common.py:516
↓ 1 callersMethod_get_cycle_lr
(self)
deepspeed/runtime/lr_schedules.py:620
↓ 1 callersMethod_get_cycle_mom
(self)
deepspeed/runtime/lr_schedules.py:609
↓ 1 callersMethod_get_data_parallel_config
(self)
deepspeed/runtime/model_checkpointing/data_parallel_writer_factory.py:89
↓ 1 callersFunction_get_data_parallel_rank
Return my rank for the data parallel group.
deepspeed/utils/groups.py:878
↓ 1 callersMethod_get_decay_lr
Calculates the learning rate at batch index. This function is used after the cycle completes and post cycle decaying of lr/mom is enabled.
deepspeed/runtime/lr_schedules.py:640
↓ 1 callersMethod_get_decay_mom
(self, decay_batch_iteration)
deepspeed/runtime/lr_schedules.py:630
↓ 1 callersFunction_get_device
()
deepspeed/inference/quantization/utils.py:16
↓ 1 callersMethod_get_exp_resources
Get resource requirement for each autotuning experiment Args: args (dict): user args Returns: num_nodes, num
deepspeed/autotuning/autotuner.py:217
↓ 1 callersMethod_get_expert_data_parallel_config
(self)
deepspeed/runtime/model_checkpointing/data_parallel_writer_factory.py:53
↓ 1 callersFunction_get_expert_parallel_world_size
Return world size for the expert parallel group.
deepspeed/utils/groups.py:823
↓ 1 callersMethod_get_expert_parallel_write_for_2d
(self)
deepspeed/runtime/model_checkpointing/data_parallel_writer_factory.py:67
← previousnext →3,801–3,900 of 15,468, ranked by callers