MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

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, 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
Method__init__
(self, enable_cuda_graph=False)
deepspeed/model_implementations/features/cuda_graph.py:11
Method__init__
(self, unet, enable_cuda_graph=True)
deepspeed/model_implementations/diffusers/unet.py:13
Method__init__
(self, vae, enable_cuda_graph=True)
deepspeed/model_implementations/diffusers/vae.py:13
Method__init__
(self, args)
deepspeed/nvme/perf_run_sweep.py:33
Method__init__
(self, args, tid, read_op)
deepspeed/nvme/ds_aio_handle.py:21
Method__init__
(self, args, tid, read_op)
deepspeed/nvme/torch_io.py:15
Method__init__
(self, cmd_line, output_file=None, work_dir=None)
deepspeed/nvme/ds_aio_job.py:14
Method__init__
(self, args, tid, read_op)
deepspeed/nvme/torch_fastio_engine.py:17
Method__init__
(self, args, tid, read_op)
deepspeed/nvme/ds_aio_basic.py:18
Method__init__
(self, monitor_config)
deepspeed/monitor/monitor.py:32
Method__init__
(self, tensorboard_config)
deepspeed/monitor/tensorboard.py:15
Method__init__
(self, wandb_config)
deepspeed/monitor/wandb.py:14
Method__init__
(self, comet_config: "CometConfig")
deepspeed/monitor/comet.py:25
Method__init__
(self, samples_log_interval: int)
deepspeed/monitor/comet.py:76
Method__init__
(self, csv_config)
deepspeed/monitor/csv_monitor.py:14
Method__init__
(self, args, world_info_base64)
deepspeed/launcher/multinode_runner.py:21
Method__init__
(self, args, world_info_base64, resource_pool)
deepspeed/launcher/multinode_runner.py:134
Method__init__
(self, args, world_info_base64, resource_pool)
deepspeed/launcher/multinode_runner.py:196
Method__init__
(self, args, world_info_base64, resource_pool)
deepspeed/launcher/multinode_runner.py:268
Method__init__
(self, args, world_info_base64, resource_pool)
deepspeed/launcher/multinode_runner.py:353
Method__init__
(self, args, world_info_base64, resource_pool)
deepspeed/launcher/multinode_runner.py:426
Method__init__
(self, param_dict)
deepspeed/datastates/config.py:17
Method__init__
(self, data=None)
deepspeed/runtime/config.py:430
Method__init__
(self, config: Union[str, dict], mpu=None, mesh_device=None)
deepspeed/runtime/config.py:446
Method__init__
(self, ckpt_list, version, checkpoint_engine)
deepspeed/runtime/state_dict_factory.py:190
Method__init__
(self, dense_tensor=None)
deepspeed/runtime/sparse_tensor.py:16
Method__init__
(self, init_optimizer, param_names, bfloat16_config,
deepspeed/runtime/bf16_optimizer.py:41
Method__init__
(self, args, model, **kwargs)
deepspeed/runtime/hybrid_engine.py:31
← previousnext →7,301–7,400 of 15,767, ranked by callers