MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 13 callersFunction_runtime_config
(**kwargs)
tests/unit/v1/moe/test_autoep_expert_activation.py:47
↓ 13 callersMethod_wait_for_pending_state_updates
Wait for pending state-update workers (one subgroup, or all if sub_group_id is None).
deepspeed/runtime/reflow/reflow_stage3.py:1024
↓ 13 callersFunctionapply_expert_activation
Combine the gate and up projections of an expert MLP with the named activation. ``fused`` selects the form's fused kernel when it has one; ``fuse
deepspeed/moe/ep_experts.py:187
↓ 13 callersMethodcapture_to_graph
(self, graph, pool=None, stream=None)
accelerator/hpu_accelerator.py:198
↓ 13 callersMethodclear
(self)
deepspeed/compile/backend.py:66
↓ 13 callersMethodclear
(self)
deepspeed/runtime/zero/stage_1_and_2.py:132
↓ 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:3399
↓ 13 callersMethodfrom_dict
Constructs a `BertConfig` from a Python dictionary of parameters.
tests/unit/modeling.py:210
↓ 13 callersFunctionget_deepcompile_handle
()
deepspeed/compile/util.py:48
↓ 13 callersMethodget_global_grad_norm
Return the 2-norm of all gradients. If there is model parallelism, the norm will be global. The computed norm will be cached and reuse
deepspeed/runtime/engine.py:1442
↓ 13 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:462
↓ 13 callersMethodis_initialized
()
tests/unit/v1/compile/test_offload_activation.py:310
↓ 13 callersMethodis_pinned
(self, tensor)
deepspeed/utils/pin_memory.py:94
↓ 13 callersMethodload
(self, mp_world_size, mp_rank, module_key=AUTO_MODULE_KEY,
deepspeed/runtime/state_dict_factory.py:57
↓ 13 callersFunctionprint_rank_0
(message, debug=False, force=False)
deepspeed/runtime/zero/linear.py:32
↓ 13 callersMethodref
Returns a TensorRef to the operand
csrc/deepspeed4science/evoformer_attn/gemm/custom_mma_base.h:118
↓ 13 callersMethodreset
(self)
tests/unit/compile/test_backend.py:44
↓ 13 callersFunctionreset_random
(seed=1234)
tests/unit/inference/quantization/test_intX_quantization.py:29
↓ 13 callersMethodupdate_linear_policies
(self)
deepspeed/module_inject/auto_tp.py:1124
↓ 13 callersMethodwait
(self)
deepspeed/runtime/swap_tensor/pipelined_optimizer_swapper.py:34
↓ 12 callersFunction_assert_close
(ref, test, label, tol=1e-6)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:71
↓ 12 callersFunction_custom_pattern_model
A mock MoE model whose model_type has no preset, so AutoEP takes the custom-pattern path.
tests/unit/v1/moe/test_autoep_expert_activation.py:54
↓ 12 callersFunction_device
()
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:75
↓ 12 callersFunction_do_ref_write
(tmpdir, index=0, num_bytes=IO_SIZE)
tests/unit/v1/nvme/test_aio.py:45
↓ 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:164
↓ 12 callersMethod_get_param_partition_rank
(self, param)
deepspeed/runtime/zero/stage3.py:687
↓ 12 callersFunction_get_rope_theta
Read rope_theta from whichever place the installed transformers keeps it. transformers < 5.0 exposes it as ``config.rope_theta``; 5.0 moved the r
deepspeed/module_inject/containers/llama.py:40
↓ 12 callersFunction_join_transfer_group
()
tests/unit/checkpoint/test_affine_transfer_executor.py:28
↓ 12 callersFunction_params_config
(stage, keep="auto", dtype="bf16", offload_optimizer=
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:236
↓ 12 callersMethod_start_timer
(self, name)
deepspeed/runtime/swap_tensor/optimizer_utils.py:545
↓ 12 callersMethod_stop_timer
(self, name)
deepspeed/runtime/swap_tensor/optimizer_utils.py:549
↓ 12 callersMethod_wait_for_offload_copies
(self)
deepspeed/runtime/zero/stage_1_and_2.py:1854
↓ 12 callersMethodclear
< Efficiently disables all accesses guarded by mask
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_atomic.h:544
↓ 12 callersMethoddump
(self, path)
deepspeed/compile/profilers/graph_profile.py:512
↓ 12 callersMethodelapsed_time
(self, end_event)
tests/unit/v1/compile/test_graph_profile.py:75
↓ 12 callersFunctionengine_input_dtype
(engine)
tests/unit/v1/moe/autoep_test_utils.py:254
↓ 12 callersMethodflush
(self)
deepspeed/io/py_file_writer.py:25
↓ 12 callersMethodfp16_enabled
(self)
deepspeed/runtime/engine.py:1759
↓ 12 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:654
↓ 12 callersFunctionget_preset_adapter
Return a registered AutoEP preset adapter by name.
deepspeed/module_inject/auto_ep_presets/registry.py:78
↓ 12 callersFunctioninit_tp_engine
(tp_size, partition_config=None)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:130
↓ 12 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:658
↓ 12 callersFunctionis_model_parallel_parameter
(p)
deepspeed/runtime/utils.py:141
↓ 12 callersFunctionis_zero_param
(parameter)
deepspeed/runtime/zero/utils.py:159
↓ 12 callersFunctioniter_params
(module: Module, recurse=False)
deepspeed/runtime/zero/partitioned_param_coordinator.py:49
↓ 12 callersMethodmlp
Returns mlp intermediate and output weight: (intermediate, hidden) and (hidden, intermediate) bias: (intermediate) and (hidde
deepspeed/module_inject/policy.py:95
↓ 12 callersMethodmove
(self, tensor)
deepspeed/module_inject/layers.py:651
↓ 12 callersFunctionprint_rank_0
(message, debug=False, force=False)
deepspeed/runtime/zero/stage3.py:69
↓ 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 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 callersMethodstream
(self, stream)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:36
↓ 12 callersMethodtrain
(self, mode=True)
tests/unit/hybrid_engine/test_he_lora.py:90
↓ 12 callersFunctionvocab_parallel_cross_entropy
Compute cross entropy over vocabulary-sharded logits. Tensor parallel ranks collectively own the last (vocabulary) dimension. Sequence parall
deepspeed/sequence/cross_entropy.py:198
↓ 12 callersFunctionvocab_parallel_jsd
Per-token generalized JSD over identically sharded vocabularies, in fp32. For ``0 < beta < 1``, let ``q = softmax(student_logits)``, ``p = softma
deepspeed/sequence/vocab_parallel_ops.py:540
↓ 12 callersFunctionvocab_parallel_logprobs
Log-probabilities of the requested token ids under vocabulary-sharded logits. ``index`` either matches ``vocab_parallel_logits.shape[:-1]`` (one
deepspeed/sequence/vocab_parallel_ops.py:473
↓ 11 callersMethodDropout
csrc/includes/dropout.h:26
↓ 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:2230
↓ 11 callersFunction_assert_ulp_close
(actual, expected, *, max_ulp, min_frac_within_1, label, atol=0.0)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:122
↓ 11 callersFunction_device
()
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:18
↓ 11 callersFunction_flags
(model, per_head=True)
tests/unit/runtime/zero/test_per_head_muon.py:171
↓ 11 callersMethod_freeze_partition_sizes
(self, total_size)
deepspeed/module_inject/layers.py:1604
↓ 11 callersFunction_init
(config, hidden_dim, seed=42, nlayers=2)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:61
↓ 11 callersFunction_meta
The per-model shard metadata AutoTP derives from a model config.
tests/unit/checkpoint/test_affine_shard_map.py:165
↓ 11 callersFunction_rand_bf16
(*shape, device=DEV)
tests/unit/module_inject/test_segment_ki_kernels.py:65
↓ 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:1853
↓ 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 callersFunctionchunked_cross_entropy
``torch.nn.functional.cross_entropy(logits.float(), target, ...)`` without FP32 ``[rows, vocab]`` tensors. ``logits`` is ``[rows, vocab]`` and ``
deepspeed/runtime/chunked_cross_entropy.py:198
↓ 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:666
↓ 11 callersFunctiondebug_param2name
(param)
deepspeed/utils/debug.py:96
↓ 11 callersMethodempty_partition_cache
Release GPU memory consumed by offloaded model parameters.
deepspeed/runtime/engine.py:5945
↓ 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 callersFunctionget_output_node
(graph: Graph)
deepspeed/compile/fx.py:28
↓ 11 callersMethodget_rng_state
(self, device_index=None)
accelerator/hpu_accelerator.py:85
↓ 11 callersFunctionis_gated
Return True if the given activation function is gated.
deepspeed/inference/v2/inference_utils.py:81
↓ 11 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:3602
↓ 11 callersFunctionminimal_reflow_config
The smallest config that enables Reflow, for the checks that run when the config is parsed.
tests/unit/v1/zero/test_reflow.py:46
↓ 11 callersMethodparameter_id
(param)
deepspeed/runtime/swap_tensor/optimizer_utils.py:162
↓ 11 callersFunctionprepare_autosp_inputs
Prepare inputs for AutoSP by marking dynamic dimensions and tagging tensors. Args: input_id: Token IDs tensor (required) lab
deepspeed/compile/passes/sp_compile.py:25
↓ 11 callersMethodquery
Determine the number of tokens and KV blocks to reserve for a given request. Given a UID (this UID may not be recognized by the model
deepspeed/inference/v2/engine_v2.py:158
↓ 11 callersFunctionreset_tp_model_init_state
()
tests/unit/v1/autotp/test_autotp_training.py:45
↓ 11 callersFunctionsafe_get_local_grad
Get the local gradient partition of a ZeRO-3 partitioned parameter. The return data type is that used for gradient accumulation. This
deepspeed/utils/tensor_fragment.py:259
↓ 11 callersMethodstep
Update the model parameters. .. note:: This method will be called internally by ZeRO-Offload. DeepSpeed users should
deepspeed/ops/adam/cpu_adam.py:146
↓ 11 callersFunctionswiglu
Fused SwiGLU activation: ``silu(gate) * up``. Args: gate: Gate projection output, any shape, float16/bfloat16/float32. up: Up pro
deepspeed/ops/triton_ops/swiglu_triton.py:215
↓ 11 callersMethodtrain_micro_batch_size_per_gpu
(self)
deepspeed/runtime/engine.py:1607
↓ 11 callersMethodtype
()
deepspeed/runtime/sparse_tensor.py:36
↓ 11 callersMethodupper
(self)
deepspeed/checkpoint/affine_geometry.py:138
↓ 11 callersFunctionvocab_parallel_entropy
Per-token entropy of the softmax over vocabulary-sharded logits, in fp32.
deepspeed/sequence/vocab_parallel_ops.py:518
↓ 11 callersMethodwait
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:223
↓ 11 callersMethodwrite
(self, args, tid)
deepspeed/nvme/torch_io.py:29
↓ 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_assert_rejects
(match, **kwargs)
tests/unit/v1/moe/test_autoep_autotp_folding_config.py:79
← previousnext →301–400 of 15,468, ranked by callers