MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions11,258 in github.com/deepspeedai/DeepSpeed

↓ 7 callersFunctionsharded_intermediate_dim
Utility method for getting the size of the intermediate dimension of a sharded MLP. Args: intermediate_size (int): The size of the i
deepspeed/inference/v2/model_implementations/sharding/mlp.py:65
↓ 7 callersFunctionskip_unless_h100_tests_enabled
(reason)
tests/unit/v1/moe/autoep_test_utils.py:31
↓ 7 callersMethodstage_to_global
(self, stage_id, **kwargs)
deepspeed/runtime/pipe/topology.py:398
↓ 7 callersMethodstrided_copy
(self, dst: Optional[torch.Tensor], src: Optional[torch.Tensor],
deepspeed/module_inject/auto_tp.py:51
↓ 7 callersFunctionswap_in_tensors
(swap_handle, tensor_buffers, swap_paths)
deepspeed/runtime/swap_tensor/utils.py:19
↓ 7 callersFunctionswap_out_tensors
(swap_handle, tensor_buffers, swap_paths)
deepspeed/runtime/swap_tensor/utils.py:24
↓ 7 callersFunctiontorch_assert_close
Compare two tensors or non-tensor numbers for their closeness. Add msg=blah to add an additional comment to when assert fails. For defa
tests/unit/util.py:137
↓ 7 callersMethodzero_optimization_partition_gradients
(self)
deepspeed/runtime/engine.py:1230
↓ 6 callersMethodEvent
(self, enable_timing=True)
tests/unit/v1/compile/test_graph_profile.py:42
↓ 6 callersMethodLongTensor
(self)
accelerator/hpu_accelerator.py:231
↓ 6 callersFunctionParamList
Helper to create a subclass of ParametrizedList with the desired `count_attr`. In this manner, we can annotate the type of a Parameter depen
deepspeed/inference/v2/model_implementations/parameter_base.py:240
↓ 6 callersMethod__init__
Initialize the Sparsity Pattern Config. For usage example please see, TODO DeepSpeed Sparse Transformer Tutorial Arguments:
deepspeed/ops/sparse_attention/sparsity_config.py:15
↓ 6 callersFunction_allgather
(graph, arg, ds_id, name, tensor_size=1, device_time=1)
tests/unit/compile/test_list_schedule.py:98
↓ 6 callersFunction_blocked_flash_testing_helper
Helper function for testing blocked flash attention. Used to enable parametrize to only set up a subset of parameters before being passed to
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_flash.py:40
↓ 6 callersFunction_contradicting_single_rank_pg_error
Detect the silent single-rank fallback described in #8084. When a multi-process launcher (``deepspeed``, ``torchrun``, accelerate, ...) sets ``WO
deepspeed/runtime/zero/partition_parameters.py:889
↓ 6 callersFunction_ensure_dc_ops
()
tests/unit/v1/compile/test_offload_opt_states.py:40
↓ 6 callersFunction_ensure_divisibility
Ensure that numerator is divisible by the denominator.
deepspeed/utils/groups.py:68
↓ 6 callersMethod_get_param_swap_info
(self, parameter)
deepspeed/runtime/swap_tensor/optimizer_utils.py:510
↓ 6 callersMethod_get_sub_group_process_group
(self, sub_group_id)
deepspeed/runtime/zero/stage3.py:603
↓ 6 callersMethod_get_zero_param_shapes
Returns a dict of name to shape mapping, only for the flattened fp32 weights saved by the optimizer. the names are exactly as in state_dict. T
deepspeed/runtime/engine.py:5227
↓ 6 callersMethod_log_timers
(self, name_list, force=False)
deepspeed/runtime/swap_tensor/optimizer_utils.py:527
↓ 6 callersFunction_make_offs
(counts, device)
tests/unit/v1/moe/test_group_gemm_triton.py:48
↓ 6 callersMethod_maybe_reduce_autoep_folding_tp_gradient
(self, param, grad)
deepspeed/runtime/zero/stage_1_and_2.py:1057
↓ 6 callersMethod_optimizer_states_and_gradient_swap_in
(self, sub_group_id, timer_names=None)
deepspeed/runtime/zero/stage3.py:2374
↓ 6 callersFunction_placeholder
(graph, name)
tests/unit/compile/test_list_schedule.py:66
↓ 6 callersMethod_prepare_sub_group
(self, sub_group_id, timer_names)
deepspeed/runtime/zero/stage3.py:2366
↓ 6 callersMethod_reduce_op
Helper function. If the op provided is not a torch.dist.ReduceOp, convert it and return
deepspeed/comm/torch.py:419
↓ 6 callersFunction_register_zero3_and_prefetch
()
tests/unit/compile/test_pass_contract.py:24
↓ 6 callersFunction_release
(graph, arg, ds_id, name)
tests/unit/compile/test_list_schedule.py:125
↓ 6 callersMethod_release_sub_group
(self, sub_group_id, timer_names)
deepspeed/runtime/zero/stage3.py:2394
↓ 6 callersFunction_resolve_autotp_partition
(current_param, ckpt_dict, full_hp_param, tp_rank, tp_world_size)
deepspeed/checkpoint/universal_checkpoint.py:34
↓ 6 callersFunction_save_checkpoint
(file_path, chkpt_sd)
deepspeed/checkpoint/ds_to_universal.py:115
↓ 6 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
↓ 6 callersMethod_update_autotune_table
()
deepspeed/ops/transformer/inference/triton/matmul_ext.py:465
↓ 6 callersFunction_validate_handle_state
(handle, single_submit, overlap_events)
tests/unit/v1/nvme/test_gds.py:59
↓ 6 callersFunction_validate_handle_state
(handle, single_submit, overlap_events)
tests/unit/v1/nvme/test_aio.py:74
↓ 6 callersFunction_wait
(graph, arg, ds_id, name)
tests/unit/compile/test_list_schedule.py:108
↓ 6 callersFunction_with_meta
(node, tensor_size=0, device_time=0)
tests/unit/compile/test_list_schedule.py:59
↓ 6 callersMethodaccum_ref
csrc/deepspeed4science/evoformer_attn/gemm/mma_from_smem.h:116
↓ 6 callersFunctionadd_bias
(input, bias)
deepspeed/module_inject/layers.py:128
↓ 6 callersFunctionallclose_on_all_ranks
Compare two tensors across all ranks. We want to make sure that all ranks succeed or fail together.
tests/unit/common.py:584
↓ 6 callersFunctionassert_fn
(model_w_task)
tests/unit/inference/test_inference.py:230
↓ 6 callersMethodasync_pread
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:343
↓ 6 callersMethodavailable_memory
(self, device_index=None)
accelerator/hpu_accelerator.py:156
↓ 6 callersFunctionbasic_parser
()
tests/unit/launcher/test_ds_arguments.py:12
↓ 6 callersFunctionceil_div
csrc/deepspeed4science/evoformer_attn/gemm_kernel_utils.h:121
↓ 6 callersMethodclear_mask
Clears the predicate set efficiently
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:810
↓ 6 callersFunctioncompare_loss
(self, config, dtype, iteration=5, hidden_dim_override=None, rtol=None, atol=None)
tests/unit/v1/compile/util.py:22
↓ 6 callersMethodcpu_arch
(self)
op_builder/builder.py:404
↓ 6 callersFunctiondata_file_path
(prefix_path)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:127
↓ 6 callersMethoddefault_stream
(self, device_index=None)
accelerator/hpu_accelerator.py:111
↓ 6 callersMethoddestroy_process_group
(self, group=None)
deepspeed/comm/torch.py:416
↓ 6 callersFunctiondetect_model_sp_info
Recursively scan *model* and return an :class:`SPModelInfo`. The function identifies: * ViT encoder attention layers → wrapped with :class:`U
deepspeed/sequence/autosp_detector.py:89
↓ 6 callersMethoddevice_count
(self)
tests/unit/v1/moe/test_autoep_unit.py:559
↓ 6 callersMethodenable_mask
Clears the predicate set efficiently
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:814
↓ 6 callersFunctionensure_zero_ordered_dict
Wrap ``module._parameters`` in :class:`ZeROOrderedDict` if not already. PyTorch 2.5+ defaults ``nn.Module._parameters`` to a plain ``dict`` (
deepspeed/runtime/zero/parameter_offload.py:106
↓ 6 callersFunctionfill_with_head_ids
tests/unit/inference/v2/model_implementations/sharding/test_qkv_sharding.py:15
↓ 6 callersMethodfinalize
Completes construction of the ragged batch by flushing the host buffers to the device.
deepspeed/inference/v2/ragged/ragged_wrapper.py:184
↓ 6 callersMethodgenerate
(self, request: RolloutRequest, sampling: SamplingConfig)
tests/unit/runtime/rollout/test_rollout_interface.py:77
↓ 6 callersFunctionget_files_with_prefix
(all_files, prefix)
deepspeed/checkpoint/reshape_utils.py:18
↓ 6 callersFunctionget_input_id_node
(gm: GraphModule)
deepspeed/compile/util.py:560
↓ 6 callersFunctionget_input_nodes
(graph: Graph)
deepspeed/compile/util.py:135
↓ 6 callersFunctionget_num_kv_heads
()
deepspeed/module_inject/tp_shard.py:35
↓ 6 callersFunctionget_params
(name, group_dict)
deepspeed/compression/config.py:134
↓ 6 callersMethodget_partition_dim
Get effective partition dimension.
deepspeed/module_inject/autotp_config.py:174
↓ 6 callersMethodget_stage_id
(self)
deepspeed/runtime/pipe/topology.py:367
↓ 6 callersMethodget_tensor_model_parallel_world_size
(self)
tests/unit/v1/moe/test_autoep_unit.py:340
↓ 6 callersMethodhas_function
Test for existence of a function within a tuple of libraries. This is used as a smoke test to check whether a certain library is ava
op_builder/builder.py:316
↓ 6 callersFunctionindex_file_path
(prefix_path)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:123
↓ 6 callersMethodinsert_sequence
Incrementally insert a sequence into the ragged batch. This will update the metadata for the ragged batch and the sequence.
deepspeed/inference/v2/ragged/ragged_wrapper.py:134
↓ 6 callersFunctionis_autotp_training_mode
()
deepspeed/module_inject/layers.py:112
↓ 6 callersMethodis_complete_trace
(self)
deepspeed/runtime/zero/partitioned_param_coordinator.py:180
↓ 6 callersMethodis_deepcompile_active
(self)
deepspeed/runtime/engine.py:5701
↓ 6 callersMethodis_training_mode
(self)
deepspeed/module_inject/layers.py:420
↓ 6 callersMethodload
csrc/deepspeed4science/evoformer_attn/transform/bias_broadcast.h:42
↓ 6 callersFunctionlog_rank0
(msg: str, enable: bool = False)
deepspeed/compile/util.py:88
↓ 6 callersFunctionmake_autoep_integration_config
(zero_stage=0, ep_size=2)
tests/unit/v1/moe/autoep_test_utils.py:219
↓ 6 callersFunctionmake_folding_metadata
(*, tp_size, tp_rank, ep_size,
deepspeed/checkpoint/autoep_universal.py:38
↓ 6 callersFunctionmaybe_copy_qkv
(module, sd, weight_quantizer, mp_replace, dst_name, src_names, split_qkv=False)
deepspeed/module_inject/policy.py:166
↓ 6 callersMethodmemory_breakdown
(self)
deepspeed/runtime/engine.py:1093
↓ 6 callersFunctionmove
(tensor, device, copy=True)
deepspeed/module_inject/auto_tp.py:24
↓ 6 callersFunctionmove_primals_to_head
(graph: Graph)
deepspeed/compile/fx.py:46
↓ 6 callersMethodmp_size
(self)
deepspeed/autotuning/autotuner.py:247
↓ 6 callersFunctionopen_file
csrc/aio/common/deepspeed_aio_common.cpp:267
↓ 6 callersMethodoptimizer_name
(self)
deepspeed/runtime/engine.py:1134
↓ 6 callersFunctionparse_autoep_config
Parse the 'expert_parallel' section from DS config JSON.
deepspeed/module_inject/auto_ep_config.py:41
↓ 6 callersMethodquantize
(self, param, groups=None)
deepspeed/runtime/zero/partition_parameters.py:845
↓ 6 callersMethodquantize
(self, inputs, qkv=True, count=1, parallel_dim=0)
deepspeed/module_inject/replace_module.py:53
↓ 6 callersFunctionreduce_scatter_coalesced
simultaneously reduce-scatter a list of tensors - this can be done more efficiently than individual reduce scatter calls TODO. see if PyTorch
deepspeed/runtime/comm/coalesced_collectives.py:158
↓ 6 callersFunctionregister_pass_contract
(name: str, contract: Optional[PassContract])
deepspeed/compile/passes/contract.py:41
↓ 6 callersMethodregister_with_transformers
Register "ulysses" attn_implementation with HF transformers and return mpu (Megatron-LM-style parallel state groups object). If seque
deepspeed/runtime/sequence_parallel/ulysses_sp.py:394
↓ 6 callersMethodremove_partition_and_release_buffers
(self, params)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:236
↓ 6 callersMethodreset
(self)
deepspeed/runtime/swap_tensor/utils.py:43
↓ 6 callersMethodreset_peak_memory_stats
(self, device_index=None)
accelerator/hpu_accelerator.py:144
↓ 6 callersFunctionreset_tp_model_init_state
()
tests/unit/model_parallelism/test_autotp_training.py:31
↓ 6 callersFunctionrestore_combined
Gather TP-partitioned assignment outputs and combine back by token index. The all-gather rebuilds an identical full output on every TP peer, so a
deepspeed/moe/ep_tp_dispatch.py:397
↓ 6 callersMethodrollback_subgroup
Rollback the optimizer state for a specific subgroup.
deepspeed/ops/adam/cpu_adam.py:203
↓ 6 callersMethodrun
(self)
deepspeed/autotuning/scheduler.py:158
↓ 6 callersFunctionrun_model_step
(model, x_sample, y_label, grad_value)
tests/unit/runtime/half_precision/test_zero_optim_overflow.py:24
↓ 6 callersFunctionrun_model_step
(model, gradient_list)
tests/unit/runtime/half_precision/test_dynamic_loss_scale.py:16
← previousnext →401–500 of 11,258, ranked by callers