MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 2 callersMethodget_graph_order
(self)
deepspeed/compile/backend.py:62
↓ 2 callersMethodget_handle
deepspeed/inference/v2/kernels/core_ops/blas_kernels/blas_utils.h:50
↓ 2 callersFunctionget_head_shard_sizes
(meta: AutoTPMeta, mp_group=None)
deepspeed/module_inject/auto_tp_model_utils.py:30
↓ 2 callersMethodget_hidden_heads
(self)
deepspeed/module_inject/containers/opt.py:127
↓ 2 callersMethodget_instantiation_memory_required_per_gpu
(self, zero_stage)
deepspeed/autotuning/autotuner.py:278
↓ 2 callersMethodget_intra_op_parallelism
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:92
↓ 2 callersFunctionget_kv_block_size
Return preferred granulatity for blocked KV-cache implementation.
deepspeed/inference/v2/kernels/ragged_ops/blocked_flash/blocked_flash.py:45
↓ 2 callersFunctionget_log_level_from_string
converts a log level string into its numerical equivalent. e.g. "info" => `logging.INFO`
deepspeed/utils/logging.py:183
↓ 2 callersMethodget_lora_matched_pair
Get the pair of lora params and its matched model parameters.
deepspeed/module_inject/containers/features/hybrid_engine.py:59
↓ 2 callersMethodget_lp_grad_fragment
(self, index_in_param_group)
deepspeed/utils/tensor_fragment.py:60
↓ 2 callersMethodget_lr
(self)
deepspeed/runtime/engine.py:3861
↓ 2 callersFunctionget_matched_pattern
(patterns_, name_)
deepspeed/checkpoint/ds_to_universal.py:318
↓ 2 callersFunctionget_matched_sub_params_pattern
(name_)
deepspeed/checkpoint/ds_to_universal.py:327
↓ 2 callersMethodget_model
(self, model_name)
tests/unit/hybrid_engine/test_he_llama.py:41
↓ 2 callersMethodget_model
(self, model_name)
tests/unit/hybrid_engine/test_he_lora.py:123
↓ 2 callersMethodget_model
(self, model_name)
tests/unit/hybrid_engine/test_he_all.py:41
↓ 2 callersFunctionget_model_3d_descriptor
(dir)
deepspeed/checkpoint/reshape_3d_utils.py:127
↓ 2 callersFunctionget_model_3d_descriptor_from_metadata
Derive checkpoint topology without loading checkpoint contents.
deepspeed/checkpoint/reshape_3d_utils.py:76
↓ 2 callersFunctionget_model_ckpt_name_for_rank
(base_folder, mp_rank_str)
deepspeed/checkpoint/utils.py:11
↓ 2 callersMethodget_model_num_params
(self)
deepspeed/autotuning/autotuner.py:660
↓ 2 callersMethodget_model_parallel_rank
(self)
deepspeed/runtime/pipe/topology.py:444
↓ 2 callersFunctionget_model_profile
Returns the total floating-point operations, MACs, and parameters of a model. Example: .. code-block:: python model = torchvision.m
deepspeed/profiling/flops_profiler/profiler.py:1196
↓ 2 callersFunctionget_module_flops
(module)
deepspeed/profiling/flops_profiler/profiler.py:1178
↓ 2 callersMethodget_mom
Calculates the momentum at batch index. This function treats `self.last_batch_iteration` as the last batch index.
deepspeed/runtime/lr_schedules.py:662
↓ 2 callersMethodget_name
(self)
tests/unit/v1/compile/test_list_schedule.py:560
↓ 2 callersFunctionget_new_runnable_nodes_with
(scheduled: List[Node], edges: Dict[Node, List[Node]], new_scheduled: Node)
deepspeed/compile/list_schedule.py:121
↓ 2 callersFunctionget_numa_cores
()
deepspeed/utils/numa.py:24
↓ 2 callersFunctionget_numactl_cmd
(bind_core_list, num_local_procs, local_rank)
deepspeed/utils/numa.py:104
↓ 2 callersFunctionget_offloaded_activations_for_backward
Offload checkpoint inputs asynchronously and empty their GPU storage. The engine holds a detached alias that keeps the source storage alive until
deepspeed/runtime/activation_checkpointing/checkpointing.py:519
↓ 2 callersFunctionget_only_unique_item
(items)
deepspeed/runtime/utils.py:949
↓ 2 callersMethodget_op_builder
(self, class_name)
accelerator/hpu_accelerator.py:296
↓ 2 callersFunctionget_optim_files
(checkpoint_dir)
deepspeed/utils/zero_to_fp32.py:116
↓ 2 callersMethodget_optimizer_configuration
(self, optimizer_parameters, adam_w_mode, allow_legacy_fallback=False)
deepspeed/runtime/engine.py:2450
↓ 2 callersFunctionget_optimizer_name
(param_dict)
deepspeed/runtime/config.py:288
↓ 2 callersFunctionget_optimizer_params
(param_dict)
deepspeed/runtime/config.py:295
↓ 2 callersMethodget_or_create_sequence
Get the existing sequence descriptor for a given uid or initialize one if it does not exist. NOTE: This will always return a valid se
deepspeed/inference/v2/ragged/ragged_manager.py:130
↓ 2 callersMethodget_overlap_events
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:90
↓ 2 callersFunctionget_param_nodes
(graph: Graph, index_to_ds_ids: List[Tuple[int, int]])
deepspeed/compile/util.py:137
↓ 2 callersMethodget_partition_config_object
Get the AutoTPConfig object from the configuration. Returns None if no custom config is specified.
deepspeed/runtime/tensor_parallel/config.py:122
↓ 2 callersFunctionget_partitioned_activations_for_backward
(args, inputs, contiguous_checkpoint)
deepspeed/runtime/activation_checkpointing/checkpointing.py:442
↓ 2 callersFunctionget_pass_contract
(name: str)
deepspeed/compile/passes/contract.py:56
↓ 2 callersMethodget_pipeline_model_parallel_world_size
(self)
deepspeed/runtime/pipe/topology.py:419
↓ 2 callersMethodget_prefix
(self)
op_builder/ragged_utils.py:59
↓ 2 callersMethodget_prefix
(self)
op_builder/inference_core_ops.py:59
↓ 2 callersMethodget_prompt
(self, batch_size)
tests/unit/hybrid_engine/test_he_llama.py:57
↓ 2 callersMethodget_prompt
(self, batch_size)
tests/unit/hybrid_engine/test_he_all.py:55
↓ 2 callersFunctionget_q_block_size
Returns the query block size required by the kernel given a head size.
deepspeed/inference/v2/kernels/ragged_ops/blocked_flash/blocked_flash.py:15
↓ 2 callersFunctionget_q_props
(q_bits)
tests/unit/ops/quantizer/test_quantize.py:40
↓ 2 callersMethodget_quant_range
(q_bits=None)
op_builder/fp_quantizer.py:81
↓ 2 callersFunctionget_quantize_weight_fn
(quantizer: Quantizer, pre_quant_weight: nn.Parameter)
deepspeed/inference/quantization/layers.py:34
↓ 2 callersFunctionget_quantized_weight_wrapper
(model, pre_quant_weight: nn.Parameter, quantize_weight_fn: Callable)
deepspeed/inference/quantization/layers.py:20
↓ 2 callersMethodget_query_offset
(self, layer_idx: int = 0)
deepspeed/utils/static_cache.py:333
↓ 2 callersMethodget_queue_depth
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:83
↓ 2 callersMethodget_rank_repr
Return a string representation of a rank. This method is primarily used for checkpointing model data. For example: >>> t
deepspeed/runtime/pipe/topology.py:69
↓ 2 callersMethodget_rocm_gpu_arch
()
op_builder/builder.py:273
↓ 2 callersMethodget_rocm_wavefront_size
()
op_builder/builder.py:290
↓ 2 callersMethodget_scales
(cls, out, num_groups)
op_builder/hpu/fp_quantizer.py:85
↓ 2 callersFunctionget_scheduler_name
(param_dict)
deepspeed/runtime/config.py:325
↓ 2 callersMethodget_sd_loader_json
(json_file, checkpoint_engine)
deepspeed/runtime/state_dict_factory.py:24
↓ 2 callersFunctionget_sdpa_attn_mask
Return SDPA's attn_mask argument and whether it was passed as a keyword.
deepspeed/compile/passes/sp_compile.py:151
↓ 2 callersMethodget_seq_length
(self, layer_idx: int = 0)
deepspeed/utils/static_cache.py:317
↓ 2 callersFunctionget_sequence_data_parallel_group
Get the sequence parallel group the caller rank belongs to.
deepspeed/runtime/sequence_parallel/parallel_state_sp.py:75
↓ 2 callersFunctionget_sequence_parallel_group
Get the sequence parallel group the caller rank belongs to.
deepspeed/runtime/sequence_parallel/parallel_state_sp.py:69
↓ 2 callersMethodget_single_submit
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:88
↓ 2 callersFunctionget_sized_buffer
(buffer, num_elems)
deepspeed/runtime/swap_tensor/utils.py:247
↓ 2 callersFunctionget_sorted_results
(log_dir, metric)
deepspeed/nvme/parse_nvme_stats.py:125
↓ 2 callersFunctionget_sorted_results
(log_dir, metric)
csrc/aio/py_test/parse_aio_stats.py:125
↓ 2 callersMethodget_src_dp_degree
(self)
deepspeed/checkpoint/zero_checkpoint.py:41
↓ 2 callersMethodget_src_pp_degree
(self)
deepspeed/checkpoint/zero_checkpoint.py:38
↓ 2 callersMethodget_state
(self)
deepspeed/runtime/data_pipeline/data_routing/scheduler.py:77
↓ 2 callersFunctionget_state_devices
Retrieve the devices of the specified state of the model. Args: model (DeepSpeedEngine): The model whose device allocations are to be che
deepspeed/runtime/zero/offload_states.py:91
↓ 2 callersMethodget_swap_paths
(self)
deepspeed/runtime/swap_tensor/utils.py:129
↓ 2 callersMethodget_swap_tensors
(self)
deepspeed/runtime/swap_tensor/utils.py:122
↓ 2 callersFunctionget_tensor_model_parallel_group
Get the tensor model parallel group the caller rank belongs to.
deepspeed/utils/groups.py:245
↓ 2 callersFunctionget_tensor_model_parallel_world_size
Return world size for the tensor model parallel group.
deepspeed/utils/groups.py:274
↓ 2 callersMethodget_tokenizer
(self, model_name)
tests/unit/hybrid_engine/test_he_llama.py:52
↓ 2 callersMethodget_tokenizer
(self, model_name)
tests/unit/hybrid_engine/test_he_all.py:50
↓ 2 callersMethodget_total_duration
Returns the total duration of the model forward pass. Args: as_string (bool, optional): whether to output the duration as string.
deepspeed/profiling/flops_profiler/profiler.py:256
↓ 2 callersMethodget_total_params
Returns the total number of parameters stored per rank. Args: as_string (bool, optional): whether to output the parameters as str
deepspeed/profiling/flops_profiler/profiler.py:268
↓ 2 callersFunctionget_tuning_keys
Outputs the list of tunable parameters in the tuning space dict. Args: tuning_space (dict): a configuration dictionary containing tunable
deepspeed/autotuning/utils.py:272
↓ 2 callersFunctionget_val_by_key
(d: dict, k)
deepspeed/autotuning/utils.py:133
↓ 2 callersMethodget_val_from_user_args
(self, ds_name)
deepspeed/autotuning/autotuner.py:1003
↓ 2 callersFunctionget_wrapped_partitioner
( z3_partition: bool, param_indices: List[Tuple[int, int, torch.Size]], partition_fn, frame_id
deepspeed/compile/partitioner.py:93
↓ 2 callersFunctionget_xdist_worker_id
()
tests/unit/common.py:39
↓ 2 callersFunctionget_zero3_ds_config
(hf_config: OPTConfig, cpu_offload: bool, nvme_offload: bool, bits: int)
tests/unit/inference/quantization/test_intX_quantization.py:64
↓ 2 callersMethodget_zero_checkpoint_state
(self, pp_index, tp_index, dp_index, strip_tensor_paddings: bool = True)
deepspeed/checkpoint/deepspeed_checkpoint.py:181
↓ 2 callersMethodgradient_count
How many values the backward returns, parsed rather than counted. Counting commas in the source would also count the ones inside calls
tests/unit/module_inject/test_auto_ep_comm.py:1105
↓ 2 callersMethodgradient_reduction_w_predivide
(self, tensor, communication_data_type: torch.dtype)
deepspeed/runtime/zero/stage_1_and_2.py:1592
↓ 2 callersFunctiongrep_loss_from_file
(file_name)
tests/model/BingBertSquad/BingBertSquad_run_func_test.py:15
↓ 2 callersFunctiongrep_loss_from_file
(file_name)
tests/model/Megatron_GPT2/run_func_test.py:21
↓ 2 callersFunctiongrep_loss_from_file
(file_name)
tests/model/Megatron_GPT2/run_checkpoint_test.py:27
↓ 2 callersMethodgroup_step
(self, paramlist)
deepspeed/ops/adam/zenflow_torch_adam.py:540
↓ 2 callersFunctiongumbel_rsample
(shape: Tuple, device: torch.device)
deepspeed/moe/sharded_moe.py:79
↓ 2 callersMethodhandles_memory_backpressure
(self)
accelerator/hpu_accelerator.py:53
↓ 2 callersMethodhas_buffers
(self)
deepspeed/runtime/swap_tensor/async_swapper.py:35
↓ 2 callersFunctionhas_capability_or_fail
csrc/xpu/common/custom_cuda_kernel.dp.cpp:8
↓ 2 callersFunctionhas_coalescing_manager
()
deepspeed/comm/torch.py:83
↓ 2 callersMethodhas_data
Check if storage contains inputs Returns: True if inputs are stored, False otherwise
deepspeed/compile/input_storage.py:180
↓ 2 callersMethodhas_loss_data
(self, file_name)
tests/model/Megatron_GPT2/run_func_test.py:527
↓ 2 callersMethodhas_space
(self, numel)
deepspeed/runtime/swap_tensor/utils.py:143
← previousnext →2,601–2,700 of 14,579, ranked by callers