Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ functions
Functions
15,468 in github.com/deepspeedai/DeepSpeed
⨍
Functions
15,468
◇
Types & classes
2,493
↳
Endpoints
106
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:425
Method
__init__
(self, config: Union[str, dict], mpu=None, mesh_device=None)
deepspeed/runtime/config.py:441
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
Method
__init__
(self, strict=False, **data)
deepspeed/runtime/config_utils.py:54
Method
__init__
(self, params)
deepspeed/runtime/utils.py:46
Method
__init__
(self)
deepspeed/runtime/utils.py:103
Method
__init__
(self, param_groups=None, mpu=None, zero_reduce_scatter=False, deepspeed=None)
deepspeed/runtime/utils.py:246
Method
__init__
(self, tensor, group, partition_meta=None)
deepspeed/runtime/utils.py:745
Method
__init__
Args: preprocess_once_fn: A callable that takes no arguments and performs one-time preprocessing b
deepspeed/runtime/utils.py:1371
Method
__init__
(self, mlp_extra_grouping=True, mp_size=1)
deepspeed/runtime/weight_quantizer.py:13
Method
__init__
Wraps an iterator to allow for infinite iteration. This is especially useful for DataLoader types that we wish to automatically restart upon c
deepspeed/runtime/dataloader.py:19
Method
__init__
(self, dataset, batch_size, pin_memory, lo
deepspeed/runtime/dataloader.py:43
Method
__init__
(self, forward, max_positions)
deepspeed/runtime/hybrid_engine_graph.py:49
Method
__init__
(self, optimizer: Optimizer, lr_range_test_min_lr: float = 1e-3,
deepspeed/runtime/lr_schedules.py:352
Method
__init__
(self, optimizer: Optimizer, warmup_min_lr: float = 0.0, wa
deepspeed/runtime/lr_schedules.py:725
Method
__init__
(self, optimizer: Optimizer, total_num_steps: int, warmup_m
deepspeed/runtime/lr_schedules.py:814
Method
__init__
(self, optimizer: Optimizer, total_num_steps: int, warmup_m
deepspeed/runtime/lr_schedules.py:865
Method
__init__
(self)
deepspeed/runtime/python_gc.py:16
Method
__init__
(self, block_rows: int | None = None, backend: str = "auto")
deepspeed/runtime/chunked_cross_entropy.py:249
Method
__init__
(self)
deepspeed/runtime/engine.py:440
Method
__init__
(self)
deepspeed/runtime/engine.py:450
Method
__init__
(self, args, model, optimizer=None, model_
deepspeed/runtime/engine.py:520
Method
__init__
(self)
deepspeed/runtime/base_optimizer.py:103
Method
__init__
(self)
deepspeed/runtime/base_optimizer.py:267
Method
__init__
(self, in_features: int, out_features: int, bias: bool = True)
deepspeed/runtime/zero/linear.py:202
Method
__init__
(self, param: Parameter)
deepspeed/runtime/zero/partition_parameters.py:63
Method
__init__
(self, params: List[Parameter])
deepspeed/runtime/zero/partition_parameters.py:91
Method
__init__
(self, enabled=True, mem_efficient_linear=True, ds_config=None, dtype=None)
deepspeed/runtime/zero/partition_parameters.py:339
Method
__init__
(self, handle, param: Parameter, quantization=None, param_buffer=None, original_dtype=None)
deepspeed/runtime/zero/partition_parameters.py:700
Method
__init__
( self, allgather_handle, params: List[Parameter], partitions: List[Tensor],
deepspeed/runtime/zero/partition_parameters.py:734
Method
__init__
(self, handles: List[Union[AllGatherHandle, AllGatherCoalescedHandle]])
deepspeed/runtime/zero/partition_parameters.py:810
Method
__init__
(self, handle, params: List[Parameter])
deepspeed/runtime/zero/partition_parameters.py:820
← previous
next →
7,201–7,300 of 15,468, ranked by callers