MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 2 callersFunction_mem_rows
(graph)
tests/unit/v1/compile/test_offload_opt_states.py:67
↓ 2 callersFunction_memory_budget
()
deepspeed/compile/passes/offload_activation.py:145
↓ 2 callersMethod_merge_base
Merge-base of ``base`` and ``HEAD``, or "" if it can't be determined. An empty result (e.g. shallow clone that doesn't reach the fork point)
ci/tests_fetcher.py:224
↓ 2 callersMethod_merge_state_dicts
(self, sd_list)
deepspeed/checkpoint/deepspeed_checkpoint.py:343
↓ 2 callersFunction_merge_zero_shards
(param_base_path, state, tp_degree, slice_shapes=None)
deepspeed/checkpoint/ds_to_universal.py:235
↓ 2 callersFunction_micro_batches
(engine, count)
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:284
↓ 2 callersFunction_minimum_gather_residency_budget
Build a rank-consistent gather-only cap without inferring memory headroom.
deepspeed/compile/passes/zero3_compile.py:96
↓ 2 callersFunction_mixed_batch
Packed and strided regions over guarded storage windows; endpoints shift by half the world.
tests/unit/checkpoint/test_affine_transfer_executor.py:68
↓ 2 callersFunction_model
()
tests/unit/v1/ops/muon/test_muon_zero3_grad_accum.py:26
↓ 2 callersMethod_model_for
(self, route, std)
tests/unit/v1/moe/test_autoep_expert_activation.py:1195
↓ 2 callersMethod_module_name
Dotted module name for a file under a package root, or None. e.g. deepspeed/runtime/engine.py -> deepspeed.runtime.engine tests/
ci/tests_fetcher.py:292
↓ 2 callersFunction_momentum_norm
(engine)
tests/unit/v1/ops/muon/test_muon_checkpoint.py:56
↓ 2 callersFunction_move_destination
(affine_map, rank, index, delta)
tests/unit/checkpoint/test_affine_shard_map.py:519
↓ 2 callersMethod_move_state_to_backup_optimizer
Move the loaded Adam state of the sub-groups kept on the device to the backup optimizer.
deepspeed/runtime/zero/stage3.py:3845
↓ 2 callersMethod_muon_momentum_buffer
The flat momentum buffer for this group, in the dtype `muon_update` needs. `muon_update` does `momentum.lerp_(grad)`, which requires both to
deepspeed/runtime/zero/stage_1_and_2.py:2909
↓ 2 callersMethod_muon_param_groups
Split each incoming param group into its Muon and Adam halves. Muon has to build its own groups, because which half a parameter belongs to is
deepspeed/runtime/engine.py:2589
↓ 2 callersMethod_muon_staging_momentum
The buffer `muon_update` writes this step's momentum into. It starts as a copy of the committed momentum, so a step that is later discarded
deepspeed/runtime/zero/stage_1_and_2.py:3111
↓ 2 callersMethod_muon_update_lacks_loss_scale
Whether this sub-group holds a Muon update that has to be scaled like a gradient. Newton-Schulz returns the same update at any loss scale, so
deepspeed/runtime/zero/stage3.py:2811
↓ 2 callersMethod_muon_update_lacks_loss_scale
Whether this group holds a Muon update that has to be scaled like a gradient. Newton-Schulz returns the same update at any loss scale, so unl
deepspeed/runtime/zero/stage_1_and_2.py:2900
↓ 2 callersFunction_narrow_block_m
Rows per narrow program, capped to the input, or None when unused.
deepspeed/ops/triton_ops/fused_rms_norm.py:253
↓ 2 callersMethod_new_locked
(self, example, out_shape)
deepspeed/utils/pin_memory.py:53
↓ 2 callersFunction_no_gather_coalesced
(params: Iterable[Parameter])
deepspeed/runtime/zero/partition_parameters.py:899
↓ 2 callersFunction_norm_rtol
Scale agreement: a couple of ulps of the compute dtype, and never looser than 1%.
tests/unit/runtime/zero/test_per_head_muon.py:62
↓ 2 callersFunction_normalize_fqn
Turn Dynamo's nn_module_stack path into the dotted name model.named_modules() uses. Dynamo records the access expression, e.g. "L['self']._module
deepspeed/compile/passes/tp_compile.py:102
↓ 2 callersFunction_normalize_uc_shape
(value)
deepspeed/module_inject/layers.py:40
↓ 2 callersFunction_npu_host_copy_funcs
Resolve the npurt host-registration functions, or (None, reason). torch.npu.npurt() returns the runtime-API module exposing npuHostRegister/n
accelerator/npu_accelerator.py:29
↓ 2 callersFunction_ns_tolerance
Some tens of ulps of whatever dtype the kernel iterates in. `gram` runs in fp16 and `newtonschulz5` in bf16 (fp32 where unsupported), and the ite
tests/unit/runtime/zero/test_per_head_muon.py:49
↓ 2 callersMethod_offload_compact_grad_partitions
Copy each compact partition's running sum to the host gradient at a boundary. Every parameter accumulated in this window is copied, including
deepspeed/runtime/zero/stage_1_and_2.py:1370
↓ 2 callersMethod_offload_grad_partition_at_boundary
(self, param, grad_buffer, offload_fp32_gradients, offload_fp32_offsets)
deepspeed/runtime/zero/stage3.py:1561
↓ 2 callersMethod_offload_grad_partitions_at_boundary
Copy the gradient partitions of params to the offloaded fp32 gradients. For NVMe-swapped sub-groups, the fp32 copies on the device are swappe
deepspeed/runtime/zero/stage3.py:1587
↓ 2 callersMethod_offsets
(self, base, strides)
deepspeed/checkpoint/affine.py:117
↓ 2 callersFunction_one_cycle_lrs
(first_stair_count, steps=16, first_step_size=8, second_step_size=8, second_stair_count=None)
tests/unit/runtime/test_lr_schedulers.py:717
↓ 2 callersFunction_one_group
The group ends of a single group that owns every row of ``rows``.
deepspeed/runtime/quantization/subchannel.py:99
↓ 2 callersMethod_order_after
(self, completes)
tests/unit/v1/zero/test_zero2_gradient_safety.py:270
↓ 2 callersFunction_order_kl_arguments
(student_log_probs, teacher_log_probs, reverse)
deepspeed/sequence/vocab_parallel_ops.py:304
↓ 2 callersFunction_originating_layer
Return the (qualified name, type) of the innermost nn.Module a node was traced from.
deepspeed/compile/passes/tp_compile.py:85
↓ 2 callersFunction_over_budget_path_options
(task: AllgatherTask, scheduler_budget: SchedulerMemoryBudget)
deepspeed/compile/list_schedule.py:541
↓ 2 callersFunction_owner_modules
`named_modules()` as a lookup, or None when the object does not have any.
deepspeed/__init__.py:282
↓ 2 callersMethod_pack_int4
Pack values in [-8, 7] two per byte: even element in the low nibble, odd element in the high nibble (the reference layout).
op_builder/npu/quantizer.py:91
↓ 2 callersFunction_pad_rows
(tensor: torch.Tensor, rows: int)
deepspeed/moe/ep_tp_dispatch.py:276
↓ 2 callersFunction_pad_tensor_by_size
(src_tensor, pad_size, dtype, device)
deepspeed/runtime/zero/stage_1_and_2.py:110
↓ 2 callersMethod_padding_size
(self, param)
deepspeed/runtime/zero/partition_parameters.py:1704
↓ 2 callersFunction_pairs
Parameters with replicated sources: whole-parameter replicas, a partly replicated fused block, a vector and a scalar.
tests/unit/checkpoint/test_affine_replica_policy.py:63
↓ 2 callersFunction_params
(engine)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:67
↓ 2 callersMethod_parse_all
Parse every file once; return (deps_by_file, raw_imports_by_file).
ci/tests_fetcher.py:418
↓ 2 callersFunction_partition_like_zero3
What `zero.Init` leaves behind: a flat placeholder plus the real shape on `ds_shape`.
tests/unit/runtime/zero/test_muon_use_muon_under_zero_init.py:42
↓ 2 callersFunction_partitioned_metadata_entry
()
tests/unit/checkpoint/test_autoep_zero3_metadata.py:29
↓ 2 callersFunction_patch_aot_constructor
()
tests/unit/compile/test_backend.py:116
↓ 2 callersFunction_patch_random_state_sync
Have the broadcast copy a source-rank state into the tensor, and record the state the rank then sets.
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1401
↓ 2 callersFunction_patch_tp_group_creation
(monkeypatch, *, rank=2, initialize_mesh_device=None)
tests/unit/v1/autotp/test_autotp_training.py:56
↓ 2 callersFunction_path_parts
(path)
accelerator/cpu_accelerator.py:57
↓ 2 callersFunction_per_head_muon_meta
The head-count reader and the config the widths come from, built once per model. AutoTPMeta.from_model_config is the repo's single source of trut
deepspeed/__init__.py:112
↓ 2 callersMethod_phase
(self, phase)
deepspeed/runtime/pipe/dualpipev.py:160
↓ 2 callersFunction_pick_layer
Return the sub-block (self_attn / linear_attn), not the decoder layer — the layer requires position_embeddings, the blocks do not.
tests/unit/module_inject/test_hf_parity.py:38
↓ 2 callersFunction_pid_is_running
(pid: int, proc_root: Path = Path("/proc"))
ci/test_torch_latest.py:1120
↓ 2 callersFunction_pin_observed_floor
Hold the observed-memory clamp still. The planner takes the larger of its profiled floor and what the allocator has already handed out. That
tests/unit/v1/compile/test_offload_activation.py:103
↓ 2 callersFunction_place
Mark the shard addresses ``piece`` occupies in ``placed``, refusing one already taken. ``validate()`` checks destinations from metadata, which ca
deepspeed/checkpoint/affine.py:494
↓ 2 callersMethod_plain
(self, value, device)
tests/unit/runtime/test_runtime_utils.py:97
↓ 2 callersMethod_point_aliased_fp32_partitions_at_lp_buffer
After lp_param_buffer moves, point each aliased master partition at its slice of it again. The master tensor stays the one the optimizer holds
deepspeed/runtime/zero/stage3.py:4347
↓ 2 callersMethod_pop_manager_stack
(self)
deepspeed/runtime/activation_checkpointing/offload_activations.py:457
↓ 2 callersFunction_positive_int
(value, name)
deepspeed/checkpoint/autoep_affine.py:334
↓ 2 callersMethod_prefill_cost_function
Read model geometry once; DP candidates use only scalar arithmetic.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1566
↓ 2 callersFunction_prep_inputs
(*inputs)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:40
↓ 2 callersFunction_prepare
Validate both maps and cut the target into intersections with the source regions.
deepspeed/checkpoint/affine_transfer.py:776
↓ 2 callersFunction_prime_factors
Returns the prime factorization of positive integer N.
deepspeed/runtime/pipe/topology.py:217
↓ 2 callersFunction_print_scheduler_debug
(message: str, process_group=None)
deepspeed/compile/passes/zero3_compile.py:109
↓ 2 callersMethod_process_selected_fp32_groups_grad
Process gradients for selected columns in FP32 groups
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:277
↓ 2 callersFunction_prologue
csrc/deepspeed4science/evoformer_attn/gemm/mma_from_smem.h:925
↓ 2 callersMethod_publish_host_accumulated_grad
Read this parameter's host sum back to the device, then into the FP32 partition. The device pass lets the shared norm and overflow helpers se
deepspeed/runtime/zero/stage_1_and_2.py:1134
↓ 2 callersFunction_qps_for_sms
Queue pairs to reserve for a given SM count. One per SM plus a margin for the control path. This is deliberately smaller than DeepEP's automa
deepspeed/module_inject/auto_ep_comm.py:47
↓ 2 callersFunction_quantizer
(quantization_group_size)
tests/unit/ops/fp_quantizer/test_fp8_gemm.py:21
↓ 2 callersFunction_raise_if_autoep_zero3_partitioned_state
(state_dict)
deepspeed/utils/zero_to_fp32.py:136
↓ 2 callersFunction_raise_unsupported_load_balance_coeff
(value: object)
deepspeed/module_inject/auto_ep_presets/base.py:19
↓ 2 callersFunction_random_causal_selection
Per row a random subset of the causal keys, ``-1`` padded where fewer than ``topk`` exist.
tests/unit/v1/models/test_glm_moe_dsa.py:32
↓ 2 callersFunction_random_seed
(cfg: GemmQuantizationConfig)
deepspeed/runtime/quantization/subchannel.py:149
↓ 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_record_bucket_producer
(self, bucket)
deepspeed/runtime/zero/stage_1_and_2.py:1527
↓ 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:107
↓ 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:3568
↓ 2 callersMethod_reduce_autoep_folding_tp_replicated_gradients
(self)
deepspeed/runtime/engine.py:3271
↓ 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_reduction_tile
Map reduction tile ``pid_k`` to ``(group, tile start, first valid element, end of valid elements)``. Tiles sit on the global ``BLOCK_K`` grid
deepspeed/ops/triton_ops/subchannel_quant.py:307
↓ 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_adam_step
(param, grad, exp_avg, exp_avg_sq, step, lr, betas, eps, weight_decay, adamw_mode, bi
tests/unit/ops/adam/test_cpu_adam.py:56
↓ 2 callersFunction_reference_config
()
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:106
↓ 2 callersFunction_reference_grads
(model)
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:210
↓ 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 callersMethod_refresh_edited_gradient_overflow
(self)
deepspeed/runtime/reflow/reflow_stage3.py:1916
↓ 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:734
↓ 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:1937
↓ 2 callersFunction_registry_get
(registry: dict[str, Any], registry_key: str, default: Any = None)
deepspeed/module_inject/auto_ep_presets/base.py:304
↓ 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:410
← previousnext →2,401–2,500 of 15,767, ranked by callers