Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ functions
Functions
15,468 in github.com/deepspeedai/DeepSpeed
⨍
Functions
15,468
◇
Types & classes
2,493
↳
Endpoints
106
↓ 1 callers
Method
model_info_profile_run
Does a model information profiling experiment that collects the number of model parameters and activation memory.\ The experiment produces
deepspeed/autotuning/autotuner.py:664
↓ 1 callers
Method
model_quantize
(self, model, quantize_policy, quantize_bits, groups)
deepspeed/runtime/weight_quantizer.py:110
↓ 1 callers
Method
model_times
(self)
deepspeed/inference/engine.py:557
↓ 1 callers
Function
model_to_params
(model)
deepspeed/runtime/zero/stage3.py:4527
↓ 1 callers
Function
model_to_params
(model)
deepspeed/runtime/zero/stage_1_and_2.py:4195
↓ 1 callers
Method
moe_gate_einsum
(self, attention_output)
deepspeed/ops/transformer/inference/moe_inference.py:232
↓ 1 callers
Method
moe_res_matmul
(moe_res, coef, output)
op_builder/supa/inference.py:314
↓ 1 callers
Method
monitored_barrier
(self, group=None, timeout=None, wait_all_ranks=False)
deepspeed/comm/ccl.py:140
↓ 1 callers
Function
move
(piece)
tests/unit/checkpoint/test_affine_transfer_plan.py:1059
↓ 1 callers
Function
move_back_key
(state, key)
deepspeed/runtime/utils.py:1255
↓ 1 callers
Function
move_back_key
(state, key)
deepspeed/runtime/zero/offload_states.py:81
↓ 1 callers
Function
move_key
(state, key)
deepspeed/runtime/utils.py:1236
↓ 1 callers
Function
move_key
(state, key)
deepspeed/runtime/zero/offload_states.py:62
↓ 1 callers
Function
mpi_discovery
Discovery MPI environment via mpi4py and map to relevant dist state
deepspeed/comm/comm.py:904
↓ 1 callers
Method
mpu
(self)
deepspeed/runtime/pipe/module.py:561
↓ 1 callers
Method
multi_tensor_adam
(chunk_size, noop_flag_buffer, tensor_lists, lr, beta1, beta2, epsilon, step, adam_w_mode,
op_builder/mps/fused_adam.py:22
↓ 1 callers
Function
multiplicative_jitter
Modified from switch transformer paper. mesh transformers Multiply values by a random number between 1-epsilon and 1+epsilon. Makes model
deepspeed/moe/sharded_moe.py:55
↓ 1 callers
Method
name
()
tests/unit/inference/v2/modules/test_custom_module.py:33
↓ 1 callers
Method
name
Return a memorable, human-readable name for this module. This will be used as a key in custom inference configurations and should on
deepspeed/inference/v2/modules/ds_module.py:27
↓ 1 callers
Function
need_recompute
(n: Node)
deepspeed/compile/partitioner.py:49
↓ 1 callers
Method
needs_logging
(self, name: str, current_sample: int)
deepspeed/monitor/comet.py:80
↓ 1 callers
Method
new_pinned_device_tensor
csrc/gds/deepspeed_py_gds_handle.cpp:77
↓ 1 callers
Method
new_state
(self)
deepspeed/runtime/engine.py:459
↓ 1 callers
Method
next_batch
Select the next batch of configurations for evaluation
deepspeed/autotuning/tuner/base_tuner.py:31
↓ 1 callers
Method
num_pipe_buffers
Return the number of pipeline buffers required for this stage. This is equivalent to the maximum number of in-flight forward passes,
deepspeed/runtime/pipe/schedule.py:247
↓ 1 callers
Method
num_tuning_micro_batch_sizes
(self)
deepspeed/autotuning/autotuner.py:262
↓ 1 callers
Function
numa_cores_by_id
Return {numa_node_id: [cores]} for non-empty nodes. The key is the real system NUMA node id (so a GPU's NUMA node maps directly into this dict); e
deepspeed/runtime/reflow/reflow_utils.py:38
↓ 1 callers
Function
number_to_string
(n, postfix="", units=None, precision=2)
deepspeed/autotuning/utils.py:443
↓ 1 callers
Method
nvcc_args
(self)
op_builder/builder.py:921
↓ 1 callers
Method
nvcc_args
(self)
op_builder/evoformer_attn.py:37
↓ 1 callers
Function
nvcc_version
()
deepspeed/env_report.py:63
↓ 1 callers
Method
o_strideM
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:265
↓ 1 callers
Method
offload
(self, param)
tests/unit/ops/adam/test_zf_torch_adam.py:207
↓ 1 callers
Method
offload
(self, revert=False)
deepspeed/linear/quantization.py:78
↓ 1 callers
Method
offload
(self, argument)
deepspeed/compile/util.py:385
↓ 1 callers
Method
offloadParameter
csrc/compile/z3.cpp:420
↓ 1 callers
Method
offloadTensor
csrc/compile/z3.cpp:341
↓ 1 callers
Function
offload_adam_states
Move optimizer states to device. Note that this assumes the state structure of DeepSpeed Adam.
deepspeed/runtime/zero/offload_states.py:59
↓ 1 callers
Function
offload_opt_states_inc
(graph: Graph, graph_id: int, graph_order: List[Tuple[int, bool]], profiling_result
deepspeed/compile/passes/offload_adam_states.py:354
↓ 1 callers
Function
on_moe_layer_replaced
(replacement)
tests/unit/runtime/zero/test_autoep_zero3_init.py:102
↓ 1 callers
Function
on_stream
(stream)
tests/unit/v1/zero/test_zero2_gradient_safety.py:331
↓ 1 callers
Function
only_optimize_lora_parameters
(model)
tests/unit/hybrid_engine/test_he_lora.py:105
↓ 1 callers
Method
op_builder_dir
(self)
accelerator/supa_accelerator.py:230
↓ 1 callers
Method
op_builder_dir
(self)
accelerator/sdaa_accelerator.py:261
↓ 1 callers
Method
op_builder_dir
(self)
accelerator/mlu_accelerator.py:233
↓ 1 callers
Method
op_builder_dir
(self)
accelerator/npu_accelerator.py:302
↓ 1 callers
Method
op_builder_dir
(self)
accelerator/xpu_accelerator.py:463
↓ 1 callers
Method
op_builder_dir
(self)
accelerator/cuda_accelerator.py:353
↓ 1 callers
Function
op_enabled
(op_name)
setup.py:153
↓ 1 callers
Function
op_report
(verbose=True)
deepspeed/env_report.py:31
↓ 1 callers
Method
open_output_file
(self)
deepspeed/nvme/ds_aio_job.py:32
↓ 1 callers
Method
operator++
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:802
↓ 1 callers
Method
optimizer_legacy_fusion
(self)
deepspeed/runtime/engine.py:1616
↓ 1 callers
Function
original_tensor_match
(builder, guard, value=None)
tests/unit/compile/test_zero3_grad_dtype.py:72
↓ 1 callers
Method
overlapping_partition_gradients_reduce_epilogue
(self)
deepspeed/runtime/zero/stage_1_and_2.py:1259
↓ 1 callers
Function
overlaps_itself
Whether two positions of a view with this shape and these strides share an address. Taking the axes that move in order of stride, the view is fre
deepspeed/checkpoint/affine_geometry.py:63
↓ 1 callers
Method
overwrite_to_cpu
(self)
deepspeed/sequence/fpdt_layer.py:599
↓ 1 callers
Function
pack_f32_as_bf16_nearest
csrc/includes/simd.h:60
↓ 1 callers
Function
pack_lora_weights
(p)
deepspeed/module_inject/policy.py:202
↓ 1 callers
Function
package_versions
(packages)
ci/install_accelerate.py:21
↓ 1 callers
Function
pad_to_aligned_offset
Pad the provided offset to a well-aligned value.
deepspeed/inference/v2/model_implementations/flat_model_helpers.py:19
↓ 1 callers
Method
padding_size
()
deepspeed/runtime/zero/partition_parameters.py:1646
↓ 1 callers
Function
param_update_kernel
csrc/xpu/common/custom_cuda_kernel.dp.cpp:44
↓ 1 callers
Function
param_update_kernel_half
csrc/xpu/common/custom_cuda_kernel.dp.cpp:67
↓ 1 callers
Method
parameters
Generator of model parameters (satisfies the CheckpointEngineBase interface).
deepspeed/inference/v2/checkpoint/huggingface_engine.py:107
↓ 1 callers
Function
parse_args
(args=None)
deepspeed/launcher/launcher_helper.py:14
↓ 1 callers
Function
parse_args
()
deepspeed/launcher/launch.py:31
↓ 1 callers
Function
parse_arguments
()
deepspeed/env_report.py:167
↓ 1 callers
Function
parse_arguments
()
deepspeed/checkpoint/ds_to_universal.py:70
↓ 1 callers
Function
parse_arguments
()
deepspeed/nvme/perf_generate_param.py:15
↓ 1 callers
Function
parse_arguments
()
deepspeed/nvme/ds_aio_args.py:116
↓ 1 callers
Function
parse_arguments
()
deepspeed/nvme/parse_nvme_stats.py:20
↓ 1 callers
Function
parse_node_config
(node_config: str)
deepspeed/launcher/runner.py:267
↓ 1 callers
Function
parse_node_config_list
(node_config_list: List[str])
deepspeed/launcher/runner.py:280
↓ 1 callers
Function
parse_optim_states
(files, ds_checkpoint_dir)
deepspeed/utils/zero_to_fp32.py:200
↓ 1 callers
Function
parse_range
(rng)
deepspeed/utils/numa.py:65
↓ 1 callers
Function
parse_resource_filter
Parse an inclusion or exclusion string and filter a hostfile dictionary. String format is NODE_SPEC[@NODE_SPEC ...], where NODE_SPEC = NA
deepspeed/launcher/runner.py:292
↓ 1 callers
Function
parse_sweep_arguments
()
deepspeed/nvme/perf_run_sweep.py:66
↓ 1 callers
Method
parse_user_args
(self)
deepspeed/launcher/multinode_runner.py:43
↓ 1 callers
Function
partition_grads
(optimizer_z3, params_to_release: List[Parameter], grad_partitions: List[Tensor])
deepspeed/runtime/zenflow/engine_stage3.py:457
↓ 1 callers
Method
partition_grads
(self, params_to_release: List[Parameter], grad_partitions: List[Tensor])
deepspeed/runtime/zero/stage3.py:2239
↓ 1 callers
Function
patch_aml_env_for_torch_nccl_backend
Helper routine to get and set environment variables. This is adapted from Azure ML's documentation available from: https://azure.github.io/azu
deepspeed/comm/comm.py:964
↓ 1 callers
Function
patch_aws_sm_env_for_torch_nccl_backend
Helper routine to get and set environment variables when running inside an AWS SageMaker environment.
deepspeed/comm/comm.py:996
↓ 1 callers
Function
patch_compiler
Wrap an AOT compiler with DeepCompile rewrites and ZeRO-3 fake-shape repair.
deepspeed/compile/inductor.py:86
↓ 1 callers
Function
patch_gradient_checkpointing_layer_marker
()
deepspeed/runtime/activation_checkpointing/offload_activations.py:329
↓ 1 callers
Function
path_of
(from_process, to_process)
tests/unit/checkpoint/test_affine_transfer_analysis.py:102
↓ 1 callers
Function
peer_reached_meta
(rank, channel)
tests/unit/runtime/pipe/test_pipe_schedule.py:210
↓ 1 callers
Function
per_request
Run a ``plan_transfer``-style ``replica_selector`` as a batch policy. As in ``plan_transfer``, the selector is consulted only where a region has
deepspeed/checkpoint/affine_replica_policy.py:67
↓ 1 callers
Function
percentile
(fraction)
deepspeed/checkpoint/affine_transfer_analysis.py:209
↓ 1 callers
Function
permute_rows
``rows`` in the padded order of ``permuted_indices``, with zero rows at padding slots. This is not a general gather: ``permuted_indices`` must be
deepspeed/moe/ep_kernels.py:362
↓ 1 callers
Function
phase1_buffer
(buffer_id)
tests/unit/runtime/pipe/test_pipe_schedule.py:185
↓ 1 callers
Method
pin_empty
(self, *size, dtype, device="cpu")
accelerator/abstract_accelerator.py:354
↓ 1 callers
Method
pin_memory
(self, tensor, make_copy=True, match_shape=True)
accelerator/abstract_accelerator.py:337
↓ 1 callers
Method
pin_memory_alignment
(self)
tests/unit/v1/pin_memory/test_pin_memory.py:370
↓ 1 callers
Method
pin_memory_alignment
(self)
accelerator/npu_accelerator.py:184
↓ 1 callers
Function
plan_autoep_placement_transfer
Plan copies that move one expert parameter from ``source_placement`` to ``target_placement``. Both placements are lowered with :func:`autoep_plac
deepspeed/checkpoint/autoep_affine.py:250
↓ 1 callers
Function
plan_digest
A checksum over the schedule: geometry, addressing, endpoints and budget. Deliberately not over buffer contents -- those differ by design. This i
deepspeed/checkpoint/affine_transfer_executor.py:174
↓ 1 callers
Function
policy
(requests)
tests/unit/checkpoint/test_affine_replica_policy.py:79
↓ 1 callers
Method
pop_range
(self, domain=None)
tests/unit/utils/test_nvtx.py:96
↓ 1 callers
Method
populate_model_parameters
This model will iterate over the parameters (as provided by the checkpoint engine) and use the container map built by ``build_contain
deepspeed/inference/v2/model_implementations/inference_policy_base.py:189
← previous
next →
5,601–5,700 of 15,468, ranked by callers