MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 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:1675
↓ 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:1521
↓ 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:127
↓ 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_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:1868
↓ 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:487
↓ 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:1952
↓ 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
↓ 3 callersMethodgV_strideM
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:274
↓ 3 callersMethodgather_params
Gather partitioned parameters back to full size.
deepspeed/module_inject/layers.py:2304
↓ 3 callersMethodgen_workspace
(self, num_layers, num_heads, batch_size, prompt_len, hidden_dim, mp_size, external_cache,
deepspeed/ops/transformer/inference/op_binding/workspace.py:37
↓ 3 callersMethodgeometry
(**overrides)
tests/unit/module_inject/test_auto_ep_comm.py:152
↓ 3 callersMethodgetGradBuffer
csrc/includes/deepcompile.h:295
↓ 3 callersFunctionget_annotations
Retrieves annotations from a Python object. In python >=3.14 this is a thin wrapper around the `annotationlib.get_annotations` function
deepspeed/compat.py:31
↓ 3 callersFunctionget_attn_mask_stride
infer stride of attention mask memory layout based on the model type.
csrc/transformer/inference/csrc/pt_binding.cpp:41
↓ 3 callersFunctionget_autosp_seq_dim
Return the sequence dimension recorded by prepare_autosp_inputs, defaulting to 1.
deepspeed/compile/util.py:573
↓ 3 callersMethodget_axis_comm_lists
Construct lists suitable for a communicator group along axis ``axis``. Example: >>> topo = Topo(axes=['pipe', 'data', 'model'],
deepspeed/runtime/pipe/topology.py:127
↓ 3 callersMethodget_axis_list
Returns the list of global ranks whose coordinate in an axis is idx. For example: >>> X = ProcessTopology(axes=['x', 'y'], dims=[
deepspeed/runtime/pipe/topology.py:193
↓ 3 callersMethodget_best_space_record
(self, space_name)
deepspeed/autotuning/autotuner.py:715
↓ 3 callersMethodget_buffer
(self)
deepspeed/io/base_io_buffer.py:28
↓ 3 callersFunctionget_ccl_reduce_op
csrc/cpu/comm/ccl.cpp:168
↓ 3 callersMethodget_cmd
(self, environment, active_resources)
deepspeed/launcher/multinode_runner.py:156
↓ 3 callersMethodget_compile_backend
(self)
accelerator/hpu_accelerator.py:321
↓ 3 callersMethodget_config_dict
(self, stage, offload_selective_optimizer,
tests/unit/runtime/zenflow/test_zf.py:83
↓ 3 callersMethodget_data_parallel_group
(self)
tests/unit/v1/moe/test_moe_tp.py:47
↓ 3 callersMethodget_data_parallel_rank
Which pipeline this rank resides in.
deepspeed/runtime/pipe/topology.py:426
↓ 3 callersMethodget_data_types
(self)
deepspeed/runtime/engine.py:1886
↓ 3 callersFunctionget_deepspeed_model
(model)
tests/unit/v1/autotp/test_configurable_parallel_pp.py:24
↓ 3 callersFunctionget_file_size
csrc/aio/common/deepspeed_aio_utils.cpp:108
↓ 3 callersFunctionget_fused_glu_op
Lazily JIT-build and load the fused_glu CUDA op (cached process-wide).
deepspeed/ops/module_inject/fused_glu.py:14
↓ 3 callersMethodget_gas_from_user_config
(self)
deepspeed/autotuning/autotuner.py:987
↓ 3 callersFunctionget_global_norm_of_tensors
Get norm of an iterable of tensors. This is adapted from torch.nn.utils.clip_grad.clip_grad_norm_ and added functionality to handle model par
deepspeed/runtime/utils.py:984
↓ 3 callersFunctionget_gradient_clipping
(param_dict)
deepspeed/runtime/config.py:268
↓ 3 callersMethodget_hp_fragment_address
(self)
deepspeed/utils/tensor_fragment.py:49
↓ 3 callersFunctionget_inactive_params
(param_list)
deepspeed/runtime/utils.py:1182
↓ 3 callersFunctionget_index_by_graph_id
(graph_order, target_graph_id)
deepspeed/compile/util.py:458
↓ 3 callersMethodget_kv_requirements
(self, sequence: DSSequenceDescriptor, max_new_tokens: int, max_new_blocks: int)
deepspeed/inference/v2/model_implementations/exaone4_5/model.py:158
↓ 3 callersFunctionget_list
(val)
deepspeed/autotuning/utils.py:74
↓ 3 callersMethodget_local_fp32_param
(self, param, optim_state_key=None)
deepspeed/runtime/zero/stage3.py:3610
↓ 3 callersFunctionget_log_level
(param_dict)
deepspeed/runtime/config.py:415
↓ 3 callersMethodget_lr
(self)
deepspeed/runtime/lr_schedules.py:757
↓ 3 callersMethodget_lr
(self)
deepspeed/runtime/lr_schedules.py:936
↓ 3 callersFunctionget_mapping_to_flat_buffer
(tensors: List[torch.Tensor])
deepspeed/runtime/zero/utils.py:211
↓ 3 callersFunctionget_module_duration
(module)
deepspeed/profiling/flops_profiler/profiler.py:1188
↓ 3 callersFunctionget_module_macs
(module)
deepspeed/profiling/flops_profiler/profiler.py:1184
↓ 3 callersFunctionget_norm_with_moe_layers
Compute the global norm with MoE experts Inputs: non_expert_norm (float) : the calculated norm of the non-expert params expert_tensors (
deepspeed/runtime/utils.py:1188
↓ 3 callersFunctionget_numa_cores
()
deepspeed/utils/numa.py:24
↓ 3 callersMethodget_offset
(self)
deepspeed/io/base_io_buffer.py:31
↓ 3 callersFunctionget_partition_weights
Return the amount of weight in each partition.
tests/unit/runtime/utils/test_partition.py:91
↓ 3 callersMethodget_pipe_parallel_world_size
The number of stages in the pipeline.
deepspeed/runtime/pipe/topology.py:415
↓ 3 callersMethodget_prefix
(self)
op_builder/inference_cutlass_builder.py:23
↓ 3 callersMethodget_prefix
(self)
op_builder/ragged_ops.py:24
↓ 3 callersFunctionget_rank
Returns the rank of the current process in the provided ``group`` or the default group if none was provided. Rank is a unique identifier
deepspeed/comm/comm.py:748
↓ 3 callersMethodget_result
Get result from worker process with optional event type validation. Args: expected_event_type (str, optional): Expected
deepspeed/runtime/superoffload/superoffload_utils.py:262
↓ 3 callersFunctionget_runnable_nodes
(scheduled: List[Node], unscheduled: List[Node])
deepspeed/compile/list_schedule.py:80
↓ 3 callersFunctionget_sdpa_nodes
(gm: GraphModule)
deepspeed/compile/util.py:544
↓ 3 callersMethodget_seq_length
(self, layer_idx: int = 0)
deepspeed/utils/static_cache.py:414
← previousnext →1,701–1,800 of 15,468, ranked by callers