MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 2 callersFunction_join_transfer_group
()
tests/unit/checkpoint/test_affine_transfer_analysis.py:123
↓ 2 callersFunction_jsd_log_ratios
(student, teacher, global_max, log_sum_exp, beta)
deepspeed/sequence/vocab_parallel_ops.py:391
↓ 2 callersFunction_jsd_ratios
(log_q, log_p, log_beta, log_one_minus_beta)
deepspeed/ops/triton_ops/vocab_parallel_softmax.py:68
↓ 2 callersMethod_keep_in_fp32
Convert the parameters and buffers of ``module`` that it names for fp32 (keep_in_fp32.py).
deepspeed/runtime/zero/partition_parameters.py:1255
↓ 2 callersFunction_key_list_to_string
(key_list)
deepspeed/checkpoint/reshape_utils.py:76
↓ 2 callersFunction_kimi_k3_hybrid_config
Kimi-K3-0.40B: linear-attention layers on a config that also carries MLA fields. `linear_attn_config` gives `num_heads: 8, head_dim: 32`, so its
tests/unit/runtime/zero/test_per_head_muon.py:448
↓ 2 callersFunction_kv_attention_stub
(monkeypatch, **attrs)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:540
↓ 2 callersFunction_lanes
(indexed: Sequence[Tuple[int, _Operation]], processes: Sequence[int], max_elements: int)
deepspeed/checkpoint/affine_transfer_executor.py:408
↓ 2 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:1581
↓ 2 callersFunction_launch
(x, cos, sin, out, backward)
deepspeed/ops/triton_ops/fused_rotary_pos_emb.py:168
↓ 2 callersMethod_launch_non_daemonic_procs
(self, num_procs, init_method)
tests/unit/common.py:233
↓ 2 callersMethod_launch_with_file_store
(self, request, world_size)
tests/unit/common.py:358
↓ 2 callersMethod_lazy
(buffer, kind)
tests/unit/checkpoint/test_affine_transfer_executor.py:368
↓ 2 callersMethod_lazy_init_class_dict
(self)
accelerator/hpu_accelerator.py:263
↓ 2 callersMethod_lazy_init_class_dict
(self)
accelerator/supa_accelerator.py:243
↓ 2 callersMethod_lazy_init_class_dict
(self)
accelerator/cuda_accelerator.py:367
↓ 2 callersMethod_lazy_init_hp_params_optimizer_state
(self)
deepspeed/runtime/zero/stage_1_and_2.py:866
↓ 2 callersMethod_libomp_prefix
(self)
op_builder/mps/cpu_adam.py:41
↓ 2 callersMethod_link_all_hp_params
(self)
deepspeed/runtime/bf16_optimizer.py:340
↓ 2 callersFunction_link_first_half
(param)
tests/unit/runtime/zero/test_zero_tensor_fragment.py:61
↓ 2 callersFunction_llama3_inverse_frequencies
(config: Any, device: Any)
deepspeed/inference/v2/model_implementations/exaone4_5/model.py:34
↓ 2 callersMethod_lm_head_patterns
(self)
deepspeed/module_inject/auto_tp.py:728
↓ 2 callersMethod_load_global_state
(self, sd)
deepspeed/runtime/bf16_optimizer.py:701
↓ 2 callersFunction_load_native_op
Best-effort load of the segment-KI native op; None → composite. Ask the accelerator whether it registers this builder — the kernels are CUDA
deepspeed/module_inject/segment_ki.py:777
↓ 2 callersFunction_load_torch_checkpoint
(path)
tests/unit/v1/moe/test_autoep_autotp_checkpoint.py:212
↓ 2 callersFunction_load_universal_file
(universal_dir, param_name, key)
tests/unit/v1/moe/test_autoep_checkpoint.py:56
↓ 2 callersMethod_load_zero_checkpoint
(self, load_dir, tag, load_optimizer_states=True)
deepspeed/runtime/engine.py:4899
↓ 2 callersFunction_local_conv_wb
()
deepspeed/module_inject/segment_ki.py:590
↓ 2 callersMethod_local_grad_norm_squared
(self, params, counts_every_rank)
deepspeed/runtime/zero/stage3.py:2205
↓ 2 callersFunction_local_kv_tokens
(prompts, new_tokens, local_heads)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:58
↓ 2 callersFunction_log_scheduler_result
(graph_id: int, bwd: bool, scheduler_budget,
deepspeed/compile/passes/zero3_compile.py:239
↓ 2 callersMethod_loss_stage_global_rank
Global rank of the stage that computes the loss.
deepspeed/runtime/pipe/engine.py:506
↓ 2 callersMethod_make_autoep_folding_metadata
(folding_spec, *, family,
deepspeed/runtime/engine.py:4187
↓ 2 callersFunction_make_deferred_dw_config
(zero_stage, ep_size, flush_period, rows_per_expert=0)
tests/unit/v1/moe/test_autoep_grad_parity.py:772
↓ 2 callersFunction_make_offload_state_key
(key)
deepspeed/runtime/utils.py:1229
↓ 2 callersMethod_make_rollout
(self, tok)
tests/unit/module_inject/test_segment_ki_kernels.py:596
↓ 2 callersFunction_make_zero2_config
()
tests/unit/v1/moe/test_autoep_grad_parity.py:51
↓ 2 callersMethod_mark_uc_metadata
(self)
deepspeed/module_inject/layers.py:2362
↓ 2 callersMethod_master_pinned_at_construction
Whether _create_fp32_partitions pinned this sub-group's CPU master partition (offload_optimizer.pin_memory; NVMe-swapped sub-groups are manage
deepspeed/runtime/zero/stage3.py:3101
↓ 2 callersFunction_masters
(engine)
tests/unit/checkpoint/test_fp32_master_stage3_bf16.py:66
↓ 2 callersFunction_match_outputs
(ref, tgt)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:52
↓ 2 callersMethod_matches_glob
(self, rel_posix: str, globs: tuple[str, ...])
ci/tests_fetcher.py:471
↓ 2 callersFunction_measured_margin
The share of the device the allocator holds without using, clamped to a calibrated range.
deepspeed/compile/passes/offload_activation.py:130
↓ 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:3844
↓ 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:2561
↓ 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:2810
↓ 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:1560
↓ 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:1586
↓ 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 callersMethod_optimizer_step
(self, sub_group_id)
deepspeed/runtime/superoffload/superoffload_stage3.py:98
↓ 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_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:96
← previousnext →2,301–2,400 of 15,468, ranked by callers