Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ functions
Functions
14,579 in github.com/deepspeedai/DeepSpeed
⨍
Functions
14,579
◇
Types & classes
2,353
↳
Endpoints
92
Function
to
csrc/includes/conversion_utils.h:20
Method
to_dict
(outputs: EltwiseMultiplicationNamedTuple)
tests/unit/v1/zero/test_zero.py:821
Method
to_dict
(outputs: EltwiseMultiplicationNamedTuple)
tests/unit/v1/zero/test_zero.py:846
Method
to_dict
(outputs: Tuple[Tensor, Tensor, Tensor, Tensor])
tests/unit/v1/zero/test_zero.py:867
Method
to_dict
(outputs: List[Tensor])
tests/unit/v1/zero/test_zero.py:888
Method
to_dict
Plain scalars, so a plan can cross a process boundary without these classes.
deepspeed/checkpoint/affine_transfer.py:192
Function
to_global
csrc/includes/dequantization_utils.h:160
Method
to_heads
(t)
tests/unit/v1/compile/test_compile_autosp.py:111
Method
to_heads
(t)
tests/unit/v1/compile/test_compile_autosp.py:333
Function
to_python_float
(t)
deepspeed/runtime/fp16/loss_scaler.py:136
Function
token_classification_assert
(x, y)
tests/unit/inference/test_inference.py:209
Function
token_gather
csrc/random_ltd/pt_binding.cpp:26
Function
token_scatter_
csrc/random_ltd/pt_binding.cpp:76
Function
token_sort_
csrc/random_ltd/pt_binding.cpp:10
Method
tokenize_function
(examples)
tests/unit/runtime/zero/test_zeropp.py:326
Function
top_k_gating
Perform softmax plus atomics in order to do first pass of top_k_gating. */
deepspeed/inference/v2/kernels/ragged_ops/top_k_gating/top_k_gating.cpp:27
Method
topology
(self)
deepspeed/runtime/pipe/topology.py:401
Method
topology
ProcessTopology object to query process mappings.
deepspeed/runtime/pipe/module.py:557
Method
total_memory
(self)
tests/unit/v1/compile/test_selective_gather.py:21
Method
total_memory
(self, device_index=None)
accelerator/cpu_accelerator.py:333
Method
total_memory
(self, device_index=None)
accelerator/abstract_accelerator.py:161
Function
tp_model_init
Record tensor-parallel initialization arguments for training. Note (compatibility and initialization behavior): AutoTP sharding is appli
deepspeed/__init__.py:751
Method
tp_rank
The rank of the current process. # TODO(cmikeh2): Kind of a hack right now, but this is too verbose to use at the frequency
deepspeed/inference/v2/model_implementations/inference_model_base.py:134
Method
tp_size
The total number of processes. # TODO(cmikeh2): Kind of a hack right now, but this is too verbose to use at the frequency we
deepspeed/inference/v2/model_implementations/inference_model_base.py:144
Method
tput_log
(self, *msg)
deepspeed/runtime/pipe/engine.py:682
Function
tracked_load
(path, *args, **kwargs)
tests/unit/checkpoint/test_reshape_checkpoint.py:113
Method
tracked_sequences
Return the tracked sequences.
deepspeed/inference/v2/ragged/ragged_manager.py:169
Method
tracking_id
Return the slot in the tracking buffers used to track this sequence.
deepspeed/inference/v2/ragged/sequence_descriptor.py:157
Method
train
(stage)
tests/unit/v1/ops/muon/test_muon_overflow.py:227
Method
train
(self, mode=True)
deepspeed/runtime/hybrid_engine.py:497
Method
train_dataloader
(self)
tests/lightning/test_simple.py:50
Method
train_step
(layer, optimizer, inputs, mode)
tests/unit/v1/moe/test_autoep_unit.py:1575
Method
training_mode
(self)
deepspeed/module_inject/auto_tp.py:397
Method
training_step
(self, batch, batch_idx)
tests/lightning/test_simple.py:34
Method
transform_for_inference
Overrides the HybridEngineContainer implementation. The alternative layout of the QKV matrix for Megatron is such that each head's Q
deepspeed/module_inject/containers/features/hybrid_megatron.py:31
Method
transform_for_training
Overrides the HybridEngineContainer implementation. The alternative layout of the QKV matrix for Megatron is such that each head's Q
deepspeed/module_inject/containers/features/hybrid_megatron.py:69
Method
transform_gate_param
Ensures gate param is going to match the activation data type.
deepspeed/inference/v2/modules/implementations/moe/cutlass_multi_gemm.py:126
Method
transform_moe_mlp_1_param
Converts param to same data type as input and output. Parameters: param (torch.Tensor): Weight or bias tensor.
deepspeed/inference/v2/modules/implementations/moe/cutlass_multi_gemm.py:133
Method
transform_moe_mlp_1_param
Perform any necessary transformations of the parameter. The specific component being transformed should be inferred from the shape of
deepspeed/inference/v2/modules/interfaces/moe_base.py:45
Method
transform_moe_mlp_2_param
Converts param to same data type as input and output. Parameters: param (torch.Tensor): Weight or bias tensor.
deepspeed/inference/v2/modules/implementations/moe/cutlass_multi_gemm.py:146
Method
transform_param
(self, param: torch.Tensor)
deepspeed/inference/v2/modules/implementations/post_norm/cuda_post_ln.py:44
Method
transform_param
Converts param to same data type as input and output. Parameters: param (torch.Tensor): Weight or bias tensor.
deepspeed/inference/v2/modules/implementations/linear/blas_fp_linear.py:74
Method
transform_param
Converts param to same data type as input and output. Parameters: param (torch.Tensor): Weight or bias tensor.
deepspeed/inference/v2/modules/implementations/linear/quantized_linear.py:160
Method
transform_param
(self, param: torch.Tensor)
deepspeed/inference/v2/modules/implementations/pre_norm/cuda_pre_rms.py:54
Method
transform_param
(self, param: torch.Tensor)
deepspeed/inference/v2/modules/implementations/pre_norm/cuda_pre_ln.py:51
Method
transform_param
Perform any necessary transformations on an embedding parameter. This module assumes that all embedding parameters would require the
deepspeed/inference/v2/modules/interfaces/embedding_base.py:36
Method
transform_param
Transform a gamma/beta parameter. It is assumed that both transformations are the same. Parameters: param (torch
deepspeed/inference/v2/modules/interfaces/pre_norm_base.py:42
Method
transform_param
Transform a gamma/beta parameter. It is assumed that both transformations are the same. Parameters: param (torch
deepspeed/inference/v2/modules/interfaces/post_norm_base.py:37
Method
transformer_params
(self)
deepspeed/inference/v2/model_implementations/inference_policy_base.py:36
Function
translation_assert
(x, y)
tests/unit/inference/test_inference.py:221
Method
transpose
(self)
deepspeed/module_inject/containers/base_moe.py:76
Method
transpose
(self)
deepspeed/module_inject/containers/features/meta_tensor.py:46
Method
transpose
(self)
deepspeed/module_inject/containers/features/megatron.py:27
Method
tune
(self, sample_size=1, n_trials=1000, early_stopping=None)
deepspeed/autotuning/tuner/base_tuner.py:38
Function
two_argument_pass
(gm, real_inputs)
tests/unit/compile/test_tp_compile.py:846
Method
uattn_wrapper
( module: torch.nn.Module, query: torch.Tensor, key: torch.Tensor,
deepspeed/runtime/sequence_parallel/ulysses_sp.py:517
Method
unpack_hook
(packed)
tests/unit/runtime/zero/test_zero_linear_direct_init.py:63
Method
unregister_grad_acc_post_hooks
Remove all registered gradient accumulation post hooks.
deepspeed/runtime/base_optimizer.py:118
Method
unregister_grad_acc_post_hooks
Remove all registered gradient accumulation post hooks.
deepspeed/runtime/base_optimizer.py:479
Method
unregister_host_memory
(self, address)
tests/unit/v1/pin_memory/test_pin_memory.py:145
Method
unregister_host_memory
(self, address)
tests/unit/v1/pin_memory/test_pin_memory.py:409
Method
unregister_host_memory
(self, address)
accelerator/supa_accelerator.py:70
Method
unregister_host_memory
(self, address)
accelerator/xpu_accelerator.py:436
Method
unregister_host_memory
(self, address)
accelerator/cuda_accelerator.py:349
Method
unregister_host_memory
Unregister host memory previously registered with the device runtime.
accelerator/abstract_accelerator.py:297
Method
update
( self, key_states: torch.Tensor, value_states: torch.Tensor, layer_idx: int,
deepspeed/utils/static_cache.py:292
Method
update
(self)
deepspeed/autotuning/tuner/model_based_tuner.py:116
Method
update
Updated the running min and max used to calculate params. Function Arguments : val : The __half2 value to update the running min and max w
csrc/includes/quantization_utils.h:226
Method
update_epoch_count
(self)
deepspeed/utils/timer.py:231
Function
update_gradient_callback
(old_value, param)
tests/unit/runtime/zero/test_zero_tensor_fragment.py:375
Method
update_hook_state_and_maybe_run_epilogue
Update hook state after a gradient hook fires and run epilogue if all hooks have fired. With reentrant gradient checkpointing, count_used_par
deepspeed/runtime/base_optimizer.py:232
Method
update_hp
(self)
deepspeed/utils/tensor_fragment.py:30
Method
update_lp
(self)
deepspeed/utils/tensor_fragment.py:33
Method
update_lp_params
(self)
deepspeed/runtime/zero/stage_1_and_2.py:3280
Function
update_max_memory
(name)
deepspeed/compile/passes/offload_adam_states.py:338
Function
update_param_grad_buffer
csrc/compile/z1.cpp:130
Function
update_param_values_with_dict
(model, value_dict)
tests/unit/runtime/zero/test_zero_tensor_fragment.py:369
Function
update_selected_channels
(optimizer_z3: "DeepSpeedZeroOptimizer_Stage3", params_to_update, grad_partitions)
deepspeed/runtime/zenflow/engine_stage3.py:152
Method
update_state
csrc/includes/cpu_adagrad.h:46
Method
update_state
csrc/includes/cpu_adam.h:105
Method
update_state
csrc/xpu/includes/cpu_adagrad.h:50
Method
update_wa_env_var
(key, value)
accelerator/hpu_accelerator.py:36
Function
upsample_load_with_byte_offset
Loads a fragment from memory
csrc/deepspeed4science/evoformer_attn/iterators/epilogue_predicated_tile_iterator.h:535
Method
use_host_timers
(self)
accelerator/supa_accelerator.py:24
Method
use_host_timers
(self)
accelerator/sdaa_accelerator.py:56
Method
use_host_timers
(self)
accelerator/cpu_accelerator.py:185
Method
use_host_timers
(self)
accelerator/mlu_accelerator.py:26
Method
use_host_timers
(self)
accelerator/npu_accelerator.py:60
Method
use_host_timers
(self)
accelerator/xpu_accelerator.py:192
Method
use_host_timers
(self)
accelerator/cuda_accelerator.py:54
Method
use_host_timers
(self)
accelerator/mps_accelerator.py:37
Method
use_host_timers
(self)
accelerator/abstract_accelerator.py:23
Function
user_script_fp
(tmpdir)
tests/unit/launcher/test_user_args.py:38
Function
val1
(request)
tests/unit/comm/test_dist.py:85
Function
val2
(request)
tests/unit/comm/test_dist.py:90
Method
val_dataloader
(self)
tests/lightning/test_simple.py:53
Method
valid
Returns whether access is valid or not
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:620
Method
valid
Returns whether access is valid or not
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:1338
Method
valid
Returns whether access is valid or not
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:1540
Method
valid
Returns whether access is valid or not
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:1747
← previous
next →
14,301–14,400 of 14,579, ranked by callers