MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 3 callersFunction_zero_empty_expert_grad
(weight: torch.Tensor, num_tokens_per_expert: torch.Tensor)
deepspeed/moe/ep_experts.py:315
↓ 3 callersFunction_zero_optimizer_stub
(*, partition_gradients, overlap_comm)
tests/unit/v1/moe/test_autoep_autotp_zero1_overlap_folding.py:15
↓ 3 callersMethodabsolute_include_paths
(self)
op_builder/builder.py:474
↓ 3 callersMethodabsolute_name
Returns absolute build path for cases where the op is pre-installed, e.g., deepspeed.ops.adam.cpu_adam will be installed as something
op_builder/builder.py:221
↓ 3 callersFunctionaccess
(tensor)
tests/unit/v1/zero/test_zero2_gradient_safety.py:348
↓ 3 callersFunctionadam_update
(grad, buf1, buf2, step, betas, eps)
deepspeed/runtime/zero/muon/original_muon.py:340
↓ 3 callersFunctionadd_end_backward
(graph: Graph, graph_id: int, release_reduce_buckets: bool = True)
deepspeed/compile/fx.py:40
↓ 3 callersMethodadd_param_group
(self, param_group)
deepspeed/ops/adam/cpu_adam.py:135
↓ 3 callersMethodadd_pointer_offset
Adds a pointer offset in units of Element
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_atomic.h:330
↓ 3 callersMethodaddress
Shard offset of a sub-box of this frame's region, in this shard's own addressing.
deepspeed/checkpoint/affine_transfer.py:117
↓ 3 callersFunctionaddress_range
The lowest and highest address a strided view reaches, both inclusive.
deepspeed/checkpoint/affine_geometry.py:50
↓ 3 callersMethodall_to_all
(self, output_tensor_list, input_tensor_list, group=None, async_op=False)
deepspeed/comm/torch.py:541
↓ 3 callersFunctionallclose
(x, y)
tests/unit/ops/spatial/test_nhwc_bias_add.py:17
↓ 3 callersMethodalloc
csrc/pin_memory/deepspeed_pin_tensor.cpp:42
↓ 3 callersMethodallocate_tensor
(self, swap_path, numel, aligned_numel)
deepspeed/runtime/swap_tensor/utils.py:55
↓ 3 callersMethodallreduce_and_copy_with_multiple_ranks
(self, small_bucket,
deepspeed/runtime/zero/stage_1_and_2.py:1640
↓ 3 callersMethodallreduce_and_scatter
(self, bucket, communication_data_type: torch.dtyp
deepspeed/runtime/zero/stage_1_and_2.py:1669
↓ 3 callersMethodallreduce_bucket
(self, bucket, communication_data_type: torch.dtype,
deepspeed/runtime/zero/stage_1_and_2.py:2454
↓ 3 callersFunctionapply_autotp_with_partition_config
(model, tp_size, partition_config)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:165
↓ 3 callersFunctionapply_folding_correction_to_grad_buffer
( folding_spec: ParallelFoldingSpec | None, param, grad, *, tp_group, param_name: str
deepspeed/module_inject/auto_ep_folding.py:484
↓ 3 callersFunctionassert_ints_same_as_other_ranks
NOTE: creates both communication and synchronization overhead so should be used sparingly takes a list of ints from each rank and ensure
deepspeed/runtime/zero/utils.py:123
↓ 3 callersFunctionassert_load_balance_coeff_rejection_message
(exc: BaseException, value: object)
tests/unit/v1/moe/autoep_test_utils.py:174
↓ 3 callersMethodasync_inplace_copy_grad_to_fp32_buffer_from_gpu
(self, param)
deepspeed/runtime/zero/stage_1_and_2.py:1988
↓ 3 callersMethodattach_decoder_layer
Record the decoder layer whose checkpoint skip_recompute_combine requires.
deepspeed/module_inject/auto_ep_layer.py:1003
↓ 3 callersFunctionattention
csrc/deepspeed4science/evoformer_attn/attention.cpp:15
↓ 3 callersMethodattention_o_mp
(self, mp_replace, reversed_dim=False)
deepspeed/module_inject/containers/base.py:248
↓ 3 callersFunctionautoep_placements_equal
Return whether two descriptors place the same experts, in the same order, on each rank ID. Rank entries are identified by their explicit rank IDs
deepspeed/checkpoint/autoep_affine.py:124
↓ 3 callersMethodautotuning_enabled
(self)
deepspeed/runtime/engine.py:1603
↓ 3 callersFunctionbackward
(ctx, grad_output)
tests/unit/v1/moe/test_autoep_deepep_parity.py:76
↓ 3 callersMethodbackward
(ctx, *grads)
deepspeed/runtime/sequence_parallel/ulysses_sp.py:1019
↓ 3 callersFunctionbarrier
()
tests/unit/comm/test_comms_logger.py:97
↓ 3 callersFunctionbaseline_implementation
(hidden_states: torch.Tensor, seq_lens: List[int])
tests/unit/inference/v2/kernels/ragged_ops/test_logits_gather.py:22
↓ 3 callersMethodbroadcast_object_list
(self, object_list, src, group=None, device=None)
deepspeed/comm/torch.py:429
↓ 3 callersMethodbuild
Build the stored specification.
deepspeed/runtime/pipe/module.py:69
↓ 3 callersMethodbuild_atoms
Build the atoms for this module. This is not a strict requirement for the class, so this method is a no-op by default rather than abs
deepspeed/inference/v2/modules/interfaces/attention_base.py:51
↓ 3 callersFunctionbuild_config
(tp_size, use_compile_pass, gather_output_head=False)
tests/unit/compile/test_tp_compile.py:84
↓ 3 callersMethodbuild_mpt_alibi_tensor
(self, heads, sequence_length, alibi_bias_max=8, device=None)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:754
↓ 3 callersFunctioncan_send_recv
()
deepspeed/runtime/pipe/p2p.py:21
↓ 3 callersFunctioncapture
(*args, **kwargs)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:1186
↓ 3 callersFunctioncarries_collective
True if the module's own forward executes a collective.
deepspeed/module_inject/segment_ki.py:46
↓ 3 callersFunctioncheapest
Estimate every candidate and keep the cheapest. Each candidate is a way to run the same move, as the stages ``estimate_seconds`` takes. A tie goe
deepspeed/checkpoint/affine_transfer_cost.py:132
↓ 3 callersMethodcheckpoint_event_epilogue
(self)
deepspeed/runtime/zero/stage3.py:4331
↓ 3 callersMethodcheckpoint_event_prologue
(self)
deepspeed/runtime/zero/stage3.py:4328
↓ 3 callersFunctioncleanup_compiled_backward_state
Release engine-owned process-global compiled-backward state.
deepspeed/compile/backend.py:81
↓ 3 callersMethodclear
Drop recorded and imported routes and reset read cursors.
deepspeed/moe/routing_replay.py:36
↓ 3 callersMethodclear_selected_mv
(self)
deepspeed/ops/adam/zenflow_torch_adam.py:89
↓ 3 callersFunctionclone_tensors_for_torch_save
Returns a copy of ``item`` with all enclosed tensors replaced by clones on a specified device. Works on individual tensors, and tensors conta
deepspeed/checkpoint/utils.py:41
↓ 3 callersMethodclose
(self)
deepspeed/io/fast_file_writer.py:94
↓ 3 callersMethodcombine
Reduce expert outputs back to the tokens they came from. Deliberately does not pass ``topk_weights``. DeepEP's combine does not multi
deepspeed/module_inject/auto_ep_comm.py:362
↓ 3 callersMethodcommit
(self, info: CheckpointCommitInfo)
deepspeed/runtime/checkpoint_engine/checkpoint_engine.py:43
↓ 3 callersMethodcompact
Compact active rows after requests retire from a batch.
deepspeed/utils/static_cache.py:335
↓ 3 callersMethodcompile_autosp
Determines if AutoSP is set in deepcompile's passes attributes.
deepspeed/runtime/engine.py:1703
↓ 3 callersMethodcomplete_backward
Release each fallback gather after its last reached forward graph completes.
deepspeed/compile/z3_eager_fallback.py:215
↓ 3 callersFunctionconcat_to_compat_param
(quantized_weight: Tensor, quant_scale: Tensor, quant_mi
deepspeed/inference/quantization/utils.py:190
↓ 3 callersMethodconfig_requires_grad
(self, weight)
deepspeed/module_inject/layers.py:479
↓ 3 callersFunctionconsolidate_autoep_expert_files
Consolidate per-expert checkpoint files into full-expert universal format. For each AutoEP layer, loads all per-expert files, stacks into [E_
deepspeed/checkpoint/autoep_universal.py:413
↓ 3 callersFunctionconvert_size
(size_bytes)
deepspeed/utils/comms_logging.py:22
↓ 3 callersFunctionconvert_zero_checkpoint_to_fp32_state_dict
Backward-compatible fp32 checkpoint conversion.
deepspeed/utils/zero_to_fp32.py:769
↓ 3 callersFunctioncount_tokens_per_expert
Count routed tokens per expert. Because the output shape is known up front, it avoids the device-to-host synchronization that ``torch.bincoun
deepspeed/moe/ep_count.py:10
↓ 3 callersFunctioncount_used_parameters_in_backward
Count the number of parameters that participate in the currently running backward graph. This helper is designed to be invoked from within a
deepspeed/runtime/utils.py:1529
↓ 3 callersMethodcreate
(*args, **kwargs)
ci/test_torch_latest.py:322
↓ 3 callersFunctioncreate_shard_offsets
(gm: GraphModule, s0_node: Node)
deepspeed/compile/util.py:517
↓ 3 callersMethodcurrent_tokens
(self)
deepspeed/ops/transformer/inference/op_binding/workspace.py:129
↓ 3 callersFunctiondebug_param2name_id_shape
(param)
deepspeed/utils/debug.py:121
↓ 3 callersMethoddecode_step_graph
(self, *args)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:131
↓ 3 callersMethoddefer
(self, compute: Callable[[], tuple[torch.Tensor | None, torch.Tensor | None,
deepspeed/moe/ep_experts.py:462
↓ 3 callersMethoddequantize
(self, input_q, fp_out=None, q_bits=8, q_mantisa_bits=3, scale=None)
deepspeed/ops/fp_quantizer/quantize.py:39
↓ 3 callersMethoddequantize
(self, input_q, fp_out=None, q_bits=8, q_mantisa_bits=3, scale=None)
deepspeed/ops/fp_quantizer/quantize.py:121
↓ 3 callersMethoddest_view
This piece's elements as a view of the shard that holds it.
deepspeed/checkpoint/affine.py:101
↓ 3 callersMethoddestroy_process_group
(self, group=None)
deepspeed/comm/torch.py:628
↓ 3 callersFunctiondimension_problem
csrc/spatial/csrc/pt_binding.cpp:12
↓ 3 callersFunctiondisable
(func)
deepspeed/runtime/compiler.py:44
↓ 3 callersMethoddispatch
Send tokens to their experts, returning rows, weights and handle. The weights travel with the tokens because the reduction that uses
deepspeed/module_inject/auto_ep_comm.py:268
↓ 3 callersFunctiondispatch_counters
(ctx: RestoreContext)
deepspeed/moe/ep_tp_dispatch.py:548
↓ 3 callersFunctiondot
(index, strides)
deepspeed/checkpoint/affine_geometry.py:46
↓ 3 callersFunctionds_adam_step_impl
csrc/adam/cpu_adam_impl.cpp:255
↓ 3 callersFunctionds_shape
(param)
deepspeed/utils/debug.py:110
↓ 3 callersFunctiondummy_init_engine
(config)
tests/unit/v1/autotp/test_autotp_training.py:1916
↓ 3 callersMethoddynamic_loss_scale
(self)
deepspeed/runtime/engine.py:1896
↓ 3 callersFunctionenable
Decorator factory to enable compiling of a function if the minimum PyTorch version requirement is met. Args: min_version (str, optio
deepspeed/runtime/compiler.py:58
↓ 3 callersMethodenter_backward
Enter backward context. Call at the start of backward pass.
deepspeed/runtime/base_optimizer.py:487
↓ 3 callersMethodexit_backward
Exit backward context. Call at the end of backward pass.
deepspeed/runtime/base_optimizer.py:491
↓ 3 callersMethodexpert_storage_affine_maps
Return the affine map of the storage each global rank holds for ``w1``, ``w2`` and ``w3``. This is computed locally from the expert data para
deepspeed/module_inject/auto_ep_layer.py:882
↓ 3 callersMethodexperts
(rows, counts)
tests/unit/module_inject/test_auto_ep_comm.py:539
↓ 3 callersMethodextra_compile_args
Returns the flags for each compiler. builder() and jit_load() both build with them, so a pre-built op is compiled the same way as one
op_builder/builder.py:301
↓ 3 callersMethodextra_ldflags
(self)
op_builder/builder.py:292
↓ 3 callersFunctionextract_autoep_rank_tensor
Extract one EP rank's packed local tensor from a universal full tensor.
deepspeed/checkpoint/autoep_affine.py:241
↓ 3 callersMethodfill
(self, src_tensor, src_offset)
deepspeed/io/base_io_buffer.py:16
↓ 3 callersFunctionfill_autoep_config_from_hf
Back-fill AutoEPConfig fields from HF model config when user hasn't set them. HF field names (e.g. n_group, topk_group, routed_scaling_factor) di
deepspeed/module_inject/auto_ep_config.py:491
↓ 3 callersFunctionfill_with_head_ids
Fills a tensor with the associated head ids. All columns should have the same value.
tests/unit/inference/v2/model_implementations/sharding/test_attn_out_sharding.py:16
↓ 3 callersFunctionfilter_args
(node: Node)
deepspeed/compile/list_schedule.py:48
↓ 3 callersFunctionfind_fit_int_dtype
(min_value, max_value)
deepspeed/runtime/data_pipeline/data_sampling/utils.py:12
↓ 3 callersFunctionfind_node_by_tag
(gm: GraphModule, tag: str)
deepspeed/compile/fx.py:194
↓ 3 callersMethodfork_rng
(self, devices)
tests/unit/v1/compile/test_graph_profile.py:15
↓ 3 callersFunctionforward
(self, hidden_states)
deepspeed/ops/triton_ops/fused_rms_norm.py:430
↓ 3 callersMethodforward
(self, input)
tests/unit/runtime/zero/test_zero_context_return.py:88
↓ 3 callersMethodforward
(self, input)
deepspeed/module_inject/layers.py:1965
↓ 3 callersMethodfrom_registry
(registry, add_python=None)
ci/test_torch_latest.py:308
↓ 3 callersMethodfrom_rollout
Derive response-only causal targets from ``rollout``.
deepspeed/runtime/rollout/opsd.py:29
↓ 3 callersMethodgK_strideM
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:270
← previousnext →1,701–1,800 of 15,767, ranked by callers