Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ functions
Functions
14,579 in github.com/deepspeedai/DeepSpeed
⨍
Functions
14,579
◇
Types & classes
2,353
↳
Endpoints
92
↓ 1 callers
Function
_covers_union
Check a union without enumerating parameter elements or counting replica overlap twice.
deepspeed/checkpoint/affine_transfer.py:459
↓ 1 callers
Method
_create_buffers
(self)
deepspeed/inference/v2/modules/implementations/moe/cutlass_multi_gemm.py:77
↓ 1 callers
Function
_create_checkpoint_paths
(base_folder, iteration, tp_degree, pp_degree)
deepspeed/checkpoint/ds_to_universal.py:113
↓ 1 callers
Method
_create_column_parallel_layer
Create column-parallel layer (AllReduce in backward).
deepspeed/module_inject/auto_tp.py:587
↓ 1 callers
Method
_create_context
(self, args, tid, read_op)
deepspeed/nvme/ds_aio_handle.py:85
↓ 1 callers
Method
_create_context
(self, args, tid, read_op)
deepspeed/nvme/torch_io.py:39
↓ 1 callers
Method
_create_context
(self, args, tid, read_op)
deepspeed/nvme/torch_fastio_engine.py:52
↓ 1 callers
Method
_create_context
(self, args, tid, read_op)
deepspeed/nvme/ds_aio_basic.py:43
↓ 1 callers
Method
_create_context
(self, args, tid, read_op)
csrc/aio/py_test/ds_aio_handle.py:76
↓ 1 callers
Method
_create_context
(self, args, tid, read_op)
csrc/aio/py_test/torch_io.py:39
↓ 1 callers
Method
_create_context
(self, args, tid, read_op)
csrc/aio/py_test/torch_fastio_engine.py:52
↓ 1 callers
Method
_create_context
(self, args, tid, read_op)
csrc/aio/py_test/ds_aio_basic.py:43
↓ 1 callers
Method
_create_cuda_graph
(self, *inputs, **kwargs)
deepspeed/inference/engine.py:528
↓ 1 callers
Method
_create_cuda_graph
(self, *inputs, **kwargs)
deepspeed/model_implementations/transformers/clip_encoder.py:56
↓ 1 callers
Method
_create_cuda_graph
(self, *inputs, **kwargs)
deepspeed/model_implementations/diffusers/unet.py:47
↓ 1 callers
Method
_create_cuda_graph
(self, *inputs, **kwargs)
deepspeed/model_implementations/diffusers/vae.py:131
↓ 1 callers
Method
_create_cuda_graph_decoder
(self, *inputs, **kwargs)
deepspeed/model_implementations/diffusers/vae.py:37
↓ 1 callers
Method
_create_cuda_graph_encoder
(self, *inputs, **kwargs)
deepspeed/model_implementations/diffusers/vae.py:80
↓ 1 callers
Method
_create_dataloader
(self)
deepspeed/runtime/dataloader.py:126
↓ 1 callers
Method
_create_ep_parallel_group
(self, moe_experts)
deepspeed/inference/engine.py:291
↓ 1 callers
Function
_create_expert_parallel_info
(groups)
deepspeed/runtime/model_checkpointing/utils.py:46
↓ 1 callers
Method
_create_files
(self, args, folder, tid)
deepspeed/nvme/ds_aio_handle.py:64
↓ 1 callers
Method
_create_files
(self, args, folder, tid)
csrc/aio/py_test/ds_aio_handle.py:55
↓ 1 callers
Method
_create_fp16_partitions_with_defragmentation
(self, fp16_param_groups)
deepspeed/runtime/zero/stage3.py:934
↓ 1 callers
Method
_create_fp16_sub_groups
(self, params_group)
deepspeed/runtime/zero/stage3.py:1254
↓ 1 callers
Method
_create_fp32_partitions
(self)
deepspeed/runtime/zero/stage3.py:1109
↓ 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:1070
↓ 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:909
↓ 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:556
↓ 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:5471
↓ 1 callers
Function
_current_manager
()
deepspeed/runtime/activation_checkpointing/offload_activations.py:324
↓ 1 callers
Method
_cutlass_include_dirs
(cutlass_path)
op_builder/evoformer_attn.py:177
↓ 1 callers
Method
_dangling_importers
Surviving files whose imports still reference a deleted module.
ci/tests_fetcher.py:578
↓ 1 callers
Function
_data_range
Byte extent a tensor's elements occupy in storage.
deepspeed/checkpoint/affine_transfer_executor.py:495
↓ 1 callers
Function
_debug_validate_restore_coverage
(payload: RoutedAssignmentPayload, ctx: RestoreContext, all_token_indices
deepspeed/moe/ep_tp_dispatch.py:364
↓ 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:106
↓ 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:682
↓ 1 callers
Method
_defragment_memory
(self)
deepspeed/runtime/zero/contiguous_memory_allocator.py:179
↓ 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:445
↓ 1 callers
Function
_dense_rows
(piece)
deepspeed/checkpoint/affine.py:923
↓ 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_address_range
Return the lowest and highest shard address a piece writes.
deepspeed/checkpoint/affine.py:190
↓ 1 callers
Function
_dest_box
Return a piece's destination as per-axis ``(starts, stops)`` in the shard, or None. A column split writes each piece into a few columns of every
deepspeed/checkpoint/affine.py:167
↓ 1 callers
Function
_dest_interval
Return a dense piece's destination interval, or None for a strided or empty piece.
deepspeed/checkpoint/affine.py:157
↓ 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:288
↓ 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
_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:413
↓ 1 callers
Method
_do_args_sanity_check
(self, args)
deepspeed/runtime/engine.py:2043
↓ 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:2367
↓ 1 callers
Method
_do_sanity_check
(self)
deepspeed/runtime/config.py:658
↓ 1 callers
Method
_do_sanity_check
(self)
deepspeed/runtime/engine.py:2074
↓ 1 callers
Method
_do_warning_check
(self)
deepspeed/runtime/config.py:716
↓ 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:301
↓ 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:474
↓ 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:2382
↓ 1 callers
Method
_elapsed_time
(self, start, end)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:75
↓ 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:636
↓ 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:153
↓ 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
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
_env_paths
(*names)
op_builder/evoformer_attn.py:118
↓ 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
Method
_exit
(self, *exc)
deepspeed/runtime/zero/partition_parameters.py:2478
↓ 1 callers
Method
_expected_view_sum
(self, shape)
tests/torch_compile/test_deepcompile_z3_release.py:59
↓ 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:803
↓ 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:553
← previous
next →
3,401–3,500 of 14,579, ranked by callers