MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 3 callersMethoduses_parallelization_pass_only
Determines if the compiled graph comes from a parallelization pass rather than ZeRO.
deepspeed/runtime/engine.py:1630
↓ 3 callersMethodvalidate
(**settings)
tests/unit/v1/moe/test_autoep_expert_activation.py:364
↓ 3 callersMethodvalidate_active_resources
srun places tasks by count, not by device id. It can run N tasks on a named set of hosts, but it cannot pin them to particular slots,
deepspeed/launcher/multinode_runner.py:365
↓ 3 callersMethodvalidate_args
(self)
deepspeed/launcher/multinode_runner.py:280
↓ 3 callersMethodvalidate_embedding
(module)
deepspeed/module_inject/layers.py:1126
↓ 3 callersMethodvisible_devices_envs
(self)
accelerator/hpu_accelerator.py:310
↓ 3 callersFunctionwarning_once
This method is identical to `logger.warning()`, but will emit the warning with the same message only once Note: The cache is for the functio
deepspeed/utils/logging.py:65
↓ 3 callersFunctionworker
(stage, output)
tests/unit/runtime/test_determinism.py:110
↓ 3 callersFunctionwrapFunc
(func, funcFlopCompute)
deepspeed/profiling/flops_profiler/profiler.py:872
↓ 3 callersFunctionwrapper
(*args, **kwargs)
deepspeed/runtime/compiler.py:84
↓ 3 callersFunctionwrapper
(self, *args, **kwargs)
deepspeed/comm/torch.py:209
↓ 3 callersMethodzenflow_cpu_optimizer_step
(self, now_state, scaled_global_grad_norm)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:757
↓ 3 callersFunctionzero3_post_init_quantization_test_helper
(cpu_offload: bool, nvme_offload: bool, bits: int, nvme_path=None)
tests/unit/inference/quantization/test_intX_quantization.py:57
↓ 3 callersFunctionzero3_quantized_initialization_test_helper
(cpu_offload: bool, nvme_offload: bool, bits: int, nvme_path=None)
tests/unit/inference/quantization/test_intX_quantization.py:177
↓ 3 callersMethodzero_grad
Zero FP16 parameter grads.
deepspeed/runtime/zero/stage3.py:2450
↓ 3 callersMethodzero_nvme_offload_optimizer
(self)
deepspeed/runtime/engine.py:1667
↓ 3 callersMethodzero_offload_optimizer
(self)
deepspeed/runtime/engine.py:1587
↓ 3 callersFunctionzero_param_storage_affine_map
Describe the storage of a live low-precision ``param`` across global ranks. A ZeRO-3 parameter is described by its own partition group and ``ds_t
deepspeed/checkpoint/zero_affine.py:119
↓ 3 callersFunctionzero_param_storage_shard
This rank's shard of ``param`` as laid out by ``zero_param_storage_affine_map``: a flat view. A ZeRO-3 parameter must be partitioned. A gathered
deepspeed/checkpoint/zero_affine.py:143
↓ 2 callersFunctionDS4Sci_EvoformerAttention
(Q, K, V, biases)
deepspeed/ops/deepspeed4science/evoformer_attn.py:88
↓ 2 callersMethodForward
csrc/transformer/ds_transformer_cuda.cpp:154
↓ 2 callersMethodForwardWithBiasAdd
csrc/includes/gelu.h:25
↓ 2 callersMethodGeluCheckpoint
csrc/includes/ds_transformer_cuda.h:145
↓ 2 callersMethodGetBatchSize
csrc/transformer/inference/includes/inference_context.h:192
↓ 2 callersMethodGetHiddenSize
csrc/includes/ds_transformer_cuda.h:142
↓ 2 callersMethodGetIntermediateSize
csrc/includes/ds_transformer_cuda.h:139
↓ 2 callersMethodGetSeqLength
csrc/includes/softmax.h:59
↓ 2 callersMethodGetTimeInSeconds
csrc/includes/StopWatch.h:45
↓ 2 callersMethodIsTrainingMode
csrc/includes/ds_transformer_cuda.h:144
↓ 2 callersMethodRestart
csrc/includes/StopWatch.h:29
↓ 2 callersMethodSetIntermediateBuffers
csrc/transformer/ds_transformer_cuda.cpp:566
↓ 2 callersMethodSetSeqLength
csrc/transformer/ds_transformer_cuda.cpp:585
↓ 2 callersMethodSetWorkSpace
csrc/includes/context.h:76
↓ 2 callersMethodSoftmax
csrc/includes/softmax.h:38
↓ 2 callersMethodStop
csrc/includes/StopWatch.h:35
↓ 2 callersMethodUseMean
csrc/includes/normalize_layer.h:188
↓ 2 callersFunction_Wait_bwd_comm
(input_, dic_, h_id)
deepspeed/runtime/domino/transformer.py:50
↓ 2 callersMethod__getattr__
Pass through attributes defined in the model if they are not overridden by ds-engine.
deepspeed/runtime/engine.py:1402
↓ 2 callersMethod__getstate__
(self)
deepspeed/linear/quantization.py:85
↓ 2 callersMethod__init__
(self, out=True, err=True, replay=True)
tests/unit/util.py:228
↓ 2 callersMethod__init__
(self, linear)
tests/unit/profiling/flops_profiler/test_flops_profiler.py:274
↓ 2 callersMethod__init__
(self, result: str)
tests/unit/inference/v2/model_implementations/test_exaone4_5.py:101
↓ 2 callersMethod__init__
(self, num_layers=20, dim=128)
tests/unit/v1/ops/muon/test_muon.py:733
↓ 2 callersMethod__init__
(self, params)
tests/unit/v1/ops/muon/test_muon_partial_training.py:315
↓ 2 callersMethod__init__
(self)
tests/unit/v1/pin_memory/test_pin_memory.py:192
↓ 2 callersMethod__init__
(self, checkpointed)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:153
↓ 2 callersMethod__init__
(self, attn: nn.Module)
tests/unit/v1/sequence_parallelism/test_autosp_integration.py:89
↓ 2 callersMethod__init__
(self)
tests/unit/runtime/zero/test_zero_stale_handle_wait.py:74
↓ 2 callersMethod__init__
(self, batch_size, hidden_size, intermediate_size, heads, attn_dropout_ratio, hidden_dropout_ratio,
deepspeed/ops/transformer/transformer.py:21
↓ 2 callersMethod__init__
(self, config, q_scales=None, q_groups=1, merge_count=1, mlp_extra_grouping=False, mp_group=None)
deepspeed/ops/transformer/inference/moe_inference.py:134
↓ 2 callersMethod__init__
(self, chunk: torch.Tensor, device=None, is_in_use=False)
deepspeed/sequence/fpdt_layer.py:519
↓ 2 callersMethod__init__
(self, micro_batches, stages, stage_id)
deepspeed/runtime/pipe/schedule.py:49
↓ 2 callersMethod__init__
Create a mapping of n-dimensional tensor coordinates to linear indices. Arguments: axes (list): the names of the tensor axes
deepspeed/runtime/pipe/topology.py:26
↓ 2 callersMethod__init__
(self, typename, *module_args, **module_kwargs)
deepspeed/runtime/pipe/module.py:53
↓ 2 callersMethod__init__
(self, path)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:143
↓ 2 callersMethod__init__
( self, init_optimizer, param_names, timers, optimizer_params,
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:55
↓ 2 callersMethod__init__
(self, scale=1)
deepspeed/runtime/fp16/loss_scaler.py:188
↓ 2 callersMethod__init__
(self, vocab_size, hidden_size, num_layers, num_heads, max_seq_len, dropout=0.1)
examples/sdma_allgather/train_zero3.py:82
↓ 2 callersMethod__init__
(self, attn_cls, hidden: int)
benchmarks/autosp/bench_multimodal_sp.py:90
↓ 2 callersMethod__new__
( cls, data: Optional[torch.Tensor] = None, requires_grad: bool = False, # quantized
deepspeed/linear/quantization.py:37
↓ 2 callersMethod__reduce_and_partition_ipg_grads
(self, communication_data_type: torch.dtype)
deepspeed/runtime/zero/stage3.py:1724
↓ 2 callersMethod__setstate__
(self, state)
deepspeed/linear/quantization.py:92
↓ 2 callersFunction_abort_if_any_rank_failed
Agree across ranks on whether profiling can go on, and stop everywhere if it cannot. Profiling issues collectives node by node. A rank that hits
deepspeed/compile/profilers/graph_profile.py:105
↓ 2 callersFunction_absolute_profile_memory
Read absolute allocator residency and peak with external memory included once.
deepspeed/compile/profilers/graph_profile.py:189
↓ 2 callersMethod_add_tensors
(self, tensor_list)
deepspeed/runtime/swap_tensor/optimizer_utils.py:66
↓ 2 callersFunction_affine_resume_step
(engine, tp_size, step)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1665
↓ 2 callersFunction_aggregate_autoep_zero12_metadata
(model_state_metadata)
deepspeed/checkpoint/ds_to_universal.py:1091
↓ 2 callersFunction_alias_root
The node that allocated the storage `node` reads. An aliasing op returns a tensor that shares the storage of its first tensor input, so following
deepspeed/compile/passes/offload_activation.py:310
↓ 2 callersMethod_align_host_address
(accelerator, address)
deepspeed/utils/pin_memory.py:141
↓ 2 callersFunction_all_gather_cat_dim1
Same as _all_gather_cat_dim0, but for row-parallel weights sharded along dim 1.
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1328
↓ 2 callersFunction_all_gather_sequence
(local: torch.Tensor, group, size: int)
deepspeed/models/glm_moe_dsa/attention.py:66
↓ 2 callersFunction_all_real_if_tensor
(args)
deepspeed/compile/profilers/graph_profile.py:26
↓ 2 callersMethod_all_source_files
(self)
ci/tests_fetcher.py:273
↓ 2 callersMethod_all_test_files
(self)
ci/tests_fetcher.py:265
↓ 2 callersFunction_alloc_reload_buffer
(like_tensor, compute_stream)
deepspeed/compile/passes/offload_adam_states.py:103
↓ 2 callersMethod_allocate_and_return_buffers_for_swap_in
(self, params)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:178
↓ 2 callersMethod_allocate_or_extend_buffers
(self, idx, shape, dtype)
deepspeed/runtime/pipe/engine.py:1275
↓ 2 callersFunction_apply_rotary_interleave
Interleaved rotary embedding on ``[batch, seq, heads, rope_dim]`` tensors. The same formula as transformers' ``apply_rotary_pos_emb_interleave``
deepspeed/models/glm_moe_dsa/attention.py:101
↓ 2 callersFunction_aspect_ratio_scale
(rows, cols)
deepspeed/runtime/zero/muon/original_muon.py:163
↓ 2 callersFunction_assert_compile_step_close
(actual, expected)
tests/unit/v1/moe/test_autoep_grad_parity.py:317
↓ 2 callersFunction_assert_grad_maps_close
(actual, expected, *, lhs_name, rhs_name)
tests/unit/v1/moe/test_autoep_grad_parity.py:167
↓ 2 callersFunction_assert_kept_update_survives
(engine, loss)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:336
↓ 2 callersFunction_assert_moves_exactly
(plan, source_map, target_map, full)
tests/unit/checkpoint/test_affine_replica_policy.py:56
↓ 2 callersFunction_assert_no_further_from_reference
(fused, eager, reference, allowance, what)
tests/unit/v1/moe/test_autoep_fused_parity.py:155
↓ 2 callersFunction_assert_no_less_accurate
(kernel_out, eager_out, ref, dtype)
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:246
↓ 2 callersFunction_assert_pid_gone
(pid: int)
ci/test_torch_latest.py:1130
↓ 2 callersFunction_assert_relative_tensor_error
(actual, expected, name)
tests/unit/v1/moe/test_autoep_grad_parity.py:308
↓ 2 callersFunction_assert_same_dtype_device
(actual, expected)
tests/unit/v1/moe/test_autoep_unit.py:116
↓ 2 callersMethod_assert_sparse_routes_match
(combine_weights, sparse_output)
tests/unit/v1/moe/test_moe.py:382
↓ 2 callersFunction_assert_step_matches
(fused, eager, reference)
tests/unit/v1/moe/test_autoep_fused_parity.py:209
↓ 2 callersFunction_assert_structure
AutoTP shards the attention projections only; AutoEP owns every MoE block.
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:214
↓ 2 callersMethod_assert_training_matches_reference
(self, engine, reference, vocab_parallel)
tests/unit/v1/autotp/test_autotp_training.py:239
↓ 2 callersFunction_assert_universal_expert_metadata
(universal_dir, num_experts)
tests/unit/v1/moe/test_autoep_checkpoint.py:92
↓ 2 callersMethod_assert_zero3_universal_weights_only_load
(self, tmpdir, load_kwargs)
tests/unit/v1/moe/test_autoep_checkpoint.py:595
↓ 2 callersMethod_assign_resources_to_tensor_slice
(self, slice_resources, my_slice_index, my_dp_ranks)
deepspeed/runtime/model_checkpointing/data_parallel_writer_factory.py:174
↓ 2 callersFunction_autoep_expert_param_names_by_rank
(model_files)
deepspeed/checkpoint/ds_to_universal.py:692
↓ 2 callersMethod_autoep_expert_parameter_names
(autoep_layers, model)
deepspeed/runtime/engine.py:4626
↓ 2 callersFunction_autoep_zero12_dp_ranks
Return stage-local ZeRO DP ranks that own one EP rank's fragments.
deepspeed/checkpoint/autoep_universal.py:244
↓ 2 callersMethod_autoep_zero3_param_converter
(self, model)
deepspeed/runtime/engine.py:924
↓ 2 callersMethod_autoep_zero_optimizer_param_families
(self)
deepspeed/runtime/engine.py:4147
← previousnext →1,801–1,900 of 14,579, ranked by callers