MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 2 callersFunctionpass_insert_attention_all_to_all
(gm: GraphModule, real_inputs)
deepspeed/compile/passes/sp_compile.py:224
↓ 2 callersFunctionpatch_create_aot_dispatcher_function
Temporarily install graph-specific AOT compilers and return an idempotent restore callback.
deepspeed/compile/inductor.py:185
↓ 2 callersMethodpatch_init_and_builtins
(self)
deepspeed/runtime/zero/partition_parameters.py:416
↓ 2 callersFunctionpermute_rows_supported
Whether :func:`permute_rows` and :func:`unpermute_rows` can take ``rows``: 2-D, on CUDA, with Triton.
deepspeed/moe/ep_kernels.py:389
↓ 2 callersMethodpip_install
(self, *packages, index_url=None)
ci/test_torch_latest.py:299
↓ 2 callersFunctionplace_restored_optimizer_step
Give a restored ``step`` the placement torch.optim expects for its param group. Universal checkpoint loading writes ``step`` into the optimizer s
deepspeed/runtime/base_optimizer.py:36
↓ 2 callersFunctionpolicy
(requests: Sequence[ReplicaRequest])
deepspeed/checkpoint/affine_replica_policy.py:74
↓ 2 callersFunctionpolicy_to_ds_container
(**kwargs)
deepspeed/module_inject/utils.py:14
↓ 2 callersFunctionpop_backward_input
Pop captured real inputs for one DeepCompile frame.
deepspeed/compile/patch_compiled_func.py:119
↓ 2 callersFunctionpost_all2all
Post-processing function for `all2all` communication.
deepspeed/sequence/layer.py:91
↓ 2 callersMethodpost_forward
Update the state of the sequence after a forward pass. This should be called after the forward pass completes. NOTE: due to the async
deepspeed/inference/v2/ragged/sequence_descriptor.py:226
↓ 2 callersMethodpost_sub_module_backward_function
(self, sub_module)
deepspeed/runtime/zero/parameter_offload.py:591
↓ 2 callersFunctionpre_all2all_fun
Pre-processing function for `all2all` communication.
deepspeed/sequence/layer.py:106
↓ 2 callersMethodpre_forward
Update the state of the sequence before a forward pass. Arguments: num_tokens (int): The number of tokens in the sequenc
deepspeed/inference/v2/ragged/sequence_descriptor.py:216
↓ 2 callersMethodprep_iocbs
csrc/aio/common/deepspeed_aio_utils.cpp:41
↓ 2 callersFunctionprepare_operation
(args, tid, read_op)
deepspeed/nvme/io_engine.py:17
↓ 2 callersFunctionprepare_operation
(args, tid, read_op)
csrc/aio/py_test/io_engine.py:17
↓ 2 callersFunctionprepare_tp_fused_qkvw
(module, src, mp_size, gpu_index, meta: AutoTPMeta)
deepspeed/module_inject/fusedqkv_utils.py:105
↓ 2 callersMethodpreserves_storage_sharing
(self)
deepspeed/runtime/checkpoint_engine/checkpoint_engine.py:62
↓ 2 callersMethodprint_data
(self, tag)
deepspeed/checkpoint/reshape_meg_2d.py:43
↓ 2 callersFunctionprint_dist
print message when get_dist_msg() deems it should be logged, see its docstring for details. Use this function instead of `log_dist` when the log
deepspeed/utils/logging.py:126
↓ 2 callersFunctionprint_json_dist
(message, ranks=None, path=None)
deepspeed/utils/logging.py:156
↓ 2 callersFunctionprint_r0
(msg)
deepspeed/compile/passes/offload_adam_states.py:52
↓ 2 callersFunctionproductDim
csrc/includes/deepcompile.h:47
↓ 2 callersFunctionprologue
csrc/deepspeed4science/evoformer_attn/gemm/mma_from_smem.h:501
↓ 2 callersMethodpurge_state
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:206
↓ 2 callersMethodpush
csrc/deepspeed4science/evoformer_attn/epilogue/epilogue_pipelined.h:403
↓ 2 callersMethodput
(self, table)
deepspeed/ops/transformer/inference/triton/matmul_ext.py:109
↓ 2 callersMethodquantize_data
(self, data, quantize_bits, groups, key=None)
deepspeed/runtime/weight_quantizer.py:21
↓ 2 callersFunctionquantize_weight
(weight)
deepspeed/module_inject/module_quantize.py:24
↓ 2 callersMethodrandom
(self)
tests/unit/v1/compile/test_graph_profile.py:50
↓ 2 callersMethodrandom
(self)
accelerator/hpu_accelerator.py:79
↓ 2 callersMethodrandom_ltd_config
(self)
deepspeed/runtime/engine.py:1455
↓ 2 callersMethodread_data
(self, path)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:165
↓ 2 callersMethodrecord_backward_start
Record that backward reached an output from a tracked forward graph.
deepspeed/compile/z3_eager_fallback.py:174
↓ 2 callersMethodrecord_module
adds sub module to trace
deepspeed/runtime/zero/partitioned_param_coordinator.py:225
↓ 2 callersMethodrecord_user_context_claim
Record that an explicit user context overlaps this fallback-owned parameter.
deepspeed/compile/z3_eager_fallback.py:138
↓ 2 callersFunctionrecursive_getattr
Recursively get the attribute of a module. Args: model (`torch.nn.Module`) The model to get the attribute from. m
deepspeed/utils/module_utils.py:7
↓ 2 callersFunctionrecursive_setattr
Recursively set the attribute of a module. Args: model (`torch.nn.Module`) The model to set the attribute in. mod
deepspeed/utils/module_utils.py:23
↓ 2 callersFunctionreduce_all_buffers
csrc/cpu/comm/shm.cpp:127
↓ 2 callersFunctionreduce_autoep_folding_gradient
( folding_spec: ParallelFoldingSpec | None, param, grad, *, tp_group, param_name: str
deepspeed/module_inject/auto_ep_folding.py:435
↓ 2 callersFunctionreduce_boolean_flags
(flag: bool, op=all)
tests/unit/common.py:575
↓ 2 callersMethodreduce_gradients
(self, pipeline_parallel=False)
deepspeed/runtime/zero/stage_1_and_2.py:972
↓ 2 callersMethodreduce_ready_partitions_and_remove_grads
(self, param, i)
deepspeed/runtime/zero/stage_1_and_2.py:2370
↓ 2 callersMethodreduce_scatter
(self, output, input_list, op=ReduceOp.SUM, group=None, async_op=False)
deepspeed/comm/ccl.py:143
↓ 2 callersFunctionreference_implementation
(hidden_states, weights)
tests/unit/inference/v2/kernels/core_ops/test_blas_linear.py:20
↓ 2 callersFunctionreference_rms_norm
(vals: torch.Tensor, gamma: torch.Tensor, epsilon: float = 1e-5)
tests/unit/inference/v2/kernels/core_ops/test_rms_norm.py:15
↓ 2 callersMethodrefresh_fp32_params
(self)
deepspeed/runtime/bf16_optimizer.py:656
↓ 2 callersMethodregisterParam
csrc/includes/deepcompile.h:391
↓ 2 callersFunctionregister_activation_offload_ops
Give the activation-offload ops a Meta kernel so the rewritten graph can be traced. The compiled extension registers CPU and CUDA kernels for the
deepspeed/compile/passes/offload_activation.py:102
↓ 2 callersFunctionregister_backward_frame
Associate the next AOT compiled function with its DeepCompile frame.
deepspeed/compile/patch_compiled_func.py:96
↓ 2 callersFunctionregister_expert_activation
Make ``name`` selectable as a preset's or the config's ``expert_activation``.
deepspeed/moe/ep_experts.py:70
↓ 2 callersFunctionregister_fallback_no_reuse
(op_overload, never_reuse_input=False, n
deepspeed/compile/inductor.py:295
↓ 2 callersFunctionregister_last_uses
(n: Node, user: Node)
deepspeed/compile/util.py:258
↓ 2 callersFunctionregister_offload_ops
()
deepspeed/compile/passes/offload_adam_states.py:303
↓ 2 callersFunctionregister_output_backward_hooks
Convenience function to register backward hooks on outputs. This function creates a hook manager that is automatically tied to the lifetime
deepspeed/runtime/utils.py:1469
↓ 2 callersFunctionrel_diff
(A, B)
tests/unit/runtime/pipe/test_pipe.py:49
↓ 2 callersMethodrelease_available_params_for_next_forward
Restore the partitioned parameter state expected by Dynamo guards.
deepspeed/compile/z3_eager_fallback.py:180
↓ 2 callersMethodrelease_sub_module
release the parameters of a sub module, assuming they meet conditions to be released.
deepspeed/runtime/zero/partitioned_param_coordinator.py:495
↓ 2 callersMethodrelease_swap_buffers
(self, parameter)
deepspeed/runtime/swap_tensor/partitioned_optimizer_swapper.py:63
↓ 2 callersFunctionreload_adam_states_sync
()
deepspeed/compile/passes/offload_adam_states.py:184
↓ 2 callersFunctionreload_optimizer_states
Move optimizer states back to ``device``. Returns the replaced host tensors. A non-blocking copy may still be reading them on return, so call
deepspeed/runtime/zero/offload_states.py:29
↓ 2 callersMethodrepeat_shared_prefill_cache
Expand the completed prompt cache for independent response branches.
deepspeed/runtime/hybrid_engine.py:232
↓ 2 callersFunctionreplace_module
Scan the model for instances of ``orig_clas:`` to replace using ``replace_fn``. Arguments: model (torch.nn.Module): the model to augment
deepspeed/module_inject/replace_module.py:616
↓ 2 callersMethodreplace_moe_layers
Replace multiple MoE modules and batch post-replacement recorder retargeting. With ``collect_sources``, returns a ``ReplacementSourceMap``: t
deepspeed/module_inject/auto_ep.py:692
↓ 2 callersFunctionreplace_wo_policy
(module, all_reduce_linears, prefix="", state_dict=None)
deepspeed/module_inject/replace_module.py:274
↓ 2 callersMethodreplay_dispatch
Repeat a forward dispatch in the layout its handle recorded. Used when activation checkpointing recomputes a forward dispatch. The ro
deepspeed/module_inject/auto_ep_comm.py:312
↓ 2 callersFunctionrequire_tp_fused_qkvw
(name, mp_size)
deepspeed/module_inject/fusedqkv_utils.py:18
↓ 2 callersMethodreset
(self)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:360
↓ 2 callersMethodreset
(self)
deepspeed/utils/timer.py:175
↓ 2 callersMethodreset
(self)
deepspeed/utils/static_cache.py:154
↓ 2 callersMethodreset
(self)
deepspeed/sequence/linear_cross_entropy.py:343
↓ 2 callersMethodreset
Set to the initial state (no tracker).
deepspeed/runtime/activation_checkpointing/checkpointing.py:149
↓ 2 callersMethodreset_data
Clear all logged communication data.
deepspeed/utils/comms_logging.py:143
↓ 2 callersMethodreset_tokens
(self, initial_tokens=1)
deepspeed/ops/transformer/inference/op_binding/workspace.py:126
↓ 2 callersMethodreset_tokens
csrc/transformer/inference/includes/inference_context.h:212
↓ 2 callersFunctionreshape_meg_2d_parallel
(old_pp_degree, old_tp_degree, new_pp_degree, new_tp_degree, verbose=False)
deepspeed/checkpoint/reshape_meg_2d.py:80
↓ 2 callersFunctionresolve_row_weighting_impl
Resolve DeepEP row weighting implementation from config override.
deepspeed/module_inject/auto_ep_layer.py:116
↓ 2 callersFunctionresolve_score_apply_mode
Resolve score-application mode from config override or preset default.
deepspeed/module_inject/auto_ep_layer.py:97
↓ 2 callersFunctionrestore_inference_model
Restore the model from the buffer and metadata. Arguments: buffer: Buffer containing the model parameters. metadata: Metadat
deepspeed/inference/v2/model_implementations/flat_model_helpers.py:225
↓ 2 callersFunctionrestore_offloaded_activations
Restore async-offloaded inputs in place onto their saved tensors. Mutating ``t.data`` (not replacing the object) preserves autograd identity and
deepspeed/runtime/activation_checkpointing/checkpointing.py:550
↓ 2 callersMethodretake_workspace
(self)
deepspeed/ops/transformer/inference/op_binding/workspace.py:196
↓ 2 callersMethodrms_norm_fallback
(vals, gamma, epsilon)
deepspeed/ops/transformer/inference/op_binding/rms_norm.py:23
↓ 2 callersFunctionround_up_to_256
Round up to the nearest multiple of 256.
tests/unit/inference/v2/model_implementations/sharding/test_mlp_sharding.py:13
↓ 2 callersFunctionrun
(norms)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:564
↓ 2 callersFunctionrun
(x, manager=None)
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:263
↓ 2 callersMethodrun
(self, inputs, class_tmpdir, checkpoint_tag, mp_size, pp_size)
tests/unit/v1/autotp/test_configurable_parallel_pp.py:133
↓ 2 callersMethodrun
csrc/aio/py_lib/deepspeed_cpu_op.cpp:73
↓ 2 callersMethodrun_commands
(self, *commands)
ci/test_torch_latest.py:295
↓ 2 callersMethodrun_ds_config
(self, ds_config, exp_name)
deepspeed/autotuning/autotuner.py:1058
↓ 2 callersMethodrun_grad_acc_post_hooks
Run all registered post hooks if backward is active. Custom autograd Functions (e.g., TiledFusedLogitsLoss) can invoke `torch.autogra
deepspeed/runtime/base_optimizer.py:122
↓ 2 callersFunctionrun_job
(job, verbose=False)
deepspeed/nvme/ds_aio_job.py:42
↓ 2 callersFunctionrun_job
(job)
csrc/aio/py_test/ds_aio_job.py:42
↓ 2 callersMethodrun_map
(self)
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:201
↓ 2 callersMethodrun_map_reduce
(self, comm_group=None)
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:447
↓ 2 callersFunctionrun_model
(model, config_dict, hidden_dim, dtype, requires_grad)
tests/unit/runtime/zero/test_zero_leaf_module.py:276
↓ 2 callersFunctionrun_opt_passes
Apply scheduled graph passes and retain only complete post-pass memory profiles.
deepspeed/compile/backend.py:257
↓ 2 callersFunctionrun_sandbox_command
(sandbox: Any, modal_module: Any, command: RemoteCommand)
ci/torch_latest.py:783
↓ 2 callersFunctionrun_step
(x)
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:212
↓ 2 callersFunctionsafe_set_full_optimizer_state
Update the partitioned fp32 optimizer state of a low-precision (e.g., fp16) parameter. Args: param (``torch.nn.Parameter``): A mo
deepspeed/utils/tensor_fragment.py:190
← previousnext →2,801–2,900 of 14,579, ranked by callers