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
cxx_args
(self)
op_builder/mps/cpu_adam.py:48
↓ 1 callers
Method
cxx_args
(self)
op_builder/klxpu/builder.py:29
↓ 1 callers
Method
cxx_args
(self)
op_builder/sdaa/builder.py:56
↓ 1 callers
Method
cxx_args
(self)
op_builder/hpu/builder.py:33
↓ 1 callers
Method
cxx_args
(self)
op_builder/supa/builder.py:28
↓ 1 callers
Method
cxx_args
(self)
op_builder/mlu/builder.py:31
↓ 1 callers
Method
data_efficiency_config
(self)
deepspeed/runtime/engine.py:1490
↓ 1 callers
Method
data_sampling_config
(self)
deepspeed/runtime/engine.py:1496
↓ 1 callers
Method
dataloader_drop_last
(self)
deepspeed/runtime/engine.py:2954
↓ 1 callers
Function
dataloader_for_variable_batch_size
( dataset, microbatch_ids, batch_max_seqlens, dataloader_rank=0, dataloader_batch_size=1,
deepspeed/runtime/data_pipeline/data_sampling/variable_batch_size_and_lr.py:165
↓ 1 callers
Function
debug_param2name_id
(param)
deepspeed/utils/debug.py:117
↓ 1 callers
Function
debug_param2name_id_shape_status
(param)
deepspeed/utils/debug.py:133
↓ 1 callers
Function
debug_rank0
(msg: str)
deepspeed/runtime/zero/partition_parameters.py:132
↓ 1 callers
Function
debug_report
()
deepspeed/env_report.py:133
↓ 1 callers
Function
deconcat_individual_tensors
(shape_wieght: torch.Size, shape_scale: torch.Size, shape_min: torch.Size)
deepspeed/inference/quantization/utils.py:202
↓ 1 callers
Function
decorator
(func)
deepspeed/runtime/compiler.py:79
↓ 1 callers
Function
deepcompile_backward_epilogue
()
deepspeed/compile/util.py:81
↓ 1 callers
Function
deepcompile_backward_prologue
(is_gradient_accumulation_boundary)
deepspeed/compile/util.py:72
↓ 1 callers
Function
deepep_combine
(exchange: DeepEPExchange, rows: torch.Tensor, handle)
deepspeed/module_inject/auto_ep_comm.py:607
↓ 1 callers
Function
deepep_dispatch
Dispatch tokens and their routing weights, keeping both differentiable. ``weight_grad_slot`` and ``expert_weights`` overlap the backward: the exp
deepspeed/module_inject/auto_ep_comm.py:579
↓ 1 callers
Function
deepep_record_combine
Record :func:`deepep_combine`'s backward without running the combine; the result is all NaN.
deepspeed/module_inject/auto_ep_comm.py:611
↓ 1 callers
Method
default_cache_dir
()
deepspeed/ops/transformer/inference/triton/matmul_ext.py:64
↓ 1 callers
Method
default_generator
(self, device_index)
accelerator/hpu_accelerator.py:97
↓ 1 callers
Function
defragment
move provided tensors into a contiguous flat buffer, with some additional measures taken to reduce memory fragmentation
deepspeed/runtime/zero/utils.py:224
↓ 1 callers
Method
dequantize_int4_to_half_experimental
Unpack the inference int4 wire format and dequantize to fp16. Each byte holds two unsigned 4-bit values: the high nibble is the even
op_builder/npu/quantizer.py:317
↓ 1 callers
Method
dequantize_int8_to_half_experimental
Dequantize the inference int8 wire format to fp16.
op_builder/npu/quantizer.py:333
↓ 1 callers
Method
dest_offsets
Yield the offset into the shard of every element this piece covers.
deepspeed/checkpoint/affine.py:113
↓ 1 callers
Method
destroy
(self)
deepspeed/inference/engine.py:191
↓ 1 callers
Method
destroy
Release the buffer. Collective, so every rank must call it.
deepspeed/module_inject/auto_ep_comm.py:384
↓ 1 callers
Method
device
(self, device_index)
accelerator/mps_accelerator.py:53
↓ 1 callers
Method
device
(self, device_index)
accelerator/abstract_accelerator.py:40
↓ 1 callers
Method
device_name
(self, device_index=None)
accelerator/supa_accelerator.py:34
↓ 1 callers
Method
device_name
(self, device_index=None)
accelerator/sdaa_accelerator.py:66
↓ 1 callers
Method
device_name
(self, device_index=None)
accelerator/cpu_accelerator.py:195
↓ 1 callers
Method
device_name
(self, device_index=None)
accelerator/mlu_accelerator.py:36
↓ 1 callers
Method
device_name
(self, device_index=None)
accelerator/npu_accelerator.py:70
↓ 1 callers
Method
device_name
(self, device_index=None)
accelerator/xpu_accelerator.py:202
↓ 1 callers
Method
device_name
(self, device_index=None)
accelerator/cuda_accelerator.py:64
↓ 1 callers
Function
dfs
(node: Node)
deepspeed/compile/list_schedule.py:237
↓ 1 callers
Function
dict_to_dims
(tuning_space)
deepspeed/autotuning/tuner/utils.py:30
↓ 1 callers
Method
direct_injection
(self, name: str, tensor: InferenceParameter)
deepspeed/inference/v2/model_implementations/layer_container_base.py:264
↓ 1 callers
Function
disable_accelerator
()
deepspeed/runtime/zenflow/zenflow_utils.py:55
↓ 1 callers
Function
dispatch_mask
(logits)
tests/unit/v1/moe/test_moe.py:534
↓ 1 callers
Method
dispatch_with_handle
Replay a dispatch against a cached handle. Used as the backward of a combine, which scatters the combined gradient back to the rows t
deepspeed/module_inject/auto_ep_comm.py:295
↓ 1 callers
Function
distributed_naive_reduce
naive allreduce distributed, each rank do naive reduce on its slice
csrc/cpu/comm/shm.cpp:570
↓ 1 callers
Function
distribution
Count, sum and order statistics, with nearest-rank percentiles. Empty input has the same keys, with ``None`` for the order statistics and the mea
deepspeed/checkpoint/affine_transfer_analysis.py:200
↓ 1 callers
Method
domino_core_attention_forward
(self, mixed_x_layer, attention_mask, rotary_pos_emb=None)
deepspeed/runtime/domino/transformer.py:195
↓ 1 callers
Method
drain
(self, num_bytes, fd, file_offset)
deepspeed/io/base_io_buffer.py:19
↓ 1 callers
Function
drain_cp_asyncs
csrc/deepspeed4science/evoformer_attn/gemm/mma_from_smem.h:509
↓ 1 callers
Function
drop_some_gradients
(model, iter)
tests/unit/v1/zero/test_zero.py:257
↓ 1 callers
Function
drop_tokens
(input_, dim=0)
deepspeed/moe/mappings.py:113
↓ 1 callers
Function
ds_adam_copy_supported
csrc/adam/cpu_adam_impl.cpp:287
↓ 1 callers
Function
ds_adam_grad_scale_supported
csrc/adam/cpu_adam_impl.cpp:304
↓ 1 callers
Function
ds_adam_step_scaled
csrc/adam/cpu_adam_impl.cpp:375
↓ 1 callers
Function
ds_implementation
(vals, gamma, beta, epsilon)
tests/unit/ops/transformer/inference/test_layer_norm.py:33
↓ 1 callers
Function
ds_implementation
(vals, gamma, epsilon)
tests/unit/ops/transformer/inference/test_rms_norm.py:29
↓ 1 callers
Function
ds_io_main
()
deepspeed/nvme/test_ds_aio.py:14
↓ 1 callers
Function
ds_layer_norm_internal
csrc/transformer/inference/csrc/pt_binding.cpp:764
↓ 1 callers
Function
ds_lion_step
csrc/lion/cpu_lion_impl.cpp:192
↓ 1 callers
Function
ds_page_aligned_alloc
csrc/pin_memory/page_alloc.cpp:14
↓ 1 callers
Function
ds_triton_implementation
(vals, gamma, beta, epsilon)
tests/unit/ops/transformer/inference/test_layer_norm.py:37
↓ 1 callers
Method
dump_state
(self)
deepspeed/runtime/engine.py:1862
↓ 1 callers
Method
dynamic_loss_scale_args
(self)
deepspeed/runtime/precision_config.py:202
↓ 1 callers
Function
dynamo_counter_text
()
tests/torch_compile/test_deepcompile_skipped_frame.py:29
↓ 1 callers
Method
early_initialization
( self, batch_size: int, num_heads: int, head_dim: int, dtype: torch.d
deepspeed/utils/static_cache.py:390
↓ 1 callers
Method
elastic_buffer
(self)
tests/unit/module_inject/test_auto_ep_comm.py:771
↓ 1 callers
Function
empty_cache
()
deepspeed/runtime/utils.py:885
↓ 1 callers
Method
empty_partition_cache
(self)
deepspeed/runtime/zero/stage3.py:4286
↓ 1 callers
Method
enable
< CUTLASS_HOST_DEVICE enables all accesses guarded by mask
csrc/deepspeed4science/evoformer_attn/iterators/epilogue_predicated_tile_iterator.h:158
↓ 1 callers
Function
enable_grads
(model)
tests/unit/v1/zero/test_zero.py:262
↓ 1 callers
Function
enable_symm_mem_for_group
(group_name: str)
deepspeed/comm/comm.py:827
↓ 1 callers
Method
endBackward
csrc/compile/z2.cpp:33
↓ 1 callers
Method
endForward
csrc/includes/deepcompile.h:491
↓ 1 callers
Method
end_document
(self)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:290
↓ 1 callers
Method
ensure_directory_exists
(self, filename)
tests/model/BingBertSquad/BingBertSquad_test_common.py:38
↓ 1 callers
Method
ensure_directory_exists
(self, filename)
tests/model/Megatron_GPT2/test_common.py:44
↓ 1 callers
Method
ensure_kv_buffer
Grow-on-demand KV buffer stored in the layout npu_fusion_attention consumes. The buffer keeps K/V as [bsz, cap, num_kv_heads * head_dim]: a d
op_builder/npu/inference.py:77
↓ 1 callers
Method
enter_backward
Enter backward context. Call at the start of backward pass.
deepspeed/runtime/base_optimizer.py:139
↓ 1 callers
Function
env_mapping
(env, rank_name_list=None, local_rank_name_list=None)
deepspeed/launcher/launcher_helper.py:55
↓ 1 callers
Function
err
(s: str)
scripts/check-torchdist.py:18
↓ 1 callers
Function
err
(s: str)
scripts/check-extraindexurl.py:18
↓ 1 callers
Function
err
(s: str)
scripts/check-torchcuda.py:18
↓ 1 callers
Function
err
(s: str)
scripts/check-license.py:17
↓ 1 callers
Function
estimate_zero2_model_states_mem_needs
(total_params, num_gpus_per_node=1,
deepspeed/runtime/zero/stage_1_and_2.py:4175
↓ 1 callers
Function
estimate_zero2_model_states_mem_needs_all_cold
Print out estimates on memory usage requirements for ZeRO 2 params, optim states and gradients for a given ``model`` and hardware setup.
deepspeed/runtime/zero/stage_1_and_2.py:4231
↓ 1 callers
Function
estimate_zero3_model_states_mem_needs
(total_params, largest_layer_params,
deepspeed/runtime/zero/stage3.py:4488
↓ 1 callers
Function
estimate_zero3_model_states_mem_needs_all_cold
Print out estimates on memory usage requirements for ZeRO 3 params, optim states and gradients for a given ``model`` and hardware setup.
deepspeed/runtime/zero/stage3.py:4571
↓ 1 callers
Function
evaluate_symint_from_shape_env
(sym_int_v)
deepspeed/compile/backend.py:173
↓ 1 callers
Function
exclude_unsupported_gds_targets
Remove explicit GDS targets from runners without GPUDirect Storage.
ci/torch_latest.py:219
↓ 1 callers
Method
experiment_check
(self, pbar)
deepspeed/autotuning/scheduler.py:111
↓ 1 callers
Method
expert_exec
(self, dispatched_input)
deepspeed/ops/transformer/inference/moe_inference.py:241
↓ 1 callers
Method
explain
Human-readable trace of why each test was selected (#7).
ci/tests_fetcher.py:595
↓ 1 callers
Function
exscan_from_cumsum_
(arr)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:337
↓ 1 callers
Function
external_parameters
(self)
deepspeed/runtime/zero/partition_parameters.py:141
↓ 1 callers
Method
extra_ldflags
(self)
op_builder/mps/cpu_adam.py:58
↓ 1 callers
Method
extra_ldflags
(self)
op_builder/klxpu/async_io.py:45
↓ 1 callers
Method
extra_ldflags
(self)
op_builder/xpu/builder.py:103
↓ 1 callers
Method
extra_ldflags
(self)
op_builder/supa/async_io.py:45
↓ 1 callers
Function
extract_mesh_size
(param_dict)
deepspeed/compile/custom_ops/sp_dp_registry.py:30
↓ 1 callers
Function
extract_value
(key, file)
deepspeed/nvme/parse_nvme_stats.py:36
← previous
next →
4,901–5,000 of 15,468, ranked by callers