MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 2 callersFunctionget_sdpa_attn_mask
Return SDPA's attn_mask argument and whether it was passed as a keyword.
deepspeed/compile/passes/sp_compile.py:452
↓ 2 callersMethodget_seq_length
(self)
deepspeed/utils/static_cache.py:243
↓ 2 callersFunctionget_sequence_data_parallel_group
Get the sequence parallel group the caller rank belongs to.
deepspeed/runtime/sequence_parallel/parallel_state_sp.py:75
↓ 2 callersFunctionget_sequence_parallel_group
Get the sequence parallel group the caller rank belongs to.
deepspeed/runtime/sequence_parallel/parallel_state_sp.py:69
↓ 2 callersMethodget_single_submit
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:88
↓ 2 callersFunctionget_sized_buffer
(buffer, num_elems)
deepspeed/runtime/swap_tensor/utils.py:247
↓ 2 callersFunctionget_sorted_results
(log_dir, metric)
deepspeed/nvme/parse_nvme_stats.py:125
↓ 2 callersMethodget_src_dp_degree
(self)
deepspeed/checkpoint/zero_checkpoint.py:41
↓ 2 callersMethodget_src_pp_degree
(self)
deepspeed/checkpoint/zero_checkpoint.py:38
↓ 2 callersMethodget_state
(self)
deepspeed/runtime/data_pipeline/data_routing/scheduler.py:77
↓ 2 callersFunctionget_state_devices
Retrieve the devices of the specified state of the model. Args: model (DeepSpeedEngine): The model whose device allocations are to be che
deepspeed/runtime/zero/offload_states.py:91
↓ 2 callersFunctionget_state_read_config
(reflow, gradient_accumulation_steps, warmup_lr)
tests/unit/v1/zero/test_reflow.py:1952
↓ 2 callersMethodget_swap_paths
(self)
deepspeed/runtime/swap_tensor/utils.py:129
↓ 2 callersMethodget_swap_tensors
(self)
deepspeed/runtime/swap_tensor/utils.py:122
↓ 2 callersFunctionget_tensor_model_parallel_group
Get the tensor model parallel group the caller rank belongs to.
deepspeed/utils/groups.py:245
↓ 2 callersFunctionget_tensor_model_parallel_world_size
Return world size for the tensor model parallel group.
deepspeed/utils/groups.py:274
↓ 2 callersMethodget_tokenizer
(self, model_name)
tests/unit/hybrid_engine/test_he_llama.py:52
↓ 2 callersMethodget_tokenizer
(self, model_name)
tests/unit/hybrid_engine/test_he_all.py:50
↓ 2 callersMethodget_total_duration
Returns the total duration of the model forward pass. Args: as_string (bool, optional): whether to output the duration as string.
deepspeed/profiling/flops_profiler/profiler.py:256
↓ 2 callersMethodget_total_params
Returns the total number of parameters stored per rank. Args: as_string (bool, optional): whether to output the parameters as str
deepspeed/profiling/flops_profiler/profiler.py:268
↓ 2 callersFunctionget_tuning_keys
Outputs the list of tunable parameters in the tuning space dict. Args: tuning_space (dict): a configuration dictionary containing tunable
deepspeed/autotuning/utils.py:272
↓ 2 callersFunctionget_val_by_key
(d: dict, k)
deepspeed/autotuning/utils.py:133
↓ 2 callersMethodget_val_from_user_args
(self, ds_name)
deepspeed/autotuning/autotuner.py:1003
↓ 2 callersFunctionget_wrapped_partitioner
( z3_partition: bool, param_indices: List[Tuple[int, int, torch.Size]], partition_fn, frame_id
deepspeed/compile/partitioner.py:93
↓ 2 callersFunctionget_xdist_worker_id
()
tests/unit/common.py:39
↓ 2 callersFunctionget_zero3_ds_config
(hf_config: OPTConfig, cpu_offload: bool, nvme_offload: bool, bits: int)
tests/unit/inference/quantization/test_intX_quantization.py:64
↓ 2 callersMethodget_zero_checkpoint_state
(self, pp_index, tp_index, dp_index, strip_tensor_paddings: bool = True)
deepspeed/checkpoint/deepspeed_checkpoint.py:181
↓ 2 callersMethodgradient_count
How many values the backward returns, parsed rather than counted. Counting commas in the source would also count the ones inside calls
tests/unit/module_inject/test_auto_ep_comm.py:1291
↓ 2 callersMethodgradient_reduction_w_predivide
(self, tensor, communication_data_type: torch.dtype)
deepspeed/runtime/zero/stage_1_and_2.py:1609
↓ 2 callersFunctiongrep_loss_from_file
(file_name)
tests/model/BingBertSquad/BingBertSquad_run_func_test.py:15
↓ 2 callersFunctiongrep_loss_from_file
(file_name)
tests/model/Megatron_GPT2/run_func_test.py:21
↓ 2 callersFunctiongrep_loss_from_file
(file_name)
tests/model/Megatron_GPT2/run_checkpoint_test.py:27
↓ 2 callersMethodgroup_step
(self, paramlist)
deepspeed/ops/adam/zenflow_torch_adam.py:540
↓ 2 callersFunctiongumbel_rsample
(shape: Tuple, device: torch.device)
deepspeed/moe/sharded_moe.py:79
↓ 2 callersMethodhandles_memory_backpressure
(self)
accelerator/hpu_accelerator.py:53
↓ 2 callersMethodhas_buffers
(self)
deepspeed/runtime/swap_tensor/async_swapper.py:35
↓ 2 callersFunctionhas_capability_or_fail
csrc/xpu/common/custom_cuda_kernel.dp.cpp:8
↓ 2 callersFunctionhas_coalescing_manager
()
deepspeed/comm/torch.py:83
↓ 2 callersMethodhas_data
Check if storage contains inputs Returns: True if inputs are stored, False otherwise
deepspeed/compile/input_storage.py:180
↓ 2 callersMethodhas_loss_data
(self, file_name)
tests/model/Megatron_GPT2/run_func_test.py:527
↓ 2 callersMethodhas_space
(self, numel)
deepspeed/runtime/swap_tensor/utils.py:143
↓ 2 callersFunctionhf_generate
()
tests/unit/v1/test_hybrid_engine_rollout_v1.py:720
↓ 2 callersMethodinclude_paths
Returns list of include paths, relative to root of deepspeed package (i.e., DeepSpeed/deepspeed)
op_builder/builder.py:274
↓ 2 callersMethodinclude_paths
(self)
op_builder/xpu/async_io.py:37
↓ 2 callersMethodindependent_gradient_partition_epilogue
(self)
deepspeed/runtime/zero/stage3.py:1521
↓ 2 callersFunctionindexer_logits
Dense float32 indexer logits ``[rows, tokens_kv]`` for a block of query rows. ``index_q`` is ``[rows, heads, index_dim]`` bf16, ``index_k`` is ``
deepspeed/models/glm_moe_dsa/kernels/indexer_fwd.py:134
↓ 2 callersFunctioninit_ds_engine
(model, ds_config, use_torch_adam)
tests/unit/checkpoint/test_universal_checkpoint.py:68
↓ 2 callersFunctioninit_lora
(model)
deepspeed/linear/context_manager.py:20
↓ 2 callersMethodinit_lora
(self)
deepspeed/linear/optimized_linear.py:125
↓ 2 callersFunctioninit_schedule
(graph: Graph)
deepspeed/compile/list_schedule.py:53
↓ 2 callersFunctioninit_schedule
(schedule)
deepspeed/compile/backend.py:109
↓ 2 callersMethodinitialize_gradient_partition
(self, i, param_group, partition_id)
deepspeed/runtime/zero/stage_1_and_2.py:1208
↓ 2 callersMethodinitialize_tensors
(self, enable_training=False)
deepspeed/module_inject/containers/base.py:140
↓ 2 callersFunctioninjection_assert
(model)
tests/unit/linear/test_ctx.py:25
↓ 2 callersFunctioninsert_sequence_shard
Insert a node that takes this rank's shard of ``tensor_node`` along ``seq_dim`` and return it.
deepspeed/compile/util.py:615
↓ 2 callersMethodinstalled_cann_path
(self)
op_builder/npu/builder.py:53
↓ 2 callersMethodinvalidate
Drop every captured graph and the memory pool backing them.
deepspeed/runtime/hybrid_engine_graph.py:67
↓ 2 callersMethodinvalidate_secondary_tensor
(self)
deepspeed/runtime/zero/stage3.py:796
↓ 2 callersFunctioninverse_permutation
For each of ``num_rows`` original rows, the padded position ``permuted_indices`` sent it to. ``permuted_indices`` must hold each of ``0 .. num_ro
deepspeed/moe/ep_kernels.py:312
↓ 2 callersMethodisValid
csrc/includes/deepcompile.h:446
↓ 2 callersFunctionis_cast_op
(node: Node)
deepspeed/compile/util.py:146
↓ 2 callersFunctionis_current_accelerator_supported
()
accelerator/real_accelerator.py:47
↓ 2 callersFunctionis_docs_path
Everything under docs/ or blogs/, plus Markdown files anywhere.
ci/check_paths.py:29
↓ 2 callersMethodis_invalid_trace
(self)
deepspeed/runtime/zero/partitioned_param_coordinator.py:200
↓ 2 callersMethodis_load_module
(module)
deepspeed/module_inject/auto_tp.py:156
↓ 2 callersMethodis_mlp
(self, data, merge_count=1)
deepspeed/runtime/weight_quantizer.py:34
↓ 2 callersFunctionis_offload_optimizer_enabled
(config_dict)
tests/unit/v1/zero/test_offload_states.py:70
↓ 2 callersFunctionis_only_offload_optimizer_states
(offloaded_states, optimizer_offload_states)
tests/unit/v1/zero/test_offload_states.py:74
↓ 2 callersMethodis_pinned
(self, _tensor)
tests/unit/compile/test_zero3_grad_dtype.py:103
↓ 2 callersMethodis_pinned
(self, tensor)
accelerator/abstract_accelerator.py:371
↓ 2 callersFunctionis_replicated_kv_attention
Whether ``module`` is an attention module using the replicated-K/V layout.
deepspeed/module_inject/fusedqkv_utils.py:71
↓ 2 callersMethodis_synchronized_device
(self)
accelerator/mps_accelerator.py:32
↓ 2 callersFunctionisclose
(a, b, rtol=1e-09, atol=0.0)
deepspeed/runtime/zero/stage3.py:79
↓ 2 callersMethodissued
(self)
tests/unit/v1/zero/test_zero2_gradient_safety.py:259
↓ 2 callersFunctioniter_graphs
Yield the graph of gm and of every nested GraphModule. Uses modules() rather than recursing through named_children(): a GraphModule can sit under
deepspeed/compile/passes/tp_compile.py:116
↓ 2 callersFunctionjoin_as_str
csrc/includes/deepcompile.h:55
↓ 2 callersFunctionkeep_tensors_in_fp32
Convert the matching parameters and buffers of ``module`` to fp32 in place. A ZeRO-3 parameter is converted in its partition, so a later gather r
deepspeed/runtime/keep_in_fp32.py:85
↓ 2 callersMethodkv_cache_ids
Returns the Tensor containing the block IDs for this sequence on the appropriate device for the specified cache group. Argum
deepspeed/inference/v2/ragged/sequence_descriptor.py:177
↓ 2 callersFunctionlaunch_sweep
(sweep_jobs, sync_job, flush_cache_job, verbose)
deepspeed/nvme/perf_run_sweep.py:155
↓ 2 callersMethodlayer_norm_residual
(cls, vals, bias, res, gamma, beta, epsilon)
deepspeed/ops/transformer/inference/op_binding/layer_norm.py:27
↓ 2 callersMethodlayer_norm_residual_store_pre_ln_res
(cls, vals, bias, res, gamma, beta, epsilon)
deepspeed/ops/transformer/inference/op_binding/layer_norm.py:38
↓ 2 callersMethodlayernorm
(self)
deepspeed/module_inject/containers/opt.py:156
↓ 2 callersFunctionlazy_init_hp_params_optimizer_state
(lp_param_list, flat_hp_partition, optimizer_state)
deepspeed/utils/mixed_precision_linkage.py:34
↓ 2 callersMethodlibraries_args
Returns list of libraries to link the op against
op_builder/builder.py:295
↓ 2 callersMethodload
(self, verbose=True)
op_builder/npu/inference.py:504
↓ 2 callersMethodload_buffer
(module, state_dict, prefix)
deepspeed/module_inject/auto_tp.py:168
↓ 2 callersFunctionload_hp_checkpoint_state
(self, folder, tp_rank, tp_world_size, ep_rank=0, ep_size=1, load_optimizer_states=True)
deepspeed/checkpoint/universal_checkpoint.py:236
↓ 2 callersMethodload_hp_checkpoint_state_from_checkpoint_dir
(self, lp_groups_name: str,
deepspeed/runtime/base_optimizer.py:346
↓ 2 callersMethodload_module_state_dict
(self, checkpoint, strict=True,
deepspeed/runtime/engine.py:4432
↓ 2 callersFunctionload_state_dict_from_zero_checkpoint
1. Put the provided model to cpu 2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` 3. Load it into the pro
deepspeed/utils/zero_to_fp32.py:785
↓ 2 callersMethodload_state_dir
(self, load_dir, checkpoint_engine, strict=True)
deepspeed/runtime/pipe/module.py:640
↓ 2 callersFunctionload_test_selection
(path: Path, mode: str)
ci/torch_latest.py:350
↓ 2 callersMethodload_to_gpu
(self)
deepspeed/sequence/fpdt_layer.py:575
↓ 2 callersMethodlocal_size
(self)
deepspeed/runtime/utils.py:829
↓ 2 callersFunctionlog_dist_once
(message, ranks=None, level=logging.INFO)
deepspeed/utils/logging.py:146
↓ 2 callersMethodlookup
(name, create_if_missing=False)
ci/test_torch_latest.py:315
↓ 2 callersMethodloss
(self, x, labels, input_ids)
tests/unit/v1/compile/test_compile_autosp.py:231
↓ 2 callersMethodloss_fn
(self, x, y)
tests/unit/ulysses_alst/test_tiled_compute.py:339
↓ 2 callersMethodloss_scale
(self)
deepspeed/runtime/engine.py:1787
↓ 2 callersFunctionmain
(hide_operator_status=False, hide_errors_and_warnings=False)
deepspeed/env_report.py:177
← previousnext →2,901–3,000 of 15,468, ranked by callers