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
↓ 1 callers
Function
first_holder
The lowest holder location for every request, which is what ``plan_transfer`` does by default.
deepspeed/checkpoint/affine_replica_policy.py:27
↓ 1 callers
Function
fix_placeholder_meta
(graph)
deepspeed/compile/inductor.py:144
↓ 1 callers
Method
fixed_aotflags
(self)
op_builder/xpu/builder.py:123
↓ 1 callers
Function
flat_nodes_in_args
(args: List[Node])
deepspeed/compile/list_schedule.py:44
↓ 1 callers
Method
flatten_dense_tensors_aligned
(self, tensor_list, alignment)
deepspeed/runtime/zero/stage3.py:2821
↓ 1 callers
Function
flatten_dp_dimension
(meg_2d_map, src_2d_size, dp_degree)
deepspeed/checkpoint/reshape_3d_utils.py:141
↓ 1 callers
Function
flatten_options
(key, value_list)
deepspeed/nvme/perf_run_sweep.py:137
↓ 1 callers
Function
flatten_options
(key, value_list)
csrc/aio/py_test/aio_bench_perf_sweep.py:128
↓ 1 callers
Method
flops_profiler_detailed
(self)
deepspeed/runtime/engine.py:1511
↓ 1 callers
Method
flops_profiler_module_depth
(self)
deepspeed/runtime/engine.py:1505
↓ 1 callers
Method
flops_profiler_output_file
(self)
deepspeed/runtime/engine.py:1516
↓ 1 callers
Method
flops_profiler_recompute_fwd_factor
(self)
deepspeed/runtime/engine.py:1496
↓ 1 callers
Method
flops_profiler_top_modules
(self)
deepspeed/runtime/engine.py:1508
↓ 1 callers
Method
flush
(self)
deepspeed/monitor/tensorboard.py:54
↓ 1 callers
Method
flush_sequence
Free all resources associated with the given sequence id.
deepspeed/inference/v2/ragged/ragged_manager.py:108
↓ 1 callers
Method
fork
Fork the cuda rng state, perform operations, and exit with the original state.
deepspeed/runtime/activation_checkpointing/checkpointing.py:182
↓ 1 callers
Function
format_multiline_comment
(text, comment_type)
scripts/replace_copyright.py:157
↓ 1 callers
Function
format_options
(cpu_offload, cpu_offload_params, zero_init)
deepspeed/runtime/zero/stage3.py:4257
↓ 1 callers
Function
format_options
(cpu_offload)
deepspeed/runtime/zero/stage_1_and_2.py:4213
↓ 1 callers
Method
forward
(self, inputs)
tests/unit/runtime/zero/test_zero_shared_loss_gradient.py:25
↓ 1 callers
Method
forward
(self, x, y)
tests/unit/runtime/zero/test_zeropp.py:34
↓ 1 callers
Method
forward
A: input, activation matrix A B: input, weight matrix B
deepspeed/ops/transformer/inference/triton/matmul_ext.py:136
↓ 1 callers
Method
forward
(self, hidden_states: torch.Tensor, gate_w: torch.Tensor, mlp_
deepspeed/inference/v2/modules/interfaces/moe_base.py:68
↓ 1 callers
Method
forward
(self, input)
deepspeed/runtime/utils.py:1178
↓ 1 callers
Method
forward
Disabled for pipeline parallel training. See ``train_batch()``.
deepspeed/runtime/pipe/engine.py:1287
↓ 1 callers
Method
forward_context
Enable fallback lookup for the outermost forward and restore nested state on exit.
deepspeed/compile/z3_eager_fallback.py:80
↓ 1 callers
Method
forward_handle
The handle a recompute must reuse, or None when no forward graph can need one.
deepspeed/module_inject/auto_ep_comm.py:428
↓ 1 callers
Method
fp16_auto_cast
(self)
deepspeed/runtime/engine.py:1731
↓ 1 callers
Method
fp16_master_weights_and_gradients
(self)
deepspeed/runtime/engine.py:1712
↓ 1 callers
Function
fp_quantize
Args: input (`torch.FloatTensor`) The input which needs to be quantized num_bits (int, >=4) Number of bit
deepspeed/inference/v2/modules/implementations/linear/quantized_linear.py:25
↓ 1 callers
Method
fp_tensor_constructor
(self, fn: Callable, target_fp_dtype: torch.dtype)
deepspeed/utils/init_on_device.py:42
↓ 1 callers
Method
free
Free a set of blocks from the cache. This will mark the blocks as free in the allocator. Parameters: blocks (Ite
deepspeed/inference/v2/ragged/kv_cache.py:152
↓ 1 callers
Method
free_buffer
()
deepspeed/runtime/zero/partition_parameters.py:804
↓ 1 callers
Method
free_grad_in_param_list
(self, param_list)
deepspeed/runtime/zero/stage_1_and_2.py:2983
↓ 1 callers
Function
free_param
Free underlying storage of a parameter.
deepspeed/runtime/zero/partition_parameters.py:309
↓ 1 callers
Method
free_pinned_device_tensor
csrc/gds/py_lib/deepspeed_py_gds_handle.cpp:86
↓ 1 callers
Method
from_dict
Constructs a `BertConfig` from a Python dictionary of parameters.
tests/unit/modelingpreln.py:210
↓ 1 callers
Method
from_dict
(cls, json_object)
deepspeed/ops/transformer/transformer.py:130
↓ 1 callers
Method
from_dict
(cls, json_object)
deepspeed/ops/transformer/inference/config.py:123
↓ 1 callers
Method
from_dict
(cls, json_object)
deepspeed/ops/transformer/inference/moe_inference.py:97
↓ 1 callers
Method
from_profiled_non_gathered_peak
Reserve profiled non-gather memory before budgeting transient gathers.
deepspeed/compile/list_schedule.py:310
↓ 1 callers
Method
from_str
(cls, value: str)
deepspeed/inference/config.py:22
↓ 1 callers
Method
from_weights
(cls, weight_shape=None, dtype=torch.half, weight=None, bias=None, gather_output=False)
deepspeed/module_inject/layers.py:1074
↓ 1 callers
Method
full_size
(self)
deepspeed/runtime/utils.py:832
↓ 1 callers
Method
full_weight
(self)
deepspeed/linear/optimized_linear.py:183
↓ 1 callers
Method
fuse_lora
Fuse the LoRA parameters for the inference mode.
deepspeed/module_inject/containers/features/hybrid_engine.py:63
↓ 1 callers
Function
fused_qkv_subparam_sizes
Sizes of the sub-parameters a fused qkv weight is cut into, or None. ``prepare_tp_fused_qkvw`` splits most layouts into q/k/v (or a single block)
deepspeed/module_inject/fusedqkv_utils.py:54
↓ 1 callers
Method
gQ_strideM
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:266
↓ 1 callers
Method
gated_activation
(activation_func_type, vals, bias)
op_builder/supa/inference.py:320
↓ 1 callers
Function
gather_attn_mask_queries
Rewrite an SDPA mask for the layout after the Q/K/V all-to-all, where each rank attends with the full query sequence and its own block of hea
deepspeed/compile/passes/sp_compile.py:167
↓ 1 callers
Method
gather_params
Gather partitioned parameters back to full size.
deepspeed/module_inject/layers.py:2351
↓ 1 callers
Function
gather_rows
``out[r] = src[index[r]]``, or a zero row where ``index[r]`` is outside ``[0, src.shape[0])``. The forward kernel of :func:`permute_rows`. ``gene
deepspeed/moe/ep_kernels.py:282
↓ 1 callers
Function
gather_subparam_output
(output, subparam_sizes, mp_group)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:181
↓ 1 callers
Function
gather_tokens
(input_, dim=0)
deepspeed/moe/mappings.py:105
↓ 1 callers
Method
gather_v
MPI_Gatherv. gather tensors of variable sizes in a single rank
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:746
↓ 1 callers
Function
gds_io_setup
()
deepspeed/nvme/perf_run_sweep.py:254
↓ 1 callers
Function
gelu
(activations: torch.Tensor)
deepspeed/ops/transformer/inference/triton/gelu.py:30
↓ 1 callers
Function
gen_combinations
(d: dict)
deepspeed/autotuning/utils.py:297
↓ 1 callers
Method
gen_name
(self, test_config, prefix)
tests/model/Megatron_GPT2/run_checkpoint_test.py:429
↓ 1 callers
Method
gen_output_name
(self, test_config, prefix)
tests/model/BingBertSquad/BingBertSquad_test_common.py:21
↓ 1 callers
Method
generate
(self, input_ids, attention_mask=None, max_new_tokens=1, **_kwargs)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:1506
↓ 1 callers
Function
generate_aio_param
(read_log_dir, write_log_dir)
deepspeed/nvme/perf_generate_param.py:52
↓ 1 callers
Function
generate_aio_param
(read_log_dir, write_log_dir)
csrc/aio/py_test/aio_bench_generate_param.py:50
↓ 1 callers
Function
generic_injection
(module, dtype=None, enable_cuda_graph=True)
deepspeed/module_inject/replace_module.py:86
↓ 1 callers
Method
getBuffer
csrc/includes/deepcompile.h:146
↓ 1 callers
Function
getDeviceId
(local_rank)
tests/unit/inference/test_inference.py:264
↓ 1 callers
Method
getDtype
csrc/includes/deepcompile.h:277
↓ 1 callers
Method
getEvent
csrc/includes/deepcompile.h:230
↓ 1 callers
Method
getExpectedGradDtype
csrc/includes/deepcompile.h:305
↓ 1 callers
Function
getSymmMemWorkspace
csrc/compile/deepcompile.cpp:43
↓ 1 callers
Function
get_AsyncPartitionedParameterSwapper
(model: nn.Module)
deepspeed/inference/quantization/utils.py:165
↓ 1 callers
Method
get_activation_memory_per_gpu
(self)
deepspeed/autotuning/autotuner.py:274
↓ 1 callers
Function
get_activation_node_names
(graph: Graph, param_nodes_bw: List[Node], fwd_output_names: List[str])
deepspeed/compile/util.py:361
↓ 1 callers
Function
get_ag_stream
csrc/compile/z3.cpp:446
↓ 1 callers
Function
get_aio_config
(param_dict)
deepspeed/runtime/swap_tensor/aio_config.py:20
↓ 1 callers
Method
get_alibi_mask
(self, tensor, sequence_length)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:741
↓ 1 callers
Method
get_aligned_num_bytes
(self)
deepspeed/io/base_io_buffer.py:34
↓ 1 callers
Function
get_all_configs
Splits the tuning space dictionary to result in all combinations of values. Args: tuning_space (dict): the tuning space where tunable pa
deepspeed/autotuning/utils.py:290
↓ 1 callers
Method
get_all_gather_function
(self)
deepspeed/comm/torch.py:286
↓ 1 callers
Function
get_all_parameters
(sub_module, recurse=False)
deepspeed/runtime/zero/partitioned_param_coordinator.py:44
↓ 1 callers
Method
get_all_params
(self)
deepspeed/module_inject/containers/base.py:304
↓ 1 callers
Function
get_args
(tmpdir, config_dict)
tests/small_model_debugging/test_model.py:50
↓ 1 callers
Function
get_args
(tmpdir, config_dict)
tests/small_model_debugging/partial_offload_test.py:53
↓ 1 callers
Method
get_attn_params
(self)
deepspeed/module_inject/containers/base.py:317
↓ 1 callers
Method
get_autosp_backend
(self, compile_kwargs)
deepspeed/runtime/engine.py:5858
↓ 1 callers
Method
get_autotp_backend
(self, compile_kwargs)
deepspeed/runtime/engine.py:5872
↓ 1 callers
Function
get_block_size_and_count
(io_bytes)
deepspeed/nvme/test_ds_aio_utils.py:50
↓ 1 callers
Function
get_block_size_and_count
(io_bytes)
csrc/aio/py_test/test_ds_aio_utils.py:50
↓ 1 callers
Method
get_buffer
(self, param, numel)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:352
↓ 1 callers
Method
get_cache
Return the Tensor associated with the given cache id in the specified cache group. Arguments: cache_group (str): The KV
deepspeed/inference/v2/ragged/ragged_manager.py:98
↓ 1 callers
Function
get_checkpoint_config
(param_dict)
deepspeed/runtime/model_checkpointing/config.py:61
↓ 1 callers
Function
get_checkpoint_hidden_states_offloading_ctx_manager
( use_pin_memory: bool = True, use_streams: bool = True, min_offload_bytes: int = 1024, max_fw
deepspeed/runtime/activation_checkpointing/offload_activations.py:507
↓ 1 callers
Function
get_checkpoint_parallel_write_pipeline
(checkpoint_params)
deepspeed/runtime/config.py:400
↓ 1 callers
Function
get_checkpoint_params
(param_dict)
deepspeed/runtime/config.py:381
↓ 1 callers
Function
get_checkpoint_tag_validation_mode
(checkpoint_params)
deepspeed/runtime/config.py:389
↓ 1 callers
Function
get_checkpoint_writer_config
(param_dict)
deepspeed/runtime/model_checkpointing/config.py:35
↓ 1 callers
Method
get_cmd
(self, environment, active_resources)
deepspeed/launcher/multinode_runner.py:88
↓ 1 callers
Method
get_cmd
(self, environment, active_resources)
deepspeed/launcher/multinode_runner.py:217
↓ 1 callers
Method
get_cmd
(self, environment, active_resources)
deepspeed/launcher/multinode_runner.py:477
↓ 1 callers
Function
get_coalescing_manager
(group, device, reqs, async_op)
deepspeed/comm/torch.py:92
← previous
next →
4,701–4,800 of 14,579, ranked by callers