MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

Method__init__
(self, config: DeepSpeedInferenceConfig)
deepspeed/ops/transformer/inference/op_binding/bias_gelu.py:14
Method__init__
(self, config: DeepSpeedInferenceConfig)
deepspeed/ops/transformer/inference/op_binding/bias_relu.py:14
Method__init__
(self, config: DeepSpeedInferenceConfig)
deepspeed/ops/transformer/inference/op_binding/qkv_gemm.py:17
Method__init__
(self, config: DeepSpeedInferenceConfig)
deepspeed/ops/transformer/inference/op_binding/vector_matmul.py:14
Method__init__
(self, config: DeepSpeedInferenceConfig)
deepspeed/ops/transformer/inference/op_binding/softmax.py:15
Method__init__
(self, config: DeepSpeedInferenceConfig = None)
deepspeed/ops/transformer/inference/op_binding/pre_rms_norm.py:14
Method__init__
(self, config: DeepSpeedInferenceConfig = None)
deepspeed/ops/transformer/inference/op_binding/layer_norm.py:14
Method__init__
(self, quantization_config)
deepspeed/ops/fp_quantizer/quantize.py:45
Method__init__
(self, *args, overlap_step=False, **kwargs)
deepspeed/ops/adam/zenflow_cpu_adam.py:12
Method__init__
(self, *args, offload=False, bucket_size=5e8, **kwargs)
deepspeed/ops/adam/zenflow_torch_adam.py:285
Method__init__
(self, params, lr=1e-3, bias_correction=True,
deepspeed/ops/adam/fused_adam.py:76
Method__init__
Fast vectorized implementation of two variations of Adam optimizer on CPU: * Adam: A Method for Stochastic Optimization: (https://arxiv.org/a
deepspeed/ops/adam/cpu_adam.py:41
Method__init__
(self, chunk_size)
deepspeed/ops/adam/multi_tensor_apply.py:13
Method__init__
(self)
deepspeed/utils/pin_memory.py:24
Method__init__
(self, dtype, device="meta", enabled=True)
deepspeed/utils/init_on_device.py:33
Method__init__
(self)
deepspeed/utils/debug.py:28
Method__init__
(self, name)
deepspeed/utils/timer.py:31
Method__init__
(self)
deepspeed/utils/timer.py:124
Method__init__
(self)
deepspeed/utils/timer.py:190
Method__init__
(self, config, batch_size, start_step=2, s
deepspeed/utils/timer.py:208
Method__init__
(self)
deepspeed/utils/pin_memory_tracker.py:35
Method__init__
(self, max_cache_len: int)
deepspeed/utils/static_cache.py:46
Method__init__
(self, max_cache_len: int)
deepspeed/utils/static_cache.py:222
Method__init__
( self, config, batch_size: int = 1, max_cache_len: int = 4096, device
deepspeed/utils/static_cache.py:286
Method__init__
(self, flat_groups, flat_groups_offset, offset, partitioned_numel, shape)
deepspeed/utils/zero_to_fp32.py:470
Method__init__
(self)
deepspeed/utils/comms_logging.py:69
Method__init__
(self, input_dim: int, output_dim: int, bias: bool = False,
deepspeed/linear/optimized_linear.py:78
Method__init__
(self, lora_config=None, quant_config=None)
deepspeed/linear/context_manager.py:41
Method__init__
(self, input_dim: int, output_dim: int, bias: bool = False,
deepspeed/linear/quantization.py:139
Method__init__
(self, param_dict)
deepspeed/autotuning/config.py:12
Method__init__
(self, args, hosts, num_gpus_per_node, results_dir, exps_dir, arg_mappings)
deepspeed/autotuning/scheduler.py:34
Method__init__
(self, host, max_slots)
deepspeed/autotuning/scheduler.py:262
Method__init__
(self, node, slots)
deepspeed/autotuning/scheduler.py:277
Method__init__
(self, args, active_resources)
deepspeed/autotuning/autotuner.py:47
Method__init__
(self, exps: list, resource_manager, metric, tuning_space)
deepspeed/autotuning/tuner/model_based_tuner.py:22
Method__init__
(self, exps: list, resource_manager, metric)
deepspeed/autotuning/tuner/index_based_tuner.py:30
Method__init__
(self, exps, resource_manager, metric)
deepspeed/autotuning/tuner/base_tuner.py:15
Method__init__
(self, loss_type, num_threads=None, log_interval=25, upper_model=None)
deepspeed/autotuning/tuner/cost_model.py:16
Method__init__
(self, tokens, labels, loss_mask, attention_mask, position_ids, args, sp_size, sp_rank)
deepspeed/sequence/fpdt_layer.py:89
Method__init__
(self, config, first_weight, first_bias, s
deepspeed/sequence/fpdt_layer.py:1135
Method__init__
(self, tp_group=None, sp_group=None, vocab_start_index=None
deepspeed/sequence/cross_entropy.py:310
Method__init__
(self)
deepspeed/sequence/linear_cross_entropy.py:327
Method__init__
(self, head, capture, sp_group=None, ignore_index=-100, chunk_size=None)
deepspeed/sequence/linear_cross_entropy.py:357
Method__init__
(self)
deepspeed/sequence/test_autosp.py:65
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:492
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:76
Method__init__
(self, logical_shape, shard_shapes, pieces_by_rank)
deepspeed/checkpoint/affine.py:201
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
← previousnext →7,101–7,200 of 15,468, ranked by callers