MCPcopy Create free account

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

Types & classes2,353 in github.com/deepspeedai/DeepSpeed

↓ 204 callersClassSimpleModel
tests/unit/simple_model.py:20
↓ 54 callersClassMockMoETransformer
tests/unit/v1/moe/autoep_test_utils.py:97
↓ 53 callersClassAffinePiece
A block of elements, described where it lives in the full tensor and in the shard. A piece holds the same elements in the same arrangement on bot
deepspeed/checkpoint/affine.py:43
↓ 52 callersClassHybridEngineRollout
Rollout engine using DeepSpeed hybrid engine. Args: engine: DeepSpeed engine wrapping the model. tokenizer: HuggingFace tokenizer
deepspeed/runtime/rollout/hybrid_engine_rollout.py:150
↓ 51 callersClassParamAffineMap
How one parameter is spread over a tensor-parallel group. ``shard_shapes`` gives each rank the shape of the tensor it holds, and ``pieces_by_
deepspeed/checkpoint/affine.py:213
↓ 41 callersClassAutoTPMeta
Per-model tensor-parallel metadata AutoTP derives from the model config. Each model carries its own kv-head / grain values so its layers, fused-Q
deepspeed/module_inject/tp_shard.py:50
↓ 41 callersClassDeepSpeedConfig
deepspeed/runtime/config.py:439
↓ 41 callersClassSamplingConfig
Sampling knobs that the trainer passes to ``generate`` each step. ``top_k <= 0`` disables top-k filtering.
deepspeed/runtime/rollout/base.py:28
↓ 40 callersClassRolloutRequest
Input to ``RolloutEngine.generate``. Prompts arrive *left-padded* (i.e. real tokens at the right edge) so that causal generation appends natu
deepspeed/runtime/rollout/base.py:43
↓ 35 callersClassAsyncIOBuilder
op_builder/async_io.py:13
↓ 33 callersClassAutoEPConfig
User-facing configuration parsed from DS config JSON.
deepspeed/module_inject/auto_ep_presets/base.py:107
↓ 29 callersClassHybridEngineRolloutConfig
Configuration for HybridEngineRollout. ``align_decode_fronts`` is opt-in. When false, continuous batching keeps the existing equal-width padd
deepspeed/runtime/rollout/hybrid_engine_rollout.py:115
↓ 27 callersClassOutputModel
tests/unit/module_inject/test_tp_partition_config_path.py:56
↓ 26 callersClassAutoEP
Automatic Expert Parallelism: detect and replace MoE layers.
deepspeed/module_inject/auto_ep.py:402
↓ 22 callersClassTmpRepo
A throwaway git repo seeded with BASELINE, committed on ``master``.
ci/test_tests_fetcher.py:79
↓ 21 callersClassDeepSpeedZeroConfig
Sets parameters for ZeRO optimizations.
deepspeed/runtime/zero/config.py:90
↓ 20 callersClassDeepSpeedCPUAdam
deepspeed/ops/adam/cpu_adam.py:13
↓ 20 callersClassDtypeEnum
deepspeed/inference/v2/inference_utils.py:18
↓ 19 callersClassAutoTPConfig
Configuration for Automatic Tensor Parallelism. Example usage: config = AutoTPConfig( tp_size=4, layer_specs
deepspeed/module_inject/autotp_config.py:230
↓ 19 callersClassMockMoEBlock
tests/unit/v1/moe/autoep_test_utils.py:55
↓ 18 callersClassAutoTP
deepspeed/module_inject/auto_tp.py:210
↓ 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
↓ 17 callersClassAutoEPMoELayer
Drop-in replacement for HF MoE blocks with Expert Parallelism support.
deepspeed/module_inject/auto_ep_layer.py:512
↓ 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
↓ 16 callersClassGatheredParameters
deepspeed/runtime/zero/partition_parameters.py:2292
↓ 16 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
↓ 16 callersClassTransferEndpoints
Which process holds each location named by the plan. ``source`` covers source ranks, ``target`` covers target ranks, and the two are separate mapp
deepspeed/checkpoint/affine_transfer_executor.py:67
↓ 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 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
↓ 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 callersClassGroupedExperts
Grouped expert computation for MoE layers. Supports three execution paths: - **triton_grouped_mm**: Uses a Triton grouped-GEMM kernel
deepspeed/moe/ep_experts.py:439
↓ 13 callersClassPlanBudget
Limits on the plan, each checked before the work it would bound. Policy rather than correctness: a plan twice this size is still a correct plan,
deepspeed/checkpoint/affine_transfer.py:73
↓ 13 callersClassStagingBudget
Bytes a rank may stage per peer, in each direction, at one time. A property of the current torch point-to-point transport rather than of the plan
deepspeed/checkpoint/affine_transfer_executor.py:75
↓ 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:2169
↓ 13 callersClass_Model
Minimal stand-in that borrows the property under test.
tests/unit/inference/v2/model_implementations/test_rope_theta.py:20
↓ 12 callersClassContainerMap
deepspeed/inference/v2/model_implementations/inference_policy_base.py:28
↓ 12 callersClassLinearLayer
deepspeed/module_inject/layers.py:979
↓ 12 callersClassQuantizationConfig
Configuration settings for quantization for LoRAOptimizedLinear, QuantizedLinear, and QuantizedParameter Attributes: q_bits (int
deepspeed/linear/config.py:39
↓ 12 callersClassRotateHalfConfig
deepspeed/inference/v2/modules/configs/attention_configs.py:29
↓ 11 callersClassAwsControllerError
The AWS fallback failed after acquisition or for a non-capacity reason.
ci/torch_latest.py:271
↓ 11 callersClassDeepSpeedFP16Config
For float16 configuration
deepspeed/runtime/precision_config.py:100
↓ 11 callersClassDeepSpeedStaticCache
CUDA-graph-compatible static KV cache. Drop-in replacement for ``transformers.StaticCache`` in the graph-capture decode path of ``HybridEngin
deepspeed/utils/static_cache.py:194
↓ 11 callersClassMMapIndexedDataset
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:369
↓ 11 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
↓ 11 callersClassToyModelWithParams
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:210
↓ 11 callersClass_Attn
tests/unit/runtime/zero/test_per_head_muon.py:149
↓ 10 callersClassAffineTransferError
A composed transfer that must not be handed to a transport.
deepspeed/checkpoint/affine_transfer.py:44
↓ 10 callersClassDeepCompileZ3EagerFallback
Track eager-only ZeRO-3 gathers and restore partitioned state around compiled forwards.
deepspeed/compile/z3_eager_fallback.py:56
↓ 10 callersClassPinMemoryBuilder
op_builder/pin_memory.py:11
↓ 10 callersClassRaggedOpsBuilder
op_builder/ragged_ops.py:11
↓ 10 callersClassSimpleMoEModel
tests/unit/simple_model.py:69
↓ 10 callersClassTransferRequest
One parameter; ``key`` must identify it identically on every process.
deepspeed/checkpoint/affine_transfer_executor.py:94
↓ 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 callersClassChunkedCausalLMLoss
Drop-in for Hugging Face's ``ForCausalLMLoss`` with the same shifting, ignoring and normalization.
deepspeed/runtime/chunked_cross_entropy.py:246
↓ 9 callersClassDSLinearConfig
Config class for DSLinearBase.
deepspeed/inference/v2/modules/configs/linear_config.py:10
↓ 9 callersClassFakeAwsCli
ci/test_torch_latest.py:93
↓ 9 callersClassLinearAllreduce
deepspeed/module_inject/layers.py:884
↓ 9 callersClassMockHFModel
tests/unit/runtime/test_tp_plan_extraction.py:15
↓ 9 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
↓ 9 callersClassRepeatingLoader
deepspeed/runtime/dataloader.py:17
↓ 9 callersClassToyModel
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:27
↓ 8 callersClassCacheClassModel
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:177
↓ 8 callersClassDSNormConfig
Config class for both DSPreLN and DSPostLN.
deepspeed/inference/v2/modules/configs/norm_config.py:10
↓ 8 callersClassEvoformerAttnBuilder
op_builder/evoformer_attn.py:13
↓ 8 callersClassFakeEngine
tests/unit/v1/compile/test_z3_eager_fallback.py:126
↓ 8 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
↓ 8 callersClassPredicatedTileIteratorResidualLast
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:156
↓ 8 callersClassPythonGCManager
Coordinate process-wide GC state across multiple DeepSpeed engines.
deepspeed/runtime/python_gc.py:13
↓ 8 callersClassRolloutBatch
Output of ``RolloutEngine.generate``. ``input_ids`` holds the *concatenation* of (left-padded) prompt and response, right-padded to the longe
deepspeed/runtime/rollout/base.py:62
↓ 8 callersClassVocabParallelCausalLMLoss
Distributed causal-LM loss for a vocabulary-sharded (no-gather) LM head. ``sp_group`` must stay ``None`` under DeepSpeed's Ulysses sequence-paral
deepspeed/sequence/cross_entropy.py:342
↓ 7 callersClassCommsLogger
deepspeed/utils/comms_logging.py:67
↓ 7 callersClassContinuousBatchScheduler
FIFO scheduler for bounded, slot-based continuous batching. All submitted requests share the scheduler's ``max_new_tokens`` budget; requests
deepspeed/runtime/rollout/continuous_batching.py:49
↓ 7 callersClassDeepSpeedGPTInference
Initialize the DeepSpeed GPT Transformer Layer.
deepspeed/model_implementations/transformers/ds_gpt.py:9
↓ 7 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
↓ 7 callersClassFlopsProfiler
Measures the latency, number of estimated floating-point operations and parameters of each module in a PyTorch model. The flops-profiler profiles
deepspeed/profiling/flops_profiler/profiler.py:30
↓ 7 callersClassInferenceCoreBuilder
op_builder/klxpu/no_impl.py:147
↓ 7 callersClassMoEModelPreset
Preset configuration for a known MoE model family.
deepspeed/module_inject/auto_ep_presets/base.py:27
↓ 7 callersClassMockDeepSeekV3Transformer
tests/unit/v1/moe/test_autoep_unit.py:235
↓ 7 callersClassMuonWithAuxAdam
deepspeed/runtime/zero/muon/muon_optimizer.py:16
↓ 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 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 callersClassReplacementSourceMap
What a module replacement did, in the terms the client-optimizer remap needs. ``sources`` maps each replacement parameter to the source parameter
deepspeed/module_inject/auto_ep_layer.py:1247
↓ 7 callersClassReplicaPart
A cut of a request's region along axis 0, and the holder location it is read from.
deepspeed/checkpoint/affine_transfer.py:161
↓ 7 callersClassSynchronizedWallClockTimer
Group of timers. Borrowed from Nvidia Megatron code
deepspeed/utils/timer.py:25
↓ 7 callersClassWrapperLeafModule
tests/unit/runtime/zero/test_zero_leaf_module.py:139
↓ 7 callersClass_HybridModel
tests/unit/runtime/zero/test_per_head_muon.py:627
↓ 7 callersClassfused_LinearLayer
deepspeed/module_inject/layers.py:1479
↓ 7 callersClassmodel_3d_desc
deepspeed/checkpoint/reshape_3d_utils.py:20
↓ 6 callersClassAffineTransferExecutionError
Wrong enough that no data should have moved.
deepspeed/checkpoint/affine_transfer_executor.py:62
↓ 6 callersClassCPU_Accelerator
accelerator/cpu_accelerator.py:165
↓ 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 callersClassCompileConfig
Configure compile settings
deepspeed/compile/config.py:12
↓ 6 callersClassDecodeGraphCache
Dispatches generation forwards to a per-position graph. Args: forward: The original ``forward``, used both for capture and as the
deepspeed/runtime/hybrid_engine_graph.py:39
↓ 6 callersClassDeepSpeedInferenceConfig
Sets parameters for DeepSpeed Inference Engine.
deepspeed/inference/config.py:118
↓ 6 callersClassDeepSpeedStaticLayer
A single layer's static KV cache whose write position is externally set. Parameters ---------- max_cache_len : int Maximum number
deepspeed/utils/static_cache.py:34
↓ 6 callersClassDeepSpeedZeroOffloadOptimizerConfig
Set options for optimizer offload. Valid with stage 1, 2, and 3.
deepspeed/runtime/zero/offload_config.py:55
next →1–100 of 2,353, ranked by callers