Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ functions
Functions
11,258 in github.com/deepspeedai/DeepSpeed
⨍
Functions
11,258
◇
Types & classes
1,887
↳
Endpoints
34
↓ 4 callers
Function
add_postprocess
(graph: Graph, node: Node, fn: Callable[..., Any],
deepspeed/compile/fx.py:84
↓ 4 callers
Function
align_up
csrc/deepspeed4science/evoformer_attn/gemm_kernel_utils.h:127
↓ 4 callers
Method
all_gather_coalesced
(self, output_tensors, input_tensors, group=None, async_op=False)
deepspeed/comm/torch.py:287
↓ 4 callers
Function
all_gather_dp_groups
(groups_flat, partitioned_param_groups, dp_process_group, start_alignment_factor, all
deepspeed/runtime/utils.py:1016
↓ 4 callers
Method
allocate
(self, num_elems, count, dtype)
deepspeed/runtime/swap_tensor/utils.py:201
↓ 4 callers
Method
allocate_all
(self, num_elems, dtype)
deepspeed/runtime/swap_tensor/utils.py:217
↓ 4 callers
Method
allreduce_gradients
(self, bucket_size=MEMORY_OPT_ALLREDUCE_SIZE)
deepspeed/runtime/engine.py:2838
↓ 4 callers
Function
args_from_dict
(tmpdir, config_dict)
tests/unit/simple_model.py:309
↓ 4 callers
Function
assignment_ordinals_by_expert
Return stable ordinals within each contiguous expert segment.
deepspeed/moe/ep_tp_dispatch.py:43
↓ 4 callers
Method
autotuning_profile_model_info
(self)
deepspeed/runtime/engine.py:1120
↓ 4 callers
Method
average_tensor
(self, tensor: torch.Tensor, communication_data_type: torch.dtype)
deepspeed/runtime/zero/stage_1_and_2.py:1291
↓ 4 callers
Method
build
Build the stored specification.
deepspeed/runtime/pipe/module.py:69
↓ 4 callers
Function
check_and_handle_empty_buffer
( buffer_m: torch.Tensor, original_shape: torch.Size, original_size: int, worker_error: torch.
deepspeed/runtime/comm/utils.py:11
↓ 4 callers
Function
check_injection
(model)
tests/unit/inference/test_inference.py:249
↓ 4 callers
Method
clear
Clear experiment queues, does not reset self.experiment_count
deepspeed/autotuning/scheduler.py:246
↓ 4 callers
Method
clear
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:1009
↓ 4 callers
Function
clear_backward_inputs
Drop captured inputs and pending capture registrations for selected frames.
deepspeed/compile/patch_compiled_func.py:124
↓ 4 callers
Method
close
(self)
deepspeed/io/fast_file_writer.py:94
↓ 4 callers
Function
collect_deepspeed_parameters
Collect parameters from DeepSpeed engine (handles ZeRO-3 gathering)
tests/unit/v1/zero/test_zero_user_backward.py:190
↓ 4 callers
Function
compare_loss
(model_cls, enable, zero_stage, model_dtype,
tests/unit/v1/zero/test_zero_autocast.py:67
↓ 4 callers
Function
compare_parameters
Compare parameters between DDP and DeepSpeed
tests/unit/v1/zero/test_zero_user_backward.py:203
↓ 4 callers
Method
config_tp_params
Configures the weight tensor for training with tensor parallelism. This includes enabling gradients and associating necessary methods
deepspeed/module_inject/layers.py:364
↓ 4 callers
Method
configure
(self, comms_config)
deepspeed/utils/comms_logging.py:78
↓ 4 callers
Function
create_deepspeed_engine
(model_class, zero_stage, seed=42, gradient_accumulation_steps=1, **model_kwargs)
tests/unit/v1/zero/test_zero_user_backward.py:117
↓ 4 callers
Function
create_file
(filename, num_bytes)
deepspeed/nvme/test_ds_aio_utils.py:78
↓ 4 callers
Function
create_file
(filename, num_bytes)
csrc/aio/py_test/test_ds_aio_utils.py:78
↓ 4 callers
Function
create_filename
(folder, read_op, size, tid)
deepspeed/nvme/test_ds_aio_utils.py:73
↓ 4 callers
Function
create_filename
(folder, read_op, size, tid)
csrc/aio/py_test/test_ds_aio_utils.py:73
↓ 4 callers
Method
create_op_builder
(self, class_name)
accelerator/hpu_accelerator.py:286
↓ 4 callers
Function
create_page_locked_tensor
(num_elem, use_accelerator, aio_handle=None)
deepspeed/nvme/test_ds_aio_utils.py:86
↓ 4 callers
Function
create_page_locked_tensor
(num_elem, use_accelerator, aio_handle=None)
csrc/aio/py_test/test_ds_aio_utils.py:86
↓ 4 callers
Function
cuFileGetErrorString
csrc/gds/py_lib/deepspeed_gds_utils.h:76
↓ 4 callers
Method
curriculum_enabled_legacy
(self)
deepspeed/runtime/engine.py:1001
↓ 4 callers
Method
curriculum_learning_enabled
(self)
deepspeed/runtime/engine.py:1019
↓ 4 callers
Function
dense_to_sparse
Converts dense matrix with explicit zeros to sparse matrix
tests/unit/ops/sparse_attention/test_sparse_attention.py:22
↓ 4 callers
Method
dequantize
(self, tensor: Tensor, quant_scale: Tensor, quant_min: Tensor)
deepspeed/inference/quantization/utils.py:105
↓ 4 callers
Function
dp_index_to_str
(dp_index)
deepspeed/checkpoint/ds_to_universal.py:207
↓ 4 callers
Function
duration_to_string
(duration, units=None, precision=DEFAULT_PRECISION)
deepspeed/profiling/flops_profiler/profiler.py:1174
↓ 4 callers
Method
dynamic_loss_scale
(self)
deepspeed/runtime/engine.py:1412
↓ 4 callers
Method
eval_batch
Evaluate the pipeline on a batch of data from ``data_iter``. The engine will evaluate ``self.train_batch_size()`` total samples collec
deepspeed/runtime/pipe/engine.py:431
↓ 4 callers
Function
extract_tensors
Separate objects in list/tuple into tensors and non-tensors and create a mapping to enable re-aggregation. The order of tensors and non-tenso
deepspeed/runtime/activation_checkpointing/checkpointing.py:305
↓ 4 callers
Function
f
(size)
deepspeed/compile/profilers/comm_profile.py:147
↓ 4 callers
Method
find_matching_spec
Find the first matching spec for a parameter.
deepspeed/module_inject/autotp_config.py:266
↓ 4 callers
Function
find_node_by_name
(gm: GraphModule, name: str)
deepspeed/compile/fx.py:167
↓ 4 callers
Method
flatten_dense_tensors_aligned
(self, tensor_list, alignment, use_cpu_data=False)
deepspeed/runtime/zero/stage_1_and_2.py:1134
↓ 4 callers
Method
flops_profiler_profile_step
(self)
deepspeed/runtime/engine.py:1073
↓ 4 callers
Method
forward
(self, x, y)
tests/unit/v1/zero/test_zero.py:259
↓ 4 callers
Method
free
Return a list of blocks to the free pool. If a single invalid block is provided (i.e., one that is out of range of the allocator or i
deepspeed/inference/v2/ragged/blocked_allocator.py:74
↓ 4 callers
Method
from_dict
Constructs a `BertConfig` from a Python dictionary of parameters.
tests/unit/modeling.py:238
↓ 4 callers
Method
from_meta
(cls, meta, local_part, group, device=get_accelerator().device_name())
deepspeed/runtime/utils.py:682
↓ 4 callers
Method
gather_params
(self, params_list)
deepspeed/module_inject/layers.py:755
↓ 4 callers
Method
gen_output_name
(self, test_config, prefix, baseline_config=False)
tests/model/Megatron_GPT2/test_common.py:21
↓ 4 callers
Method
get
deepspeed/inference/v2/kernels/includes/memory_access_utils.h:74
↓ 4 callers
Method
getSendBuf
csrc/includes/deepcompile.h:127
↓ 4 callers
Function
get_all_subclasses
(cls, include_root=True)
deepspeed/runtime/zero/partition_parameters.py:285
↓ 4 callers
Function
get_allgather_dtype
(param, param_ds_tensor)
deepspeed/runtime/zero/partition_parameters.py:55
↓ 4 callers
Method
get_axis_names
Return a list of the axis names in the ordering of the topology.
deepspeed/runtime/pipe/topology.py:65
↓ 4 callers
Function
get_ccl_datatype
csrc/cpu/comm/ccl.cpp:153
↓ 4 callers
Function
get_compression_config
(param_dict)
deepspeed/compression/config.py:11
↓ 4 callers
Function
get_cuda_rng_tracker
Get cuda rng tracker.
deepspeed/runtime/activation_checkpointing/checkpointing.py:196
↓ 4 callers
Method
get_data_parallel_partitions
(self, tensor, group_id)
deepspeed/runtime/zero/stage_1_and_2.py:1904
↓ 4 callers
Method
get_data_types
(self)
deepspeed/runtime/engine.py:1430
↓ 4 callers
Function
get_deepspeed_model
(model)
tests/unit/model_parallelism/test_configurable_parallel_mp.py:23
↓ 4 callers
Function
get_files
(dir)
deepspeed/checkpoint/reshape_utils.py:34
↓ 4 callers
Function
get_fp32_state_dict_from_zero_checkpoint
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with ``load_state_dict()`` and used for training
deepspeed/utils/zero_to_fp32.py:563
↓ 4 callers
Function
get_global_norm
Compute total from a list of norms
deepspeed/runtime/utils.py:349
↓ 4 callers
Method
get_hp_fragment
(self, optim_state_key=None)
deepspeed/utils/tensor_fragment.py:55
↓ 4 callers
Function
get_last_uses
(graph: Graph)
deepspeed/compile/util.py:253
↓ 4 callers
Method
get_mask
(self, pruning_type='row')
deepspeed/compression/basic_layer.py:296
↓ 4 callers
Method
get_module
(self, sd)
deepspeed/runtime/state_dict_factory.py:149
↓ 4 callers
Function
get_nccl_data_type
csrc/compile/deepcompile.cpp:63
↓ 4 callers
Function
get_node_shape_meta
(node: Node)
deepspeed/compile/fx.py:174
↓ 4 callers
Method
get_overlap_step_state
(self)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:639
↓ 4 callers
Method
get_pipe_parallel_group
The group of ranks within the same pipeline.
deepspeed/runtime/pipe/topology.py:424
↓ 4 callers
Method
get_sd_loader
(ckpt_list, checkpoint_engine, sd_type='Megatron', version=None)
deepspeed/runtime/state_dict_factory.py:41
↓ 4 callers
Method
get_states
Get rng states. Copy the dictionary so we have direct pointers to the states, not just a pointer to the dictionary.
deepspeed/runtime/activation_checkpointing/checkpointing.py:144
↓ 4 callers
Function
get_test_path
(filename)
tests/unit/common.py:506
↓ 4 callers
Function
get_torch_optimizer
(optimizer)
deepspeed/runtime/lr_schedules.py:268
↓ 4 callers
Method
gradient_predivide_factor
(self)
deepspeed/runtime/engine.py:1370
↓ 4 callers
Function
has_comm_dtype
(param: torch.nn.Parameter)
deepspeed/runtime/torch_autocast.py:77
↓ 4 callers
Method
has_gradients
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:63
↓ 4 callers
Method
has_space
(self, numel)
deepspeed/runtime/swap_tensor/utils.py:71
↓ 4 callers
Method
has_value
(self, name: str)
deepspeed/compile/util.py:221
↓ 4 callers
Method
include_paths
Returns list of include paths, relative to root of deepspeed package (i.e., DeepSpeed/deepspeed)
op_builder/builder.py:289
↓ 4 callers
Method
input_ids
The input ids tensor for the ragged batch. If the device Tensor is requested, the Tensor is truncated to the number of tokens in the
deepspeed/inference/v2/ragged/ragged_wrapper.py:220
↓ 4 callers
Method
insert_tensor
(self, tensor, swap_path, aligned_numel)
deepspeed/runtime/swap_tensor/utils.py:50
↓ 4 callers
Method
irecv
(self, tensor, src=None, group=None, tag=0)
deepspeed/comm/torch.py:360
↓ 4 callers
Function
is_activation_to_checkpoint
Is an activation to be checkpointed
deepspeed/runtime/activation_checkpointing/checkpointing.py:367
↓ 4 callers
Method
is_decoupled
(self)
deepspeed/runtime/checkpoint_engine/checkpoint_engine.py:50
↓ 4 callers
Function
is_deepcompile_supported
()
deepspeed/compile/util.py:31
↓ 4 callers
Function
is_moe_param_group
(param_group)
deepspeed/moe/utils.py:151
↓ 4 callers
Method
is_swappable_tensor
(self, tensor=None, numel=None)
deepspeed/runtime/swap_tensor/optimizer_utils.py:211
↓ 4 callers
Method
is_zenflow_select_boundary
(self)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:136
↓ 4 callers
Method
isend
(self, tensor, dst, group=None, tag=0)
deepspeed/comm/torch.py:356
↓ 4 callers
Method
load_hp_checkpoint_state
(self, folder, key, param=None)
deepspeed/runtime/zero/stage3.py:3445
↓ 4 callers
Method
load_universal_checkpoint
(self)
deepspeed/runtime/engine.py:1343
↓ 4 callers
Function
local_folding_ranks
(global_rank: int, spec: ParallelFoldingSpec)
deepspeed/module_inject/auto_ep_folding.py:161
↓ 4 callers
Method
log_level
(self)
deepspeed/runtime/engine.py:1346
↓ 4 callers
Function
make_cpp_batch_wrapper
deepspeed/inference/v2/kernels/ragged_ops/ragged_helpers/ragged_kernel_helpers.cpp:8
↓ 4 callers
Function
mark_autoep_folding_router_parameter
Tag a router/gate parameter as the *replicated* folded family (AVERAGE). This is the ONLY family marker applied on the live forward path today:
deepspeed/module_inject/auto_ep_folding.py:265
← previous
next →
701–800 of 11,258, ranked by callers