MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions11,258 in github.com/deepspeedai/DeepSpeed

↓ 12 callersFunctionis_zero_param
(parameter)
deepspeed/runtime/zero/utils.py:142
↓ 12 callersFunctionmake_autoep_config
(zero_stage=0, ep_size=1, load_balance_coeff=UNSET, mixed_precision=True)
tests/unit/v1/moe/autoep_test_utils.py:191
↓ 12 callersFunctionmake_builder
(**overrides)
tests/unit/ops/test_op_builder.py:42
↓ 12 callersFunctionprint_rank_0
(message, debug=False, force=False)
deepspeed/runtime/zero/stage3.py:61
↓ 12 callersMethodput
Store real inputs Args: real_inputs: The real inputs to store (can be tensors, lists, tuples, etc.)
deepspeed/compile/input_storage.py:154
↓ 12 callersFunctionrecursive_getattr
Recursively get the attribute of a module. Args: model (`torch.nn.Module`) The model to get the attribute from. m
deepspeed/compression/helper.py:17
↓ 12 callersMethodseed
(self)
accelerator/mps_accelerator.py:78
↓ 12 callersMethodselector
(self)
ci/test_tests_fetcher.py:102
↓ 12 callersMethodset_non_transformer_params
(self, container: LayerContainer)
deepspeed/inference/v2/model_implementations/inference_policy_base.py:52
↓ 12 callersMethodset_transformer_params
(self, prefixes: Union[str, Iterable[str]], containers: List[LayerContainer])
deepspeed/inference/v2/model_implementations/inference_policy_base.py:43
↓ 12 callersMethodset_unmapped_params
(self, prefixes: Union[str, Iterable[str]])
deepspeed/inference/v2/model_implementations/inference_policy_base.py:55
↓ 12 callersFunctionset_z3_leaf_modules
Sets a flag within a module in `model` to instruct ZeRO3 to stop setting hooks recursively when it encounters a module class listed in `leaf_module_cl
deepspeed/utils/z3_leaf_module.py:149
↓ 12 callersMethodstats
(self)
deepspeed/compile/z3_eager_fallback.py:242
↓ 11 callersMethodEvent
(self)
accelerator/hpu_accelerator.py:115
↓ 11 callersMethodGetCublasHandle
csrc/transformer/inference/includes/inference_context.h:238
↓ 11 callersFunction_assert_rejects
(match, **kwargs)
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:79
↓ 11 callersFunction_init
(config, hidden_dim, seed=42, nlayers=2)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:61
↓ 11 callersMethod_start_timer
(self, name)
deepspeed/runtime/swap_tensor/optimizer_utils.py:519
↓ 11 callersMethod_stop_timer
(self, name)
deepspeed/runtime/swap_tensor/optimizer_utils.py:523
↓ 11 callersFunction_zero_module_with_param
()
tests/unit/v1/compile/test_z3_eager_fallback.py:21
↓ 11 callersFunctionbuild_batch_and_manager
Will construct and populate a batch and KVCache with the given sequence parameters. Arguments: seq_params (List[Tuple[int, int]]): A
tests/unit/inference/v2/kernels/ragged_ops/ragged_testing_utils.py:89
↓ 11 callersFunctionbuild_simple_batch
Construct a simple batch with the given sequence lengths. This method should not be used for for testing scenarios that require information a
tests/unit/inference/v2/kernels/ragged_ops/ragged_testing_utils.py:25
↓ 11 callersMethodcompute_capability_args
Returns nvcc compute capability compile flags. 1. Under ``jit_mode``, the precedence is: a. preserved ``TORCH_CUDA_ARCH_L
op_builder/builder.py:635
↓ 11 callersMethodconvert
Convert HF tp_plan to DeepSpeed layer specs. Returns None if the plan contains any unsupported partition styles, allowing the caller
deepspeed/module_inject/tp_plan_converter.py:20
↓ 11 callersMethodcuda_capability_major
Compute-capability major of CUDA device 0, or ``None`` when it cannot be read without side effects. ``torch.cuda.get_device_propertie
op_builder/builder.py:617
↓ 11 callersMethodelapsed
(self, **kwargs)
deepspeed/utils/timer.py:177
↓ 11 callersMethodget_coord
Return the coordinate owned by a process rank. The axes of the returned namedtuple can be directly accessed as members. For example:
deepspeed/runtime/pipe/topology.py:110
↓ 11 callersMethodget_data
(self, pp_index=None, tp_index=None)
deepspeed/checkpoint/reshape_meg_2d.py:31
↓ 11 callersMethodget_data_parallel_group
The group of ranks within the same stage of all pipelines.
deepspeed/runtime/pipe/topology.py:436
↓ 11 callersMethodget_tensor_model_parallel_rank
(self)
deepspeed/runtime/pipe/topology.py:462
↓ 11 callersFunctionis_gated
Return True if the given activation function is gated.
deepspeed/inference/v2/inference_utils.py:81
↓ 11 callersFunctionis_model_parallel_parameter
(p)
deepspeed/runtime/utils.py:154
↓ 11 callersFunctioniter_params
(module: Module, recurse=False)
deepspeed/runtime/zero/partitioned_param_coordinator.py:49
↓ 11 callersMethodload
(self, mp_world_size, mp_rank, module_key=AUTO_MODULE_KEY,
deepspeed/runtime/state_dict_factory.py:57
↓ 11 callersMethodmanual_seed_all
(self, seed)
accelerator/hpu_accelerator.py:91
↓ 11 callersMethodmax_memory_allocated
(self, device_index=None)
accelerator/hpu_accelerator.py:126
↓ 11 callersMethodmove
(self, tensor)
deepspeed/module_inject/layers.py:448
↓ 11 callersMethodparameter_id
(param)
deepspeed/runtime/swap_tensor/optimizer_utils.py:162
↓ 11 callersMethodpartition
(param_list=None, hierarchy=0, has_been_updated=False, free_data=True)
deepspeed/runtime/zero/partition_parameters.py:1559
↓ 11 callersMethodstrip_empty_entries
Drop any empty strings from the list of compile and link flags
op_builder/builder.py:398
↓ 11 callersMethodwrite
(self, args, tid)
deepspeed/nvme/torch_io.py:29
↓ 11 callersMethodzero_optimization
(self)
deepspeed/runtime/engine.py:1164
↓ 10 callersMethod__init__
(self, hidden_dim, empty_grad=False, nlayers=1)
tests/unit/simple_model.py:22
↓ 10 callersMethod__init__
(self)
tests/unit/modelingpreln.py:98
↓ 10 callersMethod__init__
(self, hidden_dim)
tests/unit/v1/zero/test_zero_user_backward.py:676
↓ 10 callersFunction_assert_checkpoint_state_clean
Assert no recompute params / active consumers remain and params are partitioned.
tests/unit/v1/zero/test_zero_activation_checkpoint_lifecycle.py:104
↓ 10 callersFunction_train
(config, hidden_dim, num_chunks, num_steps, use_no_sync, seed=42, nlayers=2)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:92
↓ 10 callersFunctionassert_valid_partition
(weights, parts, P)
tests/unit/runtime/utils/test_partition.py:82
↓ 10 callersFunctionauto_wrap_model_for_sp
Inject sequence-parallel wrappers into *model* in-place. Scans the model's named modules and replaces recognised attention layers with their
deepspeed/sequence/auto_sp.py:42
↓ 10 callersFunctionbwc_tensor_model_parallel_world_size
Backwards-compatible way of querying the tensor model parallel world size. Similar to bwc_tensor_model_parallel_rank.
deepspeed/utils/bwc.py:45
↓ 10 callersFunctioncreate_mmap_dataset_builder
(fname, dtype)
deepspeed/runtime/data_pipeline/data_sampling/utils.py:44
↓ 10 callersMethoddata_ptr
csrc/aio/py_lib/deepspeed_cpu_op.cpp:35
↓ 10 callersMethodflush
(self)
deepspeed/io/py_file_writer.py:25
↓ 10 callersMethodget_lr
Calculates the learning rate at batch index. This function treats `self.last_batch_iteration` as the last batch index.
deepspeed/runtime/lr_schedules.py:616
↓ 10 callersMethodget_model_parallel_rank
(self)
deepspeed/runtime/engine.py:1058
↓ 10 callersMethodget_partition_dp_group
(self, param)
deepspeed/runtime/zero/partition_parameters.py:2269
↓ 10 callersFunctiongroup_gemm_triton
Autograd-aware Triton grouped GEMM (2D x 3D), drop-in for ``torch._grouped_mm``. Args: mat_a: ``[M, K]`` float16/bfloat16/float32.
deepspeed/moe/group_gemm_triton.py:448
↓ 10 callersFunctioninstrument_w_nvtx
Decorator that records an NVTX range for the duration of the function call. Skips NVTX instrumentation when torch.compile is active to avoid gr
deepspeed/utils/nvtx.py:25
↓ 10 callersMethodis_synchronized_device
(self)
accelerator/hpu_accelerator.py:44
↓ 10 callersMethodis_triton_supported
(self)
accelerator/hpu_accelerator.py:191
↓ 10 callersMethodload
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:140
↓ 10 callersMethodpin_device_tensor
csrc/gds/py_lib/deepspeed_py_gds_handle.cpp:92
↓ 10 callersFunctionskip_on_device
()
tests/unit/model_parallelism/test_autotp_custom_patterns.py:21
↓ 10 callersMethodtrain_batch_size
(self)
deepspeed/runtime/engine.py:1128
↓ 10 callersMethodtransform_param
Perform any necessary transformations of the parameters of this module. Parameters: param (torch.Tensor): Weight or bias
deepspeed/inference/v2/modules/interfaces/linear_base.py:37
↓ 10 callersFunctionvalidate_schedule
Validate that a DeepCompile pass schedule satisfies the registered pass contracts. ``schedule`` uses the ``[(step, passes), ...]`` format consume
deepspeed/compile/passes/contract.py:71
↓ 10 callersMethodwrite
(self, sizes, doc_idx)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:400
↓ 9 callersMethodByteTensor
(self)
accelerator/hpu_accelerator.py:211
↓ 9 callersMethodFloatTensor
(self)
accelerator/hpu_accelerator.py:219
↓ 9 callersMethod__init__
(self)
tests/unit/modeling.py:102
↓ 9 callersMethod__init__
(self, parameter, observations)
tests/unit/v1/zero/test_zero_activation_checkpoint_lifecycle.py:32
↓ 9 callersFunction_flatten_dense_tensors
Flatten dense tensors into a contiguous 1D buffer. Assume tensors are of same dense type. Since inputs are dense, the resulting tensor will b
deepspeed/runtime/zenflow/zenflow_utils.py:19
↓ 9 callersFunction_initialize_zero3
(model, *, gradient_accumulation_steps=1, dtype=torch.float32, module_granularity_threshold=0)
tests/unit/v1/zero/test_zero_activation_checkpoint_lifecycle.py:88
↓ 9 callersMethod_replace_module
(self, r_module, prev_name='', prev_class_name='')
deepspeed/module_inject/auto_tp.py:653
↓ 9 callersFunction_runtime_config
(**kwargs)
tests/unit/v1/moe/test_autoep_unit.py:64
↓ 9 callersFunction_synchronize
()
tests/unit/v1/zero/test_zero_activation_checkpoint_lifecycle.py:99
↓ 9 callersMethod_validate_buffer_index
(self, index)
deepspeed/io/double_io_buffer.py:75
↓ 9 callersMethodbatch_metadata_buffer
Buffer associated with the batch metadata tensor that can be populated in preparation for passing a new input to the device.
deepspeed/inference/v2/ragged/ragged_wrapper.py:230
↓ 9 callersFunctionbwc_tensor_model_parallel_rank
Backwards-compatible way of querying the tensor model parallel rank from an ``mpu`` object. *Tensor* model parallelism means that tensors are
deepspeed/utils/bwc.py:7
↓ 9 callersFunctionclose_mmap_dataset_builder
(builder, fname)
deepspeed/runtime/data_pipeline/data_sampling/utils.py:49
↓ 9 callersMethodcompressed_allreduce
(self, buffer_m: torch.tensor, worker_error, server_error, local_rank)
deepspeed/runtime/comm/mpi.py:133
↓ 9 callersMethoddump
csrc/aio/common/deepspeed_aio_types.cpp:41
↓ 9 callersMethodelapsed_time
(self, end_event)
tests/unit/v1/compile/test_graph_profile.py:75
↓ 9 callersMethodencode
(self, *inputs, **kwargs)
deepspeed/model_implementations/diffusers/vae.py:99
↓ 9 callersMethodep_parser
Traverse model and detect MoE layers. Returns list of MoELayerSpec.
deepspeed/module_inject/auto_ep.py:283
↓ 9 callersFunctionexpected_folding_group_tables
Derive TP, dense-DP, EP, and EDP rank tables without process groups.
deepspeed/module_inject/auto_ep_folding.py:130
↓ 9 callersFunctionfunc
()
deepspeed/inference/quantization/layers.py:36
↓ 9 callersMethodget_alignment
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:82
↓ 9 callersMethodget_dim
Return the number of processes along the given axis. For example: >>> X = ProcessTopology(axes=['x', 'y'], dims=[2,3])
deepspeed/runtime/pipe/topology.py:98
↓ 9 callersFunctionget_local_heads
Helper to determine the number of local heads of a given shard. Args: shard_rank (int): The rank of the shard. num_shards (i
deepspeed/inference/v2/model_implementations/sharding/attn.py:9
↓ 9 callersMethodget_lora_params
Return a list of all parameters that would have LoRA for the module.
deepspeed/module_inject/containers/features/hybrid_engine.py:176
↓ 9 callersMethodget_param_coordinator
(self)
deepspeed/runtime/zero/parameter_offload.py:244
↓ 9 callersFunctionget_shard_size
(total_size, mp_size, name=None, rank=None)
deepspeed/module_inject/tp_shard.py:47
↓ 9 callersMethodget_tensor_model_parallel_world_size
(self)
deepspeed/runtime/pipe/topology.py:468
↓ 9 callersMethodgradient_clipping
(self)
deepspeed/runtime/engine.py:1409
↓ 9 callersMethodinflight_seq_descriptors
Buffer associated with the metadata of each sequence in the ragged batch. If the device Tensor is requested, the Tensor is truncated
deepspeed/inference/v2/ragged/ragged_wrapper.py:250
↓ 9 callersMethodis_compatible
(self, verbose=False)
op_builder/gds.py:38
↓ 9 callersMethodis_gradient_accumulation_boundary
Query whether the current micro-batch is at the boundary of gradient accumulation, and thus will trigger gradient reductions and
deepspeed/runtime/engine.py:3209
↓ 9 callersMethodis_last_stage
True if this process is in the last stage in the pipeline.
deepspeed/runtime/pipe/engine.py:537
↓ 9 callersFunctionmake_param
(Opt, shape, selected_indices=None)
tests/unit/ops/adam/test_zf_torch_adam.py:13
← previousnext →201–300 of 11,258, ranked by callers