MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 7 callersFunctionprint_rank_0
(message)
deepspeed/compile/passes/offload_activation.py:95
↓ 7 callersMethodrandom_ltd_enabled
(self)
deepspeed/runtime/engine.py:1505
↓ 7 callersMethodreset
(self)
deepspeed/runtime/swap_tensor/utils.py:43
↓ 7 callersFunctionresolve_per_head_muon_after_sharding
Re-derive head counts from the shapes the parameters actually have. `set_optimizer_flags` runs before the engine partitions the model, so the cou
deepspeed/__init__.py:391
↓ 7 callersFunctionrun_model_step
(model, gradient_list)
tests/unit/runtime/half_precision/test_dynamic_loss_scale.py:20
↓ 7 callersMethodrun_partition_activations_test
(self, test_config, r_tol)
tests/model/Megatron_GPT2/run_func_test.py:440
↓ 7 callersFunctionset_autotp_mode
Set the DEEPSPEED_AUTOTP_MODE based on the training flag
deepspeed/module_inject/layers.py:181
↓ 7 callersMethodset_mask
Sets the predicate mask, overriding value stored in predicate iterator
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:818
↓ 7 callersMethodset_mask
Sets the predicate mask, overriding value stored in predicate iterator
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_iterator_residual_last.h:804
↓ 7 callersMethodset_rng_state
(self, new_state, device_index=None)
accelerator/hpu_accelerator.py:82
↓ 7 callersMethodset_write_position
Set the write position shared by all layers. Must be called before each graph replay. A scalar tensor preserves the fixed-batch path;
deepspeed/utils/static_cache.py:323
↓ 7 callersFunctionsetup_models_and_engines
(model_class, zero_stage, seed=42, lr=1e-3, gradient_accumulation_steps=1, **model_kwargs)
tests/unit/v1/zero/test_zero_user_backward.py:141
↓ 7 callersFunctionsharded_intermediate_dim
Utility method for getting the size of the intermediate dimension of a sharded MLP. Args: intermediate_size (int): The size of the i
deepspeed/inference/v2/model_implementations/sharding/mlp.py:65
↓ 7 callersFunctionshared_qk_value_head_ids
Which value heads a rank holds under shared-QK attention. A rank takes the value head paired with each of its query heads, then the matching
deepspeed/module_inject/fusedqkv_utils.py:283
↓ 7 callersMethodsimd_width
(self)
op_builder/cpu/reflow.py:20
↓ 7 callersFunctionsingle_all_to_all
(input, scatter_idx, gather_idx, batch_dim_i
deepspeed/sequence/layer.py:276
↓ 7 callersFunctionskip_on_device
()
tests/unit/v1/autotp/test_tp_plan_real_models.py:17
↓ 7 callersFunctionsp_size
()
deepspeed/compile/custom_ops/sp_dp_registry.py:38
↓ 7 callersMethodstart_profile
Starts profiling. Extra attributes are added recursively to all the modules and the profiled torch.nn.functionals are monkey patched.
deepspeed/profiling/flops_profiler/profiler.py:74
↓ 7 callersMethodstrided_copy
(self, dst: Optional[torch.Tensor], src: Optional[torch.Tensor],
deepspeed/module_inject/auto_tp.py:71
↓ 7 callersFunctionsub_param_map
A parameter that is several sub-parameters concatenated, each split across ranks. Fused QKV is the motivating case: the full parameter is Q then
deepspeed/checkpoint/affine.py:589
↓ 7 callersMethodsubmit
(self, request: ContinuousBatchRequest)
deepspeed/runtime/rollout/continuous_batching.py:80
↓ 7 callersMethodsubmit
(fn, *args, **kwargs)
deepspeed/runtime/reflow/reflow_stage3.py:305
↓ 7 callersFunctionswap_in_tensors
(swap_handle, tensor_buffers, swap_paths)
deepspeed/runtime/swap_tensor/utils.py:19
↓ 7 callersFunctionswap_out_tensors
(swap_handle, tensor_buffers, swap_paths)
deepspeed/runtime/swap_tensor/utils.py:24
↓ 7 callersFunctionunpermute_by_local_expert
Reverse permute_by_local_expert: restore original token order and strip padding. Args: expert_output: [N_padded, H] from expert computati
deepspeed/module_inject/auto_ep_layer.py:479
↓ 7 callersMethodupdate
Updated the running absmax used to calculate params. Function Arguments : val : The __half2 value to update the running min and max with.
csrc/includes/quantization_utils.h:177
↓ 7 callersFunctionvalidate_graph_capture_support
Return the reason graph capture cannot be used, or ``None`` if it can.
deepspeed/runtime/hybrid_engine_graph.py:198
↓ 7 callersFunctionzero3_linear_wrap
(input, weight, bias=None)
deepspeed/runtime/zero/linear.py:158
↓ 7 callersMethodzero_optimization_partition_gradients
(self)
deepspeed/runtime/engine.py:1702
↓ 6 callersMethodLongTensor
(self)
accelerator/hpu_accelerator.py:231
↓ 6 callersFunctionParamList
Helper to create a subclass of ParametrizedList with the desired `count_attr`. In this manner, we can annotate the type of a Parameter depen
deepspeed/inference/v2/model_implementations/parameter_base.py:240
↓ 6 callersMethod__init__
(self, start, numel)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:41
↓ 6 callersMethod__init__
(self, tp_world_size=1)
tests/unit/v1/autotp/test_autotp_training.py:111
↓ 6 callersFunction_as_list
(tensors)
deepspeed/runtime/pipe/dualpipev.py:26
↓ 6 callersMethod_assert_compiled_if_deferred
Fail loudly if a deferred layer is executed outside a compiled region. defer_collectives_to_compiler switches this layer's collectives off be
deepspeed/module_inject/layers.py:430
↓ 6 callersFunction_blocked_flash_testing_helper
Helper function for testing blocked flash attention. Used to enable parametrize to only set up a subset of parameters before being passed to
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_flash.py:44
↓ 6 callersFunction_build_legacy_lm_head_autotp
(model, training_mode=False)
tests/unit/module_inject/test_tp_partition_config_path.py:201
↓ 6 callersFunction_build_row_output_head_autotp
(model, head="lm_head", training_mode=False, mp_size=1, embedding_spec=False)
tests/unit/module_inject/test_tp_partition_config_path.py:217
↓ 6 callersMethod_build_tied_model
(self, seed, vocab_size, model_type="llama", padding_idx=None, tie_word_embeddings=True)
tests/unit/v1/autotp/test_autotp_training.py:526
↓ 6 callersMethod_cast_module_mixed_precision
Cast params to param_dtype; cast buffers only when buffer_dtype is set. Buffers whose names match keep_pattern stay in fp32, and so do matchi
deepspeed/runtime/engine.py:1938
↓ 6 callersFunction_check_storage
(affine_map, full, stored)
tests/unit/checkpoint/test_zero_affine.py:111
↓ 6 callersFunction_clamped_eager
The two forms as the model code writes them (GptOssExperts / DeepseekV4Experts._apply_gate).
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:261
↓ 6 callersFunction_config
(offload, gas, nvme_path=None, managed=True, precision="fp32")
tests/unit/v1/zero/test_zero3_unused_param_grads.py:74
↓ 6 callersMethod_config
(self, zero_stage, **tp_options)
tests/unit/v1/autotp/test_autotp_training.py:2265
↓ 6 callersMethod_configure_expert_parallel
Initialize AutoEP: detect MoE layers, create EP groups, replace with EP-enabled layers.
deepspeed/runtime/engine.py:828
↓ 6 callersFunction_conform_rows
Trim or zero-extend ``tensor`` to ``shape``'s row count. DeepEP returns whole buffers sized for the worst case, but autograd checks a gradien
deepspeed/module_inject/auto_ep_comm.py:469
↓ 6 callersFunction_contradicting_single_rank_pg_error
Detect the silent single-rank fallback described in #8084. When a multi-process launcher (``deepspeed``, ``torchrun``, accelerate, ...) sets ``WO
deepspeed/runtime/zero/partition_parameters.py:912
↓ 6 callersFunction_ensure_dc_ops
()
tests/unit/v1/compile/test_offload_opt_states.py:40
↓ 6 callersFunction_ensure_divisibility
Ensure that numerator is divisible by the denominator.
deepspeed/utils/groups.py:73
↓ 6 callersMethod_get_param_swap_info
(self, parameter)
deepspeed/runtime/swap_tensor/optimizer_utils.py:536
↓ 6 callersMethod_get_zero_param_shapes
Returns a dict of name to shape mapping, only for the flattened fp32 weights saved by the optimizer. the names are exactly as in state_dict. T
deepspeed/runtime/engine.py:5647
↓ 6 callersMethod_gradient_stream_safety_enabled
(self)
deepspeed/runtime/zero/stage_1_and_2.py:1522
↓ 6 callersFunction_has_moments
(engine)
tests/unit/checkpoint/test_fp32_master_only.py:86
↓ 6 callersMethod_is_vocab_parallel_lm_head
(self, child, name)
deepspeed/module_inject/auto_tp.py:740
↓ 6 callersFunction_load_consolidated
(output_dir, param_name, state_name='fp32')
tests/unit/checkpoint/test_autoep_affine_universal.py:38
↓ 6 callersFunction_log_softmax
(logits, global_max, log_sum_exp)
deepspeed/sequence/vocab_parallel_ops.py:172
↓ 6 callersMethod_log_timers
(self, name_list, force=False)
deepspeed/runtime/swap_tensor/optimizer_utils.py:553
↓ 6 callersMethod_loss_scale_update_and_overflow_cleanup
(self)
deepspeed/runtime/zero/stage3.py:3071
↓ 6 callersMethod_maybe_reduce_autoep_folding_tp_gradient
(self, param, grad)
deepspeed/runtime/zero/stage_1_and_2.py:1270
↓ 6 callersFunction_mock_accelerator
Dress a patched accelerator as graph-capable or not, independent of the real device.
tests/unit/hybrid_engine/test_he_graph.py:55
↓ 6 callersMethod_model
(self, tie_word_embeddings, hf_tp_plan=True, seed=0)
tests/unit/v1/autotp/test_autotp_training.py:2241
↓ 6 callersFunction_next_opt_id
()
tests/unit/v1/ops/test_reflow_cpu_optimizers.py:36
↓ 6 callersMethod_prepare_sub_group
(self, sub_group_id, timer_names)
deepspeed/runtime/zero/stage3.py:2950
↓ 6 callersMethod_record_gradient_stream
(self, tensor, stream)
deepspeed/runtime/zero/stage_1_and_2.py:1517
↓ 6 callersMethod_reduce_op
Helper function. If the op provided is not a torch.dist.ReduceOp, convert it and return
deepspeed/comm/torch.py:631
↓ 6 callersFunction_ref_swiglu
(gate, up)
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:53
↓ 6 callersFunction_register_zero3_and_prefetch
()
tests/unit/compile/test_pass_contract.py:47
↓ 6 callersMethod_release_sub_group
(self, sub_group_id, timer_names)
deepspeed/runtime/zero/stage3.py:2979
↓ 6 callersMethod_replace_last_linear_module
(self, r_module)
deepspeed/module_inject/auto_tp.py:1231
↓ 6 callersFunction_resolve_autoep_partition
(current_param, ckpt_dict, full_hp_param, ep_rank)
deepspeed/checkpoint/universal_checkpoint.py:39
↓ 6 callersFunction_save_checkpoint
(file_path, chkpt_sd)
deepspeed/checkpoint/ds_to_universal.py:126
↓ 6 callersFunction_scheduled_names
(graph, scheduler_budget=None)
tests/unit/v1/compile/test_list_schedule.py:227
↓ 6 callersMethod_should_materialize_tp_partition
(self)
deepspeed/module_inject/layers.py:570
↓ 6 callersFunction_skip_amd_fp16
(grad_dtype)
tests/unit/v1/ops/test_reflow_cpu_optimizers.py:42
↓ 6 callersFunction_tiny_qwen3
()
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:230
↓ 6 callersFunction_tol
(dtype)
tests/unit/v1/ops/triton_ops/test_swiglu_triton.py:45
↓ 6 callersFunction_tol
(dtype)
tests/unit/v1/ops/triton_ops/test_group_gemm_triton.py:28
↓ 6 callersFunction_train
Train on the same SAMPLES_PER_STEP samples per step, split into `gas` micro-batches.
tests/unit/v1/ops/muon/test_muon_zero3_grad_accum.py:55
↓ 6 callersMethod_update_autotune_table
()
deepspeed/ops/transformer/inference/triton/matmul_ext.py:466
↓ 6 callersMethod_update_scale
(self, skip)
deepspeed/runtime/fp16/fused_optimizer.py:404
↓ 6 callersFunction_validate_handle_state
(handle, single_submit, overlap_events)
tests/unit/v1/nvme/test_gds.py:59
↓ 6 callersFunction_validate_handle_state
(handle, single_submit, overlap_events)
tests/unit/v1/nvme/test_aio.py:76
↓ 6 callersMethod_wait_for_accum_gradient
Wait until the requested gradient buffers are no longer used by accumulation workers.
deepspeed/runtime/reflow/reflow_stage3.py:1052
↓ 6 callersFunction_weighted_by_probs
(log_probs, values, probs=None)
deepspeed/sequence/vocab_parallel_ops.py:176
↓ 6 callersFunction_with_meta
(node, tensor_size=0, device_time=0)
tests/unit/v1/compile/test_list_schedule.py:73
↓ 6 callersMethodaccum_ref
csrc/deepspeed4science/evoformer_attn/gemm/mma_from_smem.h:116
↓ 6 callersMethodactivate_phase
Expose the layers of ``phase`` as this module's forward pass.
deepspeed/runtime/pipe/dualpipev.py:62
↓ 6 callersFunctionadd_bias
(input, bias, training=None)
deepspeed/module_inject/layers.py:192
↓ 6 callersMethodall_gather_coalesced
(self, output_tensors, input_tensors, group=None, async_op=False)
deepspeed/comm/torch.py:481
↓ 6 callersMethodapply
csrc/includes/reflow_cpu_affinity.h:23
↓ 6 callersFunctionassert_fn
(model_w_task)
tests/unit/inference/test_inference.py:230
↓ 6 callersMethodasync_pread
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:379
↓ 6 callersMethodattention
Returns attention qkv and dense parameters weight: (3*hidden, hidden) and (hidden, hidden) bias: (3*hidden) and (hidden)
deepspeed/module_inject/policy.py:34
↓ 6 callersMethodavailable_memory
(self, device_index=None)
accelerator/hpu_accelerator.py:156
↓ 6 callersMethodaverage_tensor
(self, tensor: torch.Tensor, communication_data_type: torch.dtype)
deepspeed/runtime/zero/stage_1_and_2.py:1714
↓ 6 callersFunctionbasic_parser
()
tests/unit/launcher/test_ds_arguments.py:12
↓ 6 callersMethodbegin_sequence
Decide once, before any decode step, whether this sequence uses graphs. Args: num_decode_steps: How many single-token forwards th
deepspeed/runtime/hybrid_engine_graph.py:75
↓ 6 callersFunctionbwc_pipeline_parallel_world_size
Backwards-compatible way of querying the pipeline parallel world size.
deepspeed/utils/bwc.py:81
↓ 6 callersFunctioncalibrate_links
Time local copies, process pairs one way and both ways, relays, and fans. Every process of ``group`` (the default group unless given) must call t
deepspeed/checkpoint/affine_transfer_calibration.py:105
← previousnext →701–800 of 15,468, ranked by callers