MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions10,922 in github.com/deepspeedai/DeepSpeed

↓ 6 callersMethod_get_param_swap_info
(self, parameter)
deepspeed/runtime/swap_tensor/optimizer_utils.py:505
↓ 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:5102
↓ 6 callersMethod_log_timers
(self, name_list, force=False)
deepspeed/runtime/swap_tensor/optimizer_utils.py:522
↓ 6 callersFunction_make_offload_state_key
(key)
deepspeed/runtime/zero/offload_states.py:13
↓ 6 callersMethod_maybe_reduce_autoep_folding_tp_gradient
(self, param, grad)
deepspeed/runtime/zero/stage_1_and_2.py:1043
↓ 6 callersMethod_optimizer_states_and_gradient_swap_in
(self, sub_group_id, timer_names=None)
deepspeed/runtime/zero/stage3.py:2368
↓ 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:2360
↓ 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:118
↓ 6 callersMethod_release_sub_group
(self, sub_group_id, timer_names)
deepspeed/runtime/zero/stage3.py:2388
↓ 6 callersMethod_replace_module
(self, r_module, prev_name='', prev_class_name='')
deepspeed/module_inject/auto_tp.py:572
↓ 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/ops/aio/test_gds.py:59
↓ 6 callersFunction_validate_handle_state
(handle, single_submit, overlap_events)
tests/unit/ops/aio/test_aio.py:74
↓ 6 callersFunction_wait
(graph, arg, ds_id, name)
tests/unit/compile/test_list_schedule.py:104
↓ 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:333
↓ 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 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:556
↓ 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:94
↓ 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 callersMethodfrom_config
(*args, **kwargs)
deepspeed/linear/context_manager.py:72
↓ 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:164
↓ 6 callersMethodget_stage_id
(self)
deepspeed/runtime/pipe/topology.py:367
↓ 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:5554
↓ 6 callersMethodis_training_mode
(self)
deepspeed/module_inject/layers.py:378
↓ 6 callersMethodload
csrc/deepspeed4science/evoformer_attn/transform/bias_broadcast.h:42
↓ 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:1039
↓ 6 callersFunctionmove
(tensor, device, copy=True)
deepspeed/module_inject/auto_tp.py:23
↓ 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:1080
↓ 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:839
↓ 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:44
↓ 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:30
↓ 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
↓ 6 callersMethodsetup_layout
Create layout tensor for the given sequence length Arguments: seq_len: required: an integer determining number of attention head
deepspeed/ops/sparse_attention/sparsity_config.py:31
↓ 6 callersFunctionshard_param
Utility for sharding a parameter. This will return the slice of the parameter that should exist on the given shard_rank given the sharding co
deepspeed/inference/v2/model_implementations/sharding/utils.py:43
↓ 6 callersMethodsimd_width
(self)
op_builder/builder.py:466
↓ 6 callersFunctionsplit_params_into_different_moe_groups_for_optimizer
Split parameters into different MoE groups for optimizer Args: param_groups (Union[Dict[str, Any], Tuple[Dict[str, Any], ...], List[Dict[
deepspeed/moe/utils.py:72
↓ 6 callersMethodsteps_per_print
(self)
deepspeed/runtime/engine.py:1316
↓ 6 callersFunctionstore_with_byte_offset
Stores a fragment to memory
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_atomic.h:679
↓ 6 callersMethodsynchronize
(self)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:45
↓ 6 callersMethodtokens_to_seq
Mapping of token to which sequence it belongs to in the ragged batch. If the device Tensor is requested, the Tensor is truncated to t
deepspeed/inference/v2/ragged/ragged_wrapper.py:240
↓ 6 callersMethodtotal_memory
(self, device_index=None)
accelerator/hpu_accelerator.py:153
↓ 6 callersFunctionvalidate_aio_operation
csrc/aio/common/deepspeed_aio_common.cpp:325
↓ 6 callersFunctionvalidate_test
(model_w_task, dtype, enable_cuda_graph, enable_triton)
tests/unit/inference/test_inference.py:270
↓ 6 callersMethodversion_dependent_macros
(self)
op_builder/builder.py:762
↓ 6 callersMethodwrite_events
(self, event_list)
deepspeed/monitor/monitor.py:20
↓ 5 callersMethod__init__
(self, *args)
tests/unit/runtime/zero/test_zero_context.py:24
↓ 5 callersMethod__init__
(self, args, world_info_base64)
deepspeed/launcher/multinode_runner.py:57
↓ 5 callersMethod__init__
(self, )
deepspeed/runtime/domino/transformer.py:46
↓ 5 callersMethod__init__
(self, act_range_momentum=0.95, quant_mode='symmetric')
deepspeed/compression/basic_layer.py:28
↓ 5 callersFunction_base_config
(zero_stage, gradient_accumulation_steps=1, cpu_offload=False)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:17
↓ 5 callersMethod_cast_module_mixed_precision
Cast params to param_dtype; cast buffers only when buffer_dtype is set.
deepspeed/runtime/engine.py:1425
← previousnext →401–500 of 10,922, ranked by callers