Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ functions
Functions
15,468 in github.com/deepspeedai/DeepSpeed
⨍
Functions
15,468
◇
Types & classes
2,493
↳
Endpoints
106
↓ 1 callers
Method
_replace_autoep_shared_experts
(self, autoep_layer, autoep_name)
deepspeed/module_inject/auto_tp.py:1141
↓ 1 callers
Method
_replace_module_consolidated_state_dict
Get a full non-partitioned state_dict with fp16 weights on cpu. Important: this function must be called on all ranks and not just ran
deepspeed/runtime/engine.py:5763
↓ 1 callers
Method
_replace_tied_row_parallel_embeddings
(self, row_parallel_head, tied_embeddings)
deepspeed/module_inject/auto_tp.py:697
↓ 1 callers
Method
_replace_untied_input_embedding
Shard the input embedding along the vocabulary (``tensor_parallel.vocab_parallel_embedding``). Returns the replaced module's name, or None wh
deepspeed/module_inject/auto_tp.py:860
↓ 1 callers
Method
_replace_vocab_parallel_lm_head
(self)
deepspeed/module_inject/auto_tp.py:854
↓ 1 callers
Method
_replay
(self, position, kwargs)
deepspeed/runtime/hybrid_engine_graph.py:126
↓ 1 callers
Method
_repo_root
()
op_builder/evoformer_attn.py:68
↓ 1 callers
Function
_report_partitioner_split
Say how much of the forward AOTAutograd kept, and how much it already recomputes. Only the saved set is this pass's to move. Without this, a smal
deepspeed/compile/passes/offload_activation.py:496
↓ 1 callers
Function
_report_per_head_tagging
Report what an explicit `per_head_muon: true` actually did. An opt-in that silently does nothing is the failure this guards. The systemic case is
deepspeed/__init__.py:315
↓ 1 callers
Function
_report_primary_failure
Map a controller failure to a triage class for nightly regression tooling. A Sandbox that never started is a capacity problem and returns the wor
ci/torch_latest.py:1770
↓ 1 callers
Method
_report_statistics
(self, message)
deepspeed/runtime/swap_tensor/async_swapper.py:71
↓ 1 callers
Method
_require_avoid_recompute_norm
(self, p, tensor_model_parallel_rank)
deepspeed/runtime/fp16/fused_optimizer.py:222
↓ 1 callers
Function
_require_consistent_dtype_device
( tensors: list[torch.Tensor], weight_name: str, expert_start: int, expert_end: int, )
deepspeed/moe/ep_repack.py:336
↓ 1 callers
Function
_require_consistent_requires_grad
( flags: list[bool], weight_name: str, expert_start: int, expert_end: int, )
deepspeed/moe/ep_repack.py:353
↓ 1 callers
Function
_require_gpu_native
(monkeypatch)
tests/unit/v1/pin_memory/test_offload_route.py:30
↓ 1 callers
Function
_require_positive
(name: str, value: int)
deepspeed/module_inject/auto_ep_folding.py:76
↓ 1 callers
Function
_requires_grad
(weight: torch.Tensor | nn.Parameter)
deepspeed/moe/ep_repack.py:332
↓ 1 callers
Method
_requires_selected_preset_detection
Return whether empty detection should fail for the selected preset.
deepspeed/module_inject/auto_ep.py:740
↓ 1 callers
Method
_requires_transformers_version_validation
(self)
deepspeed/module_inject/auto_ep_presets/base.py:248
↓ 1 callers
Method
_reserve_pipe_buffers
Ensure that each pipeline buffer has at least ``num_buffers`` slots. This method only reserves slots and does not allocate tensors.
deepspeed/runtime/pipe/engine.py:300
↓ 1 callers
Method
_reset_bucketwise_handles
(self)
deepspeed/runtime/reflow/reflow_stage3.py:354
↓ 1 callers
Function
_reset_cpu_offload_engine
()
deepspeed/runtime/activation_checkpointing/checkpointing.py:514
↓ 1 callers
Function
_reset_tp_groups
(monkeypatch)
tests/unit/v1/autotp/test_autotp_training.py:50
↓ 1 callers
Function
_reshape_pp_dimension
(old_2d_map, new_pp_degree)
deepspeed/checkpoint/reshape_meg_2d.py:68
↓ 1 callers
Function
_reshape_tp_dimension
(old_2d_map, new_tp_degree)
deepspeed/checkpoint/reshape_meg_2d.py:56
↓ 1 callers
Function
_reshape_uses_symbol_of
Whether a size argument of the reshape ``node`` is derived from the symbolic ``length``.
deepspeed/compile/passes/sp_compile.py:169
↓ 1 callers
Function
_resolve
Turn one policy answer into (region, holder) pairs, or refuse it. The parts are checked against the request, never against each other's claims: e
deepspeed/checkpoint/affine_transfer.py:711
↓ 1 callers
Function
_resolve_backend
(backend: str, logits: torch.Tensor)
deepspeed/runtime/chunked_cross_entropy.py:74
↓ 1 callers
Method
_resolve_candidate
(name: str, module_index: dict[str, Path])
ci/tests_fetcher.py:338
↓ 1 callers
Function
_resolve_e_score_correction_bias_path
(moe_module: nn.Module, module_name: str)
deepspeed/module_inject/auto_ep.py:89
↓ 1 callers
Function
_resolve_expert_activation
Resolve the expert activation of one layer and refuse a form the model contradicts. The preset (or ``expert_activation`` in the config) names the
deepspeed/module_inject/auto_ep.py:241
↓ 1 callers
Function
_resolve_logical_shape
Replace any placeholder dimension in a sub-parameter view spec with its real size.
deepspeed/checkpoint/ds_to_universal.py:511
↓ 1 callers
Function
_resolve_max_numel
(default: int)
deepspeed/comm/mori.py:106
↓ 1 callers
Method
_resolve_metadata_once
(self, local_vocab_size, device)
deepspeed/sequence/cross_entropy.py:378
↓ 1 callers
Function
_resolve_output_path
(trusted_root: Path, value: str)
ci/tests_fetcher.py:655
↓ 1 callers
Function
_resolve_pass_name
(pass_ref, name_registry: Optional[Dict])
deepspeed/compile/passes/contract.py:60
↓ 1 callers
Function
_resolve_replacement_param_groups
Pick the param group each replacement parameter belongs to. A replacement inherits the group its source parameters were in. A replacement none of
deepspeed/runtime/engine.py:270
↓ 1 callers
Method
_resolve_single_grad_buffer_eligibility
When REFLOW_SINGLE_GRAD_BUFFER=1 is set, keep the single-slot optimization only on runs it can serve correctly; otherwise fall back to the def
deepspeed/runtime/reflow/reflow_stage3.py:539
↓ 1 callers
Method
_restore_compact_grad_partition
(self, group_idx, grad_group)
deepspeed/runtime/zero/stage_1_and_2.py:1412
↓ 1 callers
Method
_restore_cpu_offload_grad_to_gpu
(self, param)
deepspeed/runtime/zero/stage_1_and_2.py:1159
↓ 1 callers
Method
_restore_from_bit16_weights
(self)
deepspeed/runtime/zero/stage3.py:3897
↓ 1 callers
Method
_restore_from_elastic_fp32_weights
(self, all_state_dict, unpadded_layout=False)
deepspeed/runtime/zero/stage_1_and_2.py:3661
↓ 1 callers
Method
_restore_from_unpadded_fp32_weights
(self, all_state_dict)
deepspeed/runtime/zero/stage_1_and_2.py:3624
↓ 1 callers
Method
_restore_from_unpadded_local_fp32_weights
(self, current_rank_sd)
deepspeed/runtime/zero/stage_1_and_2.py:3617
↓ 1 callers
Method
_restore_step_from_elastic_checkpoint
(self, all_state_dict)
deepspeed/runtime/zero/stage_1_and_2.py:3713
↓ 1 callers
Function
_restore_transformers_output_capture_registry
( registry: dict[str, Any], original_entries: dict[str, object], )
deepspeed/module_inject/auto_ep_presets/base.py:312
↓ 1 callers
Function
_retain_option_run
Three request-boundary backwards and one step; returns residency per boundary, grads, and final weight.
tests/unit/v1/zero/test_zero_offload_accum_precision.py:171
↓ 1 callers
Method
_retake_workspace
(self)
deepspeed/ops/transformer/inference/op_binding/workspace.py:54
↓ 1 callers
Method
_rev_exists
(self, ref: str)
ci/tests_fetcher.py:217
↓ 1 callers
Function
_rewrite_graph
Insert f/g into one graph. Returns (layer names reached, layer names given a collective).
deepspeed/compile/passes/tp_compile.py:159
↓ 1 callers
Method
_rigid_load_state_dict
(self, state_dict, load_optimizer_states=True, load_from_fp32_weights=True)
deepspeed/runtime/zero/stage3.py:3953
↓ 1 callers
Method
_rigid_state_dict
(self)
deepspeed/runtime/zero/stage3.py:3803
↓ 1 callers
Method
_riscv_hwcap
(self)
op_builder/builder.py:406
↓ 1 callers
Function
_rope_type
The rotary variant a config asks for, however the installed transformers spells it.
deepspeed/module_inject/containers/llama.py:28
↓ 1 callers
Function
_rope_types
Every rotary variant a config asks for, across both layouts and per-layer entries. transformers 5.x keeps these in ``rope_parameters``, 4.x in ``
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:53
↓ 1 callers
Function
_rotate_half_backward
(x)
deepspeed/sequence/fpdt_layer.py:27
↓ 1 callers
Function
_round_is_direct
(entries, source: bool)
deepspeed/checkpoint/affine_transfer_executor.py:359
↓ 1 callers
Method
_round_robin_reorder
(self, tensor_list, num_partitions)
deepspeed/runtime/zero/stage_1_and_2.py:923
↓ 1 callers
Function
_round_up
Round *x* up to the nearest multiple of *y*.
deepspeed/moe/ep_kernels.py:56
↓ 1 callers
Function
_routed_payload
The folded payload the AutoEP layer builds for score_apply="post".
tests/unit/v1/moe/test_autoep_autotp_dispatch.py:245
↓ 1 callers
Function
_row_weighting_reduce_block
Round the per-row partial count up to a power of two for ``tl.arange``.
deepspeed/ops/triton_ops/autoep_fused_token_ops.py:261
↓ 1 callers
Function
_run
(arch: str, args)
tests/benchmarks/bench_multimodal_sp.py:197
↓ 1 callers
Method
_run
One forward + backward; returns the query head ids this rank received.
tests/unit/v1/sequence_parallelism/test_ulysses.py:705
↓ 1 callers
Function
_run_all
(args)
tests/benchmarks/h2d_d2h_bench.py:98
↓ 1 callers
Function
_run_arm
(args)
tests/benchmarks/h2d_d2h_bench.py:65
↓ 1 callers
Function
_run_batch_config
(ds_config, train_batch=None, micro_batch=None, gas=None)
tests/unit/runtime/test_ds_config_dict.py:56
↓ 1 callers
Function
_run_bf16_gradient_lifecycle
(*, immediate_grad_update, micro_batches)
tests/unit/v1/moe/test_autoep_autotp_bf16_folding_parity.py:113
↓ 1 callers
Function
_run_compile_step
(engine, batch, checkpoint_root=False)
tests/unit/v1/moe/test_autoep_grad_parity.py:268
↓ 1 callers
Function
_run_experts_for_loop
Compute SwiGLU expert MLP via a sequential for-loop over experts. This is the reference implementation that works on all PyTorch versions. A
deepspeed/moe/ep_experts.py:226
↓ 1 callers
Function
_run_experts_grouped_mm_fused_gate_up
:func:`_run_experts_grouped_mm` with the gate and up projections in one grouped GEMM. The parameters keep their separate ``w1``/``w3`` layout; th
deepspeed/moe/ep_experts.py:385
↓ 1 callers
Function
_run_experts_triton_grouped_mm
Compute SwiGLU expert MLP via the Triton grouped GEMM drop-in. Numerically and API-compatible with :func:`_run_experts_grouped_mm`, but uses
deepspeed/moe/ep_experts.py:777
↓ 1 callers
Function
_run_ga_microsteps
(config_dict, hidden_dim, total_microsteps, seed=42)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:93
↓ 1 callers
Function
_run_gate_step
Run the detection step like GitHub Actions for ``feature`` as a pull request into ``master``. ``pull_request`` checks out GitHub's merge commit o
ci/test_tests_fetcher.py:388
↓ 1 callers
Function
_run_pass
Call a pass, handing it only the extra context it actually accepts. `passes` is a caller-supplied extension point whose contract is (gm, real_inp
deepspeed/compile/passes/tp_compile.py:246
↓ 1 callers
Function
_run_repeatedly_for_profile
(call_fn, iteration, start_events, end_events)
deepspeed/compile/profilers/graph_profile.py:148
↓ 1 callers
Function
_run_training_steps_with_engine_input_dtype
(engine, num_steps=2, seq_len=8, hidden_dim=64)
tests/unit/v1/moe/test_autoep_checkpoint.py:306
↓ 1 callers
Function
_run_training_steps_with_inputs
(engine, inputs)
tests/unit/v1/moe/test_autoep_checkpoint.py:322
↓ 1 callers
Function
_run_two_accumulated_backwards
(monkeypatch, register_tensor_hook)
tests/unit/v1/autotp/test_autotp_training.py:1319
↓ 1 callers
Function
_run_warmup_for_profile
(call_fn, warmup)
deepspeed/compile/profilers/graph_profile.py:142
↓ 1 callers
Function
_running_grad_norm
(engine)
tests/unit/v1/zero/test_zero_cpu_offload_grad_accum.py:23
↓ 1 callers
Function
_runs_supported_rms_norm_forward
(module: torch.nn.Module)
deepspeed/ops/triton_ops/fused_rms_norm.py:395
↓ 1 callers
Function
_safe_handle_register
csrc/gds/deepspeed_gds_op.cpp:17
↓ 1 callers
Function
_safe_module_name
()
tests/unit/runtime/zero/test_zero_autocast_mixed_dtype.py:18
↓ 1 callers
Function
_same_code
(function, reference)
deepspeed/ops/triton_ops/fused_rotary_pos_emb.py:285
↓ 1 callers
Method
_sanity_check
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:320
↓ 1 callers
Method
_save_checkpoint
(self, save_dir, tag, client_state={}, exclude_frozen_parameters=False)
deepspeed/runtime/engine.py:5576
↓ 1 callers
Method
_save_moe_checkpoint
(self, save_dir, tag, client_state={}, exclude_frozen_parameters=False)
deepspeed/runtime/engine.py:5242
↓ 1 callers
Function
_save_optimizer_state
(args, ds_checkpoint)
deepspeed/checkpoint/ds_to_universal.py:1009
↓ 1 callers
Function
_save_optimizer_state_stage3
(args, optim_files)
deepspeed/checkpoint/ds_to_universal.py:1021
↓ 1 callers
Method
_save_storage_list
(self, obj_list, save_size)
deepspeed/io/fast_file_writer.py:201
↓ 1 callers
Method
_save_torch_storage_object
(self, storage_obj, save_size)
deepspeed/io/mock_file_writer.py:39
↓ 1 callers
Function
_save_zero3_autoep_universal_tensor
(output_dir, param_name, state_key, tensor, num_experts)
deepspeed/checkpoint/ds_to_universal.py:763
↓ 1 callers
Method
_save_zero_checkpoint
(self, save_path, tag)
deepspeed/runtime/engine.py:5742
↓ 1 callers
Function
_scheduled_rounds
(rounds_by_peer, direct_by_peer)
deepspeed/checkpoint/affine_transfer_executor.py:477
↓ 1 callers
Function
_scheduler_budget_disabled_reason
(graph: Graph, scheduler_budget)
deepspeed/compile/passes/zero3_compile.py:205
↓ 1 callers
Function
_scheduler_diagnostics
(graph)
tests/unit/v1/compile/test_list_schedule.py:231
↓ 1 callers
Method
_scheduler_from_config
(self, optimizer)
deepspeed/runtime/engine.py:2048
↓ 1 callers
Method
_segmented_affine_map
Describe a layout this class splits into segments rather than per sub-parameter. Returns None where no segmentation is known, leaving the par
deepspeed/module_inject/layers.py:1417
↓ 1 callers
Function
_select_allgather_task
Select the best fitting release path, then the best fitting gather-only path.
deepspeed/compile/list_schedule.py:503
↓ 1 callers
Function
_select_over_budget_allgather_task
Choose the smallest deterministic peak overage when no candidate fits.
deepspeed/compile/list_schedule.py:551
← previous
next →
4,301–4,400 of 15,468, ranked by callers