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
↓ 4 callers
Method
_writeback_swap_state
(self, sub_group_id, write_opt_state, write_gradients)
deepspeed/runtime/zero/stage3.py:2865
↓ 4 callers
Function
_zero12_fragment_path
(temp_dir, param_name, state_name, dp_rank)
deepspeed/checkpoint/autoep_universal.py:240
↓ 4 callers
Method
add_data
(self, pp_index, tp_index, data)
deepspeed/checkpoint/reshape_meg_2d.py:22
↓ 4 callers
Function
add_postprocess
(graph: Graph, node: Node, fn: Callable[..., Any],
deepspeed/compile/fx.py:96
↓ 4 callers
Function
align_up
csrc/deepspeed4science/evoformer_attn/gemm_kernel_utils.h:127
↓ 4 callers
Function
all_gather_dp_groups
(groups_flat, partitioned_param_groups, dp_process_group, start_alignment_factor, all
deepspeed/runtime/utils.py:1094
↓ 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:3144
↓ 4 callers
Method
apply_rotary_pos_emb
(mixed_query, key_layer, rotary_dim, offset, num_heads, rotate_half, rope_theta)
op_builder/supa/inference.py:299
↓ 4 callers
Function
args_from_dict
(tmpdir, config_dict)
tests/unit/simple_model.py:286
↓ 4 callers
Function
assert_dtype_supported
Reject dtypes DeepEP's kernels cannot dispatch.
deepspeed/module_inject/auto_ep_comm.py:64
↓ 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:1546
↓ 4 callers
Function
check_injection
(model)
tests/unit/inference/test_inference.py:249
↓ 4 callers
Method
check_using_norm
(self, norm_group, reduce_overflow=True)
deepspeed/runtime/utils.py:259
↓ 4 callers
Method
clear
Clear experiment queues, does not reset self.experiment_count
deepspeed/autotuning/scheduler.py:247
↓ 4 callers
Method
clear
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:1009
↓ 4 callers
Method
clear_grad_attribute
(self, param)
deepspeed/runtime/zero/stage_1_and_2.py:1455
↓ 4 callers
Method
clear_lp_grads
(self, set_to_none=False)
deepspeed/runtime/bf16_optimizer.py:616
↓ 4 callers
Method
close
(self)
deepspeed/io/fast_file_writer.py:94
↓ 4 callers
Function
codegen_block_layout
Which equal-sized blocks of a codegen fused-QKV weight each rank holds, in shard order. ``_codegen_type_transpose`` views the weight as ``codegen
deepspeed/module_inject/fusedqkv_utils.py:239
↓ 4 callers
Function
combine_grad_norm_groups
L2-combine per-group gradient norms without laundering the -1 invalid sentinel. Several DeepSpeed helpers replace inf/NaN group norms with -1. Co
deepspeed/runtime/utils.py:966
↓ 4 callers
Function
compare_loss
(model_cls, enable, zero_stage, model_dtype,
tests/unit/v1/zero/test_zero_autocast.py:67
↓ 4 callers
Method
compile_autotp
Determines if AutoTP is set in deepcompile's passes attributes.
deepspeed/runtime/engine.py:1626
↓ 4 callers
Function
configure_vocab_parallel_loss
Install the causal-LM loss required by a no-gather vocabulary projection. Leave ``sp_group`` as ``None`` when running under DeepSpeed's Ulysses
deepspeed/sequence/cross_entropy.py:460
↓ 4 callers
Function
convert_zero_checkpoint_to_state_dict
Convert ZeRO 2 or 3 checkpoint into a consolidated ``state_dict`` file that can be loaded with ``torch.load(file)`` + ``load_state_dict()`` a
deepspeed/utils/zero_to_fp32.py:679
↓ 4 callers
Function
copy
(tensor, source, *args, **kwargs)
tests/unit/v1/moe/test_autoep_unit.py:1855
↓ 4 callers
Function
counting_newton_schulz
Counts every Newton-Schulz call, whichever kernel the config selects. Patched inside the test body rather than in a fixture: `DistributedTest` ru
tests/unit/runtime/zero/test_muon_without_zero_optimizer.py:27
↓ 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:126
↓ 4 callers
Function
create_file
(filename, num_bytes)
deepspeed/nvme/test_ds_aio_utils.py:77
↓ 4 callers
Function
create_file
(filename, num_bytes)
csrc/aio/py_test/test_ds_aio_utils.py:77
↓ 4 callers
Function
create_filename
(folder, read_op, size, tid)
deepspeed/nvme/test_ds_aio_utils.py:72
↓ 4 callers
Function
create_filename
(folder, read_op, size, tid)
csrc/aio/py_test/test_ds_aio_utils.py:72
↓ 4 callers
Method
create_op_builder
(self, class_name)
accelerator/hpu_accelerator.py:288
↓ 4 callers
Function
create_page_locked_tensor
(num_elem, use_accelerator, aio_handle=None)
deepspeed/nvme/test_ds_aio_utils.py:85
↓ 4 callers
Function
create_page_locked_tensor
(num_elem, use_accelerator, aio_handle=None)
csrc/aio/py_test/test_ds_aio_utils.py:85
↓ 4 callers
Function
cuFileGetErrorString
csrc/gds/py_lib/deepspeed_gds_utils.h:76
↓ 4 callers
Method
curriculum_learning_enabled
(self)
deepspeed/runtime/engine.py:1446
↓ 4 callers
Function
debug_clear_module_and_param_names
()
deepspeed/utils/debug.py:66
↓ 4 callers
Function
debug_extract_module_and_param_names
(model)
deepspeed/utils/debug.py:71
↓ 4 callers
Function
debug_module2name
(module)
deepspeed/utils/debug.py:81
↓ 4 callers
Method
delete
(self, rel: str)
ci/test_tests_fetcher.py:102
↓ 4 callers
Method
dequantize
(self, tensor: Tensor, quant_scale: Tensor, quant_min: Tensor)
deepspeed/inference/quantization/utils.py:110
↓ 4 callers
Method
dequantized
Return a tensor containing the dequantized weights of this parameter.
deepspeed/linear/quantization.py:67
↓ 4 callers
Method
destroy_process_group
(self, group=None)
deepspeed/comm/torch.py:595
↓ 4 callers
Method
device_count
(self)
tests/unit/v1/moe/test_autoep_unit.py:903
↓ 4 callers
Function
dp_index_to_str
(dp_index)
deepspeed/checkpoint/ds_to_universal.py:214
↓ 4 callers
Function
duration_to_string
(duration, units=None, precision=DEFAULT_PRECISION)
deepspeed/profiling/flops_profiler/profiler.py:1174
↓ 4 callers
Method
expert_affine_maps
Return the affine map of each live expert parameter (``w1``, ``w2``, ``w3``). Map ranks are EP-local ranks; translate them with ``dist.get_gl
deepspeed/module_inject/auto_ep_layer.py:793
↓ 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:315
↓ 4 callers
Function
f
(size)
deepspeed/compile/profilers/comm_profile.py:146
↓ 4 callers
Function
find_node_by_name
(gm: GraphModule, name: str)
deepspeed/compile/fx.py:178
↓ 4 callers
Method
flatten_dense_tensors_aligned
(self, tensor_list, alignment, use_cpu_data=False, param_padding=None)
deepspeed/runtime/zero/stage_1_and_2.py:1497
↓ 4 callers
Method
flops_profiler_profile_step
(self)
deepspeed/runtime/engine.py:1499
↓ 4 callers
Method
forward
(self, x, y)
tests/unit/v1/zero/test_zero.py:471
↓ 4 callers
Method
forward
(self, *_args)
tests/unit/module_inject/test_auto_ep_comm.py:584
↓ 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_meta
(cls, meta, local_part, group, device=get_accelerator().device_name())
deepspeed/runtime/utils.py:757
↓ 4 callers
Method
gen_output_name
(self, test_config, prefix, baseline_config=False)
tests/model/Megatron_GPT2/test_common.py:21
↓ 4 callers
Method
getSendBuf
csrc/includes/deepcompile.h:128
↓ 4 callers
Function
get_all_subclasses
(cls, include_root=True)
deepspeed/runtime/zero/partition_parameters.py:292
↓ 4 callers
Function
get_allgather_dtype
(param, param_ds_tensor)
deepspeed/runtime/zero/partition_parameters.py:56
↓ 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_cuda_rng_tracker
Get cuda rng tracker.
deepspeed/runtime/activation_checkpointing/checkpointing.py:206
↓ 4 callers
Function
get_deepspeed_model
(model)
tests/unit/v1/autotp/test_configurable_parallel_mp.py:23
↓ 4 callers
Method
get_difficulty
(self, global_steps)
deepspeed/runtime/data_pipeline/curriculum_scheduler.py:139
↓ 4 callers
Function
get_files
(dir)
deepspeed/checkpoint/reshape_utils.py:34
↓ 4 callers
Function
get_global_norm
Compute total from a list of norms
deepspeed/runtime/utils.py:347
↓ 4 callers
Function
get_gpt2_model
(args_others, mp_size=1)
tests/unit/megatron_model.py:24
↓ 4 callers
Function
get_group
(gid: int)
deepspeed/compile/custom_ops/sp_dp_registry.py:18
↓ 4 callers
Method
get_last_profile
Return the most recent profiling snapshot for this rollout instance.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1363
↓ 4 callers
Function
get_last_uses
(graph: Graph)
deepspeed/compile/util.py:251
↓ 4 callers
Method
get_module
(self, sd)
deepspeed/runtime/state_dict_factory.py:148
↓ 4 callers
Function
get_nccl_data_type
csrc/compile/deepcompile.cpp:65
↓ 4 callers
Function
get_no_copy_ops
()
deepspeed/compile/util.py:92
↓ 4 callers
Method
get_overlap_step_state
(self)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:669
↓ 4 callers
Method
get_pipe_parallel_group
The group of ranks within the same pipeline.
deepspeed/runtime/pipe/topology.py:422
↓ 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_sequence_parallel_group
(self)
deepspeed/runtime/engine.py:1487
↓ 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:154
↓ 4 callers
Method
get_text_config
(self, **_kwargs)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:296
↓ 4 callers
Function
get_torch_optimizer
(optimizer)
deepspeed/runtime/lr_schedules.py:293
↓ 4 callers
Function
has_comm_dtype
(param: torch.nn.Parameter)
deepspeed/runtime/torch_autocast.py:77
↓ 4 callers
Function
has_inf_or_nan
Whether ``x`` contains any NaN or infinity, as a scalar tensor on ``x``'s device. Reduces before testing rather than testing elementwise: ``max``
deepspeed/runtime/utils.py:211
↓ 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:219
↓ 4 callers
Method
include_paths
Returns list of include paths, relative to root of deepspeed package (i.e., DeepSpeed/deepspeed)
op_builder/builder.py:307
↓ 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
is_decoupled
(self)
deepspeed/runtime/checkpoint_engine/checkpoint_engine.py:50
↓ 4 callers
Method
is_deepcompile_active
(self)
tests/unit/v1/compile/test_z3_eager_fallback.py:165
↓ 4 callers
Method
is_first_stage
True if the configured ``stage_id`` is the first stage in the pipeline.
deepspeed/runtime/pipe/schedule.py:102
↓ 4 callers
Method
is_graph_capture_supported
(self)
accelerator/npu_accelerator.py:250
↓ 4 callers
Function
is_moe_param_group
(param_group)
deepspeed/moe/utils.py:152
↓ 4 callers
Method
is_parameter
(self, parameter)
deepspeed/runtime/swap_tensor/pipelined_optimizer_swapper.py:31
↓ 4 callers
Function
is_release_node
(n: Node)
deepspeed/compile/util.py:454
↓ 4 callers
Method
is_zenflow_select_boundary
(self)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:159
↓ 4 callers
Method
isend
(self, tensor, dst, group=None, tag=0)
deepspeed/comm/torch.py:523
← previous
next →
1,101–1,200 of 14,579, ranked by callers