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
deepep_dispatch
Dispatch tokens and their routing weights, keeping both differentiable. ``replay`` is the calling layer's record of its forward dispatches, which
deepspeed/module_inject/auto_ep_comm.py:517
↓ 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:215
↓ 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:109
↓ 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:372
↓ 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
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:254
↓ 1 callers
Function
drop_tokens
(input_, dim=0)
deepspeed/moe/mappings.py:113
↓ 1 callers
Function
ds_adam_step
csrc/adam/cpu_adam_impl.cpp:251
↓ 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:1809
↓ 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:304
↓ 1 callers
Method
elastic_buffer
(self)
tests/unit/module_inject/test_auto_ep_comm.py:753
↓ 1 callers
Function
empty_cache
()
deepspeed/runtime/utils.py:885
↓ 1 callers
Method
empty_partition_cache
(self)
deepspeed/runtime/zero/stage3.py:3948
↓ 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:259
↓ 1 callers
Function
enable_symm_mem_for_group
(group_name: str)
deepspeed/comm/comm.py:819
↓ 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:4135
↓ 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:4191
↓ 1 callers
Function
estimate_zero3_model_states_mem_needs
(total_params, largest_layer_params,
deepspeed/runtime/zero/stage3.py:4150
↓ 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:4233
↓ 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:589
↓ 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:46
↓ 1 callers
Method
extra_ldflags
(self)
op_builder/xpu/builder.py:103
↓ 1 callers
Method
extra_ldflags
(self)
op_builder/supa/async_io.py:46
↓ 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
↓ 1 callers
Function
extract_value
(key, file)
csrc/aio/py_test/parse_aio_stats.py:36
↓ 1 callers
Function
extract_zero_shards_stage3
(optim_files_grid, param_shapes_grid, dp_degree,
deepspeed/checkpoint/ds_to_universal.py:168
↓ 1 callers
Function
f_gelu
(x)
tests/unit/modeling.py:47
↓ 1 callers
Function
f_gelu
(x)
tests/unit/modelingpreln.py:46
↓ 1 callers
Function
fallback_handler_no_reuse
(kernel, never_reuse_input, never_reuse_ou
deepspeed/compile/inductor.py:230
↓ 1 callers
Function
fetch_hostfile
(hostfile_path)
deepspeed/launcher/runner.py:212
↓ 1 callers
Function
fetch_requirements
(path)
setup.py:58
↓ 1 callers
Method
file_write_ordered
MPI_file_write_ordered extended to write a list of tensors, by one rank, iteratively
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:670
↓ 1 callers
Method
fileno
(self)
deepspeed/io/py_file_writer.py:21
↓ 1 callers
Method
fill_grad_accum_attribute
(self)
deepspeed/runtime/zero/stage_1_and_2.py:1282
↓ 1 callers
Function
fill_indices_wrapper
Launch the Triton kernel to fill permutation indices. Falls back to :func:`fill_indices_cpu` when Triton is unavailable.
deepspeed/moe/ep_kernels.py:104
↓ 1 callers
Method
filter_ccs
Prune any compute capabilities that are not compatible with the builder. Should log which CCs have been pruned.
op_builder/builder.py:826
↓ 1 callers
Method
filter_ccs
Keep only Tensor Core capable targets (>= 7.0).
op_builder/evoformer_attn.py:44
↓ 1 callers
Method
finalize
Finalize the parameter after all of its source parameters have been set. This method will be automatically called when all inputs hav
deepspeed/inference/v2/model_implementations/parameter_base.py:144
↓ 1 callers
Method
finalize
(self, index_file)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:316
↓ 1 callers
Method
finalize_metric_results
(self, metric_types, metric_dtypes, metric_results)
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:132
↓ 1 callers
Function
find_del_key
(d: dict, k: str)
deepspeed/autotuning/utils.py:243
↓ 1 callers
Function
find_dtype
(module)
tests/unit/inference/test_checkpoint_sharding.py:33
↓ 1 callers
Method
find_estimated_top_configs
Use the cost model to predict the estimated performance of configurations and find the top ones for the next round of evaluation
deepspeed/autotuning/tuner/model_based_tuner.py:58
↓ 1 callers
Function
find_replace_str
(value, replace_dict)
deepspeed/autotuning/utils.py:41
↓ 1 callers
Method
fini
(self)
deepspeed/nvme/torch_io.py:19
↓ 1 callers
Method
fini
(self)
csrc/aio/py_test/torch_io.py:19
↓ 1 callers
Method
finish
csrc/aio/py_lib/deepspeed_cpu_op.cpp:43
← previous
next →
4,601–4,700 of 14,579, ranked by callers