MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

Methodretake_workspace
(self)
deepspeed/ops/transformer/inference/op_binding/workspace.py:51
Methodretake_workspace
()
op_builder/supa/inference.py:61
Methodretake_workspace_fallback
(self)
deepspeed/ops/transformer/inference/op_binding/workspace.py:228
Methodretarget_transformers_output_recorders
( self, model: nn.Module, spec: MoELayerSpec, replacement: nn.Module,
deepspeed/module_inject/auto_ep_presets/base.py:436
Methodretarget_transformers_output_recorders
( self, model: nn.Module, spec: MoELayerSpec, replacement: nn.Module,
deepspeed/module_inject/auto_ep_presets/qwen3_5_moe.py:66
Functionrevert_transformer_layer
Revert DeepSpeed's transformer layer back to original bert-style transformer layer Arguments: orig_layer_impl (torch.nn.Module): the orig
deepspeed/module_inject/replace_module.py:548
Methodrms_mlp_gemm_bf16
(input, residual, weight_interm, weight_out, gamma, eps, interm_scale, out_scale, q_int8,
op_builder/supa/inference.py:254
Methodrms_mlp_gemm_fallback
(self, input, residual, weight_interm, weight_out, gamma, eps, interm_scale, out_scale,
deepspeed/ops/transformer/inference/op_binding/mlp_gemm.py:57
Methodrms_mlp_gemm_fp16
(input, residual, weight_interm, weight_out, gamma, eps, interm_scale, out_scale, q_int8,
op_builder/supa/inference.py:248
Functionrms_norm
deepspeed/inference/v2/kernels/core_ops/cuda_rms_norm/rms_norm.cpp:39
Functionrms_pre_norm
deepspeed/inference/v2/kernels/core_ops/cuda_rms_norm/rms_norm.cpp:75
Methodrms_qkv_gemm_bf16
(inputs, weight, q_scale, gamma, eps, q_int8, transpose)
op_builder/supa/inference.py:221
Methodrms_qkv_gemm_fallback
(input, weight, q_scale, gamma, eps, q_int8, transpose)
deepspeed/ops/transformer/inference/op_binding/qkv_gemm.py:70
Methodrms_qkv_gemm_fp16
(inputs, weight, q_scale, gamma, eps, q_int8, transpose)
op_builder/supa/inference.py:217
Methodrope_theta
The rotary base, read from wherever the installed transformers keeps it. transformers 5.0 folded the rotary settings into ``config.rope_param
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:192
Methodrope_with_cast
(q, k, cos, sin, unsqueeze_dim=1)
tests/unit/v1/ops/triton_ops/test_fused_rotary_pos_emb.py:332
Functionrow_major_strides
Element stride per axis for a densely packed tensor of this shape.
deepspeed/checkpoint/affine_geometry.py:24
Functionrows
(requests)
tests/unit/checkpoint/test_affine_replica_policy.py:350
Methodrs_fn_counter
(*a, **k)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:415
Functionrun
(num_matmuls)
tests/unit/utils/test_timer.py:24
Methodrun
(self, **fixture_kwargs)
tests/unit/common.py:483
Methodrun
(self, class_tmpdir, elastic_save, load_optim)
tests/unit/checkpoint/test_zero_optimizer.py:226
Methodrun
(self, class_tmpdir)
tests/unit/checkpoint/test_zero_optimizer.py:260
Methodrun
(self, tmpdir, affine_layout)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1681
Methodrun
(self, tmpdir)
tests/unit/checkpoint/test_autotp_uc_checkpoint.py:1887
Methodrun
(self, model_name, class_tmpdir)
tests/unit/inference/test_checkpoint_sharding.py:64
Methodrun
(use_no_sync, counts)
tests/unit/v1/zero/test_zero_coalesce_grad_reduction.py:403
Methodrun
(self, tmpdir)
tests/unit/v1/moe/test_autoep_checkpoint.py:888
Methodrun
(self, inputs, class_tmpdir)
tests/unit/v1/autotp/test_configurable_parallel_mp.py:124
Methodrun
csrc/aio/py_lib/deepspeed_aio_op_desc.cpp:83
Methodrun
csrc/aio/py_lib/deepspeed_aio_thread.cpp:24
Functionrun_experiment
(exp: dict, reservations, user_script, user_args)
deepspeed/autotuning/scheduler.py:311
Methodrun_forward
(*inputs, **kwargs)
deepspeed/runtime/hybrid_engine.py:436
Methodrun_grad_acc_post_hooks
Run all registered post hooks if backward is active.
deepspeed/runtime/base_optimizer.py:483
Methodrun_node
(self, n: torch.fx.Node)
deepspeed/compile/profilers/graph_profile.py:466
Functionrun_opt_passes
(nz3, graph_index, graph_id, gm, c
deepspeed/compile/passes/__init__.py:11
Functionrun_peer
()
tests/unit/ops/aio/test_aio_handle.py:30
Functionrun_peer
()
tests/unit/v1/nvme/test_aio_gil.py:67
Functionrun_read
(index)
tests/unit/v1/nvme/test_aio_gil.py:119
Functionrun_reads
()
tests/unit/v1/nvme/test_aio_gil.py:151
Methodrun_step
csrc/adam/cpu_adam_impl.cpp:588
Methodrun_target
()
deepspeed/compile/profilers/graph_profile.py:332
Methodrun_zero
(stage, model_dtype)
tests/unit/runtime/half_precision/test_fp8.py:26
Functionrunner_info
()
tests/unit/launcher/test_multinode_runner.py:16
Functionrvv_adam_update
csrc/includes/rvv.h:62
Methodsafely_record_unpin
(tensor)
tests/unit/v1/pin_memory/test_destroy_unpin.py:180
Methodsamples_log_interval
(self)
deepspeed/monitor/comet.py:54
Methodsanity_check
(self, ckpt_file_name)
deepspeed/runtime/state_dict_factory.py:184
Methodsave
(self, state_dict, path: str)
deepspeed/runtime/checkpoint_engine/datastates_checkpoint_engine.py:35
Methodsave
(self, state_dict, path: str)
deepspeed/runtime/checkpoint_engine/torch_checkpoint_engine.py:30
Methodsave
(self, state_dict, path: str)
deepspeed/runtime/checkpoint_engine/decoupled_checkpoint_engine.py:153
Methodsave_args_for_backward
(*all_args)
deepspeed/runtime/activation_checkpointing/checkpointing.py:582
Methodsave_exp_results_to_database
Print message when one of following condition meets + not dist.is_initialized() + dist.get_rank() in ranks if ranks is not None or ra
deepspeed/autotuning/scheduler.py:186
Methodsave_fp16_model
has been renamed to save_16bit_model, keeping this around for backwards compatibility
deepspeed/runtime/engine.py:5793
Methodsave_state_dict
(self, *args, **kwargs)
deepspeed/runtime/pipe/dualpipev.py:78
Methodsave_torch_storage_object_list
(self, storage_obj_list, save_size)
deepspeed/io/fast_file_writer.py:89
Methodsave_torch_storage_object_list
(self, storage_obj_list, save_size)
deepspeed/io/mock_file_writer.py:35
Functionsave_without_random_ltd
(model)
deepspeed/runtime/data_pipeline/data_routing/helper.py:28
Methodscale_gradient
(self, module, grad_in, grad_out)
deepspeed/runtime/fp16/loss_scaler.py:156
Methodscatter
(self, tensor, scatter_list=None, src=0, group=None, async_op=False)
deepspeed/comm/torch.py:550
Functionschedule_prefetch
(gm: GraphModule, graph_id: int, graph_order: List[Tuple[int, bool]], profiling_results,
deepspeed/compile/passes/prefetch.py:41
Methodscripted_forward
(_module, *args, **kwargs)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1260
Methodseed_everything
(seed=11)
tests/unit/v1/moe/test_moe.py:552
Methodseen_tokens
The number of tokens for this sequence that have completed a forward pass.
deepspeed/inference/v2/ragged/sequence_descriptor.py:14
Methodseen_tokens
(self)
deepspeed/inference/v2/ragged/sequence_descriptor.py:47
Methodseen_tokens
Number of tokens in the sequence that have completed a forward pass.
deepspeed/inference/v2/ragged/sequence_descriptor.py:136
Functionselect
(request)
tests/unit/checkpoint/test_affine_replica_policy.py:116
Functionselective_dequantize
csrc/fp_quantizer/fp_quantize.cpp:100
Methodselective_dequantize
(cls, val_q, scales, indexes, group_size, q_mantisa_bits, q_exponent_bits)
op_builder/hpu/fp_quantizer.py:52
Functionselective_gather
Persist high-value parameters only on the final backward graph and within measured headroom.
deepspeed/compile/passes/selective_gather.py:78
Functionselective_optimizer_step
(optimizer_z3: "DeepSpeedZeroOptimizer_Stage3")
deepspeed/runtime/zenflow/engine_stage3.py:142
MethodselfAttention_fp
(input, context, input_mask)
deepspeed/ops/transformer/inference/diffusers_attention.py:56
Functionsemantic_parameter_guard
(param)
deepspeed/compile/patch_fake_tensor.py:112
Functionsend
(tensor, dest_stage, async_op=False)
deepspeed/runtime/pipe/p2p.py:46
Functionsend
(tensor, dst, group=None, tag=0, prof=False, log_name='send', debug=get_caller_func())
deepspeed/comm/comm.py:391
Methodsend
(self, tensor, dst, group=None, tag=0)
deepspeed/comm/torch.py:513
Methodsend_backward
(phase)
deepspeed/runtime/pipe/schedule.py:387
Methodsend_forward
(phase)
deepspeed/runtime/pipe/schedule.py:377
Functionsend_obj
Send an arbitrary python object to ``dest``. Note: ``msg`` must be serializable by msgpack. WARN: This incurs a CPU -> GPU transfer and shou
deepspeed/runtime/pipe/p2p.py:96
Methodseq_batch_heads_hash
(d0, d1, h, offset_d0=0, offset_d1=0, offset_h=0)
tests/unit/v1/sequence_parallelism/test_ulysses.py:223
Functionseq_bias_add_add
csrc/spatial/csrc/pt_binding.cpp:58
Functionseq_bias_add_bias_add
csrc/spatial/csrc/pt_binding.cpp:81
Methodseq_len
(self)
deepspeed/runtime/rollout/base.py:89
Functionseq_unroll_bias_add
csrc/spatial/csrc/pt_binding.cpp:35
Functionsequential_model
()
tests/unit/pipe/test_pipe_module.py:27
Methodserialize
Serialize the model to a file. Arguments: save_path (str): Path to the file to serialize to.
deepspeed/inference/v2/engine_v2.py:251
Methodserialize_torch_dtype
(dtype: torch.dtype)
deepspeed/runtime/config_utils.py:116
MethodsetPersistent
csrc/includes/deepcompile.h:441
MethodsetUp
(self)
tests/model/BingBertSquad/BingBertSquad_run_func_test.py:39
MethodsetUp
(self)
tests/model/Megatron_GPT2/run_func_test.py:45
MethodsetUp
(self)
tests/model/Megatron_GPT2/run_checkpoint_test.py:51
MethodsetUp
(self)
tests/unit/module_inject/test_auto_ep_comm.py:129
MethodsetUp
(self)
tests/unit/module_inject/test_auto_ep_comm.py:878
Methodset_attention
(self, qkvw, qkvb, dense_w, dense_b)
deepspeed/module_inject/containers/features/split_qkv.py:14
Methodset_attn_params_wo_copy
(self, Z3_enabled=False)
deepspeed/module_inject/containers/features/split_qkv.py:126
Methodset_batch_fn
Execute a post-processing function on input data. Args: fn (function): The function to run.
deepspeed/runtime/pipe/engine.py:650
Methodset_commit_info
(self, info: CheckpointCommitInfo)
deepspeed/runtime/checkpoint_engine/checkpoint_engine.py:53
Methodset_compile_backend
(self, backend)
accelerator/hpu_accelerator.py:324
Methodset_compile_backend
(self, backend)
accelerator/supa_accelerator.py:290
Methodset_compile_backend
(self, backend)
accelerator/sdaa_accelerator.py:311
← previousnext →10,801–10,900 of 14,579, ranked by callers