MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 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 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:1319
↓ 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:1522
↓ 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 callersFunctioninstall_lm_head
Route lm_head decode batches of 16..32 through the grouped kernel. cuBLAS reaches only ~490 GB/s on the M=32, N=vocab lm_head shape; the grou
deepspeed/module_inject/segment_ki.py:1006
↓ 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:797
↓ 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_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:377
↓ 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:80
↓ 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:4476
↓ 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:830
↓ 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:1815
↓ 2 callersFunctionmain
(hide_operator_status=False, hide_errors_and_warnings=False)
deepspeed/env_report.py:177
↓ 2 callersFunctionmake
(cls, out_features, in_features)
tests/unit/compile/test_tp_compile.py:773
↓ 2 callersFunctionmake_backend
(backend, compile_config, compile_kwargs={}, process_group=None, owned_frames=None)
deepspeed/compile/backend.py:311
↓ 2 callersMethodmake_embedding_layer
Performs setup and creates embedding DSModule. Since OPT includes trained positional embeddings, we will override the base model impl
deepspeed/inference/v2/model_implementations/opt/model.py:101
↓ 2 callersMethodmake_moe_layer
Instantiates the MoE layer for the model. This sets the `self.moe` attribute.
deepspeed/inference/v2/model_implementations/qwen_v2_moe/model.py:126
↓ 2 callersFunctionmake_param_filename
Make a filename for a parameter file. Arguments: rank: Rank of the file. n_ranks: Total number of ranks. Returns:
deepspeed/inference/v2/model_implementations/flat_model_helpers.py:59
↓ 2 callersFunctionmake_params
tests/unit/inference/v2/model_implementations/sharding/test_mlp_sharding.py:20
↓ 2 callersFunctionmake_rollout
()
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2030
↓ 2 callersFunctionmatmul_fp8
(inp, weight, scale, quantization_group_size, quantizer)
deepspeed/ops/fp_quantizer/fp8_gemm.py:16
↓ 2 callersMethodmax_train_batch_size
(self)
deepspeed/autotuning/autotuner.py:244
↓ 2 callersFunctionmaybe_restore_sharded_dim
(dim: torch.SymInt, factor: int)
deepspeed/compile/custom_ops/all_to_all.py:60
↓ 2 callersFunctionmaybe_step
(t)
tests/unit/checkpoint/test_universal_checkpoint.py:36
↓ 2 callersMethodmemory_bytes
(self)
deepspeed/utils/static_cache.py:162
↓ 2 callersMethodmemory_fence
Flush the non-temporal (streaming) stores so updated params/state are globally visible before a worker future completes. Called by the Reflow
deepspeed/runtime/reflow/reflow_cpu_adam.py:105
↓ 2 callersMethodmerge_assert
(self, dim1, dim2)
deepspeed/module_inject/auto_tp.py:65
↓ 2 callersMethodmerge_layer_scales
(self, layer_scales)
deepspeed/runtime/weight_quantizer.py:64
↓ 2 callersMethodmerge_scales
(self)
deepspeed/runtime/weight_quantizer.py:72
↓ 2 callersFunctionmerge_tensors
Merge two lists (or tuples) of tensors and non-tensors using a mapping of positions in merged list (or tuple). Parameters: tensor_ob
deepspeed/runtime/activation_checkpointing/checkpointing.py:335
↓ 2 callersFunctionmixed_precision_config
()
tests/unit/v1/moe/autoep_test_utils.py:181
↓ 2 callersMethodmlp
(self, enable_training=False)
deepspeed/module_inject/containers/opt.py:150
↓ 2 callersMethodmlp_output_mp
(self, mp_replace, reversed_dim=False)
deepspeed/module_inject/containers/base.py:259
↓ 2 callersFunctionmove_back_hp_param
(src_tensor, dest_buf, key_event=None)
deepspeed/compile/passes/offload_adam_states.py:142
↓ 2 callersFunctionmove_back_key
(state, key, key_event=None)
deepspeed/compile/passes/offload_adam_states.py:112
↓ 2 callersFunctionmove_hp_param
(src_tensor, dest_buf, key_event=None)
deepspeed/compile/passes/offload_adam_states.py:127
← previousnext →3,001–3,100 of 15,767, ranked by callers