MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 1 callersFunction_repack_fused_3d_requires_grad_flags
( experts_source: nn.Module, spec: MoELayerSpec, )
deepspeed/moe/ep_repack.py:197
↓ 1 callersFunction_repack_module_list
Repack from nn.ModuleList of individual expert modules (legacy transformers).
deepspeed/moe/ep_repack.py:214
↓ 1 callersFunction_repack_module_list_requires_grad_flags
( experts_source: nn.Module, spec: MoELayerSpec, expert_start: int, expert_end: int, )
deepspeed/moe/ep_repack.py:265
↓ 1 callersMethod_replace
(self, child, name, conv_linear_layer)
deepspeed/module_inject/auto_tp.py:414
↓ 1 callersMethod_replace_autoep_shared_experts
(self, autoep_layer, autoep_name)
deepspeed/module_inject/auto_tp.py:1037
↓ 1 callersMethod_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:5667
↓ 1 callersMethod_replace_old_address_with_new
(self, tensor_id, new_address)
deepspeed/runtime/zero/contiguous_memory_allocator.py:231
↓ 1 callersMethod_replace_tied_row_parallel_embeddings
(self, row_parallel_head, tied_embeddings)
deepspeed/module_inject/auto_tp.py:654
↓ 1 callersMethod_replace_vocab_parallel_lm_head
(self)
deepspeed/module_inject/auto_tp.py:811
↓ 1 callersMethod_replay
(self, position, kwargs)
deepspeed/runtime/hybrid_engine_graph.py:126
↓ 1 callersMethod_repo_root
()
op_builder/evoformer_attn.py:102
↓ 1 callersFunction_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 callersFunction_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 callersFunction_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 callersMethod_report_statistics
(self, message)
deepspeed/runtime/swap_tensor/async_swapper.py:71
↓ 1 callersMethod_require_avoid_recompute_norm
(self, p, tensor_model_parallel_rank)
deepspeed/runtime/fp16/fused_optimizer.py:222
↓ 1 callersFunction_require_consistent_dtype_device
( tensors: list[torch.Tensor], weight_name: str, expert_start: int, expert_end: int, )
deepspeed/moe/ep_repack.py:336
↓ 1 callersFunction_require_consistent_requires_grad
( flags: list[bool], weight_name: str, expert_start: int, expert_end: int, )
deepspeed/moe/ep_repack.py:353
↓ 1 callersFunction_require_positive
(name: str, value: int)
deepspeed/module_inject/auto_ep_folding.py:76
↓ 1 callersFunction_requires_grad
(weight: torch.Tensor | nn.Parameter)
deepspeed/moe/ep_repack.py:332
↓ 1 callersMethod_requires_selected_preset_detection
Return whether empty detection should fail for the selected preset.
deepspeed/module_inject/auto_ep.py:737
↓ 1 callersMethod_requires_transformers_version_validation
(self)
deepspeed/module_inject/auto_ep_presets/base.py:244
↓ 1 callersMethod_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 callersFunction_reset_cpu_offload_engine
()
deepspeed/runtime/activation_checkpointing/checkpointing.py:514
↓ 1 callersMethod_reset_param_data
(self)
deepspeed/runtime/zero/contiguous_memory_allocator.py:138
↓ 1 callersFunction_reset_tp_groups
(monkeypatch)
tests/unit/v1/autotp/test_autotp_training.py:49
↓ 1 callersFunction_reshape_pp_dimension
(old_2d_map, new_pp_degree)
deepspeed/checkpoint/reshape_meg_2d.py:68
↓ 1 callersFunction_reshape_tp_dimension
(old_2d_map, new_tp_degree)
deepspeed/checkpoint/reshape_meg_2d.py:56
↓ 1 callersFunction_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:659
↓ 1 callersFunction_resolve_backend
(backend: str, logits: torch.Tensor)
deepspeed/runtime/chunked_cross_entropy.py:74
↓ 1 callersMethod_resolve_candidate
(name: str, module_index: dict[str, Path])
ci/tests_fetcher.py:332
↓ 1 callersFunction_resolve_e_score_correction_bias_path
(moe_module: nn.Module, module_name: str)
deepspeed/module_inject/auto_ep.py:89
↓ 1 callersFunction_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 callersFunction_resolve_logical_shape
Replace any placeholder dimension in a sub-parameter view spec with its real size.
deepspeed/checkpoint/ds_to_universal.py:508
↓ 1 callersFunction_resolve_max_numel
(default: int)
deepspeed/comm/mori.py:106
↓ 1 callersMethod_resolve_metadata_once
(self, local_vocab_size, device)
deepspeed/sequence/cross_entropy.py:378
↓ 1 callersFunction_resolve_output_path
(trusted_root: Path, value: str)
ci/tests_fetcher.py:649
↓ 1 callersFunction_resolve_pass_name
(pass_ref, name_registry: Optional[Dict])
deepspeed/compile/passes/contract.py:60
↓ 1 callersFunction_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:269
↓ 1 callersMethod_restore_compact_grad_partition
(self, group_idx, grad_group)
deepspeed/runtime/zero/stage_1_and_2.py:1404
↓ 1 callersMethod_restore_cpu_offload_grad_to_gpu
(self, param)
deepspeed/runtime/zero/stage_1_and_2.py:1151
↓ 1 callersMethod_restore_from_bit16_weights
(self)
deepspeed/runtime/zero/stage3.py:3563
↓ 1 callersMethod_restore_from_elastic_fp32_weights
(self, all_state_dict, unpadded_layout=False)
deepspeed/runtime/zero/stage_1_and_2.py:3635
↓ 1 callersMethod_restore_from_unpadded_fp32_weights
(self, all_state_dict)
deepspeed/runtime/zero/stage_1_and_2.py:3598
↓ 1 callersMethod_restore_from_unpadded_local_fp32_weights
(self, current_rank_sd)
deepspeed/runtime/zero/stage_1_and_2.py:3591
↓ 1 callersMethod_restore_step_from_elastic_checkpoint
(self, all_state_dict)
deepspeed/runtime/zero/stage_1_and_2.py:3687
↓ 1 callersFunction_restore_transformers_output_capture_registry
( registry: dict[str, Any], original_entries: dict[str, object], )
deepspeed/module_inject/auto_ep_presets/base.py:308
↓ 1 callersFunction_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 callersMethod_retake_workspace
(self)
deepspeed/ops/transformer/inference/op_binding/workspace.py:54
↓ 1 callersMethod_rev_exists
(self, ref: str)
ci/tests_fetcher.py:211
↓ 1 callersFunction_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 callersMethod_rigid_load_state_dict
(self, state_dict, load_optimizer_states=True, load_from_fp32_weights=True)
deepspeed/runtime/zero/stage3.py:3619
↓ 1 callersMethod_rigid_state_dict
(self)
deepspeed/runtime/zero/stage3.py:3510
↓ 1 callersMethod_riscv_hwcap
(self)
op_builder/builder.py:488
↓ 1 callersFunction_rope_type
The rotary variant a config asks for, however the installed transformers spells it.
deepspeed/module_inject/containers/llama.py:28
↓ 1 callersFunction_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 callersFunction_rotate_half_backward
(x)
deepspeed/sequence/fpdt_layer.py:27
↓ 1 callersMethod_round_robin_reorder
(self, tensor_list, num_partitions)
deepspeed/runtime/zero/stage_1_and_2.py:915
↓ 1 callersFunction_round_up
Round *x* up to the nearest multiple of *y*.
deepspeed/moe/ep_kernels.py:56
↓ 1 callersFunction_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 callersFunction_run
(arch: str, args)
benchmarks/autosp/bench_multimodal_sp.py:197
↓ 1 callersMethod_run
One forward + backward; returns the query head ids this rank received.
tests/unit/v1/sequence_parallelism/test_ulysses.py:569
↓ 1 callersFunction_run_all
(args)
benchmarks/pin_memory/h2d_d2h_bench.py:98
↓ 1 callersFunction_run_arm
(args)
benchmarks/pin_memory/h2d_d2h_bench.py:65
↓ 1 callersFunction_run_batch_config
(ds_config, train_batch=None, micro_batch=None, gas=None)
tests/unit/runtime/test_ds_config_dict.py:56
↓ 1 callersFunction_run_bf16_gradient_lifecycle
(*, immediate_grad_update, micro_batches)
tests/unit/v1/moe/test_autoep_autotp_bf16_folding_parity.py:113
↓ 1 callersFunction_run_compile_step
(engine, batch, checkpoint_root=False)
tests/unit/v1/moe/test_autoep_grad_parity.py:268
↓ 1 callersFunction_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:204
↓ 1 callersFunction_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:351
↓ 1 callersFunction_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:398
↓ 1 callersFunction_run_ga_microsteps
(config_dict, hidden_dim, total_microsteps, seed=42)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:93
↓ 1 callersFunction_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 callersFunction_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 callersFunction_run_repeatedly_for_profile
(call_fn, iteration, start_events, end_events)
deepspeed/compile/profilers/graph_profile.py:148
↓ 1 callersFunction_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 callersFunction_run_training_steps_with_inputs
(engine, inputs)
tests/unit/v1/moe/test_autoep_checkpoint.py:322
↓ 1 callersFunction_run_warmup_for_profile
(call_fn, warmup)
deepspeed/compile/profilers/graph_profile.py:142
↓ 1 callersFunction_running_grad_norm
(engine)
tests/unit/v1/zero/test_zero_cpu_offload_grad_accum.py:23
↓ 1 callersFunction_runs_supported_rms_norm_forward
(module: torch.nn.Module)
deepspeed/ops/triton_ops/fused_rms_norm.py:287
↓ 1 callersFunction_safe_handle_register
csrc/gds/py_lib/deepspeed_gds_op.cpp:17
↓ 1 callersFunction_safe_module_name
()
tests/unit/runtime/zero/test_zero_autocast_mixed_dtype.py:18
↓ 1 callersFunction_same_code
(function, reference)
deepspeed/ops/triton_ops/fused_rotary_pos_emb.py:285
↓ 1 callersMethod_sanity_check
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:320
↓ 1 callersMethod_save_checkpoint
(self, save_dir, tag, client_state={}, exclude_frozen_parameters=False)
deepspeed/runtime/engine.py:5480
↓ 1 callersMethod_save_moe_checkpoint
(self, save_dir, tag, client_state={}, exclude_frozen_parameters=False)
deepspeed/runtime/engine.py:5146
↓ 1 callersFunction_save_optimizer_state
(args, ds_checkpoint)
deepspeed/checkpoint/ds_to_universal.py:988
↓ 1 callersFunction_save_optimizer_state_stage3
(args, optim_files)
deepspeed/checkpoint/ds_to_universal.py:1000
↓ 1 callersMethod_save_storage_list
(self, obj_list, save_size)
deepspeed/io/fast_file_writer.py:201
↓ 1 callersMethod_save_torch_storage_object
(self, storage_obj, save_size)
deepspeed/io/mock_file_writer.py:39
↓ 1 callersFunction_save_zero3_autoep_universal_tensor
(output_dir, param_name, state_key, tensor, num_experts)
deepspeed/checkpoint/ds_to_universal.py:760
↓ 1 callersMethod_save_zero_checkpoint
(self, save_path, tag)
deepspeed/runtime/engine.py:5646
↓ 1 callersFunction_scheduler_budget_disabled_reason
(graph: Graph, scheduler_budget)
deepspeed/compile/passes/zero3_compile.py:205
↓ 1 callersFunction_scheduler_diagnostics
(graph)
tests/unit/v1/compile/test_list_schedule.py:231
↓ 1 callersMethod_scheduler_from_config
(self, optimizer)
deepspeed/runtime/engine.py:1995
↓ 1 callersMethod_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:1413
↓ 1 callersFunction_select_allgather_task
Select the best fitting release path, then the best fitting gather-only path.
deepspeed/compile/list_schedule.py:503
↓ 1 callersFunction_select_over_budget_allgather_task
Choose the smallest deterministic peak overage when no candidate fits.
deepspeed/compile/list_schedule.py:551
↓ 1 callersMethod_select_topk
Top-k key positions per query, ``[batch, seq, topk]`` int32, ``-1`` where a row has fewer keys. Same scores as transformers' ``GlmMoeDsaIndex
deepspeed/models/glm_moe_dsa/attention.py:272
↓ 1 callersMethod_selective_optimizer_step
(self, group_no)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:605
↓ 1 callersMethod_selective_step_one_param
Run the selective AdamW update for a single parameter. The partition (``ds_tensor.data``) may live on CPU when offloaded, while the gradient
deepspeed/ops/adam/zenflow_torch_adam.py:450
← previousnext →4,001–4,100 of 14,579, ranked by callers