MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 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:295
↓ 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:3390
↓ 1 callersFunctionbackward_peak
(loss_function)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:395
↓ 1 callersMethodbackward_prologue
()
deepspeed/runtime/engine.py:3085
↓ 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:17
↓ 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 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:1715
↓ 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:1167
↓ 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:316
↓ 1 callersMethodbuffered_reduce_fallback
(self, rank, grads,
deepspeed/runtime/zero/stage_1_and_2.py:2615
↓ 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:152
↓ 1 callersFunctionbuild_shm_op
()
deepspeed/comm/torch.py:74
↓ 1 callersMethodbuilder
(self)
op_builder/builder.py:588
↓ 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 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 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:418
↓ 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/async_io.py:77
↓ 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:49
↓ 1 callersMethodcheck_for_libaio_pkg
(self)
op_builder/xpu/async_io.py:62
↓ 1 callersMethodcheck_for_libaio_pkg
(self)
op_builder/cpu/async_io.py:53
↓ 1 callersMethodcheck_for_libaio_pkg
(self)
op_builder/supa/async_io.py:49
↓ 1 callersFunctioncheck_for_numactl_pkg
()
deepspeed/utils/numa.py:43
↓ 1 callersMethodcheck_gpu_chunk
(self, )
deepspeed/sequence/fpdt_layer.py:549
↓ 1 callersMethodcheck_overflow
(self, partition_gradients=True)
deepspeed/runtime/zero/stage_1_and_2.py:3395
↓ 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:1428
↓ 1 callersMethodcheckpoint_tag_validation_fail
(self)
deepspeed/runtime/engine.py:1431
↓ 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
↓ 1 callersFunctioncifar_trainset
(fp16=False)
tests/unit/alexnet_model.py:85
↓ 1 callersMethodckpt_layer_path
Customize a prefix for a specific pipeline module layer.
deepspeed/runtime/pipe/module.py:583
↓ 1 callersMethodckpt_layer_path_list
Get all ckpt file list for a specific pipeline module layer.
deepspeed/runtime/pipe/module.py:593
↓ 1 callersMethodclamped_to_minimum_gather_residency
Keep an enabled budget large enough for one unavoidable gather. A smaller budget cannot be satisfied by any schedule and forces the s
deepspeed/compile/list_schedule.py:294
↓ 1 callersFunctionclean_logits_
( threads: int = 512, block_K: int = 4096, )
deepspeed/models/glm_moe_dsa/kernels/indexer_fwd.py:104
↓ 1 callersFunctionclean_logits_kernel
( Logits: T.Tensor([seq_len, seq_len_kv], dtype), # type: ignore CuSeqLenKS: T.Tensor
deepspeed/models/glm_moe_dsa/kernels/indexer_fwd.py:115
↓ 1 callersMethodcleanup
(self)
deepspeed/runtime/checkpoint_engine/datastates_checkpoint_engine.py:49
↓ 1 callersMethodcleanup
(self)
deepspeed/runtime/checkpoint_engine/decoupled_checkpoint_engine.py:202
↓ 1 callersFunctioncleanup_aws_instances
(env: Mapping[str, str], run_command: Any = _default_command)
ci/torch_latest.py:1575
↓ 1 callersMethodclear_backward_seen_flag
Clear the backward seen flag and reset hook counters at the start of each step.
deepspeed/runtime/base_optimizer.py:495
↓ 1 callersMethodclear_params
Clear params and elements but keep buffer for reuse.
deepspeed/runtime/zero/stage3.py:137
↓ 1 callersMethodclip_fp32_gradients
(self)
deepspeed/runtime/engine.py:3585
↓ 1 callersFunctionclip_grad_norm_
Clips gradient norm of an iterable of parameters. This has been adapted from Nvidia megatron. We add norm averaging to consider MoE params wh
deepspeed/runtime/utils.py:358
↓ 1 callersFunctionclip_tensors_by_global_norm
Clip list of tensors by global norm. Args: input_tensors: List of tensors to be clipped max_norm (float, optional): Max norm used
deepspeed/runtime/utils.py:1049
↓ 1 callersMethodclose_output_file
(self)
deepspeed/nvme/ds_aio_job.py:36
↓ 1 callersMethodclose_output_file
(self)
csrc/aio/py_test/ds_aio_job.py:36
↓ 1 callersFunctioncls_to_qualname
(cls)
tests/unit/v1/zero/test_zero_autocast.py:23
↓ 1 callersFunctioncode
(text: object)
ci/tests_fetcher.py:666
↓ 1 callersFunctioncollect
(kind)
tests/unit/runtime/test_determinism.py:139
↓ 1 callersFunctioncollect_ddp_parameters
Collect parameters from DDP model
tests/unit/v1/zero/test_zero_user_backward.py:194
↓ 1 callersFunctioncollect_replacement_sources
Return the ``ReplacementSourceMap`` describing what this replacement did. A caller-supplied optimizer has already sorted the sources into param g
deepspeed/module_inject/auto_ep_layer.py:1275
↓ 1 callersFunctioncollective
(self, tensor, marker=None, group=None)
tests/unit/comm/test_dist.py:210
← previousnext →4,401–4,500 of 14,579, ranked by callers