MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 3 callersMethod_get_current_buffer
(self)
deepspeed/runtime/swap_tensor/utils.py:173
↓ 3 callersFunction_get_data_parallel_group
Get the data parallel group the caller rank belongs to.
deepspeed/utils/groups.py:786
↓ 3 callersFunction_get_ds_id
(node: Node)
deepspeed/compile/list_schedule.py:384
↓ 3 callersMethod_get_expert_ckpt_name
(checkpoints_path, layer_id, expert_id, tag, mpu=None, checkpoint_mp_rank=None)
deepspeed/runtime/engine.py:4532
↓ 3 callersFunction_get_expert_data_parallel_group
Get the expert data parallel group the caller rank belongs to.
deepspeed/utils/groups.py:716
↓ 3 callersFunction_get_expert_parallel_group
Get the expert parallel group the caller rank belongs to.
deepspeed/utils/groups.py:697
↓ 3 callersFunction_get_expert_weight
Get expert weight tensor by name, handling both attribute and child module patterns.
deepspeed/moe/ep_repack.py:309
↓ 3 callersFunction_get_file_path
(tmpdir, file_prefix, index=0)
tests/unit/v1/nvme/test_aio.py:40
↓ 3 callersFunction_get_fw_real_inputs
Resolve graph-local real inputs from the one-shot queue or persistent storage.
deepspeed/compile/backend.py:242
↓ 3 callersFunction_get_io_error
(io_call)
tests/unit/v1/nvme/test_aio.py:472
↓ 3 callersFunction_get_local_rank
()
tests/unit/v1/nvme/test_gds.py:26
↓ 3 callersFunction_get_mem_usage_out_of_torch
()
deepspeed/compile/profilers/graph_profile.py:161
↓ 3 callersMethod_get_optimizer_param
(self, param_name)
deepspeed/runtime/engine.py:3925
↓ 3 callersMethod_get_optimizer_state
(self, sd, state_key)
deepspeed/checkpoint/zero_checkpoint.py:120
↓ 3 callersFunction_get_param_uc_conversion_meta
Return the conversion-facing view of AutoTP UC metadata for a parameter. AutoTP keeps a single parameter-level metadata object with two roles:
deepspeed/module_inject/layers.py:684
↓ 3 callersFunction_get_sequence_data_parallel_group
()
deepspeed/utils/groups.py:934
↓ 3 callersFunction_get_test_write_file_and_device_buffer
(tmpdir, ref_buffer, gds_handle, index=0)
tests/unit/v1/nvme/test_gds.py:52
↓ 3 callersFunction_get_test_write_file_and_unpinned_tensor
(tmpdir, ref_buffer, index=0)
tests/unit/v1/nvme/test_aio.py:58
↓ 3 callersMethod_get_universal_checkpoint_info
(self)
deepspeed/runtime/bf16_optimizer.py:325
↓ 3 callersMethod_get_used_buffers
(self)
deepspeed/runtime/swap_tensor/utils.py:176
↓ 3 callersFunction_get_zero_param_intra_parallel_group
Get the ZeRO parameter partitioning intra parallel group the caller rank belongs to.
deepspeed/utils/groups.py:981
↓ 3 callersFunction_git_command
(*args: str)
ci/torch_latest.py:404
↓ 3 callersFunction_glm52_mla_config
()
tests/unit/runtime/zero/test_per_head_muon.py:317
↓ 3 callersMethod_grad_norm_counts_every_rank
Whether every rank holds a different gradient partition of ``params``, so each rank adds its own to the norm and the model-parallel all-reduce
deepspeed/runtime/zero/stage3.py:735
↓ 3 callersMethod_has_inf_or_nan
(x, j=None)
deepspeed/runtime/zero/stage_1_and_2.py:3380
↓ 3 callersFunction_import_transformers_library
()
deepspeed/linear/context_manager.py:11
↓ 3 callersFunction_init_group_wise_weight_quantization
[Experimental] Apply group-wise weight quantization to model. Replace layers module according to config_list Args: model (nn.Module): A n
deepspeed/inference/quantization/quantization.py:20
↓ 3 callersMethod_is_eos
(self, token)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1573
↓ 3 callersMethod_is_grid_valid
(self)
deepspeed/runtime/pipe/topology.py:388
↓ 3 callersMethod_is_kept_in_fp32
A parameter stored in fp32 while the model trains in bf16/fp16 (data_types.keep_in_fp32_modules).
deepspeed/runtime/zero/stage3.py:1763
↓ 3 callersMethod_is_muon_group
(self, tensor_list)
deepspeed/runtime/zero/stage_1_and_2.py:2897
↓ 3 callersFunction_is_nvidia_cuda
(accelerator)
deepspeed/runtime/determinism.py:17
↓ 3 callersMethod_is_partition_offloaded
Whether the parameter partition needs the per-parameter offload path. The selective update assumes the partition is resident on the compute d
deepspeed/ops/adam/zenflow_torch_adam.py:416
↓ 3 callersMethod_launch_daemonic_procs
(self, num_procs, init_method)
tests/unit/common.py:194
↓ 3 callersFunction_launch_group_gemm
(kernel, configs, grid, *args, **kwargs)
deepspeed/ops/triton_ops/group_gemm_triton.py:311
↓ 3 callersFunction_layer_shape
The parameter's shape as a layer, rather than as a ZeRO-3 partition. Under ``deepspeed.zero.Init`` a partitioned parameter's data is a flat place
deepspeed/__init__.py:345
↓ 3 callersFunction_leaf_module_name
`model.layers.0.self_attn.q_proj.weight` -> `q_proj`. Matching the leaf rather than the whole path keeps generic names from matching by accident:
deepspeed/__init__.py:132
↓ 3 callersMethod_link_all_hp_params
(self)
deepspeed/runtime/zero/stage_1_and_2.py:838
↓ 3 callersMethod_live_expert_affine_map
(self, name: str, placement: dict)
deepspeed/module_inject/auto_ep_layer.py:844
↓ 3 callersMethod_live_expert_placement
(self)
deepspeed/module_inject/auto_ep_layer.py:834
↓ 3 callersFunction_load_universal_dense_state
(universal_dir, param_name, key)
tests/unit/v1/moe/test_autoep_checkpoint.py:62
↓ 3 callersFunction_local_expert_range
Return the [start, end) slice of expert indices this rank owns.
deepspeed/moe/ep_repack.py:39
↓ 3 callersFunction_loss_and_grad
(loss_function, logits, labels, vocab, **kwargs)
tests/unit/v1/runtime/test_chunked_cross_entropy.py:47
↓ 3 callersFunction_make_autoep_zero2_config
(ep_size)
tests/unit/v1/moe/test_autoep_grad_parity.py:77
↓ 3 callersFunction_make_empty_graph_module
()
tests/unit/v1/compile/test_graph_profile.py:79
↓ 3 callersFunction_make_engine
()
tests/unit/runtime/test_engine_attribute_delegation.py:10
↓ 3 callersFunction_make_freqs
(seq_len, rot_dim, theta=10000.0, device="cpu")
tests/unit/sequence/test_apply_rotary_pos_emb.py:13
↓ 3 callersMethod_make_key
(self, i, j)
deepspeed/checkpoint/reshape_meg_2d.py:52
↓ 3 callersFunction_make_model
()
tests/unit/v1/moe/test_autoep_grad_parity.py:34
↓ 3 callersFunction_make_tp_layer
(cls)
tests/unit/compile/test_tp_compile.py:536
↓ 3 callersFunction_make_view_graph
x -> relu(base) -> aten.view(viewed) -> sum(out), shaped the way the partitioner leaves it. AOTAutograd saves whichever values the backward pass
tests/unit/v1/compile/test_offload_activation.py:471
↓ 3 callersFunction_manager_stack
()
deepspeed/runtime/activation_checkpointing/offload_activations.py:316
↓ 3 callersFunction_mark_fake_zero_param
(param, full_data, partition_data=None, ds_id=0, name="param")
tests/unit/v1/moe/test_autoep_unit.py:156
↓ 3 callersMethod_mark_uc_metadata
(self)
deepspeed/module_inject/layers.py:1055
↓ 3 callersFunction_masters
(engine)
tests/unit/checkpoint/test_fp32_master_only.py:90
↓ 3 callersMethod_mlp_gemm
(input, residual, input_bias, weight_interm, weight_out, bias, gamma, beta, eps, pre_layer_norm,
op_builder/npu/inference.py:412
↓ 3 callersMethod_model_parallel_all_reduce
Perform all reduce within model parallel group, if any.
deepspeed/runtime/zero/stage_1_and_2.py:2736
↓ 3 callersMethod_module_list_model
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:2965
↓ 3 callersFunction_module_with_narrow_param
Linear layer plus a submodule holding a frozen quantized weight and its scale.
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:33
↓ 3 callersFunction_muon_flags
(model)
tests/unit/runtime/zero/test_muon_use_muon_under_zero_init.py:36
↓ 3 callersFunction_narrow_sub_params
Take this rank's piece of every sub-parameter and concatenate them back together. ``shard_widths`` gives the per-rank width of each sub-parameter
deepspeed/checkpoint/universal_checkpoint.py:108
↓ 3 callersFunction_native_kernel_ready
The CUDA kernels read raw BFloat16 pointers only, so anything else (fp16 weights, non-contiguous views) must take the composite reference path
deepspeed/module_inject/segment_ki.py:115
↓ 3 callersMethod_num_bytes
(tensor: torch.Tensor)
deepspeed/runtime/activation_checkpointing/offload_activations.py:116
↓ 3 callersFunction_offloaded_stage3_param
(selected_indices)
tests/unit/ops/adam/test_zf_torch_adam.py:227
↓ 3 callersFunction_one_request_pair
()
tests/unit/checkpoint/test_affine_replica_policy.py:253
↓ 3 callersFunction_operator_profile_complete
Require the graph marker plus per-node absolute start and peak memory.
deepspeed/compile/passes/zero3_compile.py:69
↓ 3 callersMethod_optimizer
(self, optimizer_class, **fp16_config)
tests/unit/runtime/half_precision/test_dynamic_loss_scale.py:306
↓ 3 callersMethod_optimizer_has_ckpt_event_epilogue
(self)
deepspeed/runtime/engine.py:2005
↓ 3 callersMethod_optimizer_has_ckpt_event_prologue
(self)
deepspeed/runtime/engine.py:2002
↓ 3 callersFunction_oracle_storage
What each global rank stores, built by indexing the full tensor rather than through a map.
tests/unit/checkpoint/test_autoep_affine.py:243
↓ 3 callersFunction_ordered_bits
Integers whose difference is the distance in representable values, for 16-bit floats.
tests/unit/v1/runtime/test_chunked_cross_entropy.py:54
↓ 3 callersMethod_partition_autoep_zero3_experts
(replacement, convert_to_zero_parameters)
deepspeed/runtime/engine.py:957
↓ 3 callersFunction_partition_logical_tensor
(tensor, partition_dim, tp_world_size, tp_index, shard_widths, subparam_sizes=None)
deepspeed/module_inject/layers.py:2171
↓ 3 callersMethod_partition_param_sec
(self, param, buffer=None, has_been_updated=False)
deepspeed/runtime/zero/partition_parameters.py:1883
↓ 3 callersMethod_partitioned_buffers_all_gather
Allgather the partitioned buffers of the parameters to the global buffer. Args: params: List[Parameter] buffe
deepspeed/runtime/zero/stage3.py:2295
↓ 3 callersFunction_patch_kwargs
(kwargs, monkeypatch)
tests/unit/compile/test_inductor_aot_kwargs.py:51
↓ 3 callersFunction_per_head_orthogonalize
Newton-Schulz per attention head, then fold the head dim back.
deepspeed/runtime/zero/muon/original_muon.py:170
↓ 3 callersMethod_phase1_buffer
The phase-1 slot of the micro-batch held in phase-0 slot ``buffer_id``.
deepspeed/runtime/pipe/dualpipev.py:186
↓ 3 callersMethod_pin_fresh
(self, template, shape)
accelerator/abstract_accelerator.py:326
↓ 3 callersMethod_placeholder
(self, param)
tests/unit/ops/adam/test_zf_torch_adam.py:204
↓ 3 callersMethod_pool_cpu_buffer
(self, key: _BufferKey, tensor: torch.Tensor)
deepspeed/runtime/activation_checkpointing/offload_activations.py:150
↓ 3 callersFunction_pre_ln_test_helper
(n_tokens: int, n_channels: int, dtype: torch.dtype, res_add: bool = False)
tests/unit/inference/v2/modules/test_cuda_pre_ln_module.py:36
↓ 3 callersFunction_pre_rms_test_helper
(n_tokens: int, n_channels: int, dtype: torch.dtype, res_add: bool = False)
tests/unit/inference/v2/modules/test_pre_rms_module.py:38
↓ 3 callersMethod_precompute_checkpointable_values
(self)
deepspeed/runtime/pipe/module.py:221
↓ 3 callersMethod_profile_end
(profile, field, start, count=None)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1391
↓ 3 callersMethod_profile_start
(profile)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1384
↓ 3 callersMethod_qkv_gemm
(inputs, weight, q_scale, bias, gamma, beta, eps, add_bias, q_int8, transpose)
op_builder/npu/inference.py:114
↓ 3 callersMethod_quantize_groups
Per-group symmetric quantization of an fp32 [groups, elems] tensor. Returns the quantized values (int32, in the representable range) and
op_builder/npu/quantizer.py:66
↓ 3 callersFunction_quantize_module
(model, policies)
deepspeed/module_inject/module_quantize.py:62
↓ 3 callersMethod_raise_if_autoep_zero3_consolidated_export
(self, operation)
deepspeed/runtime/engine.py:5815
↓ 3 callersMethod_reassign_or_swap_out_partitioned_parameters_async
Asynchronously update partitioned parameters with optimized values.
deepspeed/runtime/superoffload/superoffload_stage3.py:137
↓ 3 callersFunction_rebuild_zero3_autoep_rank_tensors
(ep_tensors, affine_map_or_placement, logical_shape, context)
deepspeed/checkpoint/ds_to_universal.py:777
↓ 3 callersFunction_record_grad_scales
(factors)
tests/unit/v1/zero/test_zero.py:2199
↓ 3 callersMethod_record_grad_set
Record that the safe_set APIs set param's gradient partition to value, so that the boundary keeps it. Without optimizer offload they write th
deepspeed/runtime/zero/stage3.py:1662
↓ 3 callersMethod_record_offload_copy
(self)
deepspeed/runtime/zero/stage_1_and_2.py:1847
↓ 3 callersMethod_recursive_getattr
Allow getting an attribute like "linear.weight
deepspeed/runtime/pipe/module.py:449
↓ 3 callersFunction_reduce_int
Reduce an integer scheduling input, or preserve it outside distributed mode.
deepspeed/compile/passes/zero3_compile.py:33
↓ 3 callersFunction_reference_grad
(model, inputs)
tests/unit/runtime/zero/test_zero_shared_loss_gradient.py:79
↓ 3 callersFunction_reference_unpermute
(expert_output, permuted_indices, n_tokens)
tests/unit/v1/moe/test_autoep_permute_rows.py:23
↓ 3 callersFunction_released
(param)
tests/unit/runtime/zero/test_zero_stale_handle_wait.py:17
← previousnext →1,501–1,600 of 15,468, ranked by callers