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
_create_fp16_sub_groups
(self, params_group)
deepspeed/runtime/zero/stage3.py:1290
↓ 1 callers
Method
_create_fp32_partitions
(self, *, create_offloaded_master=None)
deepspeed/runtime/zero/stage3.py:1142
↓ 1 callers
Method
_create_model_parallel_group
(self, config)
deepspeed/inference/engine.py:278
↓ 1 callers
Function
_create_model_parallel_info
(mpu)
deepspeed/runtime/model_checkpointing/utils.py:27
↓ 1 callers
Method
_create_next_swappable_fp32_groups
(self)
deepspeed/runtime/zero/stage3.py:1103
↓ 1 callers
Method
_create_optimizer_mapping
(self)
deepspeed/runtime/zero/stage_1_and_2.py:832
↓ 1 callers
Method
_create_param_groups_fp16_flat_cpu_memory
(self)
deepspeed/runtime/zero/stage3.py:942
↓ 1 callers
Method
_create_param_mapping
(self)
deepspeed/runtime/bf16_optimizer.py:328
↓ 1 callers
Method
_create_param_mapping
(self)
deepspeed/runtime/zero/stage_1_and_2.py:820
↓ 1 callers
Method
_create_param_swap_info
(self, parameter, numel)
deepspeed/runtime/swap_tensor/optimizer_utils.py:522
↓ 1 callers
Method
_create_process_groups
(self, use_data_before_expert_parallel_: bool = False)
deepspeed/moe/layer.py:89
↓ 1 callers
Method
_create_row_parallel_layer
Create row-parallel layer (AllReduce after forward).
deepspeed/module_inject/auto_tp.py:599
↓ 1 callers
Method
_create_sequence
Create a new sequence descriptor for the given sequence id.
deepspeed/inference/v2/ragged/ragged_manager.py:143
↓ 1 callers
Function
_create_tiny_vision_encoder_decoder_model
(model_path)
tests/unit/runtime/zero/test_zero_nesting_init.py:16
↓ 1 callers
Method
_create_zero_checkpoint_files
(self, save_dir, tag)
deepspeed/runtime/engine.py:5567
↓ 1 callers
Function
_current_manager
()
deepspeed/runtime/activation_checkpointing/offload_activations.py:324
↓ 1 callers
Function
_cut
(piece, logical_shape, blocks, first_rows)
deepspeed/checkpoint/affine.py:1055
↓ 1 callers
Method
_cutlass_include_dirs
(cutlass_path)
op_builder/evoformer_attn.py:143
↓ 1 callers
Method
_dangling_importers
Surviving files whose imports still reference a deleted module.
ci/tests_fetcher.py:584
↓ 1 callers
Function
_data_range
Byte extent a tensor's elements occupy in storage.
deepspeed/checkpoint/affine_transfer_executor.py:709
↓ 1 callers
Method
_decompress_uint4_to_uint8
(self, tensor: Tensor)
deepspeed/inference/quantization/utils.py:155
↓ 1 callers
Method
_dedupe_paths
(paths)
op_builder/evoformer_attn.py:72
↓ 1 callers
Function
_default_chunk_rows
(num_tokens, global_vocab_size, tp_world_size, hidden_size)
deepspeed/sequence/linear_cross_entropy.py:30
↓ 1 callers
Method
_default_lm_head_patterns
()
deepspeed/module_inject/auto_tp.py:725
↓ 1 callers
Function
_delta_failure_message
Describe a delta mismatch together with the gradient that produced it. Adam's first update can be learning-rate-scale even for small gradients,
tests/unit/v1/moe/test_autoep_deepep_parity.py:503
↓ 1 callers
Function
_dense_rows
(piece)
deepspeed/checkpoint/affine.py:886
↓ 1 callers
Method
_deprecated_fields_check
(self)
deepspeed/runtime/config_utils.py:99
↓ 1 callers
Method
_dequantize_int8
(self, tensor: Tensor, quant_scale: Tensor, quant_min: Tensor)
deepspeed/inference/quantization/utils.py:147
↓ 1 callers
Function
_derive_affine_map
Describe this parameter's layout geometrically, from what the layer already knows. The layer is the only place the per-rank extents exist: `_free
deepspeed/module_inject/layers.py:44
↓ 1 callers
Function
_dest_box
Return a piece's destination as a box of the shard's grid, or None. A column split writes each piece into a few columns of every shard row, so it
deepspeed/checkpoint/affine.py:171
↓ 1 callers
Function
_dest_interval
Return a dense piece's destination interval, or None for a strided or empty piece.
deepspeed/checkpoint/affine.py:161
↓ 1 callers
Function
_detect_clamped_swiglu
Return ``(alpha, limit)`` when the model's experts clamp their SwiGLU, else ``None``. ``hidden_act`` cannot tell: Hugging Face reports ``hidden_a
deepspeed/module_inject/auto_ep.py:182
↓ 1 callers
Function
_detect_expert_storage
Determine whether experts are stored as fused 3D tensors or nn.ModuleList.
deepspeed/module_inject/auto_ep.py:169
↓ 1 callers
Function
_detect_forward_contract
Detect the forward contract for router logits capture. Returns: ForwardContract with router-logit return and capture metadata.
deepspeed/module_inject/auto_ep.py:348
↓ 1 callers
Method
_device_registration_enabled
()
deepspeed/utils/pin_memory.py:161
↓ 1 callers
Function
_direct_payload
(entries, requests, dtype, source)
deepspeed/checkpoint/affine_transfer_executor.py:368
↓ 1 callers
Method
_disable_forward_fallback
(self)
deepspeed/compile/z3_eager_fallback.py:106
↓ 1 callers
Method
_discover_model_state_metadata
Load model-state files once and retain only descriptor/conversion metadata.
deepspeed/checkpoint/deepspeed_checkpoint.py:130
↓ 1 callers
Function
_disjoint_blocks
(*maps)
deepspeed/checkpoint/affine.py:996
↓ 1 callers
Function
_divisors
(value: int)
deepspeed/module_inject/auto_ep_folding.py:72
↓ 1 callers
Function
_divisors
Return sorted list of positive divisors of n.
deepspeed/module_inject/auto_ep_config.py:476
↓ 1 callers
Method
_do_args_sanity_check
(self, args)
deepspeed/runtime/engine.py:2096
↓ 1 callers
Method
_do_error_check
(self)
deepspeed/runtime/config.py:682
↓ 1 callers
Method
_do_optimizer_sanity_check
(self, basic_optimizer)
deepspeed/runtime/engine.py:2420
↓ 1 callers
Method
_do_sanity_check
(self)
deepspeed/runtime/config.py:658
↓ 1 callers
Method
_do_sanity_check
(self)
deepspeed/runtime/engine.py:2127
↓ 1 callers
Method
_do_warning_check
(self)
deepspeed/runtime/config.py:737
↓ 1 callers
Function
_docker_exec
(container_name: str, command: RemoteCommand)
ci/torch_latest.py:1078
↓ 1 callers
Function
_drop_folding_metadata_from_model_checkpoints
(checkpoint_dir)
tests/unit/v1/moe/test_autoep_autotp_checkpoint.py:216
↓ 1 callers
Function
_drop_reloads_for_resident_bwd
Remove the copies back for whatever the forward half decided to keep on the device.
deepspeed/compile/passes/offload_activation.py:626
↓ 1 callers
Function
_dtype_element_size
(dtype)
deepspeed/compile/list_schedule.py:394
↓ 1 callers
Function
_dtype_element_size
(dtype: torch.dtype)
deepspeed/compile/passes/zero3_compile.py:271
↓ 1 callers
Method
_dump_param_ids
(self, tag, mod_id, p_ids, step_id=None)
deepspeed/runtime/zero/partitioned_param_coordinator.py:315
↓ 1 callers
Function
_dw_configs
()
deepspeed/ops/triton_ops/group_gemm_triton.py:160
↓ 1 callers
Method
_dynamic_edge_tests
Extra tests pulled in by the curated dynamic-edge map (#4).
ci/tests_fetcher.py:480
↓ 1 callers
Function
_dynamo_stat_delta
(before, after, key)
tests/unit/v1/moe/test_autoep_grad_parity.py:254
↓ 1 callers
Function
_eager_pep604_lines
Line numbers where a module evaluates PEP 604 unions at import time.
tests/unit/v1/moe/test_autoep_unit.py:2453
↓ 1 callers
Method
_elapsed_time
(self, start, end)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:79
↓ 1 callers
Function
_eligible_activations
Every saved activation this pass is allowed to move, largest first. Each entry is (node, bytes copied, bytes kept allocated if the value stays re
deepspeed/compile/passes/offload_activation.py:396
↓ 1 callers
Function
_emit_github_output
(mode: str, count: int)
ci/tests_fetcher.py:642
↓ 1 callers
Function
_emit_ssm_output
( phase: str, payload: Mapping[str, Any], instance: AwsInstance, command_id: str, run_iden
ci/torch_latest.py:1348
↓ 1 callers
Function
_emulate_all_to_all
CPU stand-in for dist.all_to_all_single: rank i sends chunk j of dim 0 to rank j.
tests/unit/v1/sequence_parallelism/test_ulysses.py:156
↓ 1 callers
Method
_enable_forward_fallback
(self)
deepspeed/compile/z3_eager_fallback.py:101
↓ 1 callers
Method
_enable_universal_checkpoint
(self)
deepspeed/runtime/zero/stage_1_and_2.py:806
↓ 1 callers
Method
_engine
(self, zero_stage, elastic_checkpoint)
tests/unit/v1/zero/test_offload_states.py:276
↓ 1 callers
Function
_ensure_default_pg_registered
Register the WORLD process group as 'default' in PyTorch's C++ GroupRegistry. mori's shmem layer looks up the PG by the name "default"; the stand
deepspeed/comm/mori.py:64
↓ 1 callers
Function
_ensure_gloo_subgroup_split
Let a Gloo world create a subgroup that excludes some ranks. PyTorch 2.7 through 2.10 calls ``perform_nocolor_split`` on ranks that are not m
deepspeed/comm/torch.py:25
↓ 1 callers
Method
_ensure_param_state
Lazily create the optimizer state (step, exp_avg) for a CPU param. Lion keeps a single momentum tensor -- there is no exp_avg_sq.
deepspeed/runtime/reflow/reflow_cpu_lion.py:106
↓ 1 callers
Method
_env_paths
(*names)
op_builder/evoformer_attn.py:84
↓ 1 callers
Method
_even_step_backward_id
(self, step_id)
deepspeed/runtime/pipe/schedule.py:290
↓ 1 callers
Method
_even_step_forward_id
(self, step_id)
deepspeed/runtime/pipe/schedule.py:280
↓ 1 callers
Function
_exchange
(send: torch.Tensor, to_processes: Sequence[int], receives: Sequence[Tuple[torch.T
deepspeed/checkpoint/affine_transfer_calibration.py:76
↓ 1 callers
Method
_expected_view_sum
(self, shape)
tests/torch_compile/test_deepcompile_z3_release.py:59
↓ 1 callers
Function
_expert_activation_backward
Gradients of :func:`apply_expert_activation` with respect to ``gate`` and ``up``.
deepspeed/moe/ep_experts.py:427
↓ 1 callers
Function
_expert_holders
(entries_by_rank, num_experts)
deepspeed/checkpoint/autoep_affine.py:326
↓ 1 callers
Method
_expert_storage_group
(self, params: dict[str, nn.Parameter])
deepspeed/module_inject/auto_ep_layer.py:868
↓ 1 callers
Method
_extract_tensor_metadata
Extract metadata from a tensor
deepspeed/compile/input_storage.py:42
↓ 1 callers
Function
_extract_zero_shard_files
(args, ds_checkpoint, temp_dir)
deepspeed/checkpoint/ds_to_universal.py:556
↓ 1 callers
Function
_extract_zero_shard_files_stage3
(args, optim_files_grid, param_shape
deepspeed/checkpoint/ds_to_universal.py:565
↓ 1 callers
Method
_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 callers
Method
_fetch_checkpoint_files
Fetch the checkpoint files from the HuggingFace Hub.
deepspeed/inference/v2/checkpoint/huggingface_engine.py:38
↓ 1 callers
Method
_fetch_sub_module_impl
Implementation of fetch_sub_module, separated for thread synchronization.
deepspeed/runtime/zero/partitioned_param_coordinator.py:370
↓ 1 callers
Method
_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:347
↓ 1 callers
Method
_fill_io_buffer
(self, src_tensor, src_offset)
deepspeed/io/fast_file_writer.py:125
↓ 1 callers
Function
_filter_zero3_optim_files
(optim_files)
deepspeed/checkpoint/ds_to_universal.py:1034
↓ 1 callers
Function
_final_schedule_fingerprint
Hash stable node order and dependencies without process-local graph identifiers.
deepspeed/compile/passes/zero3_compile.py:126
↓ 1 callers
Method
_finalize_cpu_offload_gradient_accumulation
(self)
deepspeed/runtime/zero/stage_1_and_2.py:1117
↓ 1 callers
Method
_finalize_offload_gradient_accumulation
(self)
deepspeed/runtime/zero/stage3.py:1608
↓ 1 callers
Method
_finalize_output
Apply the model-specific output tail shared by every communication backend.
deepspeed/module_inject/auto_ep_layer.py:1131
↓ 1 callers
Function
_find_base_ptr
csrc/gds/deepspeed_gds_op.cpp:30
↓ 1 callers
Function
_find_graph_anchor
(graph: Graph)
deepspeed/compile/passes/offload_adam_states.py:330
↓ 1 callers
Method
_find_layer_type
(self, layername)
deepspeed/runtime/pipe/module.py:321
↓ 1 callers
Method
_find_tied_row_parallel_embedding_ids
(self)
deepspeed/module_inject/auto_tp.py:669
↓ 1 callers
Method
_find_tied_weight_partners
(self)
deepspeed/module_inject/auto_tp.py:655
↓ 1 callers
Function
_first_index_at_or_after
(piece, address)
deepspeed/checkpoint/affine.py:911
↓ 1 callers
Function
_first_int_attr
(module, names)
deepspeed/__init__.py:222
↓ 1 callers
Function
_fit
Fit ``seconds = alpha + bytes / bandwidth`` to (bytes, seconds) points. Residuals are weighted by 1/seconds, so the fit minimizes relative error.
deepspeed/checkpoint/affine_transfer_calibration.py:325
↓ 1 callers
Function
_fit_groups
(groups: Dict[object, Dict[int, List[float]]])
deepspeed/checkpoint/affine_transfer_calibration.py:351
↓ 1 callers
Function
_fixed_training_inputs
(num_steps, seq_len=8, hidden_dim=64)
tests/unit/v1/moe/test_autoep_checkpoint.py:317
↓ 1 callers
Function
_flat_piece
(numel, start, rank)
deepspeed/checkpoint/zero_affine.py:29
← previous
next →
3,701–3,800 of 15,468, ranked by callers