MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 2 callersFunction_random_request
(batch_size, prompt_len, device)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:509
↓ 2 callersMethod_read_latest
(self)
deepspeed/utils/timer.py:73
↓ 2 callersMethod_reap_cpu_buffer_pool
(self, force: bool = False)
deepspeed/runtime/activation_checkpointing/offload_activations.py:156
↓ 2 callersMethod_reassign_or_swap_out_partitioned_parameters
(self, sub_group_id)
deepspeed/runtime/superoffload/superoffload_stage3.py:121
↓ 2 callersMethod_record_bucket_producer
(self, bucket)
deepspeed/runtime/zero/stage_1_and_2.py:1514
↓ 2 callersFunction_record_liger_calls
(monkeypatch, calls)
tests/unit/v1/sequence_parallelism/test_liger_vocab_parallel_cross_entropy.py:30
↓ 2 callersMethod_record_time
(self)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:68
↓ 2 callersFunction_recorded
(policy)
tests/unit/checkpoint/test_affine_replica_policy.py:125
↓ 2 callersMethod_recv_tensor_meta
Receive metadata about upcoming p2p transfers and return allocated buffers. Returns: Allocated buffer for receiving from send_sta
deepspeed/runtime/pipe/engine.py:975
↓ 2 callersMethod_redistribute_unpadded_partition
(self, local_partition, group_id)
deepspeed/runtime/zero/stage_1_and_2.py:3542
↓ 2 callersMethod_reduce_autoep_folding_tp_replicated_gradients
(self)
deepspeed/runtime/engine.py:3170
↓ 2 callersMethod_reduce_local_output
Reduce (sum) a new local result into the existing local results. Subclasses should override this method. For a given ``out_id``, thi
deepspeed/runtime/zero/tiling.py:170
↓ 2 callersFunction_ref_apply_rotary
(t, freqs_cos, freqs_sin)
tests/unit/sequence/test_apply_rotary_pos_emb.py:21
↓ 2 callersFunction_ref_group_meta
Reference for _group_meta: m_start = exclusive-prefix, m_size = per-group count.
tests/unit/v1/ops/triton_ops/test_group_gemm_triton.py:108
↓ 2 callersFunction_reference_config
()
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:102
↓ 2 callersFunction_reference_grads
(model)
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:206
↓ 2 callersFunction_reference_sparse_mla
The sparse attention written out: softmax over the selected keys only, float32 math.
tests/unit/v1/models/test_glm_moe_dsa.py:41
↓ 2 callersFunction_refuse_create_graph
()
deepspeed/runtime/chunked_cross_entropy.py:107
↓ 2 callersFunction_region
``flat`` viewed as one planned copy region. Plan offsets count elements from the first element of the shard; ``as_strided`` counts from the s
deepspeed/checkpoint/affine_transfer_executor.py:515
↓ 2 callersMethod_register_deepspeed_module
(self, module, count=[0])
deepspeed/runtime/zero/parameter_offload.py:348
↓ 2 callersMethod_register_shared_prefill_hooks
(self, module, batch_size, repeats)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1371
↓ 2 callersFunction_registry_get
(registry: dict[str, Any], registry_key: str, default: Any = None)
deepspeed/module_inject/auto_ep_presets/base.py:300
↓ 2 callersFunction_reject_logit_postprocessing
(model)
deepspeed/sequence/linear_cross_entropy.py:309
↓ 2 callersMethod_reject_scaled_optimizer_state
Refuse to move an optimizer state through a scaled piece. The moments themselves convert correctly under their powers, but Adam's update also
deepspeed/checkpoint/affine.py:431
↓ 2 callersFunction_relative
(a, b)
tests/unit/v1/ops/muon/test_per_head_muon_accelerator.py:51
↓ 2 callersMethod_release_deepcompile_compiled_backward_state
(self)
deepspeed/runtime/engine.py:6084
↓ 2 callersMethod_release_deepcompile_dynamo_config
(self)
deepspeed/runtime/engine.py:6090
↓ 2 callersMethod_release_gathered_params
(self)
deepspeed/compile/z3_eager_fallback.py:211
↓ 2 callersMethod_release_ipg_buffers
(self)
deepspeed/runtime/zero/stage_1_and_2.py:938
↓ 2 callersFunction_release_n_users
(node: Node)
deepspeed/compile/list_schedule.py:388
↓ 2 callersMethod_release_swap_buffers
(self, sub_group_id)
deepspeed/runtime/zero/stage3.py:2861
↓ 2 callersMethod_release_unclaimed_tracked_params
(self)
deepspeed/compile/z3_eager_fallback.py:195
↓ 2 callersFunction_remap_param_groups_after_module_replacement
Replace stale parameters in optimizer-style groups and return remap counts.
deepspeed/runtime/engine.py:313
↓ 2 callersMethod_remove_module_hooks
(self)
deepspeed/runtime/zero/parameter_offload.py:294
↓ 2 callersFunction_replace_module
(module, policy)
deepspeed/module_inject/replace_module.py:165
↓ 2 callersFunction_replaced_model
(transformers, attn_implementation)
tests/unit/v1/models/test_glm_moe_dsa.py:209
↓ 2 callersFunction_report_aio_statistics
csrc/aio/common/deepspeed_aio_common.cpp:48
↓ 2 callersMethod_report_progress
(self, step)
deepspeed/runtime/engine.py:3873
↓ 2 callersFunction_require_gpu_native
(monkeypatch)
tests/unit/v1/pin_memory/test_offload_route.py:27
↓ 2 callersMethod_require_host_device
(device)
accelerator/abstract_accelerator.py:317
↓ 2 callersFunction_require_placed
Refuse a shard that its pieces leave partly unplaced, which a self-overlapping piece can do.
deepspeed/checkpoint/affine.py:546
↓ 2 callersFunction_resolve_attention_head_count
As above, with the reason, so callers can report why a parameter was not tagged.
deepspeed/__init__.py:301
↓ 2 callersFunction_resolve_execution_inputs
(env: Mapping[str, str])
ci/torch_latest.py:1652
↓ 2 callersFunction_resolve_kv_heads
KV head count this all-to-all partitions against, or None when the caller has none. Only the scatter direction can read a count off the tensor; t
deepspeed/sequence/layer.py:19
↓ 2 callersFunction_resolve_output_dtype
(dtype)
deepspeed/utils/zero_to_fp32.py:66
↓ 2 callersFunction_resolve_route_scale
Resolve the single scale applied by TokenChoiceTopKRouter.
deepspeed/module_inject/auto_ep.py:147
↓ 2 callersFunction_resolve_visible_devices
Run main() as far as parse_inclusion_exclusion() and return what it was handed. Stopping there rather than launching keeps this CPU-only; the res
tests/unit/launcher/test_run.py:139
↓ 2 callersMethod_resolve_vocab_parallel_lm_head
(self)
deepspeed/module_inject/auto_tp.py:789
↓ 2 callersFunction_resolve_zero3_guarded_value
(builder, guard, value)
deepspeed/compile/patch_fake_tensor.py:66
↓ 2 callersMethod_resolve_zero3_param_placement
(self)
deepspeed/runtime/engine.py:2315
↓ 2 callersMethod_restore_base_optimizer_state
(self, base_optimizer_group_states, base_optimizer_state_step, group_paddings)
deepspeed/runtime/zero/stage_1_and_2.py:3693
↓ 2 callersMethod_restore_elastic_base_optimizer_state
(self, all_state_dict, unpadded_layout=False)
deepspeed/runtime/zero/stage_1_and_2.py:3732
↓ 2 callersMethod_restore_from_bit16_weights
(self)
deepspeed/runtime/bf16_optimizer.py:650
↓ 2 callersMethod_restore_from_bit16_weights
(self)
deepspeed/runtime/zero/stage_1_and_2.py:3655
↓ 2 callersMethod_restore_tensor
(self, tensor_id: int, cache: bool = True)
deepspeed/runtime/activation_checkpointing/offload_activations.py:236
↓ 2 callersMethod_retarget_transformers_output_recorders
(self, spec: MoELayerSpec, replacement: nn.Module)
deepspeed/module_inject/auto_ep.py:668
↓ 2 callersFunction_retarget_transformers_output_recorders_for_modules
( *, model: nn.Module, display_name: str, recorder_key: str, retargeted_keys: set[str],
deepspeed/module_inject/auto_ep_presets/base.py:348
↓ 2 callersMethod_retrieve_unswapped_grad_partitions
(self, swap_info, dest_buffer)
deepspeed/runtime/swap_tensor/optimizer_utils.py:491
↓ 2 callersMethod_reverse_graph
Map each file -> the set of files that import it (directly).
ci/tests_fetcher.py:428
↓ 2 callersFunction_rms_norm_testing_helper
(rows: int, channels: int, do_residual: bool, dtype: DtypeEnum)
tests/unit/inference/v2/kernels/core_ops/test_rms_norm.py:33
↓ 2 callersFunction_rnn_flops
(flops, rnn_module, w_ih, w_hh, input_size)
deepspeed/profiling/flops_profiler/profiler.py:1041
↓ 2 callersFunction_rollout
(model, use_graph_capture)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:501
↓ 2 callersFunction_rotate_half
change sign so the last dimension becomes [-odd, +even]
deepspeed/sequence/layer.py:116
↓ 2 callersFunction_route_slots
Map every (token, route) pair onto its flat slot in the [e * c] expert buffer. Routes evicted by the capacity limit are parked on one extra scrat
deepspeed/moe/sharded_moe.py:177
↓ 2 callersFunction_row_markers
(rows, cols)
tests/unit/checkpoint/test_affine_shard_map.py:41
↓ 2 callersFunction_row_weighting_block_hidden
Choose a power-of-two hidden tile for row-local products.
deepspeed/ops/triton_ops/autoep_fused_token_ops.py:256
↓ 2 callersFunction_run_experts_grouped_mm
Compute SwiGLU expert MLP via torch._grouped_mm (grouped GEMM). Uses input dtype for casting instead of hardcoded bfloat16. Args: w1
deepspeed/moe/ep_experts.py:300
↓ 2 callersMethod_run_forward_backward
Run zero3_linear_wrap forward+backward, optionally inside autocast.
tests/unit/v1/zero/test_zero_functorch_linear.py:108
↓ 2 callersFunction_run_kernels
(hidden: torch.Tensor, weight: torch.Tensor, eps: float)
deepspeed/ops/triton_ops/fused_rms_norm.py:272
↓ 2 callersFunction_run_kernels
(q, k, cos, sin, unsqueeze_dim)
deepspeed/ops/triton_ops/fused_rotary_pos_emb.py:238
↓ 2 callersFunction_run_layout_all_to_all
single_all_to_all's layout math, driven by the emulated all2all above.
tests/unit/v1/sequence_parallelism/test_ulysses.py:161
↓ 2 callersFunction_run_local
(argv: Sequence[str], *, cwd: Path | None = None)
ci/torch_latest.py:419
↓ 2 callersFunction_run_stacked
(ckpt_fn, layers, x, do_checkpoint)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:134
↓ 2 callersFunction_run_until_boundary
(engine, *, logical_dp_world_size, logical_dp_rank, grad_accum, seed)
tests/unit/v1/moe/test_autoep_grad_parity.py:111
↓ 2 callersFunction_sanitize_ssm_output_line
( value: object, instance: AwsInstance, command_id: str, run_identity: str, )
ci/torch_latest.py:1274
↓ 2 callersFunction_saved_dp2_masters
(tmpdir)
tests/unit/checkpoint/test_fp32_master_only.py:132
↓ 2 callersMethod_scale_loss_by_gas
(self, prescaled_loss, eval_micro_batches=None)
deepspeed/runtime/engine.py:2969
↓ 2 callersFunction_scaled
Undo the shard's scaling, giving the block as it appears in the full tensor.
deepspeed/checkpoint/affine.py:502
↓ 2 callersFunction_scaled_replicated_meta
(scale)
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:577
↓ 2 callersFunction_scheduled_graph
(graph, scheduler_budget=None)
tests/unit/v1/compile/test_list_schedule.py:223
↓ 2 callersFunction_scheduler_budget_from_operator_profile
Derive a rank-consistent budget and explain why a non-constraining gate is disabled.
deepspeed/compile/passes/zero3_compile.py:213
↓ 2 callersMethod_send_tensor_meta
Communicate metadata about upcoming p2p transfers. Metadata is communicated in this order: * type (0: tensor, 1: list)
deepspeed/runtime/pipe/engine.py:930
↓ 2 callersMethod_set_bounds
Manually define the range of layers that will be built on this process. These boundaries are treated as list slices and so start is inclusive
deepspeed/runtime/pipe/module.py:540
↓ 2 callersMethod_set_client_model
(self, model)
deepspeed/runtime/engine.py:2139
↓ 2 callersMethod_set_ep_group
(self, ep_group)
deepspeed/moe/sharded_moe.py:555
↓ 2 callersMethod_set_fp16_partitioned_groups_flat
(self)
deepspeed/runtime/zero/stage3.py:1339
↓ 2 callersMethod_set_zero_group_parallelism
(self)
deepspeed/runtime/zero/stage3.py:761
↓ 2 callersFunction_shape_numel
(shape)
deepspeed/checkpoint/ds_to_universal.py:611
↓ 2 callersMethod_shards
(self, batch_dim_idx, seq_world_size)
tests/unit/v1/sequence_parallelism/test_ulysses.py:178
↓ 2 callersFunction_shared_params
(engine)
tests/unit/v1/moe/test_autoep_checkpoint.py:150
↓ 2 callersFunction_shared_qk_affine_map
Describe a shared-QK layout, where a rank's value heads sit in two runs. Returns None where the layout cannot be described honestly: without the
deepspeed/module_inject/layers.py:1625
↓ 2 callersFunction_simulate_zero3_partition
Make ``module``'s parameters look the way ZeRO-3 leaves them. ZeRO-3 empties each partitioned parameter's local data and records the pre-part
tests/unit/runtime/tensor_parallel/test_autotp_universal_checkpoint.py:77
↓ 2 callersFunction_single_line
Render untrusted repository text without controls or extra log lines.
ci/tests_fetcher.py:631
↓ 2 callersMethod_skip_if_nvme_unsupported
(self)
tests/unit/v1/zero/test_zero_user_backward.py:2200
↓ 2 callersMethod_skip_invalid_grad_norm
(self)
deepspeed/runtime/fp16/fused_optimizer.py:151
↓ 2 callersMethod_skip_invalid_grad_norm
(self)
deepspeed/runtime/fp16/unfused_optimizer.py:125
↓ 2 callersFunction_small_async_split_result
(scale=1.0)
tests/unit/v1/moe/test_autoep_grad_parity.py:707
↓ 2 callersFunction_source_indices
Recover which row (or column) of the full tensor each row of the shard came from.
tests/unit/checkpoint/test_affine_shard_map.py:64
↓ 2 callersFunction_source_param_ndim
(param: torch.Tensor | nn.Parameter)
deepspeed/module_inject/auto_ep.py:108
↓ 2 callersFunction_sparse_decode
Gather each token's expert results back and weight them by the gate values.
deepspeed/moe/sharded_moe.py:204
← previousnext →2,201–2,300 of 14,579, ranked by callers