MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 10 callersFunction_device
()
tests/unit/v1/models/test_glm_moe_dsa.py:28
↓ 10 callersFunction_full
(rows, cols, seed)
tests/unit/checkpoint/test_affine_transfer_plan.py:74
↓ 10 callersFunction_groups
`_muon_param_groups` is a staticmethod, so the grouping runs without an engine.
tests/unit/runtime/zero/test_muon_param_groups.py:26
↓ 10 callersFunction_hf_rms_norm
(hidden, weight, eps)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:79
↓ 10 callersFunction_make_request
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:50
↓ 10 callersFunction_skip_for_invalid_environment
(use_cuda_pinned_tensor=True)
tests/unit/v1/nvme/test_aio.py:28
↓ 10 callersMethod_tp_partition
(self, params_list)
deepspeed/module_inject/layers.py:1040
↓ 10 callersFunction_train
(config, hidden_dim, num_chunks, num_steps, use_no_sync, seed=42, nlayers=2)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:92
↓ 10 callersFunction_write_tp_states
(base_dir, param_name, tp_idx, fp32_tensor)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:397
↓ 10 callersFunctionassert_valid_partition
(weights, parts, P)
tests/unit/runtime/utils/test_partition.py:82
↓ 10 callersFunctionauto_wrap_model_for_sp
Inject sequence-parallel wrappers into *model* in-place. Scans the model's named modules and replaces recognised attention layers with their
deepspeed/sequence/auto_sp.py:42
↓ 10 callersFunctioncreate_mmap_dataset_builder
(fname, dtype)
deepspeed/runtime/data_pipeline/data_sampling/utils.py:44
↓ 10 callersMethoddeepspeed_src_path
(self, code_path)
op_builder/builder.py:468
↓ 10 callersMethoddevice_count
(self)
accelerator/hpu_accelerator.py:72
↓ 10 callersMethodexchange
(self)
tests/unit/module_inject/test_auto_ep_comm.py:1055
↓ 10 callersFunctionfn
(x)
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:38
↓ 10 callersMethodgenerate
(self, input_ids, attention_mask=None, max_new_tokens=1, **_kwargs)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1600
↓ 10 callersFunctionget_active_native_pinned_memory
()
deepspeed/utils/pin_memory.py:194
↓ 10 callersMethodget_partition_dp_group
(self, param)
deepspeed/runtime/zero/partition_parameters.py:2275
↓ 10 callersMethodlog
(self, names)
tests/unit/v1/zero/test_zero2_gradient_safety.py:593
↓ 10 callersMethodmanual_seed_all
(self, seed)
accelerator/hpu_accelerator.py:91
↓ 10 callersMethodmax_memory_allocated
(self, device_index=None)
accelerator/hpu_accelerator.py:126
↓ 10 callersFunctionmove
(tensor, device, copy=True)
deepspeed/module_inject/auto_tp.py:44
↓ 10 callersFunctionpartition_assignments
Partition routed assignments across TP peers by stable per-expert ordinal. Each peer keeps only ``assignment_index % tp_size == tp_rank`` of the
deepspeed/moe/ep_tp_dispatch.py:230
↓ 10 callersMethodpin_device_tensor
csrc/gds/deepspeed_py_gds_handle.cpp:92
↓ 10 callersMethodreduce_independent_p_g_buckets_and_remove_grads
(self, param)
deepspeed/runtime/zero/stage3.py:1785
↓ 10 callersMethodregister_host_memory
(self, address, num_bytes)
tests/unit/v1/pin_memory/test_pin_memory.py:364
↓ 10 callersMethodrelease
(self, generation)
deepspeed/runtime/python_gc.py:51
↓ 10 callersFunctionreplace_autoep_layers
(model, preset_model, expected_count=1, **config_overrides)
tests/unit/v1/moe/autoep_test_utils.py:301
↓ 10 callersFunctionsegmented_map
A parameter whose blocks are split or replicated independently along one axis. ``segments`` is an ordered list of ``(size, replicated)`` pairs co
deepspeed/checkpoint/affine.py:657
↓ 10 callersFunctionswiglu_clamped
Fused clamped SwiGLU. ``oai=True``: ``(clamp(up) + 1) * g * sigmoid(alpha * g)`` with ``g = clamp(gate, max=limit)`` and ``up`` clamped to ``
deepspeed/ops/triton_ops/swiglu_triton.py:482
↓ 10 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:135
↓ 10 callersMethodtransform_param
Perform any necessary transformations of the parameters of this module. Parameters: param (torch.Tensor): Weight or bias
deepspeed/inference/v2/modules/interfaces/linear_base.py:37
↓ 10 callersMethodunpin
(self, tensor)
deepspeed/utils/pin_memory.py:102
↓ 10 callersMethodunregister_host_memory
(self, address)
tests/unit/v1/pin_memory/test_pin_memory.py:367
↓ 10 callersFunctionvalidate_autoep_placement_descriptor
Validate a plain scalar/list/dict AutoEP placement descriptor.
deepspeed/checkpoint/autoep_affine.py:52
↓ 10 callersFunctionzero_storage_affine_map
Describe a flattened parameter of ``numel`` elements stored by ``holder_ranks``. Without ``partition_numel`` every holder stores the whole parame
deepspeed/checkpoint/zero_affine.py:57
↓ 9 callersMethodFloatTensor
(self)
accelerator/hpu_accelerator.py:219
↓ 9 callersMethodIncrementStep
csrc/includes/reflow_cpu_adam.h:95
↓ 9 callersMethod__init__
(self)
tests/unit/modelingpreln.py:85
↓ 9 callersMethod__init__
(self, parameter, observations)
tests/unit/v1/zero/test_zero_activation_checkpoint_lifecycle.py:32
↓ 9 callersMethod__init__
(self, hidden_dim)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:105
↓ 9 callersFunction_allgather
(graph, arg, ds_id, name, tensor_size=1, device_time=1)
tests/unit/v1/compile/test_list_schedule.py:189
↓ 9 callersMethod_constant_buffered_norm2
(self, input, buffer_size=250000000)
deepspeed/runtime/zero/stage3.py:2190
↓ 9 callersMethod_get_model_type
Extract model type from module config or class name.
deepspeed/module_inject/auto_tp.py:969
↓ 9 callersFunction_init_alignment_engine
(zero_stage, parameter_alignment=True, offload_optimizer=False)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:52
↓ 9 callersFunction_initialize_zero3
(model, *, gradient_accumulation_steps=1, dtype=torch.float32, module_granularity_threshold=0)
tests/unit/v1/zero/test_zero_activation_checkpoint_lifecycle.py:88
↓ 9 callersFunction_launch
(kernel, logits, *args, max_block=None, **kwargs)
deepspeed/ops/triton_ops/vocab_parallel_softmax.py:363
↓ 9 callersFunction_meta_tensor
(numel)
tests/unit/v1/compile/test_offload_activation.py:54
↓ 9 callersMethod_optimizer_states_and_gradient_swap_in
(self, sub_group_id, timer_names=None)
deepspeed/runtime/zero/stage3.py:2958
↓ 9 callersFunction_owned_ids
(optimizer)
tests/unit/v1/moe/test_autoep_unit.py:2598
↓ 9 callersFunction_param
(shape, use_muon, requires_grad=True)
tests/unit/runtime/zero/test_muon_param_groups.py:20
↓ 9 callersFunction_placeholder
(graph, name)
tests/unit/v1/compile/test_list_schedule.py:87
↓ 9 callersFunction_row_start
(row, inner_rows, outer_stride, row_stride)
deepspeed/ops/triton_ops/vocab_parallel_softmax.py:132
↓ 9 callersMethod_set_param_uc_meta
(self, param, *, partition_ty
deepspeed/module_inject/layers.py:522
↓ 9 callersFunction_shards
Every rank's shard, built from the full parameter through the map being tested against.
tests/unit/checkpoint/test_affine_transfer_plan.py:43
↓ 9 callersFunction_synchronize
()
tests/unit/v1/zero/test_zero_activation_checkpoint_lifecycle.py:99
↓ 9 callersFunction_tables
(batch, seq_len, head_dim, dtype, base=10000.0)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:22
↓ 9 callersFunction_triton_kernels
()
deepspeed/sequence/vocab_parallel_ops.py:59
↓ 9 callersMethod_use_compact_grad_partition_buffer
(self, group_idx)
deepspeed/runtime/zero/stage_1_and_2.py:1307
↓ 9 callersFunction_use_triton
(*logits)
deepspeed/sequence/vocab_parallel_ops.py:44
↓ 9 callersMethod_validate_buffer_index
(self, index)
deepspeed/io/double_io_buffer.py:75
↓ 9 callersFunction_wait
(graph, arg, ds_id, name)
tests/unit/v1/compile/test_list_schedule.py:199
↓ 9 callersMethodasync_pwrite
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:386
↓ 9 callersMethodbatch_metadata_buffer
Buffer associated with the batch metadata tensor that can be populated in preparation for passing a new input to the device.
deepspeed/inference/v2/ragged/ragged_wrapper.py:230
↓ 9 callersFunctionblock_gather_map
Each rank holds a chosen set of equal-sized blocks, not necessarily adjacent ones. Yuan's shared-QK attention is the motivating case: a rank take
deepspeed/checkpoint/affine.py:727
↓ 9 callersFunctionbwc_tensor_model_parallel_rank
Backwards-compatible way of querying the tensor model parallel rank from an ``mpu`` object. *Tensor* model parallelism means that tensors are
deepspeed/utils/bwc.py:7
↓ 9 callersFunctionclose_mmap_dataset_builder
(builder, fname)
deepspeed/runtime/data_pipeline/data_sampling/utils.py:49
↓ 9 callersFunctioncompile_autoep_non_moe_regions
Compile callable parents of AutoEP layers while keeping AutoEP eager.
deepspeed/runtime/compiler.py:132
↓ 9 callersMethodconfigure
(self, comms_config)
deepspeed/utils/comms_logging.py:78
↓ 9 callersFunctionexpected_folding_group_tables
Derive TP, dense-DP, EP, and EDP rank tables without process groups.
deepspeed/module_inject/auto_ep_folding.py:130
↓ 9 callersMethodfind_matching_spec
Find the first matching spec for a parameter.
deepspeed/module_inject/autotp_config.py:272
↓ 9 callersMethodfrom_model_config
The single source of truth for reading kv-head / hidden / attention-head counts. ``model_config`` may be ``None`` for callers that build a sy
deepspeed/module_inject/tp_shard.py:84
↓ 9 callersFunctionfunc
()
deepspeed/inference/quantization/layers.py:36
↓ 9 callersMethodget_alignment
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:94
↓ 9 callersMethodget_default_quant_dtype
()
op_builder/fp_quantizer.py:37
↓ 9 callersMethodget_last_continuous_stats
Return cache and throughput statistics from the most recent continuous rollout.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1712
↓ 9 callersMethodget_last_profile
Return the most recent profiling snapshot for this rollout instance.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1708
↓ 9 callersFunctionget_local_heads
Helper to determine the number of local heads of a given shard. Args: shard_rank (int): The rank of the shard. num_shards (i
deepspeed/inference/v2/model_implementations/sharding/attn.py:9
↓ 9 callersMethodget_lora_params
Return a list of all parameters that would have LoRA for the module.
deepspeed/module_inject/containers/features/hybrid_engine.py:176
↓ 9 callersFunctionget_master_port
(base_port=29500, port_range_size=1000)
tests/unit/common.py:47
↓ 9 callersMethodget_param_coordinator
(self)
deepspeed/runtime/zero/parameter_offload.py:252
↓ 9 callersMethodget_tensor_model_parallel_world_size
(self)
deepspeed/runtime/pipe/topology.py:466
↓ 9 callersMethodgradient_clipping
(self)
deepspeed/runtime/engine.py:1865
↓ 9 callersMethodgradients
(self, mode, micro_batches=1, replay=True)
tests/unit/module_inject/test_auto_ep_comm.py:1091
↓ 9 callersMethodinflight_seq_descriptors
Buffer associated with the metadata of each sequence in the ragged batch. If the device Tensor is requested, the Tensor is truncated
deepspeed/inference/v2/ragged/ragged_wrapper.py:250
↓ 9 callersMethodis_last_stage
True if this process is in the last stage in the pipeline.
deepspeed/runtime/pipe/engine.py:514
↓ 9 callersMethodis_training_mode
(self)
deepspeed/module_inject/layers.py:576
↓ 9 callersMethodlazy_initialization
(self, key_states: torch.Tensor, value_states: torch.T
deepspeed/utils/static_cache.py:60
↓ 9 callersFunctionmake_param
(Opt, shape, selected_indices=None)
tests/unit/ops/adam/test_zf_torch_adam.py:13
↓ 9 callersMethodmanaged_gradient_accumulation
(self)
deepspeed/runtime/engine.py:1793
↓ 9 callersMethodmark
(self, tensor: torch.Tensor)
deepspeed/runtime/activation_checkpointing/offload_activations.py:420
↓ 9 callersMethodmemory_allocated
(self)
tests/unit/v1/compile/test_graph_profile.py:33
↓ 9 callersFunctionmerge_tp_slices
(uc_info, dir, slice_dir, tp_degree, name_and_shapes)
deepspeed/checkpoint/ds_to_universal.py:291
↓ 9 callersFunctionpartition_data
(data_list, num_partitions)
deepspeed/checkpoint/reshape_utils.py:68
↓ 9 callersMethodpin_empty
(self, example, shape)
deepspeed/utils/pin_memory.py:48
↓ 9 callersMethodrecv
(self, tensor, src, group=None, tag=0)
deepspeed/comm/ccl.py:128
↓ 9 callersFunctionrow_layout
``(inner_rows, outer_stride, row_stride)`` addressing every row of ``logits`` in place, or None. Two levels of row strides cover contiguous tenso
deepspeed/ops/triton_ops/vocab_parallel_softmax.py:334
↓ 9 callersFunctionsafe_set_full_grad
Update the partitioned gradient of a low-precision (e.g., fp16) parameter. To avoid precision issues, the update value should have th
deepspeed/utils/tensor_fragment.py:238
↓ 9 callersMethodscale
csrc/aio/common/deepspeed_aio_types.cpp:54
← previousnext →401–500 of 15,468, ranked by callers