MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Methodmlp_gemm_bf16
(input, residual, input_bias, weight_interm, weight_out, bias, gamma, beta, eps, pre_layer_norm,
op_builder/npu/inference.py:439
Methodmlp_gemm_bf16
(input, residual, input_bias, weight_interm, weight_out, bias, gamma, beta, eps, pre_layer_norm,
op_builder/supa/inference.py:234
Methodmlp_gemm_fallback
(self, input, residual, input_bias, weight_interm, weight_out, bias, gamma, beta, eps,
deepspeed/ops/transformer/inference/op_binding/mlp_gemm.py:44
Methodmlp_gemm_fp16
(input, residual, input_bias, weight_interm, weight_out, bias, gamma, beta, eps, pre_layer_norm,
op_builder/npu/inference.py:432
Methodmlp_gemm_fp16
(input, residual, input_bias, weight_interm, weight_out, bias, gamma, beta, eps, pre_layer_norm,
op_builder/supa/inference.py:227
Methodmlp_gemm_fp32
(input, residual, input_bias, weight_interm, weight_out, bias, gamma, beta, eps, pre_layer_norm,
op_builder/npu/inference.py:446
Methodmlp_gemm_fp32
(input, residual, input_bias, weight_interm, weight_out, bias, gamma, beta, eps, pre_layer_norm,
op_builder/supa/inference.py:241
Functionmlp_gemm_func
(input, residual, input_bias, weight_interm,
deepspeed/ops/transformer/inference/triton/ops.py:54
Functionmlp_unfused_cublas
csrc/transformer/inference/csrc/pt_binding.cpp:1390
Methodmock_logger_info
(message, *args, **kwargs)
tests/unit/checkpoint/test_zero_optimizer.py:734
Methodmock_logger_info
(msg, *args, **kwargs)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:386
Functionmock_logger_warning
(message, *args, **kwargs)
tests/unit/checkpoint/test_zero_optimizer.py:697
Methodmock_unscale_and_clip_grads
(total_norm, apply_scale=True)
tests/unit/runtime/half_precision/test_fp16.py:194
Methodmodel_config
The model config.
deepspeed/inference/v2/model_implementations/inference_model_base.py:154
Methodmodel_dim
Size of embedding projection and residuals.
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:86
Methodmodel_dim
(self)
deepspeed/inference/v2/model_implementations/mixtral/model.py:58
Methodmodel_dim
(self)
deepspeed/inference/v2/model_implementations/phi/model.py:53
Methodmodel_dim
(self)
deepspeed/inference/v2/model_implementations/mistral/model.py:53
Methodmodel_dim
(self)
deepspeed/inference/v2/model_implementations/exaone4/model.py:43
Methodmodel_dim
(self)
deepspeed/inference/v2/model_implementations/qwen_v2/model.py:54
Methodmodel_dim
(self)
deepspeed/inference/v2/model_implementations/phi3/model.py:53
Methodmodel_dim
(self)
deepspeed/inference/v2/model_implementations/falcon/model.py:53
Methodmodel_dim
(self)
deepspeed/inference/v2/model_implementations/qwen/model.py:54
Methodmodel_dim
(self)
deepspeed/inference/v2/model_implementations/opt/model.py:53
Methodmodel_dim
(self)
deepspeed/inference/v2/model_implementations/qwen_v2_moe/model.py:59
Methodmodel_dim
(self)
deepspeed/inference/v2/model_implementations/llama_v2/model.py:53
Methodmodel_has_safetensors
(model_name_or_path: str)
deepspeed/inference/v2/checkpoint/huggingface_engine.py:48
Functionmodel_name
(request)
tests/unit/inference/test_checkpoint_sharding.py:50
Functionmodel_parallel_cuda_manual_seed
Initialize model parallel cuda seed. This function should be called after the model parallel is initialized. Also, no get_accelerator().manua
deepspeed/runtime/activation_checkpointing/checkpointing.py:211
Functionmodel_parallel_reconfigure_tp_seed
(seed)
deepspeed/runtime/activation_checkpointing/checkpointing.py:252
Functionmodel_w_task
(request)
tests/unit/inference/test_inference.py:126
Methodmodel_with_own_partition_group
()
tests/unit/v1/zero/test_reflow.py:435
Methodmodule_matches
(module: nn.Module)
deepspeed/module_inject/auto_ep_presets/base.py:454
Methodmodule_matches
(module: nn.Module)
deepspeed/module_inject/auto_ep_presets/qwen3_5_moe.py:78
Methodmodule_state_dict
Override hack to save a pipe model and return the directory path of the save. This method should only be called by DeepSpeed's ``save_checkpo
deepspeed/runtime/pipe/engine.py:1299
Methodmoe_backward_compat
(cls, field_value, values)
deepspeed/inference/config.py:314
Functionmoe_gather
Re-gather the outputs of MoE and scale them by the gating score. */
deepspeed/inference/v2/kernels/ragged_ops/moe_gather/moe_gather.cpp:28
Functionmoe_res_matmul
csrc/transformer/inference/csrc/pt_binding.cpp:1908
Methodmoe_res_matmul_fallback
(cls, residual, coef, output)
deepspeed/ops/transformer/inference/op_binding/moe_res_matmul.py:23
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:597
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:88
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
← previousnext →10,601–10,700 of 15,468, ranked by callers