MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions10,922 in github.com/deepspeedai/DeepSpeed

↓ 4 callersMethodforward
(self, x, y)
tests/unit/v1/zero/test_zero.py:259
↓ 4 callersMethodfree
Return a list of blocks to the free pool. If a single invalid block is provided (i.e., one that is out of range of the allocator or i
deepspeed/inference/v2/ragged/blocked_allocator.py:74
↓ 4 callersMethodfrom_meta
(cls, meta, local_part, group, device=get_accelerator().device_name())
deepspeed/runtime/utils.py:682
↓ 4 callersMethodgather
(self, tensor, gather_list, dst, group=None, async_op=False)
deepspeed/comm/ccl.py:131
↓ 4 callersMethodgather_params
(self, params_list)
deepspeed/module_inject/layers.py:705
↓ 4 callersMethodgen_output_name
(self, test_config, prefix, baseline_config=False)
tests/model/Megatron_GPT2/test_common.py:21
↓ 4 callersMethodget
deepspeed/inference/v2/kernels/includes/memory_access_utils.h:74
↓ 4 callersMethodgetSendBuf
csrc/includes/deepcompile.h:127
↓ 4 callersFunctionget_all_subclasses
(cls, include_root=True)
deepspeed/runtime/zero/partition_parameters.py:283
↓ 4 callersFunctionget_allgather_dtype
(param, param_ds_tensor)
deepspeed/runtime/zero/partition_parameters.py:53
↓ 4 callersMethodget_axis_names
Return a list of the axis names in the ordering of the topology.
deepspeed/runtime/pipe/topology.py:65
↓ 4 callersFunctionget_ccl_datatype
csrc/cpu/comm/ccl.cpp:153
↓ 4 callersFunctionget_compression_config
(param_dict)
deepspeed/compression/config.py:11
↓ 4 callersFunctionget_cuda_rng_tracker
Get cuda rng tracker.
deepspeed/runtime/activation_checkpointing/checkpointing.py:196
↓ 4 callersMethodget_data_parallel_partitions
(self, tensor, group_id)
deepspeed/runtime/zero/stage_1_and_2.py:1890
↓ 4 callersMethodget_data_types
(self)
deepspeed/runtime/engine.py:1373
↓ 4 callersFunctionget_deepspeed_model
(model)
tests/unit/model_parallelism/test_configurable_parallel_mp.py:23
↓ 4 callersFunctionget_files
(dir)
deepspeed/checkpoint/reshape_utils.py:34
↓ 4 callersFunctionget_fp32_state_dict_from_zero_checkpoint
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with ``load_state_dict()`` and used for training
deepspeed/utils/zero_to_fp32.py:563
↓ 4 callersFunctionget_global_norm
Compute total from a list of norms
deepspeed/runtime/utils.py:349
↓ 4 callersMethodget_hp_fragment
(self, optim_state_key=None)
deepspeed/utils/tensor_fragment.py:55
↓ 4 callersFunctionget_last_uses
(graph: Graph)
deepspeed/compile/util.py:253
↓ 4 callersMethodget_mask
(self, pruning_type='row')
deepspeed/compression/basic_layer.py:296
↓ 4 callersMethodget_module
(self, sd)
deepspeed/runtime/state_dict_factory.py:149
↓ 4 callersFunctionget_nccl_data_type
csrc/compile/deepcompile.cpp:63
↓ 4 callersFunctionget_node_shape_meta
(node: Node)
deepspeed/compile/fx.py:174
↓ 4 callersMethodget_overlap_step_state
(self)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:639
↓ 4 callersMethodget_pipe_parallel_group
The group of ranks within the same pipeline.
deepspeed/runtime/pipe/topology.py:424
↓ 4 callersMethodget_sd_loader
(ckpt_list, checkpoint_engine, sd_type='Megatron', version=None)
deepspeed/runtime/state_dict_factory.py:41
↓ 4 callersMethodget_states
Get rng states. Copy the dictionary so we have direct pointers to the states, not just a pointer to the dictionary.
deepspeed/runtime/activation_checkpointing/checkpointing.py:144
↓ 4 callersFunctionget_test_path
(filename)
tests/unit/common.py:506
↓ 4 callersFunctionget_torch_optimizer
(optimizer)
deepspeed/runtime/lr_schedules.py:267
↓ 4 callersMethodgradient_predivide_factor
(self)
deepspeed/runtime/engine.py:1313
↓ 4 callersFunctionhas_comm_dtype
(param: torch.nn.Parameter)
deepspeed/runtime/torch_autocast.py:77
↓ 4 callersMethodhas_gradients
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:63
↓ 4 callersMethodhas_space
(self, numel)
deepspeed/runtime/swap_tensor/utils.py:72
↓ 4 callersMethodhas_value
(self, name: str)
deepspeed/compile/util.py:221
↓ 4 callersMethodinclude_paths
Returns list of include paths, relative to root of deepspeed package (i.e., DeepSpeed/deepspeed)
op_builder/builder.py:289
↓ 4 callersMethodinput_ids
The input ids tensor for the ragged batch. If the device Tensor is requested, the Tensor is truncated to the number of tokens in the
deepspeed/inference/v2/ragged/ragged_wrapper.py:220
↓ 4 callersMethodinsert_tensor
(self, tensor, swap_path, aligned_numel)
deepspeed/runtime/swap_tensor/utils.py:51
↓ 4 callersMethodirecv
(self, tensor, src=None, group=None, tag=0)
deepspeed/comm/torch.py:360
↓ 4 callersFunctionis_activation_to_checkpoint
Is an activation to be checkpointed
deepspeed/runtime/activation_checkpointing/checkpointing.py:367
↓ 4 callersMethodis_decoupled
(self)
deepspeed/runtime/checkpoint_engine/checkpoint_engine.py:50
↓ 4 callersFunctionis_moe_param_group
(param_group)
deepspeed/moe/utils.py:151
↓ 4 callersMethodis_swappable_tensor
(self, tensor=None, numel=None)
deepspeed/runtime/swap_tensor/optimizer_utils.py:207
↓ 4 callersMethodis_zenflow_select_boundary
(self)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:136
↓ 4 callersMethodisend
(self, tensor, dst, group=None, tag=0)
deepspeed/comm/torch.py:356
↓ 4 callersMethodload_hp_checkpoint_state
(self, folder, key, param=None)
deepspeed/runtime/zero/stage3.py:3439
↓ 4 callersMethodload_universal_checkpoint
(self)
deepspeed/runtime/engine.py:1286
↓ 4 callersFunctionlocal_folding_ranks
(global_rank: int, spec: ParallelFoldingSpec)
deepspeed/module_inject/auto_ep_folding.py:161
↓ 4 callersMethodlog_level
(self)
deepspeed/runtime/engine.py:1289
↓ 4 callersFunctionmake_cpp_batch_wrapper
deepspeed/inference/v2/kernels/ragged_ops/ragged_helpers/ragged_kernel_helpers.cpp:8
↓ 4 callersFunctionmark_autoep_folding_router_parameter
Tag a router/gate parameter as the *replicated* folded family (AVERAGE). This is the ONLY family marker applied on the live forward path today:
deepspeed/module_inject/auto_ep_folding.py:265
↓ 4 callersFunctionmaybe_loss_for_backward
Check if the value is a loss tensor. Conditions: - The value must be a tensor. - The tensor must have exactly one element. - The tenso
deepspeed/runtime/utils.py:1250
↓ 4 callersFunctionmerge_state
(state_a, state_b, key_list=[])
deepspeed/checkpoint/reshape_utils.py:100
↓ 4 callersMethodmetric
(self)
deepspeed/autotuning/autotuner.py:238
↓ 4 callersFunctionmove_to_device
Move tensor on to specified device by changing the storage. Works on individual tensors, and tensors contained/nested in lists, tuples, and d
deepspeed/runtime/utils.py:188
↓ 4 callersMethodnan_to_num
(self, x)
deepspeed/runtime/eigenvalue.py:40
↓ 4 callersFunctionnhwc_bias_add
(activation: torch.Tensor, bias: torch.Tensor, other: Optional[torch.Tenso
deepspeed/ops/transformer/inference/bias_add.py:13
↓ 4 callersMethodpack
(self, buffer, size)
deepspeed/runtime/comm/compressed.py:48
↓ 4 callersMethodparallel_for
Split [0, total) into one chunk per thread. Chunk boundaries are rounded up to a multiple of `align` so each slice's AVX/scalar split lines up with th
csrc/adam/cpu_adam_impl.cpp:406
↓ 4 callersFunctionparse_args
(args=None)
deepspeed/launcher/runner.py:48
↓ 4 callersFunctionpartition_uniform
(num_items, num_parts)
deepspeed/runtime/utils.py:606
↓ 4 callersMethodpostscale_gradients
(self)
deepspeed/runtime/engine.py:1310
↓ 4 callersFunctionprint_object
(obj, name, exclude_list=[])
deepspeed/runtime/swap_tensor/utils.py:30
↓ 4 callersFunctionprint_rank_0
(message)
deepspeed/runtime/zero/contiguous_memory_allocator.py:11
↓ 4 callersFunctionprint_rank_0
(message, debug=False, force=False)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:21
↓ 4 callersFunctionquantization_test_helper
(pre_quant_type: torch.dtype, num_bits: int)
tests/unit/inference/quantization/test_intX_quantization.py:36
↓ 4 callersMethodquantize
(self, input, q_bits=8, q_mantisa_bits=3,
deepspeed/ops/fp_quantizer/quantize.py:58
↓ 4 callersFunctionrecursive_setattr
Recursively set the attribute of a module. Args: model (`torch.nn.Module`) The model to set the attribute in. mod
deepspeed/compression/helper.py:33
↓ 4 callersMethodreduce_ready_partitions_and_remove_grads
(self, param)
deepspeed/runtime/zero/stage3.py:1928
↓ 4 callersFunctionreference_geglu_implementation
(input: torch.Tensor, bias: Optional[torch.Tensor] = None,
tests/unit/inference/v2/kernels/core_ops/test_gated_activation.py:17
↓ 4 callersFunctionregister_external_parameter
Instruct DeepSpeed to coordinate ``parameter``'s collection and partitioning in the forward and backward passes of ``module``. This is used w
deepspeed/runtime/zero/partition_parameters.py:142
↓ 4 callersFunctionreport_file_error
csrc/aio/common/deepspeed_aio_common.cpp:260
↓ 4 callersMethodreport_ipg_memory_usage
(self, tag, param_elems, dtype=None)
deepspeed/runtime/base_optimizer.py:365
↓ 4 callersMethodreset
(self)
deepspeed/utils/timer.py:171
↓ 4 callersMethodreset_cpu_buffers
(self)
deepspeed/runtime/zero/stage3.py:2302
↓ 4 callersFunctionrotary_pos_embs
(q: torch.Tensor, k: torch.Tensor, seq_descs: List[DSSequenceDescripto
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_rotary_emb.py:24
↓ 4 callersMethodrun
Run the graph with profiling enabled. args: inputs to the graph. Tensors in the inpusts must be real tensors, not fake tensors. args can cont
deepspeed/compile/profilers/graph_profile.py:152
↓ 4 callersMethodrun
(self, *args)
deepspeed/compile/profilers/graph_profile.py:322
↓ 4 callersMethodrun
csrc/gds/py_lib/deepspeed_gds_op.cpp:122
↓ 4 callersFunctionrun_fragmented_model
(model, config_dict, hidden_dim, dtype, validate_after_bwd, validate_after_step)
tests/unit/runtime/zero/test_zero_tensor_fragment.py:73
↓ 4 callersFunctionrun_frozen_checkpoint_comparison
Shared driver for the frozen-param + checkpoint regression tests. Each iteration checks: (1) backward runs without CheckpointError, (2) grads mat
tests/unit/v1/zero/test_zero_user_backward.py:254
↓ 4 callersMethodrun_test
(self, test_config)
tests/model/Megatron_GPT2/run_perf_baseline.py:84
↓ 4 callersMethodrun_test
(self, test_config)
tests/model/Megatron_GPT2/run_perf_test.py:88
↓ 4 callersFunctionrun_tp_layer_fwd_bwd
(tp_size, tp_overlap_comm, column_parallel, use_tp_model_init=False)
tests/unit/model_parallelism/test_autotp_training.py:382
↓ 4 callersFunctionsafe_get_full_fp32_param
Assemble and return the fp32 parameter of a low-precision (e.g., fp16) parameter. Args: param (``torch.nn.Parameter``): A model p
deepspeed/utils/tensor_fragment.py:134
↓ 4 callersMethodschedule_experiments
(self, exp_paths)
deepspeed/autotuning/scheduler.py:58
↓ 4 callersFunctionset_log_level_from_string
Sets a log level in the passed `logger` and its handlers from string. e.g. "info" => `logging.INFO` Args: log_level_str: one of 'debug',
deepspeed/utils/logging.py:193
↓ 4 callersFunctionshard_attn_out_param
Utility method for sharding an attention output parameter.
deepspeed/inference/v2/model_implementations/sharding/attn_out.py:14
↓ 4 callersFunctionshard_mlp_1_param
Utility method for sharding an MLP 1 parameter. Both biases and weights are supported, as well as for fused weights for MoE. Args:
deepspeed/inference/v2/model_implementations/sharding/mlp.py:14
↓ 4 callersFunctionshard_mlp_2_param
Utility method for sharding an MLP 2 parameter. Args: param (torch.Tensor): The parameter to shard. shard_rank (int): Which
deepspeed/inference/v2/model_implementations/sharding/mlp.py:42
↓ 4 callersMethodsources
Returns list of source files for your op, relative to root of deepspeed package (i.e., DeepSpeed/deepspeed)
op_builder/builder.py:140
↓ 4 callersMethodswap_in
(self, aio_handle, async_op=False)
deepspeed/runtime/swap_tensor/utils.py:164
↓ 4 callersMethodto
Move the parameter to the given device. Then, if the device is a cuda device, quantize it.
deepspeed/linear/quantization.py:118
↓ 4 callersMethodto_dense
(self)
deepspeed/runtime/sparse_tensor.py:42
↓ 4 callersMethodtrain_batch
Progress the pipeline to train the next batch of data. The engine will ingest ``self.train_batch_size()`` total samples collectively across al
deepspeed/runtime/pipe/engine.py:337
↓ 4 callersMethodtransform
(self, param: torch.Tensor)
tests/unit/inference/v2/model_implementations/parameters/utils.py:55
↓ 4 callersMethodtransform_qkv_param
Passes a QKV parameter to the underlying implementation for any necessary transformations. Args: param (torch.Te
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:304
↓ 4 callersMethodtranspose_impl
(self, data)
deepspeed/module_inject/containers/base.py:298
← previousnext →701–800 of 10,922, ranked by callers