MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 1 callersFunctioninit_autosp
(config)
deepspeed/compile/init_sp.py:14
↓ 1 callersFunctioninit_autotp
Hand the tensor-parallel collectives of an AutoTP-partitioned model over to the compiler. The model is expected to have been partitioned already
deepspeed/compile/init_tp.py:48
↓ 1 callersMethodinit_config
(self, config, scheduler, random_ltd_layer_id)
deepspeed/runtime/data_pipeline/data_routing/basic_layer.py:29
↓ 1 callersFunctioninit_deepspeed_backend
(ds_backend, timeout, init_method)
deepspeed/comm/comm.py:147
↓ 1 callersMethodinit_device_mesh
(self, mesh_shape, mesh_dim_names)
deepspeed/comm/torch.py:654
↓ 1 callersMethodinit_method_normal
Init method based on N(0, sigma).
tests/unit/megatron_model.py:88
↓ 1 callersMethodinit_metric_results
(self, thread_id, metric_names, metric_types, metric_dtypes, save_path, worker_id)
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:64
↓ 1 callersFunctioninit_offload_opt_states
(adam_optimizer, _nz3)
deepspeed/compile/passes/offload_adam_states.py:608
↓ 1 callersMethodinit_process_group
(self, backend, timeout, init_method, rank, world_size)
deepspeed/comm/torch.py:308
↓ 1 callersFunctioninit_schedule_with_placeholders
(graph: Graph)
deepspeed/compile/list_schedule.py:211
↓ 1 callersMethodinit_transformer_weights
(self, adjust_init_range=False)
deepspeed/ops/transformer/transformer.py:385
↓ 1 callersFunctioninit_z1_and_2
(engine, backend, compile_config, compile_kwargs, schedule=None, use_z2=False)
deepspeed/compile/init_z1_and_2.py:100
↓ 1 callersMethodinitial_dynamic_scale
(self)
deepspeed/runtime/engine.py:1899
↓ 1 callersMethodinitialize_ds_offload
( self, module, timers, ds_config, zenflow, overlap_comm,
deepspeed/runtime/zero/stage3.py:645
↓ 1 callersMethodinitialize_from_swapped_fp16_params
(self, fp16_partitions_info, fp16_num_elems, fp16_pinned_buffers,
deepspeed/runtime/swap_tensor/pipelined_optimizer_swapper.py:91
↓ 1 callersMethodinitialize_gradient_partitioning_data_structures
(self)
deepspeed/runtime/zero/stage_1_and_2.py:1014
↓ 1 callersFunctioninitialize_optimizer_states
(optimizer_z3: "DeepSpeedZeroOptimizer_Stage3")
deepspeed/runtime/zenflow/engine_stage3.py:372
↓ 1 callersMethodinitialize_optimizer_states
(self)
deepspeed/runtime/zero/stage3.py:1414
↓ 1 callersMethodinitialize_optimizer_states
(self)
deepspeed/runtime/zero/stage_1_and_2.py:956
↓ 1 callersMethodinitialize_optimizer_states
(self)
deepspeed/runtime/fp16/fused_optimizer.py:125
↓ 1 callersMethodinitialize_optimizer_states
(self)
deepspeed/runtime/fp16/unfused_optimizer.py:427
↓ 1 callersMethodinitialize_parameters
(self, parameters, src_tensors)
deepspeed/runtime/swap_tensor/pipelined_optimizer_swapper.py:88
↓ 1 callersFunctioninsert_a2a
(node: Node, scatter_idx: int, gather_idx: int, name: str)
deepspeed/compile/passes/sp_compile.py:527
↓ 1 callersFunctioninsert_offload_opt_states
(graph: Graph, graph_id: int, graph_order: List[Tuple[int, bool]], profiling_res
deepspeed/compile/passes/offload_adam_states.py:551
↓ 1 callersFunctioninstall
(destination: Path, ref: str)
ci/install_accelerate.py:36
↓ 1 callersFunctioninstall_decode_attention
Patch full-attention layers to use the custom decode_attn kernel. Detection mirrors find_glu_segments: structural (q/k/v/o projections plus p
deepspeed/module_inject/segment_ki.py:1064
↓ 1 callersFunctioninstall_fused_norm
Patch decoder layers to use fused_add_norm at b=1 decode. Detection is structural (block_type + mlp + both layernorms), so it covers full-att
deepspeed/module_inject/segment_ki.py:1197
↓ 1 callersFunctioninstalled_cann_path
()
deepspeed/env_report.py:78
↓ 1 callersFunctioninstalled_cann_version
()
deepspeed/env_report.py:84
↓ 1 callersMethodinstalled_cann_version
(self, name="")
op_builder/npu/builder.py:58
↓ 1 callersFunctioninstantiate_embed
Choose an appropriate embedding implementation based on the given configurations. This method is currently a stub, but as more implementation
deepspeed/inference/v2/modules/heuristics.py:56
↓ 1 callersMethodinstantiate_model
Instantiate the inference model. Depending on the engine/model config, this could be where different model implementations could be s
deepspeed/inference/v2/model_implementations/inference_policy_base.py:161
↓ 1 callersMethodinv_freq_table
Return the cached position-independent inverse frequencies. The per-position rotation angles are derived from this vector on every forward
op_builder/npu/inference.py:44
↓ 1 callersFunctioninvoke
csrc/adagrad/cpu_adagrad.cpp:158
↓ 1 callersFunctioninvoke
csrc/lion/cpu_lion_impl.cpp:173
↓ 1 callersFunctioninvoke
csrc/adam/cpu_adam_impl.cpp:228
↓ 1 callersFunctionis_False
(config: dict, key)
deepspeed/autotuning/utils.py:185
↓ 1 callersMethodis_allocated
(self)
deepspeed/ops/transformer/inference/op_binding/workspace.py:254
↓ 1 callersFunctionis_available
Whether this build can run the fused RMSNorm kernels.
deepspeed/ops/triton_ops/fused_rms_norm.py:207
↓ 1 callersFunctionis_available
Whether this build can run the fused rotary kernels.
deepspeed/ops/triton_ops/fused_rotary_pos_emb.py:120
↓ 1 callersMethodis_available
(self)
accelerator/xpu_accelerator.py:313
↓ 1 callersFunctionis_backend_inductor
(backend)
deepspeed/compile/util.py:55
↓ 1 callersMethodis_bf16_supported
(self)
accelerator/sdaa_accelerator.py:180
↓ 1 callersMethodis_bf16_supported
(self)
accelerator/mlu_accelerator.py:150
↓ 1 callersMethodis_bf16_supported
(self)
accelerator/cuda_accelerator.py:207
↓ 1 callersMethodis_bf16_supported
(self)
accelerator/mps_accelerator.py:164
↓ 1 callersFunctionis_builtin_type
(obj)
deepspeed/runtime/zero/utils.py:140
↓ 1 callersMethodis_change_dp_degree
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:156
↓ 1 callersMethodis_change_pp_degree
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:153
↓ 1 callersMethodis_change_tp_degree
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:150
↓ 1 callersFunctionis_comm_op
(node: Node)
deepspeed/compile/util.py:142
↓ 1 callersMethodis_compatible
(self, verbose=False)
op_builder/mps/builder.py:25
↓ 1 callersMethodis_compatible
(self, verbose=False)
op_builder/mps/fused_adam.py:113
↓ 1 callersMethodis_compatible
(self, verbose=False)
op_builder/xpu/async_io.py:92
↓ 1 callersMethodis_compatible
(self, verbose=False)
op_builder/cpu/comm.py:32
↓ 1 callersMethodis_compatible
(self, verbose=False)
op_builder/supa/inference.py:340
↓ 1 callersMethodis_current_graph_registered
(self)
deepspeed/runtime/engine.py:498
↓ 1 callersFunctionis_dynamo_guard_evaluation
Return whether the current parameter access originates from Dynamo guard evaluation.
deepspeed/compile/z3_eager_fallback.py:33
↓ 1 callersMethodis_empty
(self)
deepspeed/io/base_io_buffer.py:22
↓ 1 callersFunctionis_enabled
()
deepspeed/comm/mori.py:177
↓ 1 callersFunctionis_env_set
Checks if an environment variable is set and not "".
setup.py:63
↓ 1 callersFunctionis_even
(number)
deepspeed/runtime/pipe/engine.py:48
↓ 1 callersMethodis_expert_tensor_parallelism_enabled
(self)
deepspeed/profiling/flops_profiler/profiler.py:280
↓ 1 callersMethodis_first_weights_partition_group
(self)
deepspeed/runtime/engine.py:1736
↓ 1 callersMethodis_fp16_supported
(self)
accelerator/sdaa_accelerator.py:183
↓ 1 callersMethodis_fp16_supported
(self)
accelerator/cpu_accelerator.py:375
↓ 1 callersMethodis_fp16_supported
(self)
accelerator/mlu_accelerator.py:153
↓ 1 callersMethodis_fp16_supported
(self)
accelerator/cuda_accelerator.py:212
↓ 1 callersMethodis_fp64_supported
(self)
accelerator/mps_accelerator.py:171
↓ 1 callersMethodis_full
(self)
deepspeed/io/base_io_buffer.py:25
↓ 1 callersMethodis_initialized
Returns whether or not all parameters have been initialized and transformed by the model and are located on the appropriate device. O
deepspeed/inference/v2/model_implementations/layer_container_base.py:236
↓ 1 callersMethodis_iterable_style_dataset
(obj)
deepspeed/runtime/engine.py:2979
↓ 1 callersMethodis_map_style_dataset
(obj)
deepspeed/runtime/engine.py:2975
↓ 1 callersFunctionis_microbatch_valid
(metrics)
deepspeed/runtime/data_pipeline/data_sampling/variable_batch_size_and_lr.py:79
↓ 1 callersFunctionis_multirank
(item)
tests/conftest.py:85
↓ 1 callersMethodis_pinned
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:416
↓ 1 callersMethodis_qkv
(self, data)
deepspeed/runtime/weight_quantizer.py:38
↓ 1 callersMethodis_recording_past
(self, layer_idx: int, state_idx: int = 0)
deepspeed/utils/static_cache.py:448
↓ 1 callersMethodis_sanity_checks_enabled
(self)
deepspeed/runtime/engine.py:1887
↓ 1 callersMethodis_source_needed
Returns true if source is needed
csrc/deepspeed4science/evoformer_attn/epilogue/epilogue_thread_apply_logsumexp.h:133
↓ 1 callersFunctionis_transformers_cache
Skip checks for the `transformers` cache class when performing AutoTP tensor comparisons. DeepSpeedStaticCache follows that interface without sub
deepspeed/runtime/utils.py:1265
↓ 1 callersMethodis_triton_supported
(self)
accelerator/klxpu_accelerator.py:31
↓ 1 callersFunctionis_valid_bytes_to_read
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:23
↓ 1 callersFunctionis_zenflow_update_boundary
Determine whether the current step is an update boundary for ZenFlow. This function checks whether the engine should trigger an optimizer update
deepspeed/runtime/zenflow/engine.py:72
↓ 1 callersFunctionis_zero_supported_optimizer
(optimizer)
deepspeed/runtime/zero/utils.py:75
↓ 1 callersFunctionisinstance_namedtuple
Is this an instance of namedtuple/NamedTuple? From: https://stackoverflow.com/a/62692640 Args: obj (object): An object. Ret
deepspeed/runtime/zero/utils.py:145
↓ 1 callersMethodjit_load
(self, verbose=True)
op_builder/xpu/builder.py:137
↓ 1 callersMethodjit_load_kwargs
Returns the compile arguments that jit_load() passes to torch.utils.cpp_extension.load()
op_builder/builder.py:507
↓ 1 callersMethodkernel_supported
(module_list)
deepspeed/module_inject/auto_tp.py:355
↓ 1 callersFunctionknown_world_size
The world size when it can be determined, otherwise None. ``init_distributed`` defaults its ``world_size`` argument to -1, and the value can also
deepspeed/comm/torch.py:58
↓ 1 callersMethodkv_cache_config
Return the KV-cache configuration for this model. This should be a tuple of one or more KVCacheConfig objects (one for each distinct
deepspeed/inference/v2/model_implementations/inference_model_base.py:219
↓ 1 callersMethodlamb
(p, p_copy, exp_avg, exp_avg_sq, grad, lr, beta1, beta2, max_coeff, min_coeff, eps, combined_scale, step,
op_builder/npu/fused_lamb.py:40
↓ 1 callersFunctionlane_id
csrc/includes/memory_access_utils.h:82
↓ 1 callersMethodlayer_sync
(self, layer)
deepspeed/sequence/layer.py:538
↓ 1 callersMethodlazy_call
(self, callback)
accelerator/hpu_accelerator.py:185
↓ 1 callersFunctionlazy_init
()
deepspeed/compile/passes/offload_adam_states.py:66
↓ 1 callersFunctionlazy_init_symm_memory
csrc/compile/deepcompile.cpp:53
↓ 1 callersMethodlib_sources
(self)
op_builder/gds.py:25
↓ 1 callersMethodlib_sources
(self)
op_builder/cpu/async_io.py:22
↓ 1 callersMethodlibraries_args
(self)
op_builder/builder.py:949
← previousnext →5,501–5,600 of 15,767, ranked by callers