MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 2 callersMethod_check_offload
(self, zero_stage, included_state, before_first_step)
tests/unit/v1/zero/test_offload_states.py:309
↓ 2 callersMethod_check_read
(self, h, tmpdir)
tests/unit/v1/nvme/test_aio.py:492
↓ 2 callersFunction_check_replace_rms_norm_copy_uses_its_own_epsilon
(device, copy_module)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:502
↓ 2 callersFunction_check_replace_rms_norm_model_round_trip_preserves_outputs_and_gradients
(device)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:528
↓ 2 callersFunction_check_shard_widths
Validate a layer's per-rank widths against the sub-parameters they describe. Partition and gather have to agree on where every sub-parameter was
deepspeed/module_inject/layers.py:2153
↓ 2 callersFunction_checkpoint_autoep_layers
(engine, *, use_reentrant=False, nested=False)
tests/unit/v1/moe/test_autoep_deepep_parity.py:135
↓ 2 callersMethod_checkpoint_group_state_dicts
(self, all_state_dict, group_id)
deepspeed/runtime/zero/stage_1_and_2.py:3539
↓ 2 callersFunction_checkpoint_parallel_metadata
(mpu)
deepspeed/runtime/engine.py:427
↓ 2 callersMethod_choose_module_key
(self, sd)
deepspeed/runtime/state_dict_factory.py:139
↓ 2 callersFunction_clamped_reference
Eager expression in float32 on the same inputs, rounded once to the input dtype; optionally its gradients (with grad_out also upcast), rounded the
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:270
↓ 2 callersMethod_clean_inflight_param_registry
(self)
deepspeed/runtime/zero/partitioned_param_coordinator.py:206
↓ 2 callersFunction_cleanup_sandbox
(sandbox: Any)
ci/torch_latest.py:1603
↓ 2 callersFunction_clear_interpreter_env
Release FX interpreter references so profiling outputs do not remain live.
deepspeed/compile/profilers/graph_profile.py:134
↓ 2 callersMethod_clear_muon_allgather_buffers
(self)
deepspeed/runtime/zero/stage3.py:2395
↓ 2 callersFunction_clone_world_group
Create a clone of the world group Note: We need to clone the dist world group because we use dist.get_global_rank() utility function i
deepspeed/utils/groups.py:742
↓ 2 callersMethod_close_pool
(self, pool, num_procs, force=False)
tests/unit/common.py:374
↓ 2 callersMethod_coalesce_bucketwise_h2d_events
Return one event covering all pending bucketwise H2D copies.
deepspeed/runtime/reflow/reflow_stage3.py:486
↓ 2 callersFunction_colliding_strided_map
()
tests/unit/checkpoint/test_affine_shard_map.py:559
↓ 2 callersFunction_column_split_qkv_map
Fused QKV split along columns, so every piece writes a few columns of each shard row.
tests/unit/checkpoint/test_affine_shard_map.py:511
↓ 2 callersMethod_combine_output_splits
Join the splits of the output into a single result. Args: outputs (List[Any]): The reduced outputs for each output split.
deepspeed/runtime/zero/tiling.py:195
↓ 2 callersMethod_common_checkpoint_state
(self, module_state_dict, zero_optimizer_state, save_frozen_param)
deepspeed/runtime/engine.py:5219
↓ 2 callersMethod_compare
(self, device, dtype, activation, gate_up_impl, deferred)
tests/unit/v1/moe/test_autoep_expert_activation.py:615
↓ 2 callersFunction_compare_optimizers
(model_size, param1, optimizer1, param2, optimizer2)
tests/unit/ops/adam/test_cpu_adam.py:41
↓ 2 callersMethod_complete_swap_out
(self, swap_out_type)
deepspeed/runtime/swap_tensor/pipelined_optimizer_swapper.py:198
↓ 2 callersFunction_compute
(module, *inputs, do_checkpoint=False)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:19
↓ 2 callersFunction_config
(zero_stage, dtype)
tests/unit/v1/ops/muon/test_muon_checkpoint.py:25
↓ 2 callersFunction_config
(combine_impl, ep_size, mixed_precision=True)
tests/unit/v1/moe/test_autoep_fused_parity.py:57
↓ 2 callersMethod_config
(self, route, **kwargs)
tests/unit/v1/moe/test_autoep_expert_activation.py:1203
↓ 2 callersMethod_configure_bf16_optimizer
(self, optimizer)
deepspeed/runtime/engine.py:2749
↓ 2 callersMethod_configure_gathered_column_tie_fallbacks
Configure a replicated fallback for gathered output layers tied to embeddings.
deepspeed/module_inject/auto_tp.py:911
↓ 2 callersMethod_configure_master_weights
Common validation and dtype selection for ZeRO optimizer master-weight settings. Optionally accepts callables that enforce backend-sp
deepspeed/runtime/base_optimizer.py:515
↓ 2 callersMethod_configure_train_batch_size
(self)
deepspeed/runtime/config.py:654
↓ 2 callersMethod_configure_zenflow
Configure ZenFlow optimizer
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:111
↓ 2 callersMethod_configure_zero_optimizer
(self, optimizer)
deepspeed/runtime/engine.py:2771
↓ 2 callersFunction_confirm
Resolve candidates against the shape. Returns (num_heads or None, reason). Only an exact `rows == heads * width` confirms a candidate. Several ca
deepspeed/__init__.py:258
↓ 2 callersMethod_consolidated_16bit_state_dict
Consolidate the 16-bit state dictionary.
deepspeed/runtime/engine.py:5796
↓ 2 callersMethod_consume_mark
(self, tensor: torch.Tensor)
deepspeed/runtime/activation_checkpointing/offload_activations.py:424
↓ 2 callersFunction_context_parallel
``(group, size, rank)`` of the context-parallel group, or ``(None, 1, 0)``.
deepspeed/models/glm_moe_dsa/attention.py:57
↓ 2 callersMethod_continuous_cache_memory_bytes
(cache, attention_mask, write_positions)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1336
↓ 2 callersMethod_continuous_prefill
(self, module, static_cache_type,
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1223
↓ 2 callersMethod_continuous_prefill_cache
(self, module, static_cache_type,
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1432
↓ 2 callersFunction_conv_gradient
(seed=0)
tests/unit/v1/ops/muon/test_muon_conv.py:31
↓ 2 callersMethod_convert_to_zero_parameters
(self, param_list)
deepspeed/runtime/zero/partition_parameters.py:1204
↓ 2 callersMethod_convert_unpadded_rigid_optimizer_state
(self, current_rank_sd)
deepspeed/runtime/zero/stage_1_and_2.py:3632
↓ 2 callersMethod_copy_pinned_master_to_device
Copy the pinned CPU master partition ``src`` into the low-precision device partition ``dst``. The master goes to the device in its own dtype
deepspeed/runtime/zero/stage3.py:3108
↓ 2 callersFunction_copy_tensor_meta
(src: Node, dst: Node)
deepspeed/compile/passes/offload_activation.py:248
↓ 2 callersFunction_count_deepep_combines
Counts forward combines; the backward of a dispatch combines through combine_with_weight_grad.
tests/unit/v1/moe/test_autoep_deepep_parity.py:146
↓ 2 callersFunction_count_deleted_fds
How many fds in /proc/self/fd point at a now-deleted file located under target_dir? Restricting to target_dir avoids false positives from unre
tests/unit/v1/nvme/test_fast_file_writer_fd_close.py:42
↓ 2 callersFunction_count_replays
(monkeypatch, accelerator)
tests/unit/v1/test_hybrid_engine_rollout_v1.py:69
↓ 2 callersMethod_create_checkpoint_file
(self, save_dir, tag, zero_checkpoint)
deepspeed/runtime/engine.py:5555
↓ 2 callersMethod_create_module_forward_post_hook
(self)
deepspeed/runtime/engine.py:3070
↓ 2 callersMethod_create_module_forward_pre_hook
(self)
deepspeed/runtime/engine.py:3063
↓ 2 callersFunction_create_shard_offsets_graph
Graph mapping the (dynamic) sequence length to this rank's (start, end) shard offsets.
tests/unit/v1/compile/test_compile_autosp.py:1364
↓ 2 callersMethod_create_static_cache
Construct StaticCache across Transformers' batch-size API variants.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1620
↓ 2 callersFunction_debug_validate_restore_coverage
(payload: RoutedAssignmentPayload, ctx: RestoreContext, all_token_indices
deepspeed/moe/ep_tp_dispatch.py:364
↓ 2 callersMethod_decode
(self, x, return_dict=True, generator=None)
deepspeed/model_implementations/diffusers/vae.py:34
↓ 2 callersFunction_deepseek_v2_lite_mla_config
()
tests/unit/runtime/zero/test_per_head_muon.py:363
↓ 2 callersFunction_dequantize_as
(fpq, weight, dtype)
tests/unit/ops/fp_quantizer/test_fp8_gemm.py:27
↓ 2 callersMethod_dequantize_fp32
(quantized_data, params, groups)
op_builder/npu/quantizer.py:132
↓ 2 callersMethod_dequantize_inference_groups
Asymmetric inference dequantization: value / scale + min, in fp16. The inference weight-quantization path stores one scale and one minimum
op_builder/npu/quantizer.py:260
↓ 2 callersMethod_diff_files
Return (changed, deleted) repo-root-relative paths for ``base_rev..HEAD``. 'changed' = added / modified / renamed-new / copied-new; 'deleted'
ci/tests_fetcher.py:235
↓ 2 callersFunction_digest_words
(words: torch.Tensor, *, salt: int, modulus: int)
deepspeed/moe/ep_tp_dispatch.py:99
↓ 2 callersFunction_dim_zero_all_to_all_op
(input: Tensor, group_name: str)
deepspeed/sequence/layer.py:333
↓ 2 callersMethod_do_init
(self, path, skip_warmup)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:494
↓ 2 callersFunction_do_io_complete
csrc/aio/common/deepspeed_aio_common.cpp:123
↓ 2 callersFunction_do_io_submit_block
csrc/aio/common/deepspeed_aio_common.cpp:100
↓ 2 callersFunction_do_io_submit_singles
csrc/aio/common/deepspeed_aio_common.cpp:74
↓ 2 callersFunction_do_schedule_without_allgather
(scheduled: List[Node], unscheduled: List[Node], edges: Dict[Node, List[Node]],
deepspeed/compile/list_schedule.py:131
↓ 2 callersFunction_do_set_z3_leaf_modules
(model: torch.nn.Module, leaf_module_classes: Union[List[Type], List[str]],
deepspeed/utils/z3_leaf_module.py:57
↓ 2 callersMethod_downstream_stage
(self, phase)
deepspeed/runtime/pipe/dualpipev.py:168
↓ 2 callersMethod_drain
(self, num_bytes, fd, file_offset, blocking=False)
deepspeed/io/base_io_buffer.py:46
↓ 2 callersMethod_drain_io_buffer
(self, num_bytes)
deepspeed/io/fast_file_writer.py:132
↓ 2 callersMethod_drain_update_futures_collecting_h2d_events
(self, futures, publish_staged=False)
deepspeed/runtime/reflow/reflow_stage3.py:455
↓ 2 callersFunction_dualpipev_channel
(sender rank, receiver rank, kind) of a DualPipeV communication instruction.
tests/unit/runtime/pipe/test_pipe_schedule.py:146
↓ 2 callersMethod_dump_state
(self)
deepspeed/io/fast_file_writer.py:174
↓ 2 callersMethod_elapsed
(self, reset, total)
deepspeed/utils/timer.py:94
↓ 2 callersFunction_elementwise_flops_compute
(input, other)
deepspeed/profiling/flops_profiler/profiler.py:846
↓ 2 callersFunction_emit
Turn chosen (region, holder) pairs into merged segments and check the plan's budget.
deepspeed/checkpoint/affine_transfer.py:816
↓ 2 callersMethod_empty_cpu_like
(self, tensor: torch.Tensor)
deepspeed/runtime/activation_checkpointing/offload_activations.py:168
↓ 2 callersFunction_empty_grad_buffer
(param)
deepspeed/compile/init_z1_and_2.py:20
↓ 2 callersMethod_enable_mem_efficient_linear
(self)
deepspeed/runtime/zero/partition_parameters.py:407
↓ 2 callersMethod_encode
(self, x, return_dict=True)
deepspeed/model_implementations/diffusers/vae.py:77
↓ 2 callersMethod_ensure_availability_of_partitioned_params
(self, params)
deepspeed/runtime/zero/partition_parameters.py:1718
↓ 2 callersMethod_ensure_quantized
(self, tensor: torch.Tensor)
deepspeed/linear/quantization.py:58
↓ 2 callersMethod_estimate_continuous_cache_len
Estimate the largest cache span before the scheduler becomes empty.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1151
↓ 2 callersFunction_exchange_key
Everything two layers must agree on to share one buffer. Capacity, hidden size and top-k size the buffer itself; the queue-pair budget is fix
deepspeed/module_inject/auto_ep_comm.py:95
↓ 2 callersMethod_exec_schedule
(self, pipe_schedule)
deepspeed/runtime/pipe/engine.py:1364
↓ 2 callersFunction_execute
(plan, source_storage, target_storage)
tests/unit/checkpoint/test_autoep_affine.py:258
↓ 2 callersMethod_exit
(self, *exc)
deepspeed/runtime/zero/partition_parameters.py:2478
↓ 2 callersMethod_fill_missing_grad_partitions
Fill the gradient partitions that the accumulation window ending here did not write. A param that got no gradient in the window still has the
deepspeed/runtime/zero/stage3.py:1618
↓ 2 callersMethod_fill_param_grad_accum_attribute
(self, param)
deepspeed/runtime/zero/stage_1_and_2.py:1282
↓ 2 callersFunction_find_fusable_projections
Yield (module, projections_dict) for each module under ``root`` whose named projections are bias-free, comm-free linear-like layers with a 2-D
deepspeed/module_inject/segment_ki.py:61
↓ 2 callersFunction_find_seq_dim
Return the only dimension of ``node`` whose symbolic size is ``length``.
deepspeed/compile/passes/sp_compile.py:218
↓ 2 callersMethod_find_tied_embedding_modules
Locate every registered embedding reference sharing lm_head's weight Parameter. Safe to call at any point during replacement: _slice_embeddin
deepspeed/module_inject/auto_tp.py:774
↓ 2 callersMethod_fini
(self)
deepspeed/io/fast_file_writer.py:113
↓ 2 callersMethod_finish_continuous_profile
(self, profile, request, responses, max_batch_size, prompt_len, generation_end,
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1402
↓ 2 callersMethod_first_attention_idx
(self)
deepspeed/utils/static_cache.py:405
↓ 2 callersFunction_fits_budget
(scheduler_budget: Optional[SchedulerMemoryBudget], peak_bytes: int)
deepspeed/compile/list_schedule.py:473
↓ 2 callersFunction_fla_recurrent_inplace
FLA's fused recurrent with the final state written in place. Mirrors fla.ops.gated_delta_rule.fused_recurrent's forward wrapper — same grid,
deepspeed/module_inject/segment_ki.py:507
↓ 2 callersFunction_flat_buffer
Flatten ``tensor`` into a buffer whose storage starts at its first element. Piece offsets are storage offsets, because that is what ``torch.as_st
deepspeed/checkpoint/affine.py:517
← previousnext →2,101–2,200 of 15,468, ranked by callers