MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Methodinclude_paths
(self)
op_builder/npu/async_io.py:32
Methodinclude_paths
(self)
op_builder/npu/builder.py:75
Methodinclude_paths
(self)
op_builder/npu/inference.py:501
Methodinclude_paths
(self)
op_builder/npu/fused_adam.py:62
Methodinclude_paths
(self)
op_builder/npu/cpu_adam.py:22
Methodinclude_paths
(self)
op_builder/npu/cpu_adagrad.py:22
Methodinclude_paths
(self)
op_builder/klxpu/cpu_lion.py:20
Methodinclude_paths
(self)
op_builder/klxpu/no_impl.py:30
Methodinclude_paths
(self)
op_builder/klxpu/async_io.py:35
Methodinclude_paths
(self)
op_builder/klxpu/fused_adam.py:88
Methodinclude_paths
(self)
op_builder/klxpu/cpu_adam.py:20
Methodinclude_paths
(self)
op_builder/klxpu/cpu_adagrad.py:20
Methodinclude_paths
(self)
op_builder/xpu/no_impl.py:32
Methodinclude_paths
(self)
op_builder/xpu/flash_attn.py:38
Methodinclude_paths
(self)
op_builder/xpu/fused_adam.py:21
Methodinclude_paths
(self)
op_builder/xpu/cpu_adam.py:26
Methodinclude_paths
(self)
op_builder/xpu/cpu_adagrad.py:22
Methodinclude_paths
(self)
op_builder/sdaa/no_impl.py:58
Methodinclude_paths
(self)
op_builder/sdaa/fused_adam.py:63
Methodinclude_paths
(self)
op_builder/hpu/fused_adam.py:101
Methodinclude_paths
(self)
op_builder/cpu/cpu_lion.py:26
Methodinclude_paths
(self)
op_builder/cpu/async_io.py:35
Methodinclude_paths
(self)
op_builder/cpu/comm.py:25
Methodinclude_paths
(self)
op_builder/cpu/comm.py:61
Methodinclude_paths
(self)
op_builder/cpu/reflow.py:59
Methodinclude_paths
(self)
op_builder/cpu/fused_adam.py:22
Methodinclude_paths
(self)
op_builder/cpu/cpu_adam.py:26
Methodinclude_paths
(self)
op_builder/cpu/cpu_adagrad.py:20
Methodinclude_paths
(self)
op_builder/supa/no_impl.py:31
Methodinclude_paths
(self)
op_builder/supa/async_io.py:35
Methodinclude_paths
(self)
op_builder/supa/cpu_adam.py:20
Methodinclude_paths
(self)
op_builder/supa/cpu_adagrad.py:22
Methodinclude_paths
(self)
op_builder/mlu/no_impl.py:33
Methodinclude_paths
(self)
op_builder/mlu/fused_adam.py:39
Methodinclude_paths
(self)
op_builder/mlu/cpu_adagrad.py:23
MethodincrIteration
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:1743
Methodincrement_value
(dictionary, key)
deepspeed/runtime/zero/stage_1_and_2.py:1216
Methodindependent_gradient_partition_epilogue
(self)
deepspeed/runtime/superoffload/superoffload_stage3.py:117
Functionindex_to_feature
convert index form (single integer) to feature form (vector)
deepspeed/autotuning/tuner/utils.py:12
Functionindices_padding_wrapper
Decorator that pads / aligns token groups for ``torch._grouped_mm``. Wraps an expert-computation function so that each expert's token count i
deepspeed/moe/ep_kernels.py:444
Functioninf_kwargs
(model_w_task)
tests/unit/inference/test_inference.py:183
Functioninference_all_reduce
(tensor, op=ReduceOp.SUM, group=None,
deepspeed/comm/comm.py:701
Functioninference_all_reduce
csrc/cpu/comm/ccl.cpp:250
Functioninference_all_reduce_cpu
csrc/cpu/comm/shm_interface.cpp:156
Functioninference_all_reduce_meta
csrc/cpu/comm/shm_interface.cpp:140
Functioninit
deepspeed/inference/v2/kernels/includes/reduction_utils.h:440
Functioninit
Best-effort, idempotent SDMA handle construction. Builds one ``mori_cpp.AllGatherIntoTensor`` (NCCL/RCCL-style C++ dispatcher) sized for the
deepspeed/comm/mori.py:116
Functioninit
csrc/includes/reduction_utils.h:496
Functioninit
csrc/compile/deepcompile.cpp:142
Methodinit_
(tensor)
tests/unit/megatron_model.py:91
Functioninit_decoupled_checkpoint
(config_params, dp_writer_config, save_event, save_queue, optimize_dp_state)
deepspeed/runtime/checkpoint_engine/decoupled_checkpoint_engine.py:42
Functioninit_inference
Initialize the DeepSpeed InferenceEngine. Description: all four cases are valid and supported in DS init_inference() API. # Case 1: user pro
deepspeed/__init__.py:701
Functioninit_process_groups
(grid)
deepspeed/runtime/pipe/p2p.py:27
Methodinitial_dynamic_scale
(self)
deepspeed/runtime/precision_config.py:199
Methodinitial_seed
(self)
accelerator/hpu_accelerator.py:94
Methodinitial_seed
(self)
accelerator/supa_accelerator.py:90
Methodinitial_seed
(self)
accelerator/sdaa_accelerator.py:111
Methodinitial_seed
(self)
accelerator/cpu_accelerator.py:251
Methodinitial_seed
(self)
accelerator/mlu_accelerator.py:81
Methodinitial_seed
(self)
accelerator/npu_accelerator.py:115
Methodinitial_seed
(self)
accelerator/xpu_accelerator.py:245
Methodinitial_seed
(self)
accelerator/cuda_accelerator.py:116
Methodinitial_seed
(self)
accelerator/mps_accelerator.py:90
Methodinitial_seed
(self)
accelerator/abstract_accelerator.py:85
Functioninitialize
Deprecated function. Retained to inform the users.
deepspeed/utils/groups.py:66
Functioninitialize
Bring up the accelerator's native fast-collective backend. Must run before graph capture (buffer addresses are static from here on). Silently
deepspeed/comm/custom_collective.py:72
Functioninitialize
csrc/cpu/comm/ccl.cpp:52
Functioninitialize
csrc/cpu/comm/shm_interface.cpp:24
Functioninitialize_base_model
(model, config, engine_config, base_mp_group)
tests/unit/inference/v2/model_implementations/test_exaone4_5.py:64
Methodinitialize_from_swapped_fp16_params
(self, fp16_partitions_info, fp16_num_elems, fp16_pinned_buffers,
deepspeed/runtime/swap_tensor/partitioned_optimizer_swapper.py:52
Methodinitialize_gradient_partitioning_data_structures
(self)
deepspeed/runtime/zero/stage3.py:1498
Functioninitialize_mesh_device
(mesh_shape, mesh_dim_names)
deepspeed/comm/comm.py:812
Methodinitialize_optimizer_states
(self)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:636
Methodinitialize_optimizer_states
(self)
deepspeed/runtime/reflow/reflow_stage3.py:575
Methodinitialize_parameters
(self, parameters, src_tensors)
deepspeed/runtime/swap_tensor/partitioned_optimizer_swapper.py:49
Methodinitialize_raw
All kwargs must be torch.Tensors and must include the core parameter.
deepspeed/inference/v2/inference_parameter.py:75
Functioninitialize_sequence_parallel
Initialize sequence parallel groups.
deepspeed/runtime/sequence_parallel/parallel_state_sp.py:25
Functioninitialize_sub_comm
csrc/cpu/comm/ccl.cpp:142
Methodinitialize_tensors
(self)
deepspeed/module_inject/containers/base_moe.py:60
Methodinitialize_tensors
Same purposes as the base container, but also grabs the hooks for any LoRA parameters. If it's necessary to override specific sub-com
deepspeed/module_inject/containers/features/hybrid_engine.py:23
Methodinitialize_tensors
(self, enable_training=False)
deepspeed/module_inject/containers/features/meta_tensor.py:25
Methodinitializer
()
deepspeed/runtime/reflow/reflow_stage3.py:259
Functioninput
(msg)
deepspeed/runtime/zero/stage3.py:75
Functioninput
(msg)
deepspeed/runtime/zero/stage_1_and_2.py:62
Methodinputs
(self, bs=1, seq_len=1, hidden_size=128)
tests/unit/v1/autotp/test_configurable_parallel_pp.py:59
Methodinputs
(self, bs=1, seq_len=20)
tests/unit/v1/autotp/test_configurable_parallel_mp.py:52
Methodinsert_tensor
(self, tensor, swap_path, aligned_numel)
deepspeed/runtime/swap_tensor/utils.py:115
Functioninstantiate_attention
Choose an appropriate attention implementation based on the given configurations. This method is currently a stub, but as more implementation
deepspeed/inference/v2/modules/heuristics.py:36
Functioninstantiate_linear
Choose an appropriate linear implementation based on the given configurations. This method is currently a stub, but as more implementations m
deepspeed/inference/v2/modules/heuristics.py:75
Methodinstantiate_model
(self, engine_config: RaggedInferenceEngineConfig, mp_group: Any)
deepspeed/inference/v2/model_implementations/mixtral/policy.py:16
Methodinstantiate_model
(self, engine_config: RaggedInferenceEngineConfig, mp_group: Any)
deepspeed/inference/v2/model_implementations/phi/policy.py:16
Methodinstantiate_model
(self, engine_config: RaggedInferenceEngineConfig, mp_group: Any)
deepspeed/inference/v2/model_implementations/exaone4_5/policy.py:17
Methodinstantiate_model
(self, engine_config: RaggedInferenceEngineConfig, mp_group: Any)
deepspeed/inference/v2/model_implementations/mistral/policy.py:16
Methodinstantiate_model
(self, engine_config: RaggedInferenceEngineConfig, mp_group: Any)
deepspeed/inference/v2/model_implementations/exaone4/policy.py:15
Methodinstantiate_model
(self, engine_config: RaggedInferenceEngineConfig, mp_group: Any)
deepspeed/inference/v2/model_implementations/qwen_v2/policy.py:16
Methodinstantiate_model
(self, engine_config: RaggedInferenceEngineConfig, mp_group: Any)
deepspeed/inference/v2/model_implementations/phi3/policy.py:16
Methodinstantiate_model
(self, engine_config: RaggedInferenceEngineConfig, mp_group: Any)
deepspeed/inference/v2/model_implementations/falcon/policy.py:17
Methodinstantiate_model
(self, engine_config: RaggedInferenceEngineConfig, mp_group: Any)
deepspeed/inference/v2/model_implementations/qwen/policy.py:16
Methodinstantiate_model
(self, engine_config: RaggedInferenceEngineConfig, mp_group: Any)
deepspeed/inference/v2/model_implementations/opt/policy.py:16
Methodinstantiate_model
(self, engine_config: RaggedInferenceEngineConfig, mp_group: Any)
deepspeed/inference/v2/model_implementations/qwen_v2_moe/policy.py:16
← previousnext →10,001–10,100 of 15,468, ranked by callers