MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 2 callersFunction_assert_no_less_accurate
(kernel_out, eager_out, ref, dtype)
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:286
↓ 2 callersFunction_assert_pid_gone
(pid: int)
ci/test_torch_latest.py:1130
↓ 2 callersFunction_assert_relative_tensor_error
(actual, expected, name)
tests/unit/v1/moe/test_autoep_grad_parity.py:308
↓ 2 callersFunction_assert_same_dtype_device
(actual, expected)
tests/unit/v1/moe/test_autoep_unit.py:117
↓ 2 callersMethod_assert_sparse_routes_match
(combine_weights, sparse_output)
tests/unit/v1/moe/test_moe.py:382
↓ 2 callersFunction_assert_step_matches
(fused, eager, reference)
tests/unit/v1/moe/test_autoep_fused_parity.py:249
↓ 2 callersFunction_assert_structure
AutoTP shards the attention projections only; AutoEP owns every MoE block.
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:218
↓ 2 callersMethod_assert_training_matches_reference
(self, engine, reference, vocab_parallel)
tests/unit/v1/autotp/test_autotp_training.py:240
↓ 2 callersFunction_assert_universal_expert_metadata
(universal_dir, num_experts)
tests/unit/v1/moe/test_autoep_checkpoint.py:92
↓ 2 callersMethod_assert_window_grads_match
(self, staged_windows, unstaged_windows)
tests/unit/v1/moe/test_autoep_grad_parity.py:837
↓ 2 callersMethod_assert_zero3_universal_weights_only_load
(self, tmpdir, load_kwargs)
tests/unit/v1/moe/test_autoep_checkpoint.py:595
↓ 2 callersMethod_assign_resources_to_tensor_slice
(self, slice_resources, my_slice_index, my_dp_ranks)
deepspeed/runtime/model_checkpointing/data_parallel_writer_factory.py:174
↓ 2 callersFunction_autoep_expert_param_names_by_rank
Return the AutoEP expert parameter names and each model-state file's AutoEP metadata. The metadata is keyed by ``(tp_rank, dp_rank)``, read from
deepspeed/checkpoint/ds_to_universal.py:692
↓ 2 callersMethod_autoep_expert_parameter_names
(autoep_layers, model)
deepspeed/runtime/engine.py:4788
↓ 2 callersFunction_autoep_zero12_dp_ranks
Return stage-local ZeRO DP ranks that own one EP rank's fragments.
deepspeed/checkpoint/autoep_universal.py:244
↓ 2 callersMethod_autoep_zero3_param_converter
(self, model)
deepspeed/runtime/engine.py:978
↓ 2 callersMethod_autoep_zero_optimizer_param_families
(self)
deepspeed/runtime/engine.py:4273
↓ 2 callersMethod_autotp_meta
(self, module)
deepspeed/inference/engine.py:245
↓ 2 callersFunction_autotp_stub
(*, tp_meta=None, partition_config=None, mp_group=None, mp_size=2)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:529
↓ 2 callersFunction_base_lion_step
One step of the base DeepSpeedCPULion, seeded with the given momentum, as the reference.
tests/unit/v1/ops/test_reflow_cpu_optimizers.py:222
↓ 2 callersFunction_bf16_optimizer_stub
(lp, hp_grad)
tests/unit/v1/moe/test_autoep_autotp_bf16_folding_parity.py:25
↓ 2 callersMethod_bigcode_affine_map
GPTBigCode shards the query rows and gives every rank the whole key/value block. The two segments differ only in who holds them, which is wha
deepspeed/module_inject/layers.py:1656
↓ 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_of
(piece, logical_shape)
deepspeed/checkpoint/affine.py:1037
↓ 2 callersFunction_block_scaled_tile
sum over quantization blocks ``kb`` of ``(A_q[rows, kb] . B_q[cols, kb]^T) * a_s[rows, kb] * b_s[cols, kb]``.
deepspeed/ops/triton_ops/subchannel_quant.py:178
↓ 2 callersFunction_bloom_type_transpose
(input, mp_size, meta=meta)
deepspeed/module_inject/fusedqkv_utils.py:219
↓ 2 callersMethod_bucketwise_chunk_update_worker
Generate low-precision weights for these ranges. Persist owns the master and moment updates.
deepspeed/runtime/reflow/reflow_stage3.py:1195
↓ 2 callersMethod_bucketwise_clip_range_to_valid_partition
Clamp a range to the valid partition; return None if it is entirely padding.
deepspeed/runtime/reflow/reflow_stage3.py:1181
↓ 2 callersMethod_bucketwise_commit_group_steps
(self)
deepspeed/runtime/reflow/reflow_stage3.py:1450
↓ 2 callersMethod_bucketwise_flush_all_pending
(self, use_pending_buffer, combined_scale)
deepspeed/runtime/reflow/reflow_stage3.py:1432
↓ 2 callersMethod_bucketwise_get_valid_partition_element_count
Return the flat-buffer bound, including padding between parameters.
deepspeed/runtime/reflow/reflow_stage3.py:1175
↓ 2 callersMethod_bucketwise_schedule_enqueue_range
Schedule a range enqueue off the main thread (falls back to sync if no executor).
deepspeed/runtime/reflow/reflow_stage3.py:1154
↓ 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:1873
↓ 2 callersMethod_build_indexes
(self, files: list[Path])
ci/tests_fetcher.py:327
↓ 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, *,
tests/unit/v1/moe/test_autoep_deepep_parity.py:226
↓ 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 callersMethod_cache_layer_count
(cache)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1861
↓ 2 callersMethod_cache_layer_tensors
(cache, layer_idx)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1867
↓ 2 callersMethod_call_model
Call models with only the cache arguments their HF version accepts.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1811
↓ 2 callersMethod_capture_groups
The tensor-parallel groups whose collectives a decode forward runs.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1246
↓ 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:5831
↓ 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:250
↓ 2 callersFunction_check_fused_rms_norm_matches_hf_forward_and_backward
(dtype, shape)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:167
↓ 2 callersFunction_check_fused_rms_norm_width_one_has_nonzero_input_gradient
(dtype, n_rows=257)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:196
↓ 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_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:2166
↓ 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:211
↓ 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:2396
↓ 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:763
↓ 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_commit_decoupled_checkpoint
(self)
deepspeed/runtime/engine.py:5256
↓ 2 callersMethod_common_checkpoint_state
(self, module_state_dict, zero_optimizer_state, save_frozen_param)
deepspeed/runtime/engine.py:5318
↓ 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:44
↓ 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:2777
↓ 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:660
↓ 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:2799
↓ 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:5895
↓ 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:1554
↓ 2 callersMethod_continuous_prefill
(self, module, static_cache_type,
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1441
↓ 2 callersMethod_continuous_prefill_cache
(self, module, static_cache_type,
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1650
↓ 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:3109
↓ 2 callersFunction_copy_tensor_meta
(src: Node, dst: Node)
deepspeed/compile/passes/offload_activation.py:248
← previousnext →2,101–2,200 of 15,767, ranked by callers