MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 2 callersMethod_autotp_meta
(self, module)
deepspeed/inference/engine.py:245
↓ 2 callersMethod_backup_cpuinfo
(self)
op_builder/builder.py:456
↓ 2 callersFunction_bf16_optimizer_stub
(lp, hp_grad)
tests/unit/v1/moe/test_autoep_autotp_bf16_folding_parity.py:25
↓ 2 callersFunction_blas_linear_helper
(tokens: int, in_channels: int, out_channels: int,
tests/unit/inference/v2/modules/test_blas_linear_module.py:49
↓ 2 callersFunction_block_n
(n_cols: int)
deepspeed/ops/triton_ops/fused_rms_norm.py:180
↓ 2 callersFunction_bloom_type_transpose
(input, mp_size, meta=meta)
deepspeed/module_inject/fusedqkv_utils.py:153
↓ 2 callersMethod_buffer_key
(self, tensor: torch.Tensor)
deepspeed/runtime/activation_checkpointing/offload_activations.py:140
↓ 2 callersFunction_build_average_tensor_optimizer
(monkeypatch, *, copy_streams)
tests/unit/v1/zero/test_overlap_comm_record_stream.py:137
↓ 2 callersMethod_build_continuous_batch
(self, request, responses)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1307
↓ 2 callersMethod_build_indexes
(self, files: list[Path])
ci/tests_fetcher.py:321
↓ 2 callersFunction_build_qwen_attn_layer
(block, hidden, tp_world_size, tp_index, meta)
tests/unit/module_inject/test_fused_repartition.py:64
↓ 2 callersFunction_build_test_engine
(backend, ep_size, seed, *, row_weighting_impl="auto", score_apply=None)
tests/unit/v1/moe/test_autoep_deepep_parity.py:202
↓ 2 callersFunction_build_unmanaged_offload_config
(zero_stage, gradient_accumulation_steps,
tests/unit/v1/zero/test_zero_user_backward.py:2081
↓ 2 callersFunction_build_writer
(file_path)
tests/unit/v1/nvme/test_fast_file_writer_fd_close.py:58
↓ 2 callersFunction_byte_cast_multiple_tensors
(typed_tensor_list)
tests/unit/utils/test_byte_cast.py:30
↓ 2 callersFunction_byte_cast_single_tensor
(typed_tensor)
tests/unit/utils/test_byte_cast.py:23
↓ 2 callersFunction_cache_config
(head_dim=None)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1757
↓ 2 callersMethod_cache_layer_count
(cache)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1295
↓ 2 callersMethod_cache_layer_tensors
(cache, layer_idx)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1301
↓ 2 callersMethod_call_model
Call models with only the cache arguments their HF version accepts.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1266
↓ 2 callersFunction_cgroup_memory
Returns (limit, available) in bytes for the cgroups that limit this process, or None. The limit is the smallest one from the process's cgroup up
accelerator/cpu_accelerator.py:131
↓ 2 callersMethod_change_recovery_script_permissions
(self, dst)
deepspeed/runtime/engine.py:5636
↓ 2 callersFunction_check_broken_transformers_moe
Reject models whose experts forward the installed transformers cannot capture in a graph.
deepspeed/compile/init_tp.py:25
↓ 2 callersFunction_check_folded_matches_reference
Compare a folded run with the unfolded reference: losses, gradients and the global norm. With ``clip`` both runs clip to that norm and take one o
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:246
↓ 2 callersFunction_check_kept_param_gradient
The kept parameter's gradient is reduced and accumulated in fp32: over two micro-batches it equals the fp32 reference exactly. bf16 keeps 8 signif
tests/unit/v1/half_precision/test_keep_in_fp32_modules.py:317
↓ 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:389
↓ 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:415
↓ 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:2071
↓ 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:3513
↓ 2 callersFunction_checkpoint_parallel_metadata
(mpu)
deepspeed/runtime/engine.py:426
↓ 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:230
↓ 2 callersMethod_clean_inflight_param_registry
(self)
deepspeed/runtime/zero/partitioned_param_coordinator.py:192
↓ 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:2237
↓ 2 callersMethod_close_pool
(self, pool, num_procs, force=False)
tests/unit/common.py:361
↓ 2 callersFunction_collect_autoep_expert_grads
(engine)
tests/unit/v1/moe/test_autoep_grad_parity.py:141
↓ 2 callersFunction_colliding_strided_map
()
tests/unit/checkpoint/test_affine_shard_map.py:556
↓ 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:508
↓ 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:5123
↓ 2 callersFunction_compare_optimizers
(model_size, param1, optimizer1, param2, optimizer2)
tests/unit/ops/adam/test_cpu_adam.py:40
↓ 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 callersMethod_config
(self, route, **kwargs)
tests/unit/v1/moe/test_autoep_expert_activation.py:691
↓ 2 callersMethod_configure_bf16_optimizer
(self, optimizer)
deepspeed/runtime/engine.py:2683
↓ 2 callersMethod_configure_gathered_column_tie_fallbacks
Configure a replicated fallback for gathered output layers tied to embeddings.
deepspeed/module_inject/auto_tp.py:817
↓ 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:2705
↓ 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:5700
↓ 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:1055
↓ 2 callersMethod_continuous_prefill
(self, module, static_cache_type,
deepspeed/runtime/rollout/hybrid_engine_rollout.py:962
↓ 2 callersMethod_continuous_prefill_cache
(self, module, static_cache_type, prompt_ids, prompt_attention, model_dtype, device,
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1131
↓ 2 callersFunction_convert_to_universal
(checkpoint_dir, universal_dir)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1040
↓ 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:3606
↓ 2 callersFunction_copy_tensor_meta
(src: Node, dst: Node)
deepspeed/compile/passes/offload_activation.py:248
↓ 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:67
↓ 2 callersMethod_create_checkpoint_file
(self, save_dir, tag, zero_checkpoint)
deepspeed/runtime/engine.py:5459
↓ 2 callersMethod_create_module_forward_post_hook
(self)
deepspeed/runtime/engine.py:2997
↓ 2 callersMethod_create_module_forward_pre_hook
(self)
deepspeed/runtime/engine.py:2990
↓ 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:839
↓ 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:361
↓ 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:229
↓ 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:327
↓ 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 callersFunction_dualpipev_channel
(sender rank, receiver rank, kind) of a DualPipeV communication instruction.
tests/unit/runtime/pipe/test_pipe_schedule.py:146
↓ 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:764
↓ 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:895
← previousnext →1,901–2,000 of 14,579, ranked by callers