MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions12,000 in github.com/deepspeedai/DeepSpeed

↓ 13 callersMethodall_reduce
(tensor, op)
tests/unit/v1/compile/test_offload_activation.py:313
↓ 13 callersMethodcoalesce_grad_reduction
r"""Coalesce ZeRO 1/2/3 gradient reduction across multiple engine.backward() calls. One with-block == one optimizer step: every backward insid
deepspeed/runtime/engine.py:3151
↓ 13 callersMethodcommit
(self, message: str)
ci/test_tests_fetcher.py:98
↓ 13 callersMethodconvert
Convert HF tp_plan to DeepSpeed layer specs. A style outside SUPPORTED_STYLES raises ValueError and invalidates the whole plan, so a
deepspeed/module_inject/tp_plan_converter.py:20
↓ 13 callersMethoddevice_count
(self)
accelerator/hpu_accelerator.py:72
↓ 13 callersMethodget_rng_state
(self, device_index=None)
accelerator/hpu_accelerator.py:85
↓ 13 callersMethodgradient_accumulation_steps
(self)
deepspeed/runtime/engine.py:1475
↓ 13 callersFunctioninstalled_cuda_version
(name="")
op_builder/builder.py:47
↓ 13 callersMethodis_synchronized_device
(self)
accelerator/hpu_accelerator.py:44
↓ 13 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
↓ 13 callersFunctionprint_rank_0
(message, debug=False, force=False)
deepspeed/runtime/zero/linear.py:32
↓ 13 callersFunctionreset_random
(seed=1234)
tests/unit/inference/quantization/test_intX_quantization.py:29
↓ 13 callersMethodtrain_micro_batch_size_per_gpu
(self)
deepspeed/runtime/engine.py:1267
↓ 13 callersMethodwait
deepspeed/runtime/zero/mics.py:40
↓ 13 callersMethodwait
(self)
deepspeed/runtime/swap_tensor/pipelined_optimizer_swapper.py:34
↓ 12 callersMethodEvent
(self)
accelerator/hpu_accelerator.py:115
↓ 12 callersFunction_assert_close
(ref, test, label, tol=1e-6)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:71
↓ 12 callersFunction_get_hf_tp_plan
Extract tp_plan from HuggingFace model. Merge plans from the model config, model class, and runtime instance. HuggingFace may replace the ins
deepspeed/runtime/tensor_parallel/config.py:149
↓ 12 callersMethod_get_param_partition_group
(self, param)
deepspeed/runtime/zero/stage3.py:630
↓ 12 callersFunction_resolve_autotp_partition
(current_param, ckpt_dict, full_hp_param, tp_rank, tp_world_size)
deepspeed/checkpoint/universal_checkpoint.py:74
↓ 12 callersMethodclear
< Efficiently disables all accesses guarded by mask
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_atomic.h:544
↓ 12 callersMethodclose
(self)
deepspeed/io/py_file_writer.py:17
↓ 12 callersMethoddump
(self, path)
deepspeed/compile/profilers/graph_profile.py:450
↓ 12 callersFunctioninit_tp_engine
(tp_size, partition_config=None)
tests/unit/model_parallelism/test_autotp_custom_patterns.py:128
↓ 12 callersFunctionis_model_parallel_parameter
(p)
deepspeed/runtime/utils.py:154
↓ 12 callersMethodis_pinned
(self, tensor)
deepspeed/utils/pin_memory.py:77
↓ 12 callersFunctionis_zero_param
(parameter)
deepspeed/runtime/zero/utils.py:149
↓ 12 callersFunctionmake_builder
(**overrides)
tests/unit/ops/test_op_builder.py:45
↓ 12 callersMethodmax_memory_allocated
(self, device_index=None)
accelerator/hpu_accelerator.py:126
↓ 12 callersFunctionprint_rank_0
(message, debug=False, force=False)
deepspeed/runtime/zero/stage3.py:63
↓ 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 callersMethodrecv
(self, tensor, src, group=None, tag=0)
deepspeed/comm/ccl.py:128
↓ 12 callersMethodseed
(self)
accelerator/mps_accelerator.py:81
↓ 12 callersMethodselector
(self)
ci/test_tests_fetcher.py:102
↓ 12 callersMethodsend
(self, tensor, dst, group=None, tag=0)
deepspeed/comm/ccl.py:125
↓ 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
↓ 12 callersMethodstrip_empty_entries
Drop any empty strings from the list of compile and link flags
op_builder/builder.py:419
↓ 12 callersMethodunpin_memory
(self, tensor)
accelerator/abstract_accelerator.py:310
↓ 11 callersMethodGetCublasHandle
csrc/transformer/inference/includes/inference_context.h:250
↓ 11 callersMethod__init__
(self, hidden_dim)
tests/unit/v1/zero/test_zero_user_backward.py:2213
↓ 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 callersMethod_tp_partition
(self, params_list)
deepspeed/module_inject/layers.py:889
↓ 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_managed_gas_config
fp32 config toggling managed_gradient_accumulation; micro-batch 1 so total_samples == micro-batch count.
tests/unit/v1/zero/test_zero_user_backward.py:1836
↓ 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 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
↓ 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:656
↓ 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:638
↓ 11 callersMethodelapsed
(self, **kwargs)
deepspeed/utils/timer.py:177
↓ 11 callersMethodelapsed_time
(self, end_event)
tests/unit/v1/compile/test_graph_profile.py:75
↓ 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_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:629
↓ 11 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/ops/triton_ops/group_gemm_triton.py:437
↓ 11 callersFunctionis_gated
Return True if the given activation function is gated.
deepspeed/inference/v2/inference_utils.py:81
↓ 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 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:1576
↓ 11 callersMethodtrain
(self, mode=True)
tests/unit/hybrid_engine/test_he_lora.py:90
↓ 11 callersMethodwrite
(self, args, tid)
deepspeed/nvme/torch_io.py:29
↓ 11 callersMethodzero_optimization
(self)
deepspeed/runtime/engine.py:1300
↓ 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 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 callersFunctioncreate_mmap_dataset_builder
(fname, dtype)
deepspeed/runtime/data_pipeline/data_sampling/utils.py:44
↓ 10 callersMethodflush
(self)
deepspeed/io/py_file_writer.py:25
↓ 10 callersMethodfrom_config
(*args, **kwargs)
deepspeed/linear/context_manager.py:72
↓ 10 callersFunctionfunc
()
deepspeed/inference/quantization/layers.py:36
↓ 10 callersMethodgather_params
(self, params_list)
deepspeed/module_inject/layers.py:875
↓ 10 callersFunctionget_output_node
(graph: Graph)
deepspeed/compile/fx.py:16
↓ 10 callersMethodget_partition_dp_group
(self, param)
deepspeed/runtime/zero/partition_parameters.py:2290
↓ 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 callersMethodirecv
(self, tensor, src=None, group=None, tag=0)
deepspeed/comm/torch.py:458
↓ 10 callersMethodis_gradient_accumulation_boundary
True if the engine is executing a gradient reduction or optimizer step instruction. This is overridden from :class:`DeepSpeedEngine` to force
deepspeed/runtime/pipe/engine.py:682
↓ 10 callersMethodis_triton_supported
(self)
accelerator/hpu_accelerator.py:191
↓ 10 callersMethodload
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:140
↓ 10 callersMethodmove
(self, tensor)
deepspeed/module_inject/layers.py:542
↓ 10 callersMethodpin_device_tensor
csrc/gds/py_lib/deepspeed_py_gds_handle.cpp:92
↓ 10 callersMethodtrain_batch_size
(self)
deepspeed/runtime/engine.py:1264
↓ 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 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
← previousnext →201–300 of 12,000, ranked by callers