MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 1 callersFunction_extract_zero_shard_files_stage3
(args, optim_files_grid, param_shape
deepspeed/checkpoint/ds_to_universal.py:562
↓ 1 callersMethod_fall_back
Give up on graphs for good and run eagerly. Only safe before any replay has happened in the current sequence, which is why this is re
deepspeed/runtime/hybrid_engine_graph.py:138
↓ 1 callersMethod_fetch_checkpoint_files
Fetch the checkpoint files from the HuggingFace Hub.
deepspeed/inference/v2/checkpoint/huggingface_engine.py:38
↓ 1 callersMethod_fetch_sub_module_impl
Implementation of fetch_sub_module, separated for thread synchronization.
deepspeed/runtime/zero/partitioned_param_coordinator.py:356
↓ 1 callersMethod_file_imports
Parse ``path`` once and return (intra-repo dep files, raw dotted import names). - dep files: package modules + sibling helpers it imports (gr
ci/tests_fetcher.py:341
↓ 1 callersMethod_fill_io_buffer
(self, src_tensor, src_offset)
deepspeed/io/fast_file_writer.py:125
↓ 1 callersFunction_filter_zero3_optim_files
(optim_files)
deepspeed/checkpoint/ds_to_universal.py:1013
↓ 1 callersFunction_final_schedule_fingerprint
Hash stable node order and dependencies without process-local graph identifiers.
deepspeed/compile/passes/zero3_compile.py:126
↓ 1 callersMethod_finalize_cpu_offload_gradient_accumulation
(self)
deepspeed/runtime/zero/stage_1_and_2.py:1109
↓ 1 callersMethod_finalize_offload_gradient_accumulation
(self)
deepspeed/runtime/zero/stage3.py:1519
↓ 1 callersMethod_finalize_output
Apply the model-specific output tail shared by every communication backend.
deepspeed/module_inject/auto_ep_layer.py:1026
↓ 1 callersFunction_find_base_ptr
csrc/gds/py_lib/deepspeed_gds_op.cpp:30
↓ 1 callersFunction_find_graph_anchor
(graph: Graph)
deepspeed/compile/passes/offload_adam_states.py:330
↓ 1 callersMethod_find_layer_type
(self, layername)
deepspeed/runtime/pipe/module.py:321
↓ 1 callersMethod_find_tied_row_parallel_embedding_ids
(self)
deepspeed/module_inject/auto_tp.py:626
↓ 1 callersMethod_find_tied_weight_partners
(self)
deepspeed/module_inject/auto_tp.py:612
↓ 1 callersFunction_first_index_at_or_after
(piece, address)
deepspeed/checkpoint/affine.py:948
↓ 1 callersFunction_first_int_attr
(module, names)
deepspeed/__init__.py:222
↓ 1 callersFunction_first_shared_address
Return the first shard address two boxes both write, or None when they are disjoint.
deepspeed/checkpoint/affine.py:203
↓ 1 callersFunction_fixed_training_inputs
(num_steps, seq_len=8, hidden_dim=64)
tests/unit/v1/moe/test_autoep_checkpoint.py:317
↓ 1 callersFunction_flat_piece
(numel, start, rank)
deepspeed/checkpoint/zero_affine.py:29
↓ 1 callersMethod_flatten_dense_tensors_aligned
(self, tensor_list, alignment)
deepspeed/runtime/bf16_optimizer.py:384
↓ 1 callersMethod_flush_coalesced_reduction_zero12
(self, optimizer)
deepspeed/runtime/engine.py:3383
↓ 1 callersMethod_flush_coalesced_reduction_zero3
(self, optimizer)
deepspeed/runtime/engine.py:3410
↓ 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:1089
↓ 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:3038
↓ 1 callersMethod_forward_prologue
(self, inputs, kwargs)
deepspeed/runtime/engine.py:3004
↓ 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:230
↓ 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:47
↓ 1 callersFunction_fused_module_forward
(self, hidden_states, eager_forward)
deepspeed/ops/triton_ops/fused_rms_norm.py:309
↓ 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:289
↓ 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:93
↓ 1 callersMethod_generate
(self, *inputs, **kwargs)
deepspeed/inference/engine.py:617
↓ 1 callersMethod_generate_continuous
Generate independent requests in an experimental continuous batch. Continuous batching currently requires one prompt row per request.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:332
↓ 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:591
↓ 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:1435
↓ 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:4465
↓ 1 callersMethod_get_all_zero_checkpoint_state_dicts
(self, zero_ckpt_names)
deepspeed/runtime/engine.py:4905
↓ 1 callersFunction_get_async_split_plan_stream
(device_index: int)
deepspeed/module_inject/auto_ep_layer.py:225
↓ 1 callersFunction_get_autocast_decorators
()
deepspeed/runtime/zero/linear.py:46
← previousnext →3,501–3,600 of 14,579, ranked by callers