MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 12 callersMethodfrom_dict
Constructs a `BertConfig` from a Python dictionary of parameters.
tests/unit/modeling.py:210
↓ 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 callersMethodget_rng_state
(self, device_index=None)
accelerator/hpu_accelerator.py:85
↓ 12 callersFunctioninit_tp_engine
(tp_size, partition_config=None)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:128
↓ 12 callersFunctioninstalled_cuda_version
(name="")
op_builder/builder.py:44
↓ 12 callersMethodintersection
(self, other: 'LogicalBox')
deepspeed/checkpoint/affine_geometry.py:111
↓ 12 callersFunctionis_model_parallel_parameter
(p)
deepspeed/runtime/utils.py:141
↓ 12 callersFunctionis_zero_param
(parameter)
deepspeed/runtime/zero/utils.py:150
↓ 12 callersMethodmax_memory_allocated
(self, device_index=None)
accelerator/hpu_accelerator.py:126
↓ 12 callersMethodmove
(self, tensor)
deepspeed/module_inject/layers.py:647
↓ 12 callersFunctionprint_rank_0
(message, debug=False, force=False)
deepspeed/runtime/zero/stage3.py:65
↓ 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 callersMethodref
Returns a TensorRef to the operand
csrc/deepspeed4science/evoformer_attn/gemm/custom_mma_base.h:118
↓ 12 callersMethodreset
(self)
tests/unit/compile/test_backend.py:44
↓ 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 callersMethodtrain_micro_batch_size_per_gpu
(self)
deepspeed/runtime/engine.py:1554
↓ 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 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_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:169
↓ 11 callersMethod_freeze_partition_sizes
(self, total_size)
deepspeed/module_inject/layers.py:1524
↓ 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:162
↓ 11 callersFunction_require_fused_engine
()
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:47
↓ 11 callersFunction_run_one_step
Build a model on ``backend``, run one step, return its output and grads.
tests/unit/v1/moe/test_autoep_deepep_parity.py:239
↓ 11 callersFunction_runtime_config
(**kwargs)
tests/unit/v1/moe/test_autoep_expert_activation.py:45
↓ 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:706
↓ 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:688
↓ 11 callersFunctiondebug_param2name
(param)
deepspeed/utils/debug.py:96
↓ 11 callersMethoddevice_count
(self)
accelerator/hpu_accelerator.py:72
↓ 11 callersMethodempty_partition_cache
Release GPU memory consumed by offloaded model parameters.
deepspeed/runtime/engine.py:5849
↓ 11 callersMethodflush
(self)
deepspeed/io/py_file_writer.py:25
↓ 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 callersFunctionis_gated
Return True if the given activation function is gated.
deepspeed/inference/v2/inference_utils.py:81
↓ 11 callersMethodis_initialized
()
tests/unit/v1/compile/test_offload_activation.py:310
↓ 11 callersFunctioniter_params
(module: Module, recurse=False)
deepspeed/runtime/zero/partitioned_param_coordinator.py:49
↓ 11 callersMethodload
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:140
↓ 11 callersMethodmanual_seed_all
(self, seed)
accelerator/hpu_accelerator.py:91
↓ 11 callersMethodmlp
Returns mlp intermediate and output weight: (intermediate, hidden) and (hidden, intermediate) bias: (intermediate) and (hidde
deepspeed/module_inject/policy.py:95
↓ 11 callersMethodparameter_id
(param)
deepspeed/runtime/swap_tensor/optimizer_utils.py:162
↓ 11 callersFunctionreset_tp_model_init_state
()
tests/unit/v1/autotp/test_autotp_training.py:44
↓ 11 callersMethodtrain
(self, mode=True)
tests/unit/hybrid_engine/test_he_lora.py:90
↓ 11 callersMethodtype
()
deepspeed/runtime/sparse_tensor.py:36
↓ 11 callersFunctionvocab_parallel_entropy
Per-token entropy of the softmax over vocabulary-sharded logits, in fp32.
deepspeed/sequence/vocab_parallel_ops.py:518
↓ 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
↓ 10 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:52
↓ 10 callersFunction_device
()
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:52
↓ 10 callersFunction_device
()
tests/unit/v1/models/test_glm_moe_dsa.py:28
↓ 10 callersFunction_groups
`_muon_param_groups` is a staticmethod, so the grouping runs without an engine.
tests/unit/runtime/zero/test_muon_param_groups.py:26
↓ 10 callersFunction_skip_for_invalid_environment
(use_cuda_pinned_tensor=True)
tests/unit/v1/nvme/test_aio.py:28
↓ 10 callersMethod_tp_partition
(self, params_list)
deepspeed/module_inject/layers.py:1036
↓ 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 callersMethodexchange
(self)
tests/unit/module_inject/test_auto_ep_comm.py:869
↓ 10 callersFunctionexecute_transfer
Execute one plan with the same preflight and completion contract as a batch. Bindings use transport-group ranks. Buffers must be packed views on
deepspeed/checkpoint/affine_transfer_executor.py:260
↓ 10 callersFunctionexecute_transfers
Move a frozen parameter batch with collective preflight and bounded peer messages. Each direction stages at most ``bytes_per_peer`` per active pe
deepspeed/checkpoint/affine_transfer_executor.py:305
↓ 10 callersFunctionfn
(x)
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:38
↓ 10 callersFunctionget_active_native_pinned_memory
()
deepspeed/utils/pin_memory.py:194
↓ 10 callersMethodget_partition_dp_group
(self, param)
deepspeed/runtime/zero/partition_parameters.py:2275
↓ 10 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:3525
↓ 10 callersMethodpin_device_tensor
csrc/gds/py_lib/deepspeed_py_gds_handle.cpp:92
↓ 10 callersMethodregister_host_memory
(self, address, num_bytes)
tests/unit/v1/pin_memory/test_pin_memory.py:364
↓ 10 callersMethodrelease
(self, generation)
deepspeed/runtime/python_gc.py:51
↓ 10 callersFunctionreplace_autoep_layers
(model, preset_model, expected_count=1, **config_overrides)
tests/unit/v1/moe/autoep_test_utils.py:301
↓ 10 callersFunctionsegmented_map
A parameter whose blocks are split or replicated independently along one axis. ``segments`` is an ordered list of ``(size, replicated)`` pairs co
deepspeed/checkpoint/affine.py:694
↓ 10 callersFunctionswiglu_clamped
Fused clamped SwiGLU. ``oai=True``: ``(clamp(up) + 1) * g * sigmoid(alpha * g)`` with ``g = clamp(gate, max=limit)`` and ``up`` clamped to ``
deepspeed/ops/triton_ops/swiglu_triton.py:452
↓ 10 callersFunctiontorch_assert_close
Compare two tensors or non-tensor numbers for their closeness. Add msg=blah to add an additional comment to when assert fails. For defa
tests/unit/util.py:135
↓ 10 callersMethodtrain_batch_size
(self)
deepspeed/runtime/engine.py:1551
↓ 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 callersMethodunpin
(self, tensor)
deepspeed/utils/pin_memory.py:102
↓ 10 callersMethodunregister_host_memory
(self, address)
tests/unit/v1/pin_memory/test_pin_memory.py:367
↓ 10 callersFunctionvalidate_autoep_placement_descriptor
Validate a plain scalar/list/dict AutoEP placement descriptor.
deepspeed/checkpoint/autoep_affine.py:52
↓ 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 callersMethodEvent
(self, enable_timing=True)
tests/unit/v1/compile/test_graph_profile.py:42
↓ 9 callersMethodFloatTensor
(self)
accelerator/hpu_accelerator.py:219
↓ 9 callersMethod__init__
(self)
tests/unit/modelingpreln.py:85
↓ 9 callersMethod__init__
(self, parameter, observations)
tests/unit/v1/zero/test_zero_activation_checkpoint_lifecycle.py:32
↓ 9 callersFunction_allgather
(graph, arg, ds_id, name, tensor_size=1, device_time=1)
tests/unit/v1/compile/test_list_schedule.py:189
↓ 9 callersMethod_get_model_type
Extract model type from module config or class name.
deepspeed/module_inject/auto_tp.py:875
← previousnext →301–400 of 14,579, ranked by callers