MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 3 callersMethod_stop_timers
(self, timer_names)
deepspeed/runtime/engine.py:3770
↓ 3 callersMethod_sycl_env_paths
Find the SYCL include and lib directories from the Python environment. When using PyTorch XPU wheels, libsycl.so and SYCL headers are
op_builder/xpu/builder.py:61
↓ 3 callersMethod_sync_cpu_optimizer_step
(self, param_group_id: int, sub_group_id: in
deepspeed/runtime/superoffload/superoffload_stage3.py:335
↓ 3 callersFunction_take_one_step
(engine, seed, *, checkpoint_activations)
tests/unit/v1/moe/test_autoep_fused_parity.py:128
↓ 3 callersMethod_test_set_z3_leaf_modules
(self, cls, requires_grad)
tests/unit/runtime/zero/test_zero_leaf_module.py:327
↓ 3 callersFunction_trainable_parameters
(engine)
tests/unit/v1/moe/test_autoep_grad_parity.py:600
↓ 3 callersFunction_triton_device
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:517
↓ 3 callersFunction_unflatten_dense_tensors
View a flat buffer using the sizes of tensors. Assume that tensors are of same dense type, and that flat is given by _flatten_dense_tensors.
deepspeed/runtime/zenflow/zenflow_utils.py:37
↓ 3 callersMethod_unflatten_partitioned_parameters
(self, sub_group_id)
deepspeed/runtime/zero/stage3.py:2870
↓ 3 callersFunction_unpadded_master
(engine)
tests/unit/checkpoint/test_fp32_master_only.py:67
↓ 3 callersMethod_update_hp_grad
(self, lp, group_idx, param_idx, clear_lp_grads)
deepspeed/runtime/bf16_optimizer.py:512
↓ 3 callersMethod_update_param_state_info
(self, swap_info, parameter)
deepspeed/runtime/swap_tensor/optimizer_utils.py:516
↓ 3 callersMethod_update_scale
(self, skip)
deepspeed/runtime/fp16/unfused_optimizer.py:277
↓ 3 callersMethod_valid_micro_batch
(self, micro_batch_id)
deepspeed/runtime/pipe/schedule.py:80
↓ 3 callersFunction_validate_stochastic_mode
(config)
deepspeed/ops/transformer/transformer.py:143
↓ 3 callersMethod_vector_matmul
(input, weight, async_op, q_scale, q_int8, transposed_mode)
op_builder/npu/inference.py:394
↓ 3 callersFunction_verify_continuous_decrease
(values)
tests/unit/runtime/test_lr_schedulers.py:24
↓ 3 callersMethod_wildcard_to_regex
(pattern: str)
deepspeed/module_inject/tp_plan_converter.py:91
↓ 3 callersMethod_zero3_consolidated_16bit_state_dict
Get a full non-partitioned state_dict with fp16 weights on cpu. Important: this function must be called on all ranks and not just ran
deepspeed/runtime/engine.py:5726
↓ 3 callersMethod_zero3_partition_group_metadata
(self)
deepspeed/runtime/zero/stage3.py:3492
↓ 3 callersFunction_zero_empty_expert_grad
(weight: torch.Tensor, num_tokens_per_expert: torch.Tensor)
deepspeed/moe/ep_experts.py:293
↓ 3 callersFunction_zero_optimizer_stub
(*, partition_gradients, overlap_comm)
tests/unit/v1/moe/test_autoep_autotp_zero1_overlap_folding.py:15
↓ 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:150
↓ 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:106
↓ 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:112
↓ 3 callersMethodall_to_all
(self, output_tensor_list, input_tensor_list, group=None, async_op=False)
deepspeed/comm/torch.py:508
↓ 3 callersFunctionall_to_all_quant_reduce
(tensors: List[Tensor], groups: {})
deepspeed/runtime/comm/coalesced_collectives.py:31
↓ 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:1623
↓ 3 callersMethodallreduce_and_scatter
(self, bucket, communication_data_type: torch.dtyp
deepspeed/runtime/zero/stage_1_and_2.py:1652
↓ 3 callersMethodallreduce_bucket
(self, bucket, communication_data_type: torch.dtype,
deepspeed/runtime/zero/stage_1_and_2.py:2436
↓ 3 callersFunctionapply_autotp_with_partition_config
(model, tp_size, partition_config)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:163
↓ 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:114
↓ 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:1971
↓ 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:1522
↓ 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:17
↓ 3 callersMethodbatch_isend_irecv
(self, p2p_op_list)
deepspeed/comm/torch.py:532
↓ 3 callersMethodbroadcast_object_list
(self, object_list, src, group=None, device=None)
deepspeed/comm/torch.py:396
↓ 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 callersFunctionbuild_engine
(tp_size, use_compile_pass, gather_output_head=False)
tests/unit/compile/test_tp_compile.py:121
↓ 3 callersFunctionbuild_model
(model_name, num_layers, ds_config_path)
examples/sdma_allgather/train_qwen3_zero3.py:166
↓ 3 callersMethodbuild_mpt_alibi_tensor
(self, heads, sequence_length, alibi_bias_max=8, device=None)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:625
↓ 3 callersFunctioncan_send_recv
()
deepspeed/runtime/pipe/p2p.py:21
↓ 3 callersMethodcheckpoint_event_epilogue
(self)
deepspeed/runtime/zero/stage3.py:3943
↓ 3 callersMethodcheckpoint_event_prologue
(self)
deepspeed/runtime/zero/stage3.py:3940
↓ 3 callersFunctioncleanup_compiled_backward_state
Release engine-owned process-global compiled-backward state.
deepspeed/compile/backend.py:81
↓ 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 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:258
↓ 3 callersMethodcompile_autosp
Determines if AutoSP is set in deepcompile's passes attributes.
deepspeed/runtime/engine.py:1622
↓ 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:475
↓ 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 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:97
↓ 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:485
↓ 3 callersFunctionds_shape
(param)
deepspeed/utils/debug.py:110
↓ 3 callersFunctiondummy_init_engine
(config)
tests/unit/v1/autotp/test_autotp_training.py:1800
↓ 3 callersMethoddynamic_loss_scale
(self)
deepspeed/runtime/engine.py:1815
↓ 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 callersMethodeval
r
deepspeed/runtime/engine.py:2963
↓ 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:817
↓ 3 callersMethodexperts
(rows, counts)
tests/unit/module_inject/test_auto_ep_comm.py:524
↓ 3 callersMethodextra_ldflags
(self)
op_builder/builder.py:331
↓ 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:424
↓ 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
← previousnext →1,501–1,600 of 14,579, ranked by callers