MCPcopy Create free account

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

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

↓ 175 callersClassSimpleModel
tests/unit/simple_model.py:20
↓ 29 callersClassAutoEPConfig
User-facing configuration parsed from DS config JSON.
deepspeed/module_inject/auto_ep_presets/base.py:96
↓ 26 callersClassMockMoETransformer
tests/unit/v1/moe/autoep_test_utils.py:96
↓ 25 callersClassAsyncIOBuilder
op_builder/async_io.py:13
↓ 20 callersClassDtypeEnum
deepspeed/inference/v2/inference_utils.py:18
↓ 18 callersClassDeepSpeedCPUAdam
deepspeed/ops/adam/cpu_adam.py:13
↓ 18 callersClassDeepSpeedZeroConfig
Sets parameters for ZeRO optimizations.
deepspeed/runtime/zero/config.py:90
↓ 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 callersClassDeepSpeedConfig
deepspeed/runtime/config.py:676
↓ 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
↓ 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
↓ 12 callersClassContainerMap
deepspeed/inference/v2/model_implementations/inference_policy_base.py:28
↓ 12 callersClassRotateHalfConfig
deepspeed/inference/v2/modules/configs/attention_configs.py:29
↓ 12 callersClassTmpRepo
A throwaway git repo seeded with BASELINE, committed on ``master``.
ci/test_tests_fetcher.py:70
↓ 11 callersClassAutoTPConfig
Configuration for Automatic Tensor Parallelism. Example usage: config = AutoTPConfig( tp_size=4, layer_specs
deepspeed/module_inject/autotp_config.py:214
↓ 11 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
↓ 10 callersClassAutoEP
Automatic Expert Parallelism: detect and replace MoE layers.
deepspeed/module_inject/auto_ep.py:273
↓ 10 callersClassDeepSpeedFP16Config
For float16 configuration
deepspeed/runtime/precision_config.py:100
↓ 10 callersClassEvoformerAttnBuilder
op_builder/evoformer_attn.py:13
↓ 10 callersClassGatheredParameters
deepspeed/runtime/zero/partition_parameters.py:2237
↓ 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 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:15
↓ 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
↓ 9 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:1216
↓ 8 callersClassDSNormConfig
Config class for both DSPreLN and DSPostLN.
deepspeed/inference/v2/modules/configs/norm_config.py:10
↓ 8 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
↓ 8 callersClassPredicatedTileIteratorResidualLast
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:156
↓ 7 callersClassDeepSpeedGPTInference
Initialize the DeepSpeed GPT Transformer Layer.
deepspeed/model_implementations/transformers/ds_gpt.py:9
↓ 7 callersClassInferenceCoreBuilder
op_builder/inference_core_ops.py:11
↓ 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 callersClassRepeatingLoader
deepspeed/runtime/dataloader.py:17
↓ 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:17
↓ 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 callersClassLinearAllreduce
deepspeed/module_inject/layers.py:581
↓ 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 callersClassLinearLayer
deepspeed/module_inject/layers.py:678
↓ 6 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
↓ 6 callersClassMoEModelPreset
Preset configuration for a known MoE model family.
deepspeed/module_inject/auto_ep_presets/base.py:27
↓ 6 callersClassMockHFModel
tests/unit/runtime/test_tp_plan_extraction.py:15
↓ 6 callersClassMyModel
tests/unit/v1/zero/test_zero.py:243
↓ 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:33
↓ 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
↓ 6 callersClassnoop_context
deepspeed/runtime/utils.py:114
↓ 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 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:94
↓ 5 callersClassFP_Quantize
deepspeed/ops/fp_quantizer/quantize.py:43
↓ 5 callersClassHybridEngineRollout
Rollout engine using DeepSpeed hybrid engine. Args: engine: DeepSpeed engine wrapping the model. tokenizer: HuggingFace tokenizer
deepspeed/runtime/rollout/hybrid_engine_rollout.py:29
↓ 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 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 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 callersClassPartitionedTensor
deepspeed/runtime/utils.py:668
↓ 5 callersClassQuantizerBuilder
op_builder/quantizer.py:9
↓ 5 callersClassRaggedLogitsGather
CUDA Kernel implementation for gather the hidden states of the final token of each sequence. This is used to reduce the cost of the performin
deepspeed/inference/v2/kernels/ragged_ops/logits_gather/logits_gather.py:14
↓ 5 callersClassSequentialLinearModel
tests/unit/model_parallelism/test_autotp_custom_patterns.py:26
↓ 5 callersClassSimpleConf
tests/unit/runtime/test_ds_config_model.py:17
↓ 5 callersClassSimpleFrozenModel
tests/unit/simple_model.py:39
↓ 5 callersClassTorchCheckpointEngine
deepspeed/runtime/checkpoint_engine/torch_checkpoint_engine.py:15
↓ 5 callersClassUtilsBuilder
op_builder/utils.py:9
↓ 5 callersClass_ConcatFusionAdapter
Concrete subclass that appends visual tokens after text tokens.
deepspeed/sequence/test_autosp.py:279
↓ 4 callersClassAutoTP
deepspeed/module_inject/auto_tp.py:194
↓ 4 callersClassBertConfig
Configuration class to store the configuration of a `BertModel`.
tests/unit/modeling.py:173
↓ 4 callersClassDSMoEConfig
Config class for DSMoEBase
deepspeed/inference/v2/modules/configs/moe_config.py:10
↓ 4 callersClassDeQuantizer
deepspeed/inference/quantization/utils.py:96
↓ 4 callersClassDeepSpeedCPUAdagrad
deepspeed/ops/adagrad/cpu_adagrad.py:11
↓ 4 callersClassDtypeEnum
deepspeed/runtime/config.py:101
next →1–100 of 1,850, ranked by callers