MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 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:73
↓ 2 callersMethod_create_checkpoint_file
(self, save_dir, tag, zero_checkpoint)
deepspeed/runtime/engine.py:5654
↓ 2 callersMethod_create_module_forward_post_hook
(self)
deepspeed/runtime/engine.py:3098
↓ 2 callersMethod_create_module_forward_pre_hook
(self)
deepspeed/runtime/engine.py:3091
↓ 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 callersFunction_curriculum_sampler
(cluster_path)
tests/unit/runtime/test_data_efficiency.py:309
↓ 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:1369
↓ 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:1619
↓ 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:74
↓ 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:1620
↓ 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:518
↓ 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
↓ 2 callersFunction_flat_weight
(engine)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:78
↓ 2 callersMethod_flush_buffers_until_complete
(self)
deepspeed/runtime/swap_tensor/async_swapper.py:119
↓ 2 callersMethod_flush_ready_buffers
(self)
deepspeed/runtime/swap_tensor/async_swapper.py:112
↓ 2 callersFunction_folded_grads
Every gradient of the folded model, rebuilt at the reference model's names and shapes. With ``get=safe_get_full_fp32_param`` it rebuilds the fp32
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:168
↓ 2 callersFunction_folded_model
()
tests/unit/v1/moe/test_autoep_fused_parity.py:130
↓ 2 callersFunction_folded_zero2_tp2_ep4_config
()
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:187
↓ 2 callersMethod_foreach_adam_step
(tensor_lists, lr, beta1, beta2, epsilon, adam_w_mode, bias_correction1, bias_correction2,
op_builder/mps/fused_adam.py:70
↓ 2 callersMethod_forward
(self, sample, timestamp, encoder_hidden_states,
deepspeed/model_implementations/diffusers/unet.py:66
↓ 2 callersMethod_forward_attention
(self, layer_idx: int, qkv: torch.Tensor, kv_cache: torch.Tensor, ragged_batch_info
deepspeed/inference/v2/model_implementations/exaone4/model.py:144
↓ 2 callersFunction_fp32_logits
``hidden @ weight.T + bias + row_offset`` in fp32; ``row_offset`` has shape ``[tokens, 1]``. Producing fp32 straight from the GEMM, with the bias
deepspeed/sequence/linear_cross_entropy.py:79
↓ 2 callersMethod_fp32_partitions_with_own_storage
The master partitions that are not also a weight partition (see aliased_fp32_sub_groups). An aliased one has no storage of its own, so moving
deepspeed/runtime/zero/stage3.py:4339
↓ 2 callersFunction_fp32_reference_step
An fp32 eager step, independent of the kernel under test.
tests/unit/v1/moe/test_autoep_fused_parity.py:92
↓ 2 callersFunction_fp6_quantized_linear_helper
(tokens: int, in_channels: int, out_channels
tests/unit/inference/v2/modules/test_quantized_linear_module.py:86
↓ 2 callersFunction_fragment_affine_map
(numel, fragments)
deepspeed/checkpoint/zero_affine.py:38
↓ 2 callersMethod_full_gradient_edit_error
(self, error, group)
deepspeed/runtime/reflow/reflow_stage3.py:1926
↓ 2 callersFunction_full_param
(param)
tests/unit/checkpoint/test_zero_affine.py:252
↓ 2 callersMethod_fused_linear_engine
(self, model, zero_stage=0)
tests/unit/v1/autotp/test_autotp_training.py:602
↓ 2 callersFunction_gate_after_writing
(paths: tuple[str, ...], ignore: str = "")
ci/test_tests_fetcher.py:309
↓ 2 callersFunction_gate_step_after_pull_request
(pr_changes: dict[str, str], event: str, master_moves_on: bool)
ci/test_tests_fetcher.py:435
↓ 2 callersMethod_gather_and_compare_params
(self, model, torch_q, torch_o, compare_values=True)
tests/unit/v1/autotp/test_tp_plan_e2e.py:109
↓ 2 callersFunction_gather_sequence
(local: torch.Tensor, group, size: int)
deepspeed/models/glm_moe_dsa/attention.py:93
↓ 2 callersFunction_gather_tp_shards
(tensor, dim)
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:153
↓ 2 callersMethod_generate
(self, model, tokenizer, prompt)
tests/unit/hybrid_engine/test_he_llama.py:31
↓ 2 callersMethod_generate
(self, model, tokenizer, prompt)
tests/unit/hybrid_engine/test_he_all.py:31
↓ 2 callersMethod_generate_batched
(self, request, sampling, mask_padding=True)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:377
↓ 2 callersMethod_generation_kwargs
(self, sampling, attention_mask, pad_token_id, module=None)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:352
↓ 2 callersFunction_get_aio_latencies
csrc/aio/common/deepspeed_aio_common.cpp:61
↓ 2 callersMethod_get_all_zero_checkpoint_names
(self, load_dir, tag, bf16_mode)
deepspeed/runtime/engine.py:5064
↓ 2 callersMethod_get_base
(self, h, use_cuda_pinned_tensor)
tests/unit/v1/nvme/test_aio.py:437
↓ 2 callersMethod_get_buffer_names
(self)
deepspeed/runtime/engine.py:5704
↓ 2 callersFunction_get_buffer_view
(base, layout)
tests/unit/v1/nvme/test_aio.py:418
↓ 2 callersFunction_get_checkpoint_files
(checkpoint_dir, glob_pattern)
deepspeed/checkpoint/ds_to_universal.py:1079
↓ 2 callersMethod_get_checkpoint_value
(self, key)
deepspeed/checkpoint/deepspeed_checkpoint.py:217
↓ 2 callersMethod_get_cpu_offload_accumulator_slice
Return the host slice that holds this rank's running sum for ``param``.
deepspeed/runtime/zero/stage_1_and_2.py:1956
↓ 2 callersFunction_get_cpu_offload_engine
Shared async CPU-offload engine, or None to use blocking copies. Only the non-partition ``cpu_checkpointing`` path uses it; synchronized acce
deepspeed/runtime/activation_checkpointing/checkpointing.py:498
↓ 2 callersMethod_get_current_buffer
(self)
deepspeed/runtime/swap_tensor/async_swapper.py:161
↓ 2 callersFunction_get_data_parallel_world_size
Return world size for the data parallel group.
deepspeed/utils/groups.py:877
↓ 2 callersFunction_get_expert_parallel_ranks
Generate expert parallel and expert data parallel group ranks list. Example - E + M + D parallel world_size = 16 model_degree
deepspeed/utils/groups.py:570
↓ 2 callersMethod_get_fixture_kwargs
(self, request, func)
tests/unit/common.py:180
↓ 2 callersMethod_get_flattened_partition
(self, all_partition_states, group=None)
deepspeed/runtime/zero/stage3.py:3957
↓ 2 callersMethod_get_lean_tensors
(self, padded_flattened_tensor, group_tensors, paddings)
deepspeed/runtime/zero/stage3.py:3738
↓ 2 callersMethod_get_nvtx_domain
(self, domain)
accelerator/cuda_accelerator.py:238
↓ 2 callersMethod_get_optimizer_ckpt_name
(self, checkpoints_path, tag, expp_rank)
deepspeed/runtime/engine.py:4570
↓ 2 callersMethod_get_optimizer_loss_scale
(self)
deepspeed/runtime/engine.py:3980
↓ 2 callersFunction_get_padded_tensor
(src_tensor, size)
deepspeed/runtime/zero/stage_1_and_2.py:101
↓ 2 callersMethod_get_parallel_write_for_ddp
(self, dp_world_size, dp_rank)
deepspeed/runtime/model_checkpointing/data_parallel_writer_factory.py:191
← previousnext →2,201–2,300 of 15,767, ranked by callers