MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 3 callersMethod_deactivate_deepcompile
(self)
deepspeed/runtime/engine.py:6256
↓ 3 callersFunction_decode_kwargs
()
tests/unit/hybrid_engine/test_he_graph.py:118
↓ 3 callersFunction_define_dc_ops
()
tests/unit/v1/compile/test_list_schedule.py:27
↓ 3 callersMethod_device
(self)
tests/torch_compile/test_deepcompile_z3_release.py:25
↓ 3 callersFunction_device_params
(engine)
tests/unit/v1/zero/test_zero_partial_offload.py:101
↓ 3 callersFunction_dim_zero_all_to_all
Differentiable All2All across dimension 0. The gradient of this exchange has to be something the tracer knows about. An autograd function that fi
deepspeed/sequence/layer.py:357
↓ 3 callersFunction_disable_autocast_weight_cache
()
deepspeed/runtime/rollout/hybrid_engine_rollout.py:55
↓ 3 callersFunction_dist_allgather_fn
(input_tensor: Tensor, output_tensor: Tensor, group=None)
deepspeed/runtime/zero/partition_parameters.py:122
↓ 3 callersFunction_drop_tokens
Divide a tensor among the tensor parallel ranks
deepspeed/moe/mappings.py:56
↓ 3 callersMethod_drop_tracked_param
(self, ds_id, param)
deepspeed/compile/z3_eager_fallback.py:128
↓ 3 callersFunction_eager_weight_gradient_summation_order
Sum the fused weight gradient in eager's order, leaving the rest of the fused path as it is. Fused and eager form the same FP32 products for the
tests/unit/v1/moe/test_autoep_deepep_parity.py:65
↓ 3 callersMethod_enable_universal_checkpoint
(self)
deepspeed/runtime/bf16_optimizer.py:314
↓ 3 callersFunction_engine
(case)
tests/unit/runtime/zero/test_zero_numel_param_shape.py:92
↓ 3 callersMethod_engine
(self, param_dtype=None, fp16=False, bf16=False)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:73
↓ 3 callersMethod_ensure_bucketwise_group_step
Reserve one step per subgroup, including ranks with only padding and no Ready ranges.
deepspeed/runtime/reflow/reflow_stage3.py:1465
↓ 3 callersMethod_ensure_param_state
Lazily create the optimizer state (step, exp_avg, exp_avg_sq) for a CPU param.
deepspeed/runtime/reflow/reflow_cpu_adam.py:133
↓ 3 callersMethod_expand_unpadded_flat_group
(self, compact_group, group_id)
deepspeed/runtime/zero/stage_1_and_2.py:3546
↓ 3 callersFunction_expert_weight_parity_worker
(rank, world_size, tp_size, ep_size, zero_stage=0)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:581
↓ 3 callersFunction_flat
The buffer for ``location`` as its own elements, without copying it.
deepspeed/checkpoint/affine_transfer_executor.py:716
↓ 3 callersFunction_fmt_bytes
(num_bytes: int)
deepspeed/utils/pin_memory_tracker.py:14
↓ 3 callersFunction_folded_zero2_config
(*, mixed_precision=True)
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:48
↓ 3 callersFunction_format_param
Broadcast a scalar to every param group, or validate a per-group list/tuple.
deepspeed/runtime/lr_schedules.py:303
↓ 3 callersMethod_fp32_state_allgather
(self, param, fp32_state_partition)
deepspeed/runtime/zero/stage3.py:3473
↓ 3 callersFunction_full_vocabulary_logits
Have AutoTP's vocabulary-parallel output heads gather their logits while the rollout decodes.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:40
↓ 3 callersMethod_fuse_lora_layer
(self, layer_id)
deepspeed/runtime/hybrid_engine.py:161
↓ 3 callersFunction_fused_engine_available
()
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:65
↓ 3 callersFunction_gamma_before_cast_rms_norm
(hidden, weight, eps)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:87
↓ 3 callersFunction_gather_logical_tensor
(tensor, logical_shape, partition_dim,
deepspeed/module_inject/layers.py:2234
↓ 3 callersFunction_gather_optimizer_state_for_param
(engine, param, key)
tests/unit/v1/moe/test_autoep_checkpoint.py:207
↓ 3 callersFunction_gather_source_zero_params
Gather source ZeRO params while AutoEP reads full tensor values.
deepspeed/moe/ep_repack.py:25
↓ 3 callersFunction_gather_tokens
Gather tensors and concatenate them along a dimension
deepspeed/moe/mappings.py:30
↓ 3 callersFunction_gather_zero_param
(param)
tests/unit/v1/moe/test_autoep_checkpoint.py:158
↓ 3 callersFunction_generate_layout_params
This function generates the parameters required for `permute` and `reshape` operations, which are used to process data before and after `all2
deepspeed/sequence/layer.py:49
↓ 3 callersMethod_get_all_zero_checkpoints
(self, load_dir, tag)
deepspeed/runtime/engine.py:5122
↓ 3 callersFunction_get_autocast_dtype
(device_type)
deepspeed/runtime/zero/linear.py:73
↓ 3 callersFunction_get_autoep_metadata
(model_state)
deepspeed/checkpoint/ds_to_universal.py:654
↓ 3 callersMethod_get_buffer
(self, index)
deepspeed/runtime/swap_tensor/async_swapper.py:157
↓ 3 callersMethod_get_continuous_graph_state
(self, module, max_batch_size,
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1152
↓ 3 callersMethod_get_cpu_grad_buffer
(self, sub_group_id, pending=False)
deepspeed/runtime/reflow/reflow_stage3.py:1068
↓ 3 callersFunction_get_cross_entropy_arg
(loss_node: Node, name: str, position: int, default)
deepspeed/compile/passes/sp_compile.py:137
↓ 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:807
↓ 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:4576
↓ 3 callersFunction_get_expert_data_parallel_group
Get the expert data parallel group the caller rank belongs to.
deepspeed/utils/groups.py:737
↓ 3 callersFunction_get_expert_parallel_group
Get the expert parallel group the caller rank belongs to.
deepspeed/utils/groups.py:718
↓ 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:3969
↓ 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:955
↓ 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:1002
↓ 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:736
↓ 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 callersFunction_is_autocast_enabled
(device_type)
deepspeed/runtime/zero/linear.py:60
↓ 3 callersMethod_is_eos
(self, token)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1791
↓ 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:1764
↓ 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_last_logits_kwargs
Ask models that support it for last-position logits only, since prefill samples just one token.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1799
↓ 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_logical_state
Every parameter, or one of its Adam states, at full size under names every layout shares.
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:702
↓ 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 callersMethod_make_rollout
(self, tok)
tests/unit/module_inject/test_segment_ki_kernels.py:647
↓ 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:157
↓ 3 callersMethod_mark_uc_metadata
(self)
deepspeed/module_inject/layers.py:1068
↓ 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
← previousnext →1,501–1,600 of 15,767, ranked by callers