MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 1 callersFunction_get_expert_weight_for_test
(expert, name)
tests/unit/v1/moe/test_autoep_unit.py:112
↓ 1 callersFunction_get_file_path
(tmpdir, file_prefix, index=0)
tests/unit/v1/nvme/test_gds.py:42
↓ 1 callersMethod_get_flat_partition_unpadded
(self, tensor_list, first_offset,
deepspeed/runtime/zero/stage_1_and_2.py:2942
↓ 1 callersFunction_get_folder_size
(folder)
deepspeed/runtime/utils.py:1145
↓ 1 callersFunction_get_fp32_state_dict_from_zero2_checkpoint
(world_size, fp32_flat_groups,
deepspeed/utils/zero_to_fp32.py:394
↓ 1 callersFunction_get_fp32_state_dict_from_zero3_checkpoint
(world_size, fp32_flat_groups, zero_model_states, exclude_froze
deepspeed/utils/zero_to_fp32.py:563
↓ 1 callersFunction_get_fp32_state_dict_from_zero_checkpoint
Returns fp32 state_dict reconstructed from ds checkpoint Args: - ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (whe
deepspeed/utils/zero_to_fp32.py:241
↓ 1 callersMethod_get_frozen_parameter_names
Get names of frozen parameters in the layer. Returns: A list of frozen parameter names
deepspeed/runtime/pipe/module.py:288
↓ 1 callersMethod_get_gamma
(self)
deepspeed/runtime/lr_schedules.py:782
↓ 1 callersMethod_get_gradients_for_reduction
(self)
deepspeed/runtime/engine.py:4006
↓ 1 callersMethod_get_granularity_recursively
This function is used to recursively obtain the granularity of each module.
deepspeed/runtime/zero/parameter_offload.py:627
↓ 1 callersFunction_get_graphsafe_run_with_rng_state
()
deepspeed/compile/inductor.py:63
↓ 1 callersMethod_get_groups_without_padding
(self, groups_with_padding)
deepspeed/runtime/zero/stage_1_and_2.py:3461
↓ 1 callersFunction_get_guard_sizes_strides
(t)
deepspeed/compile/patch_fake_tensor.py:38
↓ 1 callersFunction_get_guard_source_value
(builder, guard)
deepspeed/compile/patch_fake_tensor.py:58
↓ 1 callersMethod_get_increase
(self)
deepspeed/runtime/lr_schedules.py:388
↓ 1 callersMethod_get_layer_keys
(self)
deepspeed/checkpoint/deepspeed_checkpoint.py:333
↓ 1 callersFunction_get_legacy_autocast_decorators
(device_type)
deepspeed/runtime/zero/linear.py:37
↓ 1 callersFunction_get_local_rank
()
tests/unit/v1/nvme/test_aio.py:34
↓ 1 callersFunction_get_mapping_dict
(args)
deepspeed/nvme/ds_aio_args.py:31
↓ 1 callersFunction_get_max_expert_size
Get the maximum ep_size from all the created groups.
deepspeed/utils/groups.py:676
↓ 1 callersFunction_get_max_expert_size_name
Get the name of the group with max. ep_size
deepspeed/utils/groups.py:687
↓ 1 callersMethod_get_model_config_generate
(self, config)
deepspeed/inference/engine.py:208
↓ 1 callersMethod_get_model_parameters
(self)
deepspeed/runtime/engine.py:1368
↓ 1 callersFunction_get_model_state_files
(checkpoint_dir)
deepspeed/checkpoint/ds_to_universal.py:1038
↓ 1 callersMethod_get_mp_rank_zero_checkpoint_names
(self, load_dir, tag, mp_rank, dp_world_size, bf16_mode)
deepspeed/runtime/engine.py:4957
↓ 1 callersMethod_get_node_limited_routing_scores
Select ``num_limited_groups`` groups based on group scores and mask out experts in non-selected groups. Args: scores_for_
deepspeed/moe/ep_router.py:82
↓ 1 callersMethod_get_non_moe_state_dict
Remove expert-param keys from state dict, keeping all non-expert params. Handles both native MoE (deepspeed_moe.experts.*) and AutoEP (expert
deepspeed/runtime/engine.py:5186
↓ 1 callersMethod_get_norm_groups
(self)
deepspeed/runtime/reflow/reflow_stage3.py:1611
↓ 1 callersMethod_get_norm_mask_idx
The function preserves the parallel information for norm from unflattened gradients. Args: group (Iterable[Tensor] ): par
deepspeed/runtime/fp16/fused_optimizer.py:229
↓ 1 callersFunction_get_num_experts_from_config
Extract num_experts from model.config using the preset's attribute name.
deepspeed/module_inject/auto_ep.py:127
↓ 1 callersMethod_get_nvml_gpu_id
credit: https://discuss.pytorch.org/t/making-pynvml-match-torch-device-ids-cuda-visible-devices/103020 Remap torch device id to nvml
accelerator/cuda_accelerator.py:181
↓ 1 callersMethod_get_nvtx_domain
(self, domain)
accelerator/klxpu_accelerator.py:28
↓ 1 callersMethod_get_offload_gradient_dict
(self)
deepspeed/runtime/zero/stage_1_and_2.py:1918
↓ 1 callersFunction_get_optim_files
(checkpoint_dir)
deepspeed/checkpoint/ds_to_universal.py:1030
↓ 1 callersFunction_get_padded_tensor
(src_tensor, size)
deepspeed/runtime/bf16_optimizer.py:739
↓ 1 callersMethod_get_parallel_write_for_3d
(self)
deepspeed/runtime/model_checkpointing/data_parallel_writer_factory.py:104
↓ 1 callersMethod_get_param_group_idx
(self, param)
deepspeed/runtime/zero/stage_1_and_2.py:2228
↓ 1 callersMethod_get_param_group_states
(self, sd)
deepspeed/checkpoint/zero_checkpoint.py:127
↓ 1 callersFunction_get_pipeline_layer_files
(file_list)
deepspeed/checkpoint/deepspeed_checkpoint.py:38
↓ 1 callersMethod_get_pointers
Return a numpy array of byte offsets given a list of sizes. Multiplies values in the sizes array by dtype size (bytes),
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:389
↓ 1 callersMethod_get_preflattened_grad_partition
(self, group_idx)
deepspeed/runtime/zero/stage_1_and_2.py:3008
↓ 1 callersMethod_get_resource_manager
Initialize and return a resource manager Args: active_resources ([dict]): A dictionary of hostname and its slots (GPUs), e.g. {"w
deepspeed/autotuning/autotuner.py:188
↓ 1 callersFunction_get_rope_parameters
(config: Any)
deepspeed/inference/v2/model_implementations/exaone4_5/model.py:21
↓ 1 callersFunction_get_seq_slice
Return ``(start, stop)`` of a getitem that only narrows ``seq_dim`` by static amounts, where ``start >= 0`` counts from the front and ``stop
deepspeed/compile/passes/sp_compile.py:187
↓ 1 callersMethod_get_shared_params
Returns a dict of shared params, which can later be used to reconstruct the original state dict, e.g. in `zero_to_fp32`. Each dict en
deepspeed/runtime/engine.py:5685
↓ 1 callersMethod_get_slice_writers
(self, slice_resources, my_dp_ranks)
deepspeed/runtime/model_checkpointing/data_parallel_writer_factory.py:166
↓ 1 callersMethod_get_state_tensors
(self, parameter)
deepspeed/runtime/swap_tensor/optimizer_utils.py:504
↓ 1 callersMethod_get_state_without_padding
(self, state_with_padding, padding)
deepspeed/runtime/zero/stage_1_and_2.py:3470
↓ 1 callersMethod_get_sub_group_partition_rank
(self, sub_group_id)
deepspeed/runtime/zero/stage3.py:699
↓ 1 callersMethod_get_sub_group_partition_ranks
(self, sub_group_id)
deepspeed/runtime/zero/stage3.py:702
↓ 1 callersMethod_get_sub_group_partitions
(self, sub_group_id)
deepspeed/runtime/zero/stage3.py:1115
↓ 1 callersMethod_get_swap_buffers
(self, params)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:163
↓ 1 callersFunction_get_test_write_file
(tmpdir, index)
tests/unit/v1/nvme/test_gds.py:47
↓ 1 callersFunction_get_top_k_from_config
Extract top_k from model.config using the preset's attribute name.
deepspeed/module_inject/auto_ep.py:132
↓ 1 callersFunction_get_universal_checkpoint_ep_info
()
deepspeed/runtime/base_optimizer.py:21
↓ 1 callersMethod_get_universal_checkpoint_info
(self)
deepspeed/runtime/zero/stage_1_and_2.py:817
↓ 1 callersMethod_get_user_config
Get DeepSpeed configuration from the user arguments passed to the launcher. Args: user_args ([list]): user arguments passed to th
deepspeed/autotuning/autotuner.py:158
↓ 1 callersMethod_get_zero_ckpt_name
(self, checkpoints_path, tag)
deepspeed/runtime/engine.py:4495
↓ 1 callersMethod_get_zero_ckpt_prefix
(self, dp_rank, bf16_mode)
deepspeed/runtime/engine.py:4483
↓ 1 callersMethod_get_zero_frozen_param_attributes
(self, attr_func)
deepspeed/runtime/engine.py:5632
↓ 1 callersFunction_get_zero_stage
(optim_files)
deepspeed/checkpoint/ds_to_universal.py:1077
↓ 1 callersFunction_glm_type_transpose
(input, mp_size, meta=meta)
deepspeed/module_inject/fusedqkv_utils.py:197
↓ 1 callersMethod_global_indices
``[batch, seq, topk]`` positions within each sequence to ``[tokens, 1, topk]`` token indices. ``seq_length`` is the length of the sequence th
deepspeed/models/glm_moe_dsa/attention.py:314
↓ 1 callersFunction_global_rank
(group: Optional[object], process: int)
deepspeed/checkpoint/affine_transfer_calibration.py:72
↓ 1 callersMethod_global_ranks
(group)
deepspeed/runtime/zero/stage3.py:762
↓ 1 callersFunction_gmm_configs
()
deepspeed/ops/triton_ops/group_gemm_triton.py:49
↓ 1 callersMethod_grad_scale_for_cpu_adam
The factor unscale_and_clip_grads would multiply this sub-group's gradients by, when DeepSpeedCPUAdam can apply it while loading each gradient
deepspeed/runtime/zero/stage3.py:3329
↓ 1 callersMethod_gradient_reduction_buffer_dtype
(self)
deepspeed/runtime/zero/stage_1_and_2.py:1301
↓ 1 callersMethod_graph_replay
(self, *inputs, **kwargs)
deepspeed/inference/engine.py:547
↓ 1 callersMethod_graph_replay
(self, *inputs, **kwargs)
deepspeed/model_implementations/transformers/clip_encoder.py:34
↓ 1 callersMethod_graph_replay
(self, *inputs, **kwargs)
deepspeed/model_implementations/diffusers/unet.py:26
↓ 1 callersMethod_graph_replay
(self, *inputs, **kwargs)
deepspeed/model_implementations/diffusers/vae.py:110
↓ 1 callersMethod_graph_replay_decoder
(self, *inputs, **kwargs)
deepspeed/model_implementations/diffusers/vae.py:24
↓ 1 callersMethod_graph_replay_encoder
(self, *inputs, **kwargs)
deepspeed/model_implementations/diffusers/vae.py:67
↓ 1 callersFunction_graph_time
Capture ``work()`` into a CUDA graph and return avg replay time (us).
tests/benchmarks/swiglu_bench.py:37
↓ 1 callersFunction_grouped_dw
For each group e, compute mat_a_e.T @ grad_out_e. ``[K, M_e] @ [M_e, NO] -> [K, NO]``; stacking all groups produces ``out[E, K, NO]``. The re
deepspeed/ops/triton_ops/group_gemm_triton.py:363
↓ 1 callersFunction_h2d_bandwidth
Measure how fast this device reads pinned host memory, in bytes per second. Platforms differ by more than an order of magnitude here, and the mea
deepspeed/compile/passes/offload_activation.py:186
↓ 1 callersMethod_has_autoep_layers
(self)
deepspeed/runtime/engine.py:5808
↓ 1 callersFunction_has_autoep_zero3_partitioned_metadata
(state_dict)
deepspeed/utils/zero_to_fp32.py:124
↓ 1 callersFunction_has_callable
(obj, fn)
deepspeed/utils/zero_to_fp32.py:302
↓ 1 callersFunction_has_custom_ops
()
op_builder/klxpu/fused_adam.py:14
↓ 1 callersFunction_has_expert_projection
(expert_module: nn.Module, name: str)
deepspeed/module_inject/auto_ep_presets/deepseek_v3.py:86
↓ 1 callersMethod_has_inf_or_nan
(x, i)
deepspeed/runtime/utils.py:331
↓ 1 callersMethod_has_inf_or_nan
(x)
deepspeed/runtime/fp16/loss_scaler.py:256
↓ 1 callersFunction_has_missing_profile_metadata
(graph: Graph)
deepspeed/compile/profilers/graph_profile.py:89
↓ 1 callersFunction_has_non_overlapping_storage
Whether the tensor's elements each occupy their own place in storage. Both the host buffer and the reloaded device tensor are made with `empty_li
deepspeed/compile/passes/offload_activation.py:363
↓ 1 callersMethod_has_real_storage
(tensor)
deepspeed/utils/pin_memory.py:170
↓ 1 callersFunction_has_triton
()
deepspeed/__init__.py:25
↓ 1 callersFunction_holders_are_exact
Element-by-element reading of the holder contract, independent of the planner. No rank may hold an element twice, and every element of a piece mu
tests/unit/checkpoint/test_affine_transfer_plan.py:856
↓ 1 callersMethod_host_grad_holds_accum_exactly
(host_dtype, accum_dtype)
deepspeed/runtime/zero/stage_1_and_2.py:1317
↓ 1 callersFunction_imbalance
Busiest over mean; 1.0 is perfectly even. None when nothing moves.
deepspeed/checkpoint/affine_transfer_analysis.py:224
↓ 1 callersMethod_impacted_files
(seeds: set[Path], reverse: dict[Path, set[Path]])
ci/tests_fetcher.py:443
↓ 1 callersFunction_in_order_shard_tiles
Tile a flat shard that stores the parameter's row-major order, shifted by one constant. Such pieces interleave by address -- two column halves of
deepspeed/checkpoint/affine_transfer.py:392
↓ 1 callersFunction_index_runs
Group consecutive indices into (start_index, position_in_shard, length) runs. Compressing runs is what bounds the number of pieces: a contiguous
tests/unit/checkpoint/test_affine_shard_map.py:52
↓ 1 callersMethod_index_tied_modules
Build communication structures for tied modules.
deepspeed/runtime/pipe/module.py:480
↓ 1 callersFunction_infer_hidden_and_ffn_size
Infer hidden_size and ffn_hidden_size from expert weight shapes.
deepspeed/module_inject/auto_ep.py:294
↓ 1 callersMethod_inference_schedule
(self, micro_batches)
deepspeed/runtime/pipe/dualpipev.py:134
↓ 1 callersMethod_inference_schedule
(self, micro_batches)
deepspeed/runtime/pipe/engine.py:503
↓ 1 callersFunction_init_engine
(kind)
tests/unit/checkpoint/test_fp32_master_stage3_bf16.py:56
← previousnext →3,901–4,000 of 15,468, ranked by callers