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
↓ 2 callers
Function
validate_folding_global
Validate global folding policy before any process group is created. ``offload_optimizer_device`` and ``offload_param_device`` are the ZeRO offloa
deepspeed/module_inject/auto_ep_folding.py:184
↓ 2 callers
Function
validate_repository
(value: str)
ci/torch_latest.py:308
↓ 2 callers
Function
validate_sha
(value: str)
ci/torch_latest.py:314
↓ 2 callers
Function
validate_tensor
(model, api_type, opt_states)
tests/unit/runtime/zero/test_zero_tensor_fragment.py:61
↓ 2 callers
Function
validate_vocab_parallel_loss
Check hook replacement before partitioning weights, then restore the original loss.
deepspeed/sequence/cross_entropy.py:451
↓ 2 callers
Function
vocab_sequence_parallel_cross_entropy
Sequence-parallel wrapper preserving the legacy local-slice gradient.
deepspeed/sequence/cross_entropy.py:276
↓ 2 callers
Method
wait
(self)
deepspeed/module_inject/auto_ep_layer.py:79
↓ 2 callers
Function
wait_buffer_state_until_2
csrc/cpu/comm/shm.cpp:114
↓ 2 callers
Function
wait_for_ssm_command
( instance: AwsInstance, command_id: str, phase: str, timeout_seconds: int, run_command: A
ci/torch_latest.py:1476
↓ 2 callers
Method
wait_last_update_and_copy
(self)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:710
↓ 2 callers
Function
within_range
(val, target, tolerance)
tests/unit/profiling/flops_profiler/test_flops_profiler.py:21
↓ 2 callers
Method
world_size
(self)
deepspeed/runtime/pipe/topology.py:210
↓ 2 callers
Function
wrap_if_ds_param
(t)
deepspeed/compile/patch_fake_tensor.py:23
↓ 2 callers
Function
wrapped_fn
(*args, **kwargs)
deepspeed/utils/nvtx.py:30
↓ 2 callers
Function
wrapper
(requests)
tests/unit/checkpoint/test_affine_replica_policy.py:128
↓ 2 callers
Method
zeMemFree
(self, context, address)
tests/unit/v1/pin_memory/test_pin_memory.py:233
↓ 2 callers
Method
zenflow_config
(self)
deepspeed/runtime/engine.py:1830
↓ 2 callers
Function
zero3_partitioned_param_info
(unpartitioned_numel, world_size)
deepspeed/utils/zero_to_fp32.py:421
↓ 2 callers
Method
zero_allgather_bucket_size
(self)
deepspeed/runtime/engine.py:1640
↓ 2 callers
Method
zero_compute_grad_norm
(self)
deepspeed/runtime/engine.py:1643
↓ 2 callers
Method
zero_elastic_checkpoint
(self)
deepspeed/runtime/engine.py:1664
↓ 2 callers
Function
zero_optimizer_storage_affine_maps
Describe where ZeRO keeps the fp32 master copy and optimizer states of each of ``params``. Returns one map per parameter, in order, or ``None`` f
deepspeed/checkpoint/zero_affine.py:165
↓ 2 callers
Function
zero_optimizer_storage_shard
This rank's shard of the fp32 master copy of ``param``, or of its ``optim_state_key`` state. The shard is a flat view of ZeRO's storage, laid out
deepspeed/checkpoint/zero_affine.py:219
↓ 2 callers
Method
zero_overlap_comm
(self)
deepspeed/runtime/engine.py:1584
↓ 2 callers
Method
zero_quantized_gradients
(self)
deepspeed/runtime/engine.py:1797
↓ 2 callers
Method
zero_quantized_weights
(self)
deepspeed/runtime/engine.py:1791
↓ 2 callers
Method
zero_reduce_bucket_size
(self)
deepspeed/runtime/engine.py:1634
↓ 1 callers
Function
Assign_32_FP6_To_4_Thread
dealing with 4 1*8 blocks of FP6
deepspeed/inference/v2/kernels/core_ops/cuda_linear/include/weight_prepacking.h:49
↓ 1 callers
Method
Backward
csrc/transformer/ds_transformer_cuda.cpp:302
↓ 1 callers
Method
BackwardFusedAdd
csrc/includes/normalize_layer.h:138
↓ 1 callers
Function
BitInterleaving_2bit
deepspeed/inference/v2/kernels/core_ops/cuda_linear/include/weight_prepacking.h:98
↓ 1 callers
Function
BitInterleaving_4bit
deepspeed/inference/v2/kernels/core_ops/cuda_linear/include/weight_prepacking.h:117
↓ 1 callers
Function
Extract_2_Bits_From_4_PaddedFP6
deepspeed/inference/v2/kernels/core_ops/cuda_linear/include/weight_prepacking.h:28
↓ 1 callers
Function
Extract_4_Bits_From_2_PaddedFP6
deepspeed/inference/v2/kernels/core_ops/cuda_linear/include/weight_prepacking.h:38
↓ 1 callers
Method
ForwardCheckpoint
csrc/includes/normalize_layer.h:49
↓ 1 callers
Method
ForwardWithBias
csrc/includes/dropout.h:36
↓ 1 callers
Method
GenWorkSpace
csrc/transformer/inference/includes/inference_context.h:102
↓ 1 callers
Method
GetAttentionUnfusedWorkspace
csrc/transformer/inference/includes/inference_context.h:201
↓ 1 callers
Function
GetCuErrorString
cuda driver error description
csrc/gds/py_lib/deepspeed_gds_utils.h:61
↓ 1 callers
Method
GetHiddenDim
csrc/transformer/inference/includes/inference_context.h:195
↓ 1 callers
Method
GetNumLayers
csrc/transformer/inference/includes/inference_context.h:193
↓ 1 callers
Method
GetWorkSpace
()
op_builder/npu/inference.py:73
↓ 1 callers
Method
HasDropout
csrc/includes/dropout.h:63
↓ 1 callers
Function
Padding_8_FP6_To_8_Bytes
deepspeed/inference/v2/kernels/core_ops/cuda_linear/include/weight_prepacking.h:15
↓ 1 callers
Method
SetConfig
csrc/includes/strided_batch_gemm.h:199
↓ 1 callers
Method
SetDim
csrc/includes/dropout.h:23
↓ 1 callers
Method
SetDimension
csrc/includes/dropout.h:76
↓ 1 callers
Method
SetMask
csrc/includes/dropout.h:67
↓ 1 callers
Method
SetMean
csrc/includes/normalize_layer.h:196
↓ 1 callers
Method
SetSeed
csrc/transformer/inference/includes/inference_context.h:259
↓ 1 callers
Method
SetTrainingMode
csrc/transformer/ds_transformer_cuda.cpp:557
↓ 1 callers
Method
SetVar
csrc/includes/normalize_layer.h:190
↓ 1 callers
Method
Step_8
csrc/adagrad/cpu_adagrad.cpp:106
↓ 1 callers
Method
Step_8
csrc/xpu/adagrad/cpu_adagrad.cpp:118
↓ 1 callers
Method
Step_8
csrc/lion/cpu_lion_impl.cpp:121
↓ 1 callers
Method
Step_8
csrc/adam/cpu_adam_impl.cpp:159
↓ 1 callers
Method
SynchComm
csrc/transformer/inference/includes/inference_context.h:268
↓ 1 callers
Method
TestAlgo
csrc/includes/gemm_test.h:53
↓ 1 callers
Method
TestGemmFP16
csrc/includes/context.h:106
↓ 1 callers
Method
__add_grad_to_ipg_bucket
(self, param: Parameter)
deepspeed/runtime/zero/stage3.py:1697
↓ 1 callers
Method
__all_gather_params
(self, params: Set[Parameter], forward: bool)
deepspeed/runtime/zero/partitioned_param_coordinator.py:569
↓ 1 callers
Method
__all_gather_params_
for each partitioned parameter, kick off an async allgather and store the work handle for the in flight parameters.
deepspeed/runtime/zero/partitioned_param_coordinator.py:582
↓ 1 callers
Method
__avg_scatter_contiguous_grads
(self, buffer_to_reduce: Tensor, communication_data_type: torch.dtype)
deepspeed/runtime/zero/stage3.py:1942
↓ 1 callers
Method
__avg_scatter_grads
average gradients and scatter partitions across ranks
deepspeed/runtime/zero/stage3.py:1993
↓ 1 callers
Function
__best_fitting_dtype
(vocab_size=None)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:33
↓ 1 callers
Method
__check_params
(model: Module, dtype: torch.dtype)
deepspeed/runtime/engine.py:2136
↓ 1 callers
Method
__del__
(self)
tests/unit/v1/compile/test_graph_profile.py:93
↓ 1 callers
Method
__enter__
(self)
deepspeed/runtime/activation_checkpointing/offload_activations.py:471
↓ 1 callers
Method
__fixed_discrete_get_difficulty
(self, global_steps)
deepspeed/runtime/data_pipeline/curriculum_scheduler.py:109
↓ 1 callers
Method
__fixed_root_get_difficulty
(self, global_steps, root_degree=None)
deepspeed/runtime/data_pipeline/curriculum_scheduler.py:117
↓ 1 callers
Method
__fixed_root_get_value
(self, global_steps, root_degree=None)
deepspeed/runtime/data_pipeline/data_routing/scheduler.py:19
↓ 1 callers
Method
__init__
(self)
ci/test_torch_latest.py:292
↓ 1 callers
Method
__init__
(self, num_classes=10)
tests/unit/alexnet_model.py:22
↓ 1 callers
Method
__init__
(self, answer)
tests/unit/ops/test_op_builder.py:366
↓ 1 callers
Method
__init__
(self, dim=8)
tests/unit/utils/test_debug_name_maps.py:30
↓ 1 callers
Method
__init__
(self, hidden_dim)
tests/unit/checkpoint/test_zero_affine.py:357
↓ 1 callers
Method
__init__
(self)
tests/unit/checkpoint/test_convert_checkpoint.py:198
↓ 1 callers
Method
__init__
(self, local_heads)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:26
↓ 1 callers
Method
__init__
(self)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:42
↓ 1 callers
Method
__init__
(self)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:15
↓ 1 callers
Method
__init__
(self, checkpointing)
tests/unit/v1/zero/test_zero3_nvme_param_prefetch.py:37
↓ 1 callers
Method
__init__
(self, seq_dim, vocab_size=64, hidden=32, num_heads=2)
tests/unit/v1/compile/test_compile_autosp.py:94
↓ 1 callers
Method
__init__
(self)
tests/unit/v1/moe/test_autoep_autotp_runtime.py:98
↓ 1 callers
Method
__init__
(self)
tests/unit/v1/moe/test_autoep_expert_activation.py:672
↓ 1 callers
Method
__init__
(self, checkpoint_enabled, model_layout="nested")
tests/unit/v1/moe/test_autoep_grad_parity.py:201
↓ 1 callers
Method
__init__
(self, hidden_dim, proj_dim, num_kv_heads)
tests/unit/v1/autotp/test_autotp_multiple_models.py:59
↓ 1 callers
Method
__init__
(self, hidden_size=64)
tests/unit/v1/autotp/test_tp_plan_e2e.py:39
↓ 1 callers
Method
__init__
(self, tp_world_size)
tests/unit/runtime/test_data_efficiency.py:20
↓ 1 callers
Method
__init__
(self, hidden=HIDDEN)
tests/unit/runtime/zero/test_zero_numel_param_shape.py:81
↓ 1 callers
Method
__init__
(self, hidden_dim)
tests/unit/runtime/zero/test_zero_hook_attribute_delegation.py:32
↓ 1 callers
Method
__init__
(self, hidden_dim, frozen_weights)
tests/unit/runtime/zero/test_zero_tensor_fragment.py:83
↓ 1 callers
Method
__init__
(self, layer_index)
tests/unit/runtime/zero/test_autoep_zero3_init.py:21
↓ 1 callers
Method
__init__
(self)
tests/unit/runtime/zero/test_zero_dynamic_class.py:23
↓ 1 callers
Method
__init__
(self, hidden_size)
tests/unit/runtime/pipe/test_pipe.py:204
↓ 1 callers
Method
__init__
(self, dense_params, sparse_params)
tests/unit/runtime/sparse_tensor/test_averaging_sparse_gradients.py:30
↓ 1 callers
Method
__init__
(self, dense_params, sparse_params)
tests/unit/runtime/sparse_tensor/test_sparse_grads.py:30
↓ 1 callers
Method
__init__
(self, non_tensor_output)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:276
↓ 1 callers
Method
__init__
(self, hidden_dim, vocab_size)
tests/unit/ulysses_alst/test_tiled_compute.py:47
↓ 1 callers
Method
__init__
(self, output)
tests/unit/module_inject/test_auto_ep_comm.py:579
↓ 1 callers
Method
__init__
(self, split_size)
tests/unit/module_inject/test_fused_repartition.py:59
← previous
next →
3,001–3,100 of 14,579, ranked by callers