MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / types & classes

Types & classes1,989 in github.com/deepspeedai/DeepSpeed

↓ 192 callersClassSimpleModel
tests/unit/simple_model.py:20
↓ 29 callersClassAsyncIOBuilder
op_builder/async_io.py:13
↓ 29 callersClassAutoEPConfig
User-facing configuration parsed from DS config JSON.
deepspeed/module_inject/auto_ep_presets/base.py:96
↓ 27 callersClassMockMoETransformer
tests/unit/v1/moe/autoep_test_utils.py:96
↓ 22 callersClassDeepSpeedConfig
deepspeed/runtime/config.py:692
↓ 20 callersClassDtypeEnum
deepspeed/inference/v2/inference_utils.py:18
↓ 19 callersClassDeepSpeedZeroConfig
Sets parameters for ZeRO optimizations.
deepspeed/runtime/zero/config.py:90
↓ 18 callersClassCheckpointHiddenStatesOffload
Offload only marked checkpoint inputs. The marker is installed on ``GradientCheckpointingLayer.__call__`` while this context is active and re
deepspeed/runtime/activation_checkpointing/offload_activations.py:390
↓ 18 callersClassDeepSpeedCPUAdam
deepspeed/ops/adam/cpu_adam.py:13
↓ 16 callersClassConfigBundle
A config bundle is a collection of configs that are used to instantiate a model implementation.
deepspeed/inference/v2/modules/module_registry.py:13
↓ 15 callersClassGatheredParameters
deepspeed/runtime/zero/partition_parameters.py:2307
↓ 14 callersClassAutoTPConfig
Configuration for Automatic Tensor Parallelism. Example usage: config = AutoTPConfig( tp_size=4, layer_specs
deepspeed/module_inject/autotp_config.py:230
↓ 14 callersClassDSStateManagerConfig
deepspeed/inference/v2/ragged/manager_configs.py:137
↓ 14 callersClassDeepSpeedInferenceConfig
Initialize the DeepSpeed Transformer Config. Arguments: hidden_size: The hidden size of the transformer layer intermed
deepspeed/ops/transformer/inference/config.py:21
↓ 14 callersClassGDSBuilder
op_builder/gds.py:10
↓ 14 callersClassHybridEngineRollout
Rollout engine using DeepSpeed hybrid engine. Args: engine: DeepSpeed engine wrapping the model. tokenizer: HuggingFace tokenizer
deepspeed/runtime/rollout/hybrid_engine_rollout.py:32
↓ 14 callersClassPassContract
Lightweight metadata describing what an optimization pass expects and produces. Contracts let DeepCompile validate a pass schedule before it runs
deepspeed/compile/passes/contract.py:18
↓ 14 callersClassPipelineModule
Modules to be parallelized with pipeline parallelism. The key constraint that enables pipeline parallelism is the representation of the forwa
deepspeed/runtime/pipe/module.py:86
↓ 13 callersClassCUDAGatedActivation
CUDA implementation of gated activation kernel. This kernel assumes that the input tensor has gate and activation values in adjacent channels
deepspeed/inference/v2/kernels/core_ops/gated_activations/gated_activation.py:15
↓ 13 callersClassSubParamLinearLayer
Column-parallel linear layer with sub-parameter support. Handles cases where weights contain multiple logical sub-parameters that need t
deepspeed/module_inject/layers.py:1642
↓ 13 callersClassTPLayerSpec
Unified specification for tensor parallel layer partitioning. This is inspired by Universal Checkpointing's SubparamShape but extended f
deepspeed/module_inject/autotp_config.py:28
↓ 13 callersClassTmpRepo
A throwaway git repo seeded with BASELINE, committed on ``master``.
ci/test_tests_fetcher.py:72
↓ 12 callersClassContainerMap
deepspeed/inference/v2/model_implementations/inference_policy_base.py:28
↓ 12 callersClassLinearLayer
deepspeed/module_inject/layers.py:833
↓ 12 callersClassRotateHalfConfig
deepspeed/inference/v2/modules/configs/attention_configs.py:29
↓ 11 callersClassOutputModel
tests/unit/module_inject/test_tp_partition_config_path.py:46
↓ 10 callersClassAutoEP
Automatic Expert Parallelism: detect and replace MoE layers.
deepspeed/module_inject/auto_ep.py:273
↓ 10 callersClassAutoTP
deepspeed/module_inject/auto_tp.py:198
↓ 10 callersClassDeepCompileZ3EagerFallback
Track eager-only ZeRO-3 gathers and restore partitioned state around compiled forwards.
deepspeed/compile/z3_eager_fallback.py:56
↓ 10 callersClassDeepSpeedFP16Config
For float16 configuration
deepspeed/runtime/precision_config.py:100
↓ 10 callersClassEvoformerAttnBuilder
op_builder/evoformer_attn.py:13
↓ 10 callersClassMMapIndexedDataset
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:369
↓ 10 callersClassRaggedOpsBuilder
op_builder/ragged_ops.py:11
↓ 9 callersClassBlockedAllocator
Allocator class for managing which blocks are free/used in the blocked KV-cache. This is a simple allocator that uses a linked list to ke
deepspeed/inference/v2/ragged/blocked_allocator.py:11
↓ 9 callersClassDSLinearConfig
Config class for DSLinearBase.
deepspeed/inference/v2/modules/configs/linear_config.py:10
↓ 9 callersClassMockHFModel
tests/unit/runtime/test_tp_plan_extraction.py:15
↓ 9 callersClassPinMemoryBuilder
op_builder/pin_memory.py:11
↓ 9 callersClassQuantizationConfig
Configuration settings for quantization for LoRAOptimizedLinear, QuantizedLinear, and QuantizedParameter Attributes: q_bits (int
deepspeed/linear/config.py:39
↓ 9 callersClassSimpleMoEModel
tests/unit/simple_model.py:80
↓ 8 callersClassDSNormConfig
Config class for both DSPreLN and DSPostLN.
deepspeed/inference/v2/modules/configs/norm_config.py:10
↓ 8 callersClassFakeEngine
tests/unit/v1/compile/test_z3_eager_fallback.py:126
↓ 8 callersClassLinearAllreduce
deepspeed/module_inject/layers.py:752
↓ 8 callersClassPredicatedTileIteratorResidualLast
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:156
↓ 8 callersClassRepeatingLoader
deepspeed/runtime/dataloader.py:17
↓ 7 callersClassDeepSpeedGPTInference
Initialize the DeepSpeed GPT Transformer Layer.
deepspeed/model_implementations/transformers/ds_gpt.py:9
↓ 7 callersClassHybridEngineRolloutConfig
Configuration for HybridEngineRollout.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:25
↓ 7 callersClassInferenceCoreBuilder
op_builder/inference_core_ops.py:11
↓ 7 callersClassMoE
Initialize an MoE layer. Arguments: hidden_size (int): the hidden dimension of the model, importantly this is also the input and output d
deepspeed/moe/layer.py:17
↓ 7 callersClassMuonWithAuxAdam
deepspeed/runtime/zero/muon/muon_optimizer.py:15
↓ 7 callersClassPlaceholderSequenceDescriptor
The DummySequenceDescriptor is an empty object that allows us to perform schedulability checks before formally tracking a sequence.
deepspeed/inference/v2/ragged/sequence_descriptor.py:35
↓ 7 callersClassProfilingResult
deepspeed/compile/profilers/__init__.py:13
↓ 7 callersClassQuantizedParameter
Quantized parameter class that implements weight quantization. Weights are stored in quantized form on GPUs, and can be dequantized on-the-fl
deepspeed/linear/quantization.py:18
↓ 7 callersClassRaggedBatchWrapper
Container for all the auxiliary Tensors used in the management of a ragged batch. For each Tensor, we maintain a shadow Tensor on the host.
deepspeed/inference/v2/ragged/ragged_wrapper.py:31
↓ 7 callersClassRaggedTopKGating
CUDA implementation of top-1 gating. This will perform a softmax on the logits, and return the scale as well as its idx within that expert's
deepspeed/inference/v2/kernels/ragged_ops/top_k_gating/top_k_gating.py:16
↓ 7 callersClassSynchronizedWallClockTimer
Group of timers. Borrowed from Nvidia Megatron code
deepspeed/utils/timer.py:44
↓ 7 callersClassWrapperLeafModule
tests/unit/runtime/zero/test_zero_leaf_module.py:139
↓ 7 callersClassmodel_3d_desc
deepspeed/checkpoint/reshape_3d_utils.py:20
↓ 7 callersClassnoop_context
deepspeed/runtime/utils.py:114
↓ 6 callersClassCUDABiasActivation
CUDA implementation of bias activation kernel. This kernel should be deprecated once we are fusing the bias activation into the linear kernel
deepspeed/inference/v2/kernels/core_ops/bias_activations/bias_activation.py:15
↓ 6 callersClassDeepSpeedTransformerConfig
Initialize the DeepSpeed Transformer Config. Arguments: batch_size: The maximum batch size used for running the kernel on each GP
deepspeed/ops/transformer/transformer.py:34
↓ 6 callersClassInternVLFusionAdapter
InternVL-style splice: replace IMG_CONTEXT token runs with visual tokens. InternVL encodes each image as ``<IMG_START> <IMG_CONTEXT>×N <IMG_END>`
deepspeed/sequence/autosp_fusion.py:230
↓ 6 callersClassLinearBlockedKVCopy
CUDA Kernel implementation that will perform rotary position embeddings on the queries and keys before copying into a blocked KV cache.
deepspeed/inference/v2/kernels/ragged_ops/linear_blocked_kv_rotary/linear_blocked_kv_copy.py:19
↓ 6 callersClassMoEModelPreset
Preset configuration for a known MoE model family.
deepspeed/module_inject/auto_ep_presets/base.py:27
↓ 6 callersClassMyModel
tests/unit/v1/zero/test_zero.py:438
↓ 6 callersClassNcclBackend
deepspeed/runtime/comm/nccl.py:17
↓ 6 callersClassPredicatedTileAccessIteratorResidualLast
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:84
↓ 6 callersClassQwen2VLFusionAdapter
Qwen2-VL-style splice: visual tokens enclosed by vision_start/end tokens. Qwen2-VL wraps each image's visual tokens with a pair of special bounda
deepspeed/sequence/autosp_fusion.py:265
↓ 6 callersClassRaggedUtilsBuilder
op_builder/ragged_utils.py:11
↓ 6 callersClassRandomLTDBuilder
op_builder/random_ltd.py:9
↓ 6 callersClassReplaceWithTensorSlicing
deepspeed/module_inject/auto_tp.py:37
↓ 6 callersClassRoutedAssignmentPayload
deepspeed/moe/ep_tp_dispatch.py:20
↓ 6 callersClassUlyssesSPViTAttention
Sequence-parallel wrapper for an opaque ViT attention module. Parameters ---------- attn: The original ViT attention layer (any `
deepspeed/sequence/autosp_vit.py:48
↓ 6 callersClassVectorMatMulOp
deepspeed/ops/transformer/inference/op_binding/vector_matmul.py:12
↓ 6 callersClassmeg_2d_parallel_map
deepspeed/checkpoint/reshape_meg_2d.py:9
↓ 5 callersClassAlexNetPipe
tests/unit/alexnet_model.py:49
↓ 5 callersClassBertLayerNorm
tests/unit/modeling.py:273
↓ 5 callersClassBertLayerNorm
tests/unit/modelingpreln.py:271
↓ 5 callersClassBlasLibLinear
Wrapper around the BLAS matmul kernel for FP16/BF16/FP32 for CUDA/RoCM. Performs z = x @ y
deepspeed/inference/v2/kernels/core_ops/blas_kernels/blas_linear.py:13
↓ 5 callersClassBlockedRotaryEmbeddings
CUDA Kernel implementation that will perform rotary position embeddings on the queries and keys before copying into a blocked KV cache.
deepspeed/inference/v2/kernels/ragged_ops/linear_blocked_kv_rotary/blocked_kv_rotary.py:14
↓ 5 callersClassBlockedTrainedRotaryEmbeddings
CUDA Kernel implementation that will perform rotary position embeddings on the queries and keys before copying into a blocked KV cache.
deepspeed/inference/v2/kernels/ragged_ops/linear_blocked_kv_rotary/blocked_trained_kv_rotary.py:19
↓ 5 callersClassCPUAdamBuilder
op_builder/cpu_adam.py:9
↓ 5 callersClassCUDARMSNorm
Floating point layer norm kernel for CUDA/RoCM. Performs: z = ln(x)
deepspeed/inference/v2/kernels/core_ops/cuda_rms_norm/rms_norm.py:11
↓ 5 callersClassCompressedBackend
deepspeed/runtime/comm/compressed.py:14
↓ 5 callersClassDecodeGraphCache
Dispatches generation forwards to a per-position CUDA graph. Args: forward: The original ``forward``, used both for capture and as the
deepspeed/runtime/hybrid_engine_graph.py:39
↓ 5 callersClassDeepSpeedInferenceConfig
Sets parameters for DeepSpeed Inference Engine.
deepspeed/inference/config.py:118
↓ 5 callersClassDeepSpeedMonitorConfig
Sets parameters for various monitoring methods.
deepspeed/monitor/config.py:125
↓ 5 callersClassDummyMPU
tests/unit/model_parallelism/test_autotp_training.py:96
↓ 5 callersClassFP_Quantize
deepspeed/ops/fp_quantizer/quantize.py:43
↓ 5 callersClassFakeAccelerator
tests/unit/v1/compile/test_graph_profile.py:25
↓ 5 callersClassFakeDeepCompileHandle
tests/unit/v1/compile/test_graph_profile.py:54
↓ 5 callersClassGateUpPack_LinearLayer
deepspeed/module_inject/layers.py:1204
↓ 5 callersClassLayerNormOp
deepspeed/ops/transformer/inference/op_binding/layer_norm.py:12
↓ 5 callersClassLoRAConfig
Configuration settings for LoRAOptimizedLinear. Attributes: lora_r (int): LoRA attention dimension, also known as the rank. Defaults
deepspeed/linear/config.py:13
↓ 5 callersClassMockHFConfig
tests/unit/runtime/test_tp_plan_extraction.py:29
↓ 5 callersClassMockMoEOnlyTransformer
tests/unit/v1/moe/autoep_test_utils.py:135
↓ 5 callersClassMpiBackend
deepspeed/runtime/comm/mpi.py:16
↓ 5 callersClassNoop
deepspeed/comm/torch.py:92
↓ 5 callersClassOneCycle
Sets the learning rate of each parameter group according to 1Cycle learning rate policy (1CLR). 1CLR is a variation of the Cyclical Learning R
deepspeed/runtime/lr_schedules.py:389
↓ 5 callersClassOptimizedLinear
Optimized version of nn.Linear that adds features such as: * LoRA w. base weight sharding * FP [6,8,12] quantization Arguments:
deepspeed/linear/optimized_linear.py:18
↓ 5 callersClassPartialTrainableModel
A model where some parameters use Muon and some use AdamW. This simulates the scenario where: - Hidden layers use Muon (ndim >= 2) -
tests/unit/v1/ops/muon/test_muon_partial_training.py:33
next →1–100 of 1,989, ranked by callers