MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

Functionmoe_scatter
Performs a cumsum on the expert counts and copies the hidden states to the appropriate spot to ensure that each experts inputs are contiguous. */
deepspeed/inference/v2/kernels/ragged_ops/moe_scatter/moe_scatter.cpp:30
Methodmomentum_halves
(calm, boom) slices of the group's flat momentum buffer, in parameter order.
tests/unit/v1/ops/muon/test_muon_overflow.py:170
Functionmonitored_barrier
(group=None, timeout=None, wait_all_ranks=False,
deepspeed/comm/comm.py:473
Methodmonitored_barrier
(self, group=torch.distributed.GroupMember.WORLD, timeout=None, wait_all_ranks=False)
deepspeed/comm/torch.py:564
Methodmove_flat_partition
(self, device, non_blocking=False)
deepspeed/runtime/zero/stage_1_and_2.py:149
Functionmove_opt_states
(gm: GraphModule, graph_id: int, graph_order: List[Tuple[int, bool]], profiling_results, c
deepspeed/compile/passes/offload_adam_states.py:584
Functionmove_opt_states_sync
(gm: GraphModule, graph_id: int, graph_order: List[Tuple[int, bool]], profiling_results,
deepspeed/compile/passes/offload_adam_states.py:591
Functionmove_to_cpu
(tensor_list)
deepspeed/runtime/zero/stage3.py:84
Functionmulti_tensor_adam
csrc/cpu/adam/fused_adam.cpp:10
Methodmulti_tensor_adam
(chunk_size, noop_flag_buffer, tensor_lists, lr, beta1, beta2, epsilon, step, adam_w_mode,
op_builder/npu/fused_adam.py:18
Methodmulti_tensor_adam
(chunk_size, noop_flag_buffer, tensor_lists, lr, beta1, beta2, epsilon, step, adam_w_mode,
op_builder/klxpu/fused_adam.py:27
Methodmulti_tensor_adam
(chunk_size, noop_flag_buffer, tensor_lists, lr, beta1, beta2, epsilon, step, adam_w_mode,
op_builder/sdaa/fused_adam.py:43
Methodmulti_tensor_adam
(chunk_size, noop_flag_buffer, tensor_lists, lr, beta1, beta2, epsilon, step, adam_w_mode,
op_builder/hpu/fused_adam.py:27
Methodmulti_tensor_adam
(chunk_size, noop_flag_buffer, tensor_lists, lr, beta1, beta2, epsilon, step, mode,
op_builder/supa/fused_adam.py:30
Methodmulti_tensor_adam
(chunk_size, noop_flag_buffer, tensor_lists, lr, beta1, beta2, epsilon, step, adam_w_mode,
op_builder/mlu/fused_adam.py:18
Functionmulti_tensor_adam_cuda
csrc/xpu/adam/multi_tensor_adam.dp.cpp:121
Functionmulti_tensor_apply
csrc/xpu/adam/multi_tensor_apply.dp.hpp:117
Methodmulti_tensor_apply_kernel
csrc/xpu/adam/multi_tensor_apply.dp.hpp:56
Functionmulti_tensor_lion
csrc/cpu/lion/fused_lion.cpp:10
Methodmulti_tensor_lion
(chunk_size, noop_flag_buffer, tensor_lists, lr, beta1, beta2, step, weight_decay)
op_builder/npu/fused_lion.py:31
Methodmulti_tensor_lion
(chunk_size, noop_flag_buffer, tensor_lists, lr, beta1, beta2, step, weight_decay)
op_builder/supa/fused_lion.py:26
Methodn_experts
(self)
tests/unit/inference/v2/model_implementations/parameters/test_parameter_list.py:29
Methodn_experts
Return the number of experts in the model.
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:615
Methodn_experts
(self)
deepspeed/inference/v2/model_implementations/mixtral/model.py:124
Methodn_experts
(self)
deepspeed/inference/v2/model_implementations/qwen_v2_moe/model.py:115
Methodn_heads
The number of query heads on the model. This should not take into account any dimension reductions from model sharding.
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:110
Methodn_heads
(self)
deepspeed/inference/v2/model_implementations/mixtral/model.py:70
Methodn_heads
(self)
deepspeed/inference/v2/model_implementations/phi/model.py:65
Methodn_heads
(self)
deepspeed/inference/v2/model_implementations/mistral/model.py:65
Methodn_heads
(self)
deepspeed/inference/v2/model_implementations/exaone4/model.py:55
Methodn_heads
(self)
deepspeed/inference/v2/model_implementations/qwen_v2/model.py:66
Methodn_heads
(self)
deepspeed/inference/v2/model_implementations/phi3/model.py:65
Methodn_heads
(self)
deepspeed/inference/v2/model_implementations/falcon/model.py:65
Methodn_heads
(self)
deepspeed/inference/v2/model_implementations/qwen/model.py:66
Methodn_heads
(self)
deepspeed/inference/v2/model_implementations/opt/model.py:65
Methodn_heads
(self)
deepspeed/inference/v2/model_implementations/qwen_v2_moe/model.py:71
Methodn_heads
(self)
deepspeed/inference/v2/model_implementations/llama_v2/model.py:65
Methodn_heads_kv
The number of key and value heads on the model. For GQA or MQA, overload this attribute. Otherwise it adopts MHA formulations and use
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:125
Methodn_heads_kv
(self)
deepspeed/inference/v2/model_implementations/mixtral/model.py:78
Methodn_heads_kv
(self)
deepspeed/inference/v2/model_implementations/phi/model.py:73
Methodn_heads_kv
(self)
deepspeed/inference/v2/model_implementations/mistral/model.py:73
Methodn_heads_kv
(self)
deepspeed/inference/v2/model_implementations/exaone4/model.py:63
Methodn_heads_kv
(self)
deepspeed/inference/v2/model_implementations/qwen_v2/model.py:74
Methodn_heads_kv
(self)
deepspeed/inference/v2/model_implementations/phi3/model.py:73
Methodn_heads_kv
(self)
deepspeed/inference/v2/model_implementations/falcon/model.py:73
Methodn_heads_kv
(self)
deepspeed/inference/v2/model_implementations/qwen/model.py:74
Methodn_heads_kv
(self)
deepspeed/inference/v2/model_implementations/qwen_v2_moe/model.py:79
Methodn_heads_kv
(self)
deepspeed/inference/v2/model_implementations/llama_v2/model.py:73
Methodn_heads_kv_local
Number of local heads post sharding.
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:253
Methodn_heads_q
Alias to n_heads.
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:118
Methodn_heads_q_local
Number of local heads post sharding.
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:246
Methodn_kv_cache_groups
Number of KV cache groups.
deepspeed/inference/v2/engine_v2.py:56
Methodn_kv_cache_groups
Return the number of KV caches.
deepspeed/inference/v2/ragged/ragged_manager.py:190
Methodn_params
The number of parameters this container holds. This is a read-only value that is set by the metaclass.
deepspeed/inference/v2/model_implementations/layer_container_base.py:245
Methodn_top_k
Number of experts per token.
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:622
Methodn_top_k
(self)
deepspeed/inference/v2/model_implementations/mixtral/model.py:128
Methodn_top_k
(self)
deepspeed/inference/v2/model_implementations/qwen_v2_moe/model.py:119
Methodn_tracked_sequences
Return the number of sequences currently tracked.
deepspeed/inference/v2/ragged/ragged_manager.py:176
Methodname
()
deepspeed/inference/v2/modules/implementations/post_norm/cuda_post_ln.py:22
Methodname
()
deepspeed/inference/v2/modules/implementations/attention/dense_blocked_attention.py:43
Methodname
()
deepspeed/inference/v2/modules/implementations/linear/blas_fp_linear.py:31
Methodname
()
deepspeed/inference/v2/modules/implementations/linear/quantized_linear.py:103
Methodname
()
deepspeed/inference/v2/modules/implementations/unembed/ragged_unembed.py:28
Methodname
()
deepspeed/inference/v2/modules/implementations/embedding/ragged_embedding.py:23
Methodname
()
deepspeed/inference/v2/modules/implementations/pre_norm/cuda_pre_rms.py:22
Methodname
()
deepspeed/inference/v2/modules/implementations/pre_norm/cuda_pre_ln.py:23
Methodname
()
deepspeed/inference/v2/modules/implementations/moe/cutlass_multi_gemm.py:34
Methodname
Return the name of the backend
deepspeed/launcher/multinode_runner.py:47
Methodname
(self)
deepspeed/launcher/multinode_runner.py:85
Methodname
(self)
deepspeed/launcher/multinode_runner.py:144
Methodname
(self)
deepspeed/launcher/multinode_runner.py:205
Methodname
(self)
deepspeed/launcher/multinode_runner.py:277
Methodname
(self)
deepspeed/launcher/multinode_runner.py:361
Methodname
(self)
deepspeed/launcher/multinode_runner.py:466
Functionnative_pins
()
tests/unit/v1/pin_memory/test_pin_memory.py:19
Functionnatural_keys
alist.sort(key=natural_keys) sorts in human order http://nedbatchelder.com/blog/200712/human_sorting.html (See Toothy's implementation in
deepspeed/utils/zero_to_fp32.py:81
Functionnatural_keys
alist.sort(key=natural_keys) sorts in human order http://nedbatchelder.com/blog/200712/human_sorting.html (See Toothy's implementation in
deepspeed/checkpoint/ds_to_universal.py:104
Methodneeds_offload
(target)
deepspeed/runtime/zero/stage3.py:3981
Methodneeds_offload
(target)
deepspeed/runtime/zero/stage_1_and_2.py:3979
Methodnested
(x, weights, scores)
tests/unit/module_inject/test_auto_ep_comm.py:950
FunctionnewFunc
(*args, **kwds)
deepspeed/profiling/flops_profiler/profiler.py:877
Methodnew_cpu_locked_tensor
csrc/pin_memory/py_ds_pin_memory.cpp:16
Functionnew_group
(ranks)
deepspeed/comm/comm.py:192
Methodnew_group
(self, ranks)
deepspeed/comm/torch.py:581
Methodnew_group
(self)
deepspeed/comm/backend.py:40
Methodnew_inference_container
(self, orig_layer, policy_cls, layer_id)
deepspeed/runtime/hybrid_engine.py:86
Methodnew_method
(*args, **kwargs)
tests/unit/util.py:117
Functionnew_tensor
(cls, *args, **kwargs)
deepspeed/runtime/zero/partition_parameters.py:275
Methodnew_tensor
(cls, *args)
deepspeed/utils/init_on_device.py:56
Methodnew_token
csrc/transformer/inference/includes/inference_context.h:206
Methodnext_batch
(self, sample_size)
deepspeed/autotuning/tuner/model_based_tuner.py:80
Methodnext_batch
(self, sample_size=1)
deepspeed/autotuning/tuner/index_based_tuner.py:17
Methodnext_batch
(self, sample_size=1)
deepspeed/autotuning/tuner/index_based_tuner.py:33
Functionnext_pow2
deepspeed/inference/v2/kernels/includes/ds_kernel_utils.h:50
Functionnext_pow2
csrc/includes/ds_kernel_utils.h:56
Methodnext_tokens
(logits)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1452
Functionnext_unique_val
Find the next ordered, unique value to a set. E.g. <0,1,2,7> --> 3
csrc/cpu/comm/ccl.cpp:109
Methodno_pool_bootstrap_stderr
(f, xs, iters)
tests/unit/inference/test_inference.py:686
Functionnon_reentrant_checkpoint
This function is union of `torch.utils.checkpoint._checkpoint_without_reentrant` and `CheckpointFunction` in this module This function is aim to
deepspeed/runtime/activation_checkpointing/checkpointing.py:787
Methodnon_transformer_params
(self)
deepspeed/inference/v2/model_implementations/inference_policy_base.py:40
← previousnext →10,201–10,300 of 14,579, ranked by callers