MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

Method__init__
(self, num_layers=2)
deepspeed/sequence/test_autosp.py:82
Method__init__
(self)
deepspeed/sequence/test_autosp.py:148
Method__init__
(self, attn: nn.Module, process_group, has_cls_token: bool = True)
deepspeed/sequence/autosp_vit.py:65
Method__init__
( self, local_attention: Module, sequence_process_group: dist.ProcessGroup, sc
deepspeed/sequence/layer.py:478
Method__init__
(self, projection: nn.Module, process_group, image_token_id: int = _DEFAULT_IMAGE_TOKEN_ID)
deepspeed/sequence/autosp_fusion.py:106
Method__init__
(self, param_dict)
deepspeed/profiling/config.py:12
Method__init__
(self, model, ds_engine=None, recompute_fwd_factor=0.0)
deepspeed/profiling/flops_profiler/profiler.py:67
Method__init__
(self, pp_degree=1, tp_degree=1, dp_degree=1)
deepspeed/checkpoint/reshape_3d_utils.py:22
Method__init__
(self, shape, source_offset, source_strides, dest_offset, dest_strides, locations, scale=1.0)
deepspeed/checkpoint/affine.py:72
Method__init__
(self, logical_shape, shard_shapes, pieces_by_rank)
deepspeed/checkpoint/affine.py:220
Method__init__
(self, dir, source_3d=None)
deepspeed/checkpoint/zero_checkpoint.py:19
Method__init__
(self, dir, tp_degree=None, pp_degree=None,
deepspeed/checkpoint/deepspeed_checkpoint.py:45
Method__init__
(self, pp_degree, tp_degree)
deepspeed/checkpoint/reshape_meg_2d.py:11
Method__init__
(self, pinned_tensor, dnvme_handle)
deepspeed/io/base_io_buffer.py:11
Method__init__
(self, file_path, config)
deepspeed/io/fast_file_writer.py:46
Method__init__
(self, pinned_tensor, dnvme_handle)
deepspeed/io/double_io_buffer.py:15
Method__init__
(self, file_path)
deepspeed/io/base_file_writer.py:16
Method__init__
(self, file_path)
deepspeed/io/mock_file_writer.py:13
Method__init__
(self, file_path)
deepspeed/io/py_file_writer.py:13
Method__init__
(self, pinned_tensor, dnvme_handle)
deepspeed/io/single_io_buffer.py:11
Method__init__
(self, fw_graph: Graph, sample_inputs: Any, index_to_ds_ids: List[Tuple[int, int, int]])
deepspeed/compile/graph_param.py:35
Method__init__
(self, release_expected: Dict[int, int], live_bytes_by_ds_id: Optional[Dict[
deepspeed/compile/list_schedule.py:335
Method__init__
(self, engine)
deepspeed/compile/z3_eager_fallback.py:59
Method__init__
(self)
deepspeed/compile/backend.py:48
Method__init__
(self, device)
deepspeed/compile/util.py:191
Method__init__
(self)
deepspeed/compile/util.py:377
Method__init__
(self, grad_buffers, flat_partition, release_fn)
deepspeed/compile/init_z1_and_2.py:26
Method__init__
(self, op, *args, **kwargs)
deepspeed/compile/inductor.py:247
Method__init__
(self, keep_int_input_tensors: bool = False, keep_all_input_tensors: bool = False)
deepspeed/compile/input_storage.py:29
Method__init__
(self, gm: GraphModule, debug_log=False, process_group=None)
deepspeed/compile/profilers/graph_profile.py:423
Method__init__
Args: model: torch.nn.Module config: DeepSpeedInferenceConfig
deepspeed/inference/engine.py:49
Method__init__
(self, config: Dict, pre_quant_layer: nn.Embedding)
deepspeed/inference/quantization/layers.py:77
Method__init__
(self, config: Dict)
deepspeed/inference/quantization/utils.py:50
Method__init__
(self, config: Dict, dtype: torch.dtype)
deepspeed/inference/quantization/utils.py:103
Method__init__
(self, config_dict_or_path, param_swapper: AsyncPartitionedParameterSwapper = None)
deepspeed/inference/quantization/quantization_context.py:12
Method__init__
(self, result: SchedulingResult)
deepspeed/inference/v2/scheduling_utils.py:52
Method__init__
Create the Inference V2 engine. Arguments: policy (InferenceV2Policy): Policy for the model implementation. This policy
deepspeed/inference/v2/engine_v2.py:68
Method__init__
The key
deepspeed/inference/v2/ragged/ragged_manager.py:55
Method__init__
Initialize an allocator with `num_blocks` blocks. This requires at least `num_blocks` * 4 bytes of host memory. Parameters:
deepspeed/inference/v2/ragged/blocked_allocator.py:33
Method__init__
Convenience wrapper around the data structures used to represent a ragged batch for inference. Only a single `RaggedBatchWrapper` sho
deepspeed/inference/v2/ragged/ragged_wrapper.py:79
Method__init__
(self, seen_tokens=0, cur_allocated_blocks=0, kv_blocks_ptr=0)
deepspeed/inference/v2/ragged/sequence_descriptor.py:41
Method__init__
Create the metadata to track a single sequence in the system. Arguments: tracking_id (int): The slot in the tracking buf
deepspeed/inference/v2/ragged/sequence_descriptor.py:98
Method__init__
Create a container that will maintain the storage and allocations for a set of blocked KV-caches. Parameters: co
deepspeed/inference/v2/ragged/kv_cache.py:60
Method__init__
Initialize the module with the given config.
deepspeed/inference/v2/modules/ds_module.py:56
Method__init__
(self, config: DSNormConfig, implementation_config: Dict[str, Any])
deepspeed/inference/v2/modules/implementations/post_norm/cuda_post_ln.py:36
Method__init__
Create the Attention DSModule. Args: config (DSSelfAttentionConfig): The self attention config for all attention DSModul
deepspeed/inference/v2/modules/implementations/attention/dense_blocked_attention.py:65
Method__init__
(self, config: DSLinearConfig, implementation_config: Dict[str, Any])
deepspeed/inference/v2/modules/implementations/linear/blas_fp_linear.py:55
Method__init__
(self, config: DSLinearConfig, implementation_config: Dict[str, Any])
deepspeed/inference/v2/modules/implementations/linear/quantized_linear.py:129
Method__init__
(self, config: DSUnembedConfig, implementation_config: Dict[str, Any])
deepspeed/inference/v2/modules/implementations/unembed/ragged_unembed.py:55
Method__init__
(self, config: DSEmbeddingsConfig, implementation_config: Dict[str, Any])
deepspeed/inference/v2/modules/implementations/embedding/ragged_embedding.py:45
Method__init__
(self, config: DSNormConfig, implementation_config: Dict[str, Any])
deepspeed/inference/v2/modules/implementations/pre_norm/cuda_pre_rms.py:41
Method__init__
(self, config: DSNormConfig, implementation_config: Dict[str, Any])
deepspeed/inference/v2/modules/implementations/pre_norm/cuda_pre_ln.py:41
Method__init__
(self, config: DSMoEConfig, implementation_config: Dict[str, Any])
deepspeed/inference/v2/modules/implementations/moe/cutlass_multi_gemm.py:50
Method__init__
(self, config: DSEmbeddingsConfig, implementation_config: Dict[str, Any])
deepspeed/inference/v2/modules/interfaces/embedding_base.py:33
Method__init__
(self, config: DSNormConfig, implementation_config: Dict[str, Any])
deepspeed/inference/v2/modules/interfaces/pre_norm_base.py:38
Method__init__
(self, config: DSSelfAttentionConfig, implementation_config: Dict[str, Any])
deepspeed/inference/v2/modules/interfaces/attention_base.py:32
Method__init__
(self, config: DSNormConfig, implementation_config: Dict[str, Any])
deepspeed/inference/v2/modules/interfaces/post_norm_base.py:33
Method__init__
(self, config: DSLinearConfig, implementation_config: Dict[str, Any])
deepspeed/inference/v2/modules/interfaces/linear_base.py:33
Method__init__
(self, config: DSMoEConfig, implementation_config: Dict[str, Any])
deepspeed/inference/v2/modules/interfaces/moe_base.py:31
Method__init__
(self, config: DSUnembedConfig, implementation_config: Dict[str, Any])
deepspeed/inference/v2/modules/interfaces/unembed_base.py:30
Method__init__
Create virtual checkpoint engine for the provided module. Args: model (torch.nn.Module): Model to load parameters from.
deepspeed/inference/v2/checkpoint/in_memory_engine.py:26
Method__init__
(self, model_name_or_path: str, auth_token: str = None, **hf_kwargs)
deepspeed/inference/v2/checkpoint/huggingface_engine.py:18
Method__init__
If necessary trigger compilation and warmup Autotuning of the kernel would happen at this stage to eliminate any potential ha
deepspeed/inference/v2/kernels/ds_kernel.py:12
Method__init__
(self)
deepspeed/inference/v2/kernels/core_ops/cuda_linear/cuda_linear.py:22
Method__init__
Compile and validate for the fused bias-activation kernel. Parameters: channels (int): Number of channels to expect in t
deepspeed/inference/v2/kernels/core_ops/bias_activations/bias_activation.py:24
Method__init__
Parameters: fp_dtype (torch.dtype): Data type for the input/output. Supported values are torch.float16, torch.bfl
deepspeed/inference/v2/kernels/core_ops/blas_kernels/blas_linear.py:22
Method__init__
Parameters: channels (int): Number of channels in the input tensor. Must be divisible to align to 16 bytes.
deepspeed/inference/v2/kernels/core_ops/cuda_layer_norm/cuda_fp_ln_base.py:21
Method__init__
Compile and validate for the gated activation function. Args: channels (int): Number of columns in the output tensor. Mu
deepspeed/inference/v2/kernels/core_ops/gated_activations/gated_activation.py:25
Method__init__
Parameters: channels (int): Number of channels in the input tensor. Must be divisible to align to 16 bytes.
deepspeed/inference/v2/kernels/core_ops/cuda_rms_norm/rms_norm_base.py:21
Method__init__
Triggers compilation of the C++ implementation.
deepspeed/inference/v2/kernels/ragged_ops/atom_builder/atom_builder.py:21
Method__init__
Parameters: fp_dtype (torch.dtype): Data type for the input/output. Supported values are torch.float16, torch.bfl
deepspeed/inference/v2/kernels/ragged_ops/logits_gather/logits_gather.py:22
Method__init__
(self, logit_dtype: DtypeEnum)
deepspeed/inference/v2/kernels/ragged_ops/top_k_gating/top_k_gating.py:24
Method__init__
(self, dtype: DtypeEnum, channels: int)
deepspeed/inference/v2/kernels/ragged_ops/moe_scatter/moe_scatter.py:22
Method__init__
Args: embed_dtype (torch.dtype): Data type of the embedding table and output dtype. Supported values are torch.fl
deepspeed/inference/v2/kernels/ragged_ops/embed/embed.py:26
Method__init__
Args: head_size: The size of the attention head. dtype: Data type for the input/output. Supported values are torch.fl
deepspeed/inference/v2/kernels/ragged_ops/linear_blocked_kv_rotary/blocked_kv_rotary.py:24
Method__init__
Args: head_size: The size of the attention head. dtype: Data type for the input/output. Supported values are torch.fl
deepspeed/inference/v2/kernels/ragged_ops/linear_blocked_kv_rotary/linear_blocked_kv_copy.py:29
Method__init__
Args: head_size: The size of the attention head. dtype: Data type for the input/output. Supported values are torch.fl
deepspeed/inference/v2/kernels/ragged_ops/linear_blocked_kv_rotary/blocked_trained_kv_rotary.py:29
Method__init__
(self, dtype: DtypeEnum, channels: int, normalize_scores: bool = False)
deepspeed/inference/v2/kernels/ragged_ops/moe_gather/moe_gather.py:21
Method__init__
Triggers any compilation of the kernels.
deepspeed/inference/v2/kernels/ragged_ops/blocked_flash/blocked_flash.py:70
Method__init__
(self, fp_dtype: DtypeEnum, act_fn: ActivationType, num_bits: int)
deepspeed/inference/v2/kernels/cutlass_ops/mixed_gemm/mixed_gemm.py:23
Method__init__
(self, fp_dtype: DtypeEnum, act_fn: ActivationType)
deepspeed/inference/v2/kernels/cutlass_ops/moe_gemm/moe_gemm.py:23
Method__init__
(self, fp_dtype: DtypeEnum, act_fn: ActivationType, num_bits: int)
deepspeed/inference/v2/kernels/cutlass_ops/moe_gemm/mixed_moe_gemm.py:23
Method__init__
Base implementation for initialization. By default, this will initialize the traditional components of a transformer model:
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:270
Method__init__
Constructor. Should not be called from client code. Args: param (ParameterBase): The owning parameter. n_par
deepspeed/inference/v2/model_implementations/parameter_base.py:208
Method__init__
Minimal initialization of the model. Arguments: config (DSModelImplementationConfig): Model-specific configuration. No a
deepspeed/inference/v2/model_implementations/inference_model_base.py:86
Method__init__
(self)
deepspeed/inference/v2/model_implementations/inference_policy_base.py:30
Method__init__
Create the Policy with sufficient context to build the model. There are two supported model creation mechanisms. The first i
deepspeed/inference/v2/model_implementations/inference_policy_base.py:111
Method__init__
Base implementation for initialization. By default, this will initialize the traditional components of a transformer model:
deepspeed/inference/v2/model_implementations/mixtral/model.py:139
Method__init__
(self, config: Any, engine_config: RaggedInferenceEngineConfig, base_mp_group: Any)
deepspeed/inference/v2/model_implementations/exaone4_5/model.py:123
Method__init__
(self, *args, **kwargs)
deepspeed/inference/v2/model_implementations/exaone4/model.py:99
Method__init__
Base implementation for initialization. By default, this will initialize the traditional components of a transformer model:
deepspeed/inference/v2/model_implementations/qwen_v2_moe/model.py:224
Method__init__
(self)
deepspeed/model_implementations/transformers/ds_base.py:11
Method__init__
(self, config, mp_group=None, quantize_scales=None,
deepspeed/model_implementations/transformers/ds_megatron_gpt.py:13
Method__init__
(self, config, mp_group=None, quantize_scales=None,
deepspeed/model_implementations/transformers/ds_transformer.py:36
Method__init__
(self, config, mp_group=None, quantize_scales=None,
deepspeed/model_implementations/transformers/ds_bloom.py:13
Method__init__
(self, config, mp_group=None, quantize_scales=None,
deepspeed/model_implementations/transformers/ds_opt.py:13
Method__init__
(self, config, mp_group=None, quantize_scales=None,
deepspeed/model_implementations/transformers/ds_llama2.py:14
Method__init__
(self, enc, enable_cuda_graph=False)
deepspeed/model_implementations/transformers/clip_encoder.py:13
Method__init__
(self, config, mp_group=None, quantize_scales=None,
deepspeed/model_implementations/transformers/ds_bert.py:13
Method__init__
(self, config, mp_group=None, quantize_scales=None,
deepspeed/model_implementations/transformers/ds_gpt.py:13
← previousnext →6,801–6,900 of 14,579, ranked by callers