MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 1 callersMethodrefill
(self)
deepspeed/runtime/sequence_parallel/ulysses_sp.py:646
↓ 1 callersFunctionrefine_args
(args)
deepspeed/nvme/ds_aio_args.py:18
↓ 1 callersFunctionrefine_args
(args)
csrc/aio/py_test/ds_aio_args.py:18
↓ 1 callersFunctionrefine_integer_value
(value)
deepspeed/nvme/test_ds_aio_utils.py:63
↓ 1 callersFunctionrefine_integer_value
(value)
csrc/aio/py_test/test_ds_aio_utils.py:63
↓ 1 callersFunctionregister
(addr, num_bytes, flag)
tests/unit/v1/pin_memory/test_pin_memory.py:497
↓ 1 callersFunctionregister_compile_pass
(name: str, opt_pass_fn, contract=None)
deepspeed/compile/backend.py:101
↓ 1 callersMethodregister_compile_pass
(self, pass_name: str, pass_fn: Callable, contract=None)
deepspeed/runtime/engine.py:6100
↓ 1 callersMethodregister_current_graph
(self, grad, state)
deepspeed/runtime/engine.py:467
↓ 1 callersFunctionregister_custom_ops
()
deepspeed/compile/inductor.py:228
↓ 1 callersMethodregister_grad_acc_post_hook
Register a callback to run when all gradient hooks have fired.
deepspeed/runtime/base_optimizer.py:475
↓ 1 callersMethodregister_group
csrc/adam/cpu_adam_impl.cpp:540
↓ 1 callersFunctionregister_groups
groups: List[List[int]], e.g. [[0,1],[2,3]]
deepspeed/compile/custom_ops/sp_dp_registry.py:11
↓ 1 callersMethodregister_hooks_on_outputs
Register backward hooks on all output tensors that have grad_fn. Args: outputs: The outputs from the forward pass. Can b
deepspeed/runtime/utils.py:1434
↓ 1 callersMethodregister_host_memory
(self, address, num_bytes)
accelerator/npu_accelerator.py:191
↓ 1 callersFunctionregister_long_context_checkpointing
Splice the custom should_ban_recomputation into solve_min_cut. Uses inspect.getsource to extract solve_min_cut's source, replaces the origina
deepspeed/compile/passes/long_context_checkpointing.py:74
↓ 1 callersMethodregister_replicated_grad_hooks
Sum the gradients of replicated parameters marked grad_allreduce across the TP group. A parameter left replicated but applied to sharded acti
deepspeed/module_inject/auto_tp.py:940
↓ 1 callersFunctionregular_read
csrc/aio/common/deepspeed_aio_common.cpp:337
↓ 1 callersMethodrelease
Give up one holder's claim, freeing the buffer at the last one. Collective at the point it frees, so every rank has to release the sa
deepspeed/module_inject/auto_ep_comm.py:362
↓ 1 callersMethodreleaseParam
csrc/compile/z3.cpp:216
↓ 1 callersMethodrelease_and_reset_all
release all module parameters
deepspeed/runtime/zero/partitioned_param_coordinator.py:537
↓ 1 callersMethodrelease_backward_leftovers
Release params of submodules whose post-backward hook never fired (e.g. modules fed a no-grad input). Cheap no-op when the backward stack is a
deepspeed/runtime/zero/parameter_offload.py:247
↓ 1 callersMethodrelease_buffers
(self)
deepspeed/runtime/swap_tensor/async_swapper.py:53
↓ 1 callersMethodrelease_gathered_params
Explicitly release gathers when pending backward work is intentionally abandoned.
deepspeed/compile/z3_eager_fallback.py:234
↓ 1 callersFunctionrelease_grad_buffer
(group_idx=None)
deepspeed/compile/init_z1_and_2.py:179
↓ 1 callersMethodrelease_mlp
Release for MLP parameters (as well as any aliases).
deepspeed/module_inject/containers/features/hybrid_engine.py:142
↓ 1 callersMethodrelease_qkv
Release for QKV parameters (as well as any aliases).
deepspeed/module_inject/containers/features/hybrid_engine.py:131
↓ 1 callersMethodrelease_reserved_buffers
(self)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:381
↓ 1 callersMethodrelease_swap_buffers
(self, parameter)
deepspeed/runtime/swap_tensor/pipelined_optimizer_swapper.py:190
↓ 1 callersMethodrelease_user_context_claim
Drop fallback provenance once neither a graph nor user context protects the parameter.
deepspeed/compile/z3_eager_fallback.py:145
↓ 1 callersMethodrelease_workspace
csrc/transformer/inference/includes/inference_context.h:239
↓ 1 callersMethodrelease_workspace
()
op_builder/supa/inference.py:57
↓ 1 callersMethodrelease_writer
(self)
deepspeed/runtime/model_checkpointing/writer_factory.py:63
↓ 1 callersMethodreloadParameter
csrc/compile/z3.cpp:421
↓ 1 callersMethodreloadTensor
csrc/compile/z3.cpp:370
↓ 1 callersFunctionreload_adam_states
Move optimizer states to device. Note that this assumes the state structure of DeepSpeed Adam.
deepspeed/runtime/zero/offload_states.py:78
↓ 1 callersFunctionremaining_timeout
()
ci/torch_latest.py:1008
↓ 1 callersFunctionremove_comments
(line, comment_strs)
scripts/replace_copyright.py:151
↓ 1 callersFunctionremove_dupe_dicts
Removes duplicate dictionaries from a list. Uses list comprehension and the json library to sort and stringify each dictionary and the set data type
deepspeed/autotuning/utils.py:216
↓ 1 callersMethodremove_hooks
Remove all registered hooks.
deepspeed/runtime/utils.py:1458
↓ 1 callersMethodremove_mask_prepare_for_bloom
(self)
deepspeed/inference/engine.py:212
↓ 1 callersFunctionremove_pad_in_opt_state
(optimizer_state, num_params)
tests/unit/checkpoint/test_universal_checkpoint.py:54
↓ 1 callersFunctionrepack_expert_requires_grad_flags
Return the requires_grad flags for repacked (w1, w2, w3) tensors.
deepspeed/moe/ep_repack.py:83
↓ 1 callersFunctionrepack_expert_source_params
Return the source parameters that feed each repacked (w1, w2, w3) tensor. A caller-supplied optimizer has already sorted the source parameters in
deepspeed/moe/ep_repack.py:100
↓ 1 callersMethodrepeat_kv
(hidden_states: torch.Tensor, n_rep: int)
deepspeed/ops/transformer/inference/op_binding/softmax_context.py:39
↓ 1 callersFunctionrepeat_kv_cache
csrc/transformer/inference/csrc/pt_binding.cpp:1951
↓ 1 callersMethodrepeat_kv_cache
(self, source_batch_size, repeats)
deepspeed/ops/transformer/inference/op_binding/workspace.py:199
↓ 1 callersMethodrepeat_kv_cache_fallback
(self, source_batch_size, repeats)
deepspeed/ops/transformer/inference/op_binding/workspace.py:231
↓ 1 callersMethodreplace_fake_tensors_with_real_params
Replace fake tensors in sample_inputs with real parameters from DSGraphParamManager Args: sample_inputs: The input tensors that m
deepspeed/compile/graph_param.py:86
↓ 1 callersFunctionreplace_node_users
(node: Node, replacement: Node, exclude: Optional[List[Node]] = None)
deepspeed/compile/fx.py:209
↓ 1 callersFunctionreplace_with_policy
(child, policy_cls, triangular_masking, inference=False, layer_id=0)
deepspeed/module_inject/replace_module.py:216
↓ 1 callersFunctionreport_results
(args, read_op, pool_results)
deepspeed/nvme/test_ds_aio_utils.py:31
↓ 1 callersFunctionreport_results
(args, read_op, pool_results)
csrc/aio/py_test/test_ds_aio_utils.py:31
↓ 1 callersMethodrepr
(self)
deepspeed/runtime/config_utils.py:181
↓ 1 callersFunctionrequired_minimum_torch_version
(major_version, minor_version)
deepspeed/io/utils.py:27
↓ 1 callersMethodres_add_bias
(hidden_state, residual, attn_output, attn_bias, final_bias, add_attn_bias, mp_size)
deepspeed/ops/transformer/inference/op_binding/residual_add.py:30
↓ 1 callersFunctionres_add_bias_ref
(hidden_state, residual, attn_output, attn_bias, final_bias, mp_size=1, pre_attn_norm=True)
tests/unit/ops/transformer/inference/test_residual_add.py:41
↓ 1 callersFunctionres_add_bias_ref_gptj
(hidden_state, residual, attn_output, attn_bias, final_bias, add_attn_bias, mp_size)
tests/unit/ops/transformer/inference/test_residual_add.py:49
↓ 1 callersMethodres_coef_func
(self, inp, async_op)
deepspeed/ops/transformer/inference/moe_inference.py:228
↓ 1 callersMethodreserve
Reserve a number of blocks from the cache. This will return a 1D tensor of block_ids that have been marked as reserved. Para
deepspeed/inference/v2/ragged/kv_cache.py:141
↓ 1 callersMethodreserve_available_buffers
(self)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:370
↓ 1 callersMethodreserve_partitioned_swap_space
(self, partition_num_elems)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:393
↓ 1 callersMethodreserve_slots
(self, slot_request: int)
deepspeed/autotuning/scheduler.py:267
↓ 1 callersFunctionreset
csrc/compile/deepcompile.cpp:79
↓ 1 callersMethodreset
(self)
deepspeed/utils/pin_memory_tracker.py:38
↓ 1 callersMethodreset
(self)
deepspeed/utils/static_cache.py:347
↓ 1 callersMethodreset
(self)
deepspeed/io/base_io_buffer.py:40
↓ 1 callersMethodreset
(self)
deepspeed/runtime/zero/partitioned_param_profiler.py:18
↓ 1 callersMethodreset
(self)
deepspeed/runtime/swap_tensor/utils.py:103
↓ 1 callersMethodreset
(self)
deepspeed/runtime/activation_checkpointing/offload_activations.py:294
↓ 1 callersMethodreset
(self)
deepspeed/runtime/activation_checkpointing/offload_activations.py:449
↓ 1 callersMethodreset_cache
(self)
deepspeed/ops/transformer/inference/op_binding/workspace.py:193
↓ 1 callersMethodreset_cpu_buffers
(self)
deepspeed/runtime/zero/stage_1_and_2.py:3008
↓ 1 callersMethodreset_events
(self)
deepspeed/runtime/zero/partitioned_param_profiler.py:30
↓ 1 callersMethodreset_for_new_step
Reset state at the start of each forward/backward step.
deepspeed/runtime/base_optimizer.py:162
↓ 1 callersMethodreset_max_memory_allocated
(self, device_index=None)
accelerator/hpu_accelerator.py:129
↓ 1 callersMethodreset_max_memory_cached
(self, device_index=None)
accelerator/hpu_accelerator.py:138
↓ 1 callersMethodreset_mlp
Perform any necessary resets of the model parameters for the MLP components.
deepspeed/module_inject/containers/features/hybrid_engine.py:170
↓ 1 callersMethodreset_parameters
(self)
tests/unit/hybrid_engine/test_he_lora.py:93
↓ 1 callersMethodreset_parameters
(self)
deepspeed/runtime/zero/linear.py:214
↓ 1 callersMethodreset_params
The purpose of reset params is to get the weights from the FP16 training copy of the model and copy to them to contiguous inference v
deepspeed/module_inject/containers/features/hybrid_engine.py:155
↓ 1 callersMethodreset_partition_gradient_structures
(self)
deepspeed/runtime/zero/stage_1_and_2.py:1190
↓ 1 callersMethodreset_peak_memory_stats
(self)
tests/unit/v1/compile/test_graph_profile.py:39
↓ 1 callersMethodreset_profile
Resets the profiling. Adds or resets the extra attributes.
deepspeed/profiling/flops_profiler/profiler.py:164
↓ 1 callersMethodreset_qkv
Perform any necessary resets of the model parameters for the QKV components.
deepspeed/module_inject/containers/features/hybrid_engine.py:164
↓ 1 callersMethodreset_step
indicate that we have completed one fwd+bwd for the model
deepspeed/runtime/zero/partitioned_param_coordinator.py:254
↓ 1 callersMethodreset_swap_buffers
(self)
deepspeed/runtime/zero/stage3.py:3933
↓ 1 callersMethodreset_to_init
(self)
deepspeed/runtime/data_pipeline/data_routing/scheduler.py:58
↓ 1 callersMethodreset_tokens
(initial_tokens=1)
op_builder/npu/inference.py:61
↓ 1 callersMethodreshape
(self, target_3d_desc: model_3d_desc)
deepspeed/checkpoint/zero_checkpoint.py:91
↓ 1 callersMethodreshuffle_clusters
(self, cidx)
deepspeed/runtime/data_pipeline/data_sampling/data_sampler.py:240
↓ 1 callersFunctionresidual_add_bias
(hidden_state: torch.Tensor, residual: torch.Tensor, attn_output: torch.Tensor, attn_bia
deepspeed/ops/transformer/inference/triton/residual_add.py:57
↓ 1 callersFunctionresidual_ds_implementation
(vals, bias, res, gamma, beta, epsilon)
tests/unit/ops/transformer/inference/test_layer_norm.py:80
↓ 1 callersFunctionresidual_ds_triton_implementation
(vals, bias, res, gamma, beta, epsilon)
tests/unit/ops/transformer/inference/test_layer_norm.py:84
↓ 1 callersFunctionresidual_ref_implementation
(vals, bias, res, gamma, beta, epsilon, channels, dtype)
tests/unit/ops/transformer/inference/test_layer_norm.py:68
↓ 1 callersFunctionresidual_store_ds_implementation
(vals, bias, res, gamma, beta, epsilon)
tests/unit/ops/transformer/inference/test_layer_norm.py:131
↓ 1 callersFunctionresidual_store_ref_implementation
(vals, bias, res, gamma, beta, epsilon, channels, dtype)
tests/unit/ops/transformer/inference/test_layer_norm.py:119
↓ 1 callersFunctionresolve_autoep_config_defaults
Return config with preset-level AutoEP defaults applied where the user did not override.
deepspeed/module_inject/auto_ep_presets/registry.py:102
↓ 1 callersFunctionresolve_combine_impl
Resolve combine implementation from config override or default.
deepspeed/module_inject/auto_ep_layer.py:107
↓ 1 callersFunctionresolve_controller_inputs
(env: Mapping[str, str])
ci/torch_latest.py:517
← previousnext →5,501–5,600 of 14,579, ranked by callers