MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 1 callersFunctionassert_no_cuda_mismatch
()
op_builder/builder.py:185
↓ 1 callersMethodassociated_class
Return the class associated with this registry.
deepspeed/inference/v2/modules/module_registry.py:42
↓ 1 callersMethodasync_accumulate_grad_in_cpu_via_gpu
(self, param)
deepspeed/runtime/zero/stage_1_and_2.py:1928
↓ 1 callersFunctionasync_io_setup
()
deepspeed/nvme/perf_run_sweep.py:250
↓ 1 callersFunctionatoi
(text)
deepspeed/utils/zero_to_fp32.py:77
↓ 1 callersFunctionatoi
(text)
deepspeed/checkpoint/ds_to_universal.py:100
↓ 1 callersFunctionatomicMaxFloat
csrc/deepspeed4science/evoformer_attn/kernel_forward.h:86
↓ 1 callersMethodattach_fp32_adapter
(self, rank)
tests/unit/runtime/zero/test_zero_autocast_mixed_dtype.py:52
↓ 1 callersFunctionattention_bwd
(dO, Q, K, V, O, lse, bias1, bias2, bias1_grad, bias2_grad)
deepspeed/ops/deepspeed4science/evoformer_attn.py:33
↓ 1 callersMethodattention_qkv_mp
(self, mp_replace, reversed_dim=False)
deepspeed/module_inject/containers/bloom.py:47
↓ 1 callersMethodattention_qkv_mp
(self, mp_replace, reversed_dim=False)
deepspeed/module_inject/containers/base.py:238
↓ 1 callersMethodattention_qkv_mp
(self, mp_replace, reversed_dim=False)
deepspeed/module_inject/containers/features/split_qkv.py:33
↓ 1 callersFunctionattention_reference
( q_input: torch.Tensor, # [*, Dim_Q, H, C_hid] k_input: torch.Tensor, # [*, Dim_Q, H, C_hid
tests/unit/ops/deepspeed4science/test_DS4Sci_EvoformerAttention.py:21
↓ 1 callersFunctionattention_reference
( q_input: torch.Tensor, # [*, Dim_Q, H, C_hid] k_input: torch.Tensor, # [*, Dim_Q, H, C_hid
tests/benchmarks/DS4Sci_EvoformerAttention_bench.py:21
↓ 1 callersFunctionattn_out_in_features
Helper to calculate the expected output projection dimension of a QKV projection matrix. Args: out_features (int): The model dimensi
deepspeed/inference/v2/model_implementations/sharding/attn_out.py:67
↓ 1 callersFunctionautocast_if_enabled
Context manager for DeepSpeed autocast with conditional support. This function manages `torch.autocast` contexts under DeepSpeed, allowing au
deepspeed/runtime/torch_autocast.py:94
↓ 1 callersMethodautotuning_end_profile_step
(self)
deepspeed/runtime/engine.py:1581
↓ 1 callersMethodautotuning_metric_path
(self)
deepspeed/runtime/engine.py:1584
↓ 1 callersMethodautotuning_model_info_path
(self)
deepspeed/runtime/engine.py:1590
↓ 1 callersMethodautotuning_start_profile_step
(self)
deepspeed/runtime/engine.py:1578
↓ 1 callersFunctionaverage_gradient_over_tp
Return ``tensor`` unchanged, with its gradient averaged over the TP folding group.
deepspeed/moe/ep_tp_dispatch.py:424
↓ 1 callersMethodavg_samples_per_sec
(self)
deepspeed/utils/timer.py:312
↓ 1 callersMethodbackend_exists
(self)
deepspeed/launcher/multinode_runner.py:357
↓ 1 callersMethodbackward
Disabled for pipeline parallel training. See ``train_batch()``.
deepspeed/runtime/pipe/engine.py:1291
↓ 1 callersMethodbackward_epilogue
(self, *args, **kwargs)
deepspeed/runtime/zero/stage_1_and_2.py:3416
↓ 1 callersFunctionbackward_peak
(loss_function)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:395
↓ 1 callersMethodbackward_prologue
()
deepspeed/runtime/engine.py:3158
↓ 1 callersMethodbackward_prologue
(self)
deepspeed/runtime/base_optimizer.py:459
↓ 1 callersFunctionbarrier
(group=None, async_op=False, device_ids=None, prof=False, log_name='barrier', debug=get_caller_func())
deepspeed/comm/comm.py:467
↓ 1 callersFunctionbaseline_implementation
Baseline implementation for our ragged embedding kernel.
tests/unit/inference/v2/kernels/ragged_ops/test_ragged_embed.py:22
↓ 1 callersFunctionbatch_by_seqlens
Yield mini-batches of indices bucketed by size. Batches may contain sequences of different lengths. Similar to "Attention is all you need", S
deepspeed/runtime/data_pipeline/data_sampling/variable_batch_size_and_lr.py:23
↓ 1 callersFunctionbefore_piece
(param, start, count)
tests/unit/ops/adam/test_cpu_adam.py:177
↓ 1 callersFunctionbenchmark
(num_experts, dim=2048, hidden=768, avg_tokens=32, dtype=torch.bfloat16)
tests/benchmarks/group_gemm_bench.py:68
↓ 1 callersFunctionbenchmark
()
tests/benchmarks/DS4Sci_EvoformerAttention_bench.py:77
↓ 1 callersFunctionbert_layer_quantize
(layer)
deepspeed/module_inject/module_quantize.py:33
↓ 1 callersMethodbf16_master_weights_and_gradients
(self)
deepspeed/runtime/engine.py:1768
↓ 1 callersMethodbias_add_transform_0213
(input, bias, num_heads, trans_count, perform_bias=False)
deepspeed/ops/transformer/inference/op_binding/softmax_context.py:49
↓ 1 callersFunctionbias_gelu
(bias, y)
tests/unit/modeling.py:54
↓ 1 callersFunctionbias_gelu
(bias, y)
tests/unit/modelingpreln.py:53
↓ 1 callersFunctionbias_gelu
(x)
deepspeed/sequence/fpdt_layer.py:1206
↓ 1 callersFunctionbias_tanh
(bias, y)
tests/unit/modeling.py:61
↓ 1 callersFunctionbias_tanh
(bias, y)
tests/unit/modelingpreln.py:60
↓ 1 callersMethodbiased_mask
(self, position_ids, attention_mask)
tests/unit/v1/compile/test_compile_autosp.py:849
↓ 1 callersMethodbuffered_reduce_fallback
(self, rank, grads,
deepspeed/runtime/zero/stage_1_and_2.py:2633
↓ 1 callersMethodbuild
(use_compile_pass)
tests/unit/compile/test_tp_compile.py:413
↓ 1 callersFunctionbuild_ac_engine
(tp_size, use_compile_pass)
tests/unit/compile/test_tp_compile.py:629
↓ 1 callersMethodbuild_alibi_tensor
(self)
deepspeed/inference/engine.py:217
↓ 1 callersMethodbuild_attn_bias
(self)
deepspeed/inference/engine.py:238
↓ 1 callersFunctionbuild_aws_bootstrap_commands
()
ci/torch_latest.py:1090
↓ 1 callersFunctionbuild_aws_infrastructure_smoke_script
( torch_preset: str, run_identity: str, config: AwsRegionConfig, *, run_root: str | None =
ci/torch_latest.py:1175
↓ 1 callersFunctionbuild_aws_scripts
(inputs: ControllerInputs, run_identity: str)
ci/torch_latest.py:1130
↓ 1 callersFunctionbuild_bloom_alibi_tensor
Link to paper: https://arxiv.org/abs/2108.12409 Alibi tensor is not causal as the original paper mentions, it relies on a translation invaria
deepspeed/module_inject/auto_tp_model_utils.py:77
↓ 1 callersFunctionbuild_ccl_op
()
deepspeed/comm/ccl.py:16
↓ 1 callersFunctionbuild_complex_batch
Construct a fully paramtrized batch with the given sequence lengths. This method can be used to construct more realistic inputs for testing s
tests/unit/inference/v2/kernels/ragged_ops/ragged_testing_utils.py:53
↓ 1 callersMethodbuild_container_map
Build a dictionary representing the structure of the string prefixes leading to the parameters to be mapped to the container.
deepspeed/inference/v2/model_implementations/inference_policy_base.py:178
↓ 1 callersFunctionbuild_engine_from_ds_checkpoint
Creates an engine from a checkpoint saved by ``InferenceEngineV2``. Arguments: path: Path to the checkpoint. This does not need to p
deepspeed/inference/v2/engine_factory.py:34
↓ 1 callersMethodbuild_extension
(self)
accelerator/hpu_accelerator.py:303
↓ 1 callersFunctionbuild_fused_qkv_engine
(tp_size, use_compile_pass)
tests/unit/compile/test_tp_compile.py:284
↓ 1 callersMethodbuild_model
Completely instantiate the inference model. This will both create the ops needed to run the model, as well as load the model paramete
deepspeed/inference/v2/model_implementations/inference_policy_base.py:140
↓ 1 callersFunctionbuild_operations
The complete schedule, as a list every rank derives identically.
deepspeed/checkpoint/affine_transfer_executor.py:151
↓ 1 callersFunctionbuild_shm_op
()
deepspeed/comm/torch.py:74
↓ 1 callersFunctionbuild_tp_rollout
()
tests/integration/zero3_arena_e2e.py:124
↓ 1 callersFunctionbuilder_closure
(member_name)
op_builder/__init__.py:28
↓ 1 callersFunctionbwc_pipeline_parallel_group
Backwards-compatible way of querying the pipeline parallel group.
deepspeed/utils/bwc.py:94
↓ 1 callersFunctionbwc_tensor_model_parallel_group
Backwards-compatible way of querying the tensor model parallel group. Similar to bwc_tensor_model_parallel_rank.
deepspeed/utils/bwc.py:63
↓ 1 callersFunctionbwd
( B, S, S_kv, H, D, D_tail, topk, kv_group=1, sm_scale=None, is_causal
deepspeed/models/glm_moe_dsa/kernels/sparse_mla_bwd.py:110
↓ 1 callersFunctionbytes_to_tensor
(buffer)
deepspeed/io/utils.py:23
↓ 1 callersMethodcall
()
tests/unit/checkpoint/test_affine_transfer_executor.py:337
↓ 1 callersFunctioncall_to_str
Construct a string representation of a call. Args: base (str): name of the call args (tuple, optional): args to ``base``
deepspeed/runtime/utils.py:927
↓ 1 callersFunctioncan_run
(rank, cmd)
tests/unit/runtime/pipe/test_pipe_schedule.py:188
↓ 1 callersMethodcan_schedule
Dry run a batch to determine if it can be scheduled. Placeholder sequences will be created for any UIDs that are unknown to the infer
deepspeed/inference/v2/engine_v2.py:184
↓ 1 callersMethodcann_defs
(self)
op_builder/npu/builder.py:48
↓ 1 callersFunctioncapture
(small_bucket, communication_data_type, log=None, divide=True,
tests/unit/v1/zero/test_zero2_gradient_safety.py:104
↓ 1 callersFunctioncast_fp16_fp6
* Function to pack 4 fake quantized FP16 value into continuously stored 4 FP6 values. */
deepspeed/inference/v2/kernels/core_ops/cuda_linear/linear_kernels.cpp:38
↓ 1 callersFunctioncheck
(value)
tests/unit/checkpoint/test_affine_shard_map.py:421
↓ 1 callersMethodcheck_ckpt_list
(self)
deepspeed/runtime/state_dict_factory.py:165
↓ 1 callersFunctioncheck_comet_availability
()
deepspeed/monitor/utils.py:29
↓ 1 callersFunctioncheck_dtype
(model, expected_dtype)
tests/unit/inference/test_checkpoint_sharding.py:31
↓ 1 callersFunctioncheck_equal
(first, second, atol=1e-2, verbose=False)
tests/unit/ops/accelerators/test_accelerator_forward.py:24
↓ 1 callersFunctioncheck_equal
(first, second, atol=1e-2, verbose=False)
tests/unit/ops/accelerators/test_accelerator_backward.py:25
↓ 1 callersFunctioncheck_equal
(first, second, atol=1e-2, verbose=False)
tests/unit/ops/adam/test_hybrid_adam.py:24
↓ 1 callersMethodcheck_for_libaio_pkg
(self)
op_builder/npu/async_io.py:60
↓ 1 callersMethodcheck_for_libaio_pkg
(self)
op_builder/klxpu/async_io.py:48
↓ 1 callersMethodcheck_for_libaio_pkg
(self)
op_builder/xpu/async_io.py:61
↓ 1 callersMethodcheck_for_libaio_pkg
(self)
op_builder/cpu/async_io.py:47
↓ 1 callersMethodcheck_for_libaio_pkg
(self)
op_builder/supa/async_io.py:48
↓ 1 callersFunctioncheck_for_numactl_pkg
()
deepspeed/utils/numa.py:43
↓ 1 callersMethodcheck_gpu_chunk
(self, )
deepspeed/sequence/fpdt_layer.py:588
↓ 1 callersMethodcheck_overflow
(self, partition_gradients=True)
deepspeed/runtime/zero/stage_1_and_2.py:3421
↓ 1 callersMethodcheck_parity
(self, base_file, test_file, r_tol)
tests/model/BingBertSquad/BingBertSquad_run_func_test.py:150
↓ 1 callersMethodcheck_parity
(self, base_file, test_file, r_tol)
tests/model/Megatron_GPT2/run_checkpoint_test.py:526
↓ 1 callersFunctioncheck_partition
(weights, num_parts, target_diff)
tests/unit/utils/test_partition_balanced.py:9
↓ 1 callersFunctioncheck_tb_availability
()
deepspeed/monitor/utils.py:9
↓ 1 callersFunctioncheck_wandb_availability
()
deepspeed/monitor/utils.py:19
↓ 1 callersFunctioncheckout_candidate
( head_repository: str, head_sha: str, base_repository: str, base_sha: str, destination: P
ci/torch_latest.py:497
↓ 1 callersFunctioncheckpoint_suite
()
tests/model/Megatron_GPT2/run_checkpoint_test.py:541
↓ 1 callersMethodcheckpoint_tag_validation_enabled
(self)
deepspeed/runtime/engine.py:1481
↓ 1 callersMethodcheckpoint_tag_validation_fail
(self)
deepspeed/runtime/engine.py:1484
↓ 1 callersFunctionchoose_next_node
(scheduled: List[Node], unscheduled: List[Node], mem_table: Dict[str, int])
deepspeed/compile/list_schedule.py:85
↓ 1 callersFunctionchunk
(cmd)
tests/unit/runtime/pipe/test_pipe_schedule.py:182
← previousnext →4,701–4,800 of 15,468, ranked by callers