MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 1 callersFunctionload_parameters
(module, prefix)
deepspeed/module_inject/load_checkpoint.py:63
↓ 1 callersMethodload_params
(self, module, sd, weight_quantizer, mp_replace, prefix)
deepspeed/module_inject/containers/opt.py:64
↓ 1 callersFunctionload_pin_memory_module
(builder, verbose=False)
op_builder/pin_memory_load.py:13
↓ 1 callersMethodload_state_dict
(self, state_dict_list, checkpoint_folder=None,
deepspeed/runtime/bf16_optimizer.py:660
↓ 1 callersMethodload_state_dict
r"""Loading a ZeRO checkpoint Arguments: state_dict_list: List of all saved ZeRO checkpoints, one for each saved partition.
deepspeed/runtime/zero/stage3.py:4007
↓ 1 callersMethodload_state_dict
(self, state_dict_list, load_optimizer_states=True,
deepspeed/runtime/zero/stage_1_and_2.py:3785
↓ 1 callersMethodload_state_dict
(self, state_dict)
deepspeed/runtime/zero/muon/muon_optimizer.py:43
↓ 1 callersMethodload_state_dict
Loads a state_dict created by an earlier call to state_dict(). If ``fp16_optimizer_instance`` was constructed from some ``init_optimi
deepspeed/runtime/fp16/fused_optimizer.py:492
↓ 1 callersFunctionload_triton_flash_attn
()
deepspeed/ops/transformer/inference/diffusers_attention.py:22
↓ 1 callersFunctionlocal_first_least_loaded
Read locally when the target's own process holds the region, otherwise from the least loaded holder. Load is what a sending process has been assi
deepspeed/checkpoint/affine_replica_policy.py:32
↓ 1 callersMethodlog
(self, data, step=None, commit=None)
deepspeed/monitor/wandb.py:27
↓ 1 callersMethodlog_all
Print and/or return communication operation statistics. Args: print_log (bool, optional): Whether to print the summary t
deepspeed/utils/comms_logging.py:210
↓ 1 callersMethodlog_events
(self)
deepspeed/runtime/zero/partitioned_param_profiler.py:58
↓ 1 callersMethodlog_selective_optimizer_timers
(self)
deepspeed/runtime/zenflow/zenflow_stage_1_and_2.py:598
↓ 1 callersMethodlog_summary
(self, tag: str = "")
deepspeed/utils/pin_memory_tracker.py:54
↓ 1 callersFunctionlr_scheduler_for_variable_batch_size
returns a class that provides an LR scheduler that scales the learning rate at every iteration taking into account the batch size of that ite
deepspeed/runtime/data_pipeline/data_sampling/variable_batch_size_and_lr.py:308
↓ 1 callersMethodmagic
(self)
tests/unit/runtime/zero/test_zero_context_ancestry.py:107
↓ 1 callersFunctionmain
()
ci/classify_multirank_exit.py:26
↓ 1 callersFunctionmain
()
ci/install_accelerate.py:63
↓ 1 callersFunctionmain
()
ci/test_torch_latest.py:1797
↓ 1 callersFunctionmain
()
ci/test_tests_fetcher.py:648
↓ 1 callersFunctionmain
()
ci/tests_fetcher.py:699
↓ 1 callersFunctionmain
()
ci/check_paths.py:57
↓ 1 callersFunctionmain
(argv: Sequence[str] | None = None)
ci/torch_latest.py:1991
↓ 1 callersFunctionmain
()
ci/test_classify_multirank_exit.py:83
↓ 1 callersFunctionmain
()
tests/torch_compile/test_deepcompile_skipped_frame.py:55
↓ 1 callersFunctionmain
()
tests/benchmarks/bench_multimodal_sp.py:253
↓ 1 callersFunctionmain
()
tests/benchmarks/swiglu_bench.py:61
↓ 1 callersFunctionmain
(args=None)
deepspeed/utils/zero_to_torch.py:14
↓ 1 callersFunctionmain
(args)
deepspeed/checkpoint/ds_to_universal.py:1161
↓ 1 callersFunctionmain
()
deepspeed/nvme/parse_nvme_stats.py:135
↓ 1 callersFunctionmain
(args=None)
deepspeed/launcher/launcher_helper.py:81
↓ 1 callersFunctionmain
(args=None)
deepspeed/launcher/runner.py:439
↓ 1 callersFunctionmain
()
deepspeed/launcher/launch.py:135
↓ 1 callersFunctionmake_compiler_fn
(make_graph_fn)
deepspeed/compile/backend.py:463
↓ 1 callersFunctionmake_config
(managed)
tests/unit/v1/zero/test_zero_user_backward.py:2115
↓ 1 callersFunctionmake_cos_sin_emb
(seq_len: int)
tests/unit/inference/v2/kernels/ragged_ops/test_blocked_rotary_emb.py:39
↓ 1 callersMethodmake_embedding_layer
Performs setup and creates embedding DSModule. This will set the `self.embed` attribute.
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:303
↓ 1 callersFunctionmake_experts
(partitioned)
tests/unit/runtime/zero/test_autoep_zero3_init.py:182
↓ 1 callersFunctionmake_finalization_callback
Helper method for building the finalization callback for a LayerContainer. This is not client code and should not be used or called directly.
deepspeed/inference/v2/model_implementations/layer_container_base.py:24
↓ 1 callersMethodmake_input
(self, layout, batch_size, seqlen, hidden_dim, dtype)
tests/unit/ulysses_alst/test_tiled_compute.py:291
↓ 1 callersMethodmake_mlp_1_layer
Instantiates the linear projection layer for the first MLP in the feedforward network. This sets the `self.mlp_1` attribute.
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:513
↓ 1 callersMethodmake_mlp_2_layer
Instantiates the linear projection layer for the second MLP in the feedforward network. This sets the `self.mlp_2` attribute.
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:544
↓ 1 callersMethodmake_model
(self, hidden_dim, vocab_size, dtype)
tests/unit/ulysses_alst/test_tiled_compute.py:451
↓ 1 callersMethodmake_norm_layer
Instantiates the normalization layer for the model. This sets the `self.norm` attribute. TODO(cmikeh2): In the future we'll distingu
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:579
↓ 1 callersMethodmake_norm_layer
Instantiates the normalization layer for the model. This sets the `self.norm` attribute. TODO(cmikeh2): In the future we'll distingu
deepspeed/inference/v2/model_implementations/qwen/model.py:107
↓ 1 callersMethodmake_norm_layer
Instantiates the normalization layer for the model. This sets the `self.norm` attribute. TODO(cmikeh2): In the future we'll distingu
deepspeed/inference/v2/model_implementations/qwen_v2_moe/model.py:201
↓ 1 callersFunctionmake_param_getter
Normal getter implementation for a property.
deepspeed/inference/v2/model_implementations/parameter_base.py:21
↓ 1 callersFunctionmake_param_setter
Setter implementation that will call complete component to potentially finalize the parameter.
deepspeed/inference/v2/model_implementations/parameter_base.py:32
↓ 1 callersFunctionmake_readonly_setter
Setter implementation that will raise an error if called.
deepspeed/inference/v2/model_implementations/parameter_base.py:46
↓ 1 callersMethodmake_shared_expert_gate_layer
Instantiates the linear projection layer for the second MLP in the feedforward network. This sets the `self.mlp_2` attribute.
deepspeed/inference/v2/model_implementations/qwen_v2_moe/model.py:184
↓ 1 callersMethodmake_shared_expert_mlp_1_layer
Instantiates the linear projection layer for the first MLP in the feedforward network. This sets the `self.mlp_1` attribute.
deepspeed/inference/v2/model_implementations/qwen_v2_moe/model.py:147
↓ 1 callersMethodmake_shared_expert_mlp_2_layer
Instantiates the linear projection layer for the second MLP in the feedforward network. This sets the `self.mlp_2` attribute.
deepspeed/inference/v2/model_implementations/qwen_v2_moe/model.py:166
↓ 1 callersMethodmanual_seed
(self, seed)
accelerator/cpu_accelerator.py:245
↓ 1 callersMethodmanual_seed
(self, seed)
accelerator/mps_accelerator.py:81
↓ 1 callersMethodmap_param
(self, name, parameter)
deepspeed/inference/v2/model_implementations/inference_policy_base.py:58
↓ 1 callersFunctionmap_to_flat_opt_states
(flat_hp_tensor, lp_tensors, optim_state, opt_keys)
deepspeed/utils/tensor_fragment.py:72
↓ 1 callersFunctionmark_autoep_folding_partial_router_parameter
Tag a router/gate parameter as a *routed-token partial* family (SUM). Forward-looking contract; NOT used on the current forward path -- only the
deepspeed/module_inject/auto_ep_folding.py:291
↓ 1 callersFunctionmark_autoep_folding_sp_sharded_layernorm_parameter
Tag a LayerNorm parameter as *SP-sequence-sharded* family (SUM under SP). Forward-looking contract; NOT used on the current forward path -- only
deepspeed/module_inject/auto_ep_folding.py:308
↓ 1 callersMethodmark_persistent_parameters
(self, param_threshold, model_threshold)
deepspeed/runtime/zero/parameter_offload.py:328
↓ 1 callersFunctionmasked_columns
(mask)
tests/unit/runtime/rollout/test_hybrid_engine_rollout.py:2003
↓ 1 callersMethodmatch_replaced
(self, module)
deepspeed/module_inject/containers/vae.py:33
↓ 1 callersMethodmatches
Check if this spec matches the given parameter.
deepspeed/module_inject/autotp_config.py:215
↓ 1 callersFunctionmatmul_fp8_fallback
(inp, weight, scale, quantization_group_size, quantizer)
deepspeed/ops/fp_quantizer/fp8_gemm.py:26
↓ 1 callersFunctionmatmul_fp8_triton
(inp, weight, scale, quantization_group_size)
deepspeed/ops/fp_quantizer/fp8_gemm_triton.py:148
↓ 1 callersMethodmax_bytes
(self)
op_builder/custom_collective.py:149
↓ 1 callersMethodmax_memory_reserved
(self, device_index=None)
accelerator/xpu_accelerator.py:303
↓ 1 callersFunctionmax_possible_gathered_bytes
Upper-bound simultaneous gather residency, counting each ``ds_id`` once.
deepspeed/compile/list_schedule.py:422
↓ 1 callersMethodmax_train_micro_batch_size_per_gpu
(self)
deepspeed/autotuning/autotuner.py:250
↓ 1 callersMethodmaybe_allocate_kv
(self, sequence: DSSequenceDescriptor, n_new_tokens: int)
deepspeed/inference/v2/model_implementations/exaone4_5/model.py:162
↓ 1 callersMethodmaybe_free_kv
After completing a forward pass, determine whether or not there are any KV blocks that maybe freed since they are no longer in use.
deepspeed/inference/v2/model_implementations/inference_model_base.py:234
↓ 1 callersFunctionmegatron_layer_quantize
(layer)
deepspeed/module_inject/module_quantize.py:27
↓ 1 callersFunctionmegatron_qkv_reshape
(param: torch.Tensor, head_size: int, n_heads: int)
deepspeed/inference/v2/model_implementations/common_parameters/qkv_parameters.py:48
↓ 1 callersMethodmemory_allocated
(self, device_index=None)
accelerator/supa_accelerator.py:118
↓ 1 callersMethodmemory_allocated
(self, device_index=None)
accelerator/sdaa_accelerator.py:139
↓ 1 callersMethodmemory_allocated
(self, device_index=None)
accelerator/mlu_accelerator.py:109
↓ 1 callersMethodmemory_allocated
(self, device_index=None)
accelerator/npu_accelerator.py:143
↓ 1 callersMethodmemory_allocated
(self, device_index=None)
accelerator/xpu_accelerator.py:276
↓ 1 callersMethodmemory_allocated
(self, device_index=None)
accelerator/cuda_accelerator.py:144
↓ 1 callersMethodmemory_bytes
Return the bytes held by the layers' cache tensors.
deepspeed/utils/static_cache.py:319
↓ 1 callersMethodmemory_reserved
(self, device_index=None)
accelerator/xpu_accelerator.py:300
↓ 1 callersFunctionmemory_to_string
(n, postfix="", units=None, precision=2)
deepspeed/autotuning/utils.py:418
↓ 1 callersFunctionmerge_autotp_configs
Merge two AutoTP configs, with override taking precedence.
deepspeed/module_inject/autotp_config.py:575
↓ 1 callersMethodmerge_file_
(self, another_file)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:293
↓ 1 callersMethodmerge_map_results
(self, dataset, metric_names, metric_types, save_path, num_workers, num_threads, num
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:281
↓ 1 callersMethodmerge_query_key_value
Up to now we found 3 Q/K/V parameter formats in different Megatron checkpoint versions: 1. version 0, there is no version informatio
deepspeed/runtime/state_dict_factory.py:218
↓ 1 callersMethodmerge_scales_split
(self, split_count)
deepspeed/runtime/weight_quantizer.py:79
↓ 1 callersFunctionmerge_state_dict
(dict_a, dict_b, key_list)
deepspeed/checkpoint/reshape_utils.py:80
↓ 1 callersMethodmerge_state_dict
(self, mp_world_size, mp_rank, quantize, quantize_bits, groups, mlp_extra_grouping)
deepspeed/runtime/state_dict_factory.py:176
↓ 1 callersFunctionmerge_state_list
(list_a, list_b, key_list)
deepspeed/checkpoint/reshape_utils.py:92
↓ 1 callersFunctionmerge_tp_model_init_into_config
(config_dict: dict, mpu, mesh_param, dist_module)
deepspeed/runtime/tensor_parallel/init_utils.py:79
↓ 1 callersMethodmetal_sources
(self)
op_builder/mps/builder.py:42
↓ 1 callersMethodmin_max
given a distributed tensor, return the min/max values across all ranks
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:737
↓ 1 callersMethodmin_train_micro_batch_size_per_gpu
(self)
deepspeed/autotuning/autotuner.py:259
↓ 1 callersMethodminimum_gather_residency
Limit an incomplete-profile schedule to one largest-gather-sized residency. This is not an estimate of available memory or of an unobserved
deepspeed/compile/list_schedule.py:282
↓ 1 callersMethodmlp_inter_mp
(self, mp_replace, reversed_dim=False)
deepspeed/module_inject/containers/base.py:255
↓ 1 callersMethodmlp_inter_mp
(self, mp_replace, reversed_dim=False)
deepspeed/module_inject/containers/features/gated_mlp.py:36
↓ 1 callersMethodmlp_mp
(self)
deepspeed/module_inject/containers/base_moe.py:103
↓ 1 callersMethodmlp_quantization
(self)
deepspeed/module_inject/containers/base.py:221
↓ 1 callersMethodmodel
The model implementation.
deepspeed/inference/v2/engine_v2.py:62
← previousnext →5,501–5,600 of 15,468, ranked by callers