MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 3 callersMethodunscale_and_clip_grads
(self, sub_group_id, total_norm)
deepspeed/runtime/zero/stage3.py:3326
↓ 3 callersFunctionunsupported_preset_for_hf_model_type
Return a preset carrying an actionable diagnostic for an unsupported HF model_type.
deepspeed/module_inject/auto_ep_presets/registry.py:94
↓ 3 callersFunctionupdate
(case)
tests/unit/ops/adam/test_cpu_adam.py:143
↓ 3 callersMethodupdate_hook_state_and_maybe_run_epilogue
Update hook state after a gradient hook fires and run epilogue if all hooks have fired.
deepspeed/runtime/base_optimizer.py:507
↓ 3 callersMethodupdate_offload_overflow_tracker
(self, grad)
deepspeed/runtime/zero/stage_1_and_2.py:1910
↓ 3 callersMethoduse_host_timers
(self)
accelerator/hpu_accelerator.py:47
↓ 3 callersMethoduse_node_local_storage
(self)
deepspeed/runtime/engine.py:1824
↓ 3 callersMethoduses_parallelization_pass_only
Determines if the compiled graph comes from a parallelization pass rather than ZeRO.
deepspeed/runtime/engine.py:1711
↓ 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:1143
↓ 3 callersMethodvisible_devices_envs
(self)
accelerator/hpu_accelerator.py:310
↓ 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 callersFunctionwriteAs
csrc/includes/simd.h:29
↓ 3 callersMethodzenflow_config
(self)
deepspeed/runtime/engine.py:1911
↓ 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:2609
↓ 3 callersMethodzero_offload_optimizer
(self)
deepspeed/runtime/engine.py:1668
↓ 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:1483
↓ 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:317
↓ 2 callersMethod__init__
(self)
tests/unit/v1/pin_memory/test_pin_memory.py:192
↓ 2 callersMethod__init__
(self)
tests/unit/v1/zero/test_reflow.py:2327
↓ 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, seq_dim, vocab_size=64, hidden=32, num_heads=2)
tests/unit/v1/compile/test_compile_autosp.py:94
↓ 2 callersMethod__init__
(self)
tests/unit/v1/autotp/test_autotp_multiple_models.py:114
↓ 2 callersMethod__init__
(self)
tests/unit/runtime/zero/test_zero_stale_handle_wait.py:74
↓ 2 callersMethod__init__
(self, hidden=32, inter=48)
tests/unit/module_inject/test_segment_ki_kernels.py:307
↓ 2 callersMethod__init__
(self, attn_cls, hidden: int)
tests/benchmarks/bench_multimodal_sp.py:90
↓ 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:558
↓ 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__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:1874
↓ 2 callersMethod__setitem__
(self, model, can_record_outputs)
tests/unit/v1/moe/test_autoep_unit.py:2662
↓ 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_aggregate_autoep_zero12_metadata
(model_state_metadata)
deepspeed/checkpoint/ds_to_universal.py:1123
↓ 2 callersFunction_agree
Collective AND: both ranks must pass or both fall back. The verdict tensor must live on the accelerator: an NCCL-only group has no CPU backen
deepspeed/comm/custom_collective.py:40
↓ 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:1367
↓ 2 callersFunction_all_gather_sequence
(local: torch.Tensor, group, size: int)
deepspeed/models/glm_moe_dsa/attention.py:66
↓ 2 callersFunction_all_gather_variable_rows
(tensor: torch.Tensor, group, tp_size: int,
deepspeed/moe/ep_tp_dispatch.py:342
↓ 2 callersFunction_all_real_if_tensor
(args)
deepspeed/compile/profilers/graph_profile.py:26
↓ 2 callersFunction_all_reduce_replicated_kv_rows
All-reduce the replicated K/V rows in place. Some backends return this gradient non-contiguously, which collectives reject; reduce a contiguo
deepspeed/module_inject/layers.py:1487
↓ 2 callersMethod_all_source_files
(self)
ci/tests_fetcher.py:279
↓ 2 callersMethod_all_test_files
(self)
ci/tests_fetcher.py:271
↓ 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 callersMethod_apply_all_deferred_grad_scales
(self)
deepspeed/runtime/zero/stage3.py:3366
↓ 2 callersMethod_apply_repetition_penalty
Penalize the tokens of ``input_ids`` in last-position ``logits``, without changing ``logits``. generate() applies the penalty in float32, bef
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1733
↓ 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_as_concat
Normalize grouped_linear output: some routing paths return concatenated (list of 1), others separate (list of n).
tests/unit/module_inject/test_segment_ki_kernels.py:56
↓ 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_native_fused_gradient_close
(actual, expected, *, name)
tests/unit/v1/moe/test_autoep_deepep_parity.py:487
↓ 2 callersFunction_assert_no_further_from_reference
(fused, eager, reference, allowance, what)
tests/unit/v1/moe/test_autoep_fused_parity.py:195
← previousnext →2,001–2,100 of 15,767, ranked by callers