MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 1 callersFunction_assert_expert_params_match_universal
(engine, universal_dir)
tests/unit/v1/moe/test_autoep_checkpoint.py:233
↓ 1 callersFunction_assert_fp32_master_params_match_universal
(engine, universal_dir)
tests/unit/v1/moe/test_autoep_checkpoint.py:276
↓ 1 callersFunction_assert_fully_available
(model: Module)
tests/unit/v1/zero/test_zero.py:714
↓ 1 callersFunction_assert_global_grad_norm_consistent
(engine)
tests/unit/v1/moe/test_autoep_integration.py:26
↓ 1 callersFunction_assert_gradients_match_relatively
Relative L2 error of the input and every parameter gradient. The absolute tolerances above are larger than these small gradients, so they cannot
tests/unit/v1/moe/test_autoep_deepep_parity.py:412
↓ 1 callersFunction_assert_gradients_no_worse_than_eager
(fused, eager, reference)
tests/unit/v1/moe/test_autoep_fused_parity.py:172
↓ 1 callersFunction_assert_input_grad_no_worse_than_eager
(fused, eager, reference)
tests/unit/v1/moe/test_autoep_fused_parity.py:164
↓ 1 callersFunction_assert_mixed_partition_dtypes
(model)
tests/unit/runtime/zero/test_zero_autocast_mixed_dtype.py:70
↓ 1 callersFunction_assert_native_fused_gradient_close
(actual, expected, *, name)
tests/unit/v1/moe/test_autoep_deepep_parity.py:429
↓ 1 callersFunction_assert_optimizer_step_restored
(engine, universal_dir)
tests/unit/v1/moe/test_autoep_checkpoint.py:288
↓ 1 callersFunction_assert_relative_l2_close
(actual, expected, name)
tests/unit/v1/moe/test_autoep_grad_parity.py:696
↓ 1 callersFunction_assert_resolvable_updates_match
(fused, eager, reference)
tests/unit/v1/moe/test_autoep_fused_parity.py:186
↓ 1 callersFunction_assert_router_params_match_universal
(engine, universal_dir)
tests/unit/v1/moe/test_autoep_checkpoint.py:217
↓ 1 callersFunction_assert_row_weighting_forward_matches
(fused, eager)
tests/unit/v1/ops/triton_ops/test_autoep_fused_token_ops.py:35
↓ 1 callersFunction_assert_saved_checkpoint_metadata
(checkpoint_dir, *, ep_size=2)
tests/unit/v1/moe/test_autoep_autotp_checkpoint.py:229
↓ 1 callersFunction_assert_shared_params_match_universal
(engine, universal_dir)
tests/unit/v1/moe/test_autoep_checkpoint.py:225
↓ 1 callersFunction_assert_supported_device_and_dtype
(tensor: torch.Tensor, *, name: str)
deepspeed/ops/triton_ops/fused_rms_norm.py:143
↓ 1 callersFunction_assert_zero_optimizer_folding_metadata
(checkpoint_dir)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:657
↓ 1 callersFunction_async_split_config
(enabled)
tests/unit/v1/moe/test_autoep_grad_parity.py:570
↓ 1 callersFunction_async_split_step
(engine, seed, seq_len)
tests/unit/v1/moe/test_autoep_grad_parity.py:639
↓ 1 callersFunction_attention
(Q, K, V, bias1, bias2)
deepspeed/ops/deepspeed4science/evoformer_attn.py:14
↓ 1 callersFunction_attention_head_count_from
First non-None attention head count found on ``config`` via :data:`_ATTN_HEAD_ATTRS`, else ``None``.
deepspeed/module_inject/tp_shard.py:40
↓ 1 callersFunction_autocast_dtype
The active autocast dtype for ``device_type``, or ``None`` when autocast is off.
deepspeed/sequence/linear_cross_entropy.py:97
↓ 1 callersFunction_autoep_folding_param_family
Resolve a parameter's folded reduction family. An explicit ``mark_autoep_folding_*`` tag always wins. The ``.router.`` name match is only a r
deepspeed/module_inject/auto_ep_folding.py:332
↓ 1 callersMethod_autoep_non_expert_param_families
(state_dict)
deepspeed/runtime/engine.py:4126
↓ 1 callersMethod_autoep_param_family
(param_name)
deepspeed/runtime/engine.py:4138
↓ 1 callersFunction_autotp_layout_map
(name, param, tp_world_size)
deepspeed/checkpoint/zero_affine.py:247
↓ 1 callersMethod_autotuning_exit
(self)
deepspeed/runtime/engine.py:3788
↓ 1 callersMethod_average_expert_grad_norms
(self, norm_groups)
deepspeed/runtime/zero/stage_1_and_2.py:3292
↓ 1 callersMethod_backward_impl
(ctx, all_args)
tests/unit/compile/test_zero3_grad_dtype.py:285
↓ 1 callersMethod_backward_impl
(ctx, all_args)
tests/unit/compile/test_backend.py:97
↓ 1 callersMethod_backward_prologue
(ctx, *grad_outputs)
tests/unit/compile/test_zero3_grad_dtype.py:289
↓ 1 callersMethod_backward_prologue
(ctx, *grad_outputs)
tests/unit/compile/test_backend.py:101
↓ 1 callersMethod_backward_prologue
(self)
deepspeed/runtime/engine.py:3204
↓ 1 callersFunction_backward_through_boundary
Run the micro-batches of one optimizer step and stop after the last backward, before the update. Returns the fp32 reference for the accumulated gr
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:292
↓ 1 callersFunction_batch
(logical_rank, logical_world_size, micro_step, device)
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:131
↓ 1 callersFunction_batch_assert
(status, ds_config, batch, micro_batch, gas, success)
tests/unit/runtime/test_ds_config_dict.py:68
↓ 1 callersMethod_batch_assertion
(self)
deepspeed/runtime/config.py:594
↓ 1 callersMethod_bcast_pipe_scalar
(self, data, src_rank=None, dtype=torch.float32)
deepspeed/runtime/pipe/engine.py:558
↓ 1 callersMethod_bf16_reduce_grads
(self)
deepspeed/runtime/pipe/engine.py:297
↓ 1 callersMethod_bias_add_transform_0213
(vals, bias, hidden_dim, seq_length, seq_offset, heads, num_kv, rotary_dim, r
op_builder/npu/inference.py:136
↓ 1 callersFunction_bias_subparam_shape_spec
View spec describing how a partitioned bias is laid out over its sub-parameters. The weight's spec cannot be reused: it carries the input dimensi
deepspeed/module_inject/layers.py:2032
↓ 1 callersMethod_bigcode_affine_map
GPTBigCode shards the query rows and gives every rank the whole key/value block. The two segments differ only in who holds them, which is wha
deepspeed/module_inject/layers.py:1563
↓ 1 callersFunction_bigcode_type_transpose
(input, mp_size, meta=meta)
deepspeed/module_inject/fusedqkv_utils.py:159
↓ 1 callersMethod_block_forward
(self, block, x)
tests/unit/v1/zero/test_zero_user_backward.py:1662
↓ 1 callersFunction_block_hidden
Choose a power-of-two tile within the FP32 register budget.
deepspeed/ops/triton_ops/autoep_fused_token_ops.py:250
↓ 1 callersFunction_block_rows
(vocab_size: int)
deepspeed/runtime/chunked_cross_entropy.py:91
↓ 1 callersFunction_bring_back
Undo one activation's move: the graph keeps it resident again.
deepspeed/compile/passes/offload_activation.py:590
↓ 1 callersMethod_broadcast_model
(self)
deepspeed/runtime/engine.py:2110
↓ 1 callersFunction_budget_overflow_diagnostic
(scheduler_budget: SchedulerMemoryBudget, task: AllgatherTask, path: str, live
deepspeed/compile/list_schedule.py:563
↓ 1 callersMethod_buffer_idx
Map a micro-batch index to a pipeline buffer index. This method uses a cyclic allocation strategy. Args: micro_batch_id
deepspeed/runtime/pipe/schedule.py:111
↓ 1 callersMethod_buffered_reduce_fallback_preserving_fp32
(self, grads, grad_params, communication_data_type, elements
deepspeed/runtime/zero/stage_1_and_2.py:2590
↓ 1 callersMethod_build
(self)
deepspeed/runtime/pipe/module.py:234
↓ 1 callersMethod_build_config
(self, tp_size: int)
tests/unit/v1/autotp/test_autotp_training.py:876
↓ 1 callersFunction_build_custom_preset
(config: AutoEPConfig)
deepspeed/module_inject/auto_ep_presets/registry.py:197
↓ 1 callersMethod_build_data_iter
(self, dataset)
deepspeed/runtime/pipe/engine.py:259
↓ 1 callersFunction_build_dtype_map
torch.dtype -> mori_cpp.DataType (NCCL-style enum).
deepspeed/comm/mori.py:75
↓ 1 callersFunction_build_flat_partition_grad_views
(optimizer, group_idx)
deepspeed/compile/init_z1_and_2.py:65
↓ 1 callersFunction_build_gate_up_layer
(out_features, tp_world_size, tp_index, meta)
tests/unit/module_inject/test_fused_repartition.py:20
↓ 1 callersMethod_build_global_attention
(self)
deepspeed/inference/v2/model_implementations/exaone4_5/model.py:140
↓ 1 callersMethod_build_inputs
Build deterministic visual and text tensors identical on every rank.
tests/unit/v1/sequence_parallelism/test_autosp_equivalence.py:158
↓ 1 callersMethod_build_inputs
Build deterministic inputs with a run of IMG_CONTEXT tokens in the middle.
tests/unit/v1/sequence_parallelism/test_autosp_equivalence.py:257
↓ 1 callersMethod_build_inputs
Build inputs with a single vision_start/end block containing num_inner placeholders.
tests/unit/v1/sequence_parallelism/test_autosp_equivalence.py:353
↓ 1 callersFunction_build_loader
(args, vocab_size, rank, world_size, is_main)
examples/sdma_allgather/train_qwen3_zero3.py:154
↓ 1 callersFunction_build_model
(hidden_dim, nlayers, config, seed=42)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:53
↓ 1 callersFunction_build_model_and_inputs
(arch: str, args, sp_group, device)
benchmarks/autosp/bench_multimodal_sp.py:148
↓ 1 callersMethod_build_muon_exchange_layout
Precompute the slices needed to reconstruct locally-owned split matrices.
deepspeed/runtime/bf16_optimizer.py:244
↓ 1 callersMethod_build_p2p_groups
Groups for sending and receiving activations and gradients across model parallel stages.
deepspeed/runtime/pipe/topology.py:371
↓ 1 callersFunction_build_param_uc_conversion_meta
Build the conversion-facing subset of parameter UC metadata. This is the only schema that should flow into model-level `UNIVERSAL_CHECKPOINT_
deepspeed/module_inject/layers.py:79
↓ 1 callersFunction_build_parser
()
ci/torch_latest.py:1966
↓ 1 callersFunction_build_partition_grad_views
(optimizer, group_idx)
deepspeed/compile/init_z1_and_2.py:35
↓ 1 callersMethod_build_pp_transformer_map
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:284
↓ 1 callersFunction_build_release_expected
Derive the final-release count for every gathered parameter interval.
deepspeed/compile/list_schedule.py:433
↓ 1 callersFunction_build_sandbox_image
Bake the static dependency chain into content-addressed image layers. Layers apply in chain order, mirroring the previous runtime sequence: requi
ci/torch_latest.py:582
↓ 1 callersFunction_build_scheduler_budget_from_operator_profile
Build a budget only when every node has trustworthy operator profile data.
deepspeed/compile/passes/zero3_compile.py:82
↓ 1 callersMethod_build_tp_other_layer_map
(self, layer_index: int)
deepspeed/checkpoint/deepspeed_checkpoint.py:268
↓ 1 callersMethod_build_transformer_file_map
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:301
↓ 1 callersFunction_build_wikitext_loader
Stream wikitext-103-raw-v1 as a concatenated token stream sliced into fixed `seq_length` chunks. This is the standard "group_texts" / GPT-sty
examples/sdma_allgather/train_qwen3_zero3.py:87
↓ 1 callersFunction_build_zero3_rank_grid
(files)
deepspeed/checkpoint/ds_to_universal.py:635
↓ 1 callersFunction_bytes
(node)
deepspeed/compile/passes/offload_activation.py:506
↓ 1 callersMethod_candidate_cutlass_paths
(self)
op_builder/evoformer_attn.py:145
↓ 1 callersMethod_cann_supports_int4
Return whether CANN provides aclnnLeftShifts for the int4 packer. The int4 inference path as a whole needs CANN >= 9.0.0. Returns True
op_builder/npu/quantizer.py:276
↓ 1 callersMethod_capture
Record a graph for ``position`` and keep its static input buffers.
deepspeed/runtime/hybrid_engine_graph.py:107
↓ 1 callersMethod_cast_inputs_half
(self, inputs)
deepspeed/runtime/engine.py:3107
↓ 1 callersFunction_cgroup_dirs
Directories of this process's cgroup, nearest first, mount point last.
accelerator/cpu_accelerator.py:115
↓ 1 callersFunction_cgroup_membership
The cgroup path of this process from /proc/self/cgroup, relative to the hierarchy root.
accelerator/cpu_accelerator.py:61
↓ 1 callersFunction_cgroup_mount
Returns (mount point, mount root) of the cgroup hierarchy from /proc/self/mountinfo. The mount can expose a subtree of the hierarchy (mount root
accelerator/cpu_accelerator.py:78
↓ 1 callersFunction_changed_paths
(base: str, head: str)
ci/check_paths.py:45
↓ 1 callersFunction_check_autosp_compatibility
()
deepspeed/compile/custom_ops/sp_compat.py:10
↓ 1 callersFunction_check_autotp_compatibility
(model)
deepspeed/compile/init_tp.py:18
↓ 1 callersMethod_check_autotp_frozen_replicated_params
(self)
deepspeed/runtime/engine.py:3193
↓ 1 callersFunction_check_causal_only
The kernels compute causal attention over every whole sequence of the batch. Raise for any input that asks for something else: transformers builds
deepspeed/models/glm_moe_dsa/attention.py:126
↓ 1 callersMethod_check_for_duplicates
(self, optimizer)
deepspeed/runtime/engine.py:2354
↓ 1 callersFunction_check_for_required_state
(ds_checkpoint)
deepspeed/checkpoint/ds_to_universal.py:1070
↓ 1 callersMethod_check_fused_linear_vocab_parallel_loss
(self)
deepspeed/runtime/engine.py:1018
↓ 1 callersFunction_check_fused_rms_norm_handles_head_major_non_contiguous_input
(dtype)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:129
↓ 1 callersFunction_check_fused_rms_norm_handles_strided_weight
(dtype)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:182
↓ 1 callersFunction_check_fused_rms_norm_large_and_tiny_magnitudes
(dtype, scale)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:160
↓ 1 callersFunction_check_fused_rms_norm_matches_hf_forward_and_backward
(dtype, shape)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:107
↓ 1 callersFunction_check_fused_rms_norm_rejects_double_backward
()
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:222
← previousnext →3,201–3,300 of 14,579, ranked by callers