MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 2 callersFunction_flat_weight
(engine)
tests/unit/v1/zero/test_stage2_flatten_on_gpu.py:78
↓ 2 callersMethod_flush_buffers_until_complete
(self)
deepspeed/runtime/swap_tensor/async_swapper.py:119
↓ 2 callersMethod_flush_ready_buffers
(self)
deepspeed/runtime/swap_tensor/async_swapper.py:112
↓ 2 callersFunction_folded_grads
Every gradient of the folded model, rebuilt at the reference model's names and shapes. With ``get=safe_get_full_fp32_param`` it rebuilds the fp32
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:164
↓ 2 callersFunction_folded_model
()
tests/unit/v1/moe/test_autoep_fused_parity.py:130
↓ 2 callersFunction_folded_zero2_tp2_ep4_config
()
tests/unit/v1/moe/test_autoep_autotp_grad_parity.py:187
↓ 2 callersMethod_foreach_adam_step
(tensor_lists, lr, beta1, beta2, epsilon, adam_w_mode, bias_correction1, bias_correction2,
op_builder/mps/fused_adam.py:70
↓ 2 callersMethod_forward
(self, sample, timestamp, encoder_hidden_states,
deepspeed/model_implementations/diffusers/unet.py:66
↓ 2 callersMethod_forward_attention
(self, layer_idx: int, qkv: torch.Tensor, kv_cache: torch.Tensor, ragged_batch_info
deepspeed/inference/v2/model_implementations/exaone4/model.py:144
↓ 2 callersFunction_fp32_logits
``hidden @ weight.T + bias + row_offset`` in fp32; ``row_offset`` has shape ``[tokens, 1]``. Producing fp32 straight from the GEMM, with the bias
deepspeed/sequence/linear_cross_entropy.py:79
↓ 2 callersMethod_fp32_partitions_with_own_storage
The master partitions that are not also a weight partition (see aliased_fp32_sub_groups). An aliased one has no storage of its own, so moving
deepspeed/runtime/zero/stage3.py:4289
↓ 2 callersFunction_fp32_reference_step
An fp32 eager step, independent of the kernel under test.
tests/unit/v1/moe/test_autoep_fused_parity.py:92
↓ 2 callersFunction_fp6_quantized_linear_helper
(tokens: int, in_channels: int, out_channels
tests/unit/inference/v2/modules/test_quantized_linear_module.py:86
↓ 2 callersFunction_fragment_affine_map
(numel, fragments)
deepspeed/checkpoint/zero_affine.py:38
↓ 2 callersMethod_full_gradient_edit_error
(self, error, group)
deepspeed/runtime/reflow/reflow_stage3.py:1926
↓ 2 callersFunction_full_param
(param)
tests/unit/checkpoint/test_zero_affine.py:252
↓ 2 callersMethod_fused_linear_engine
(self, model, zero_stage=0)
tests/unit/v1/autotp/test_autotp_training.py:602
↓ 2 callersFunction_gate_after_writing
(paths: tuple[str, ...], ignore: str = "")
ci/test_tests_fetcher.py:309
↓ 2 callersFunction_gate_step_after_pull_request
(pr_changes: dict[str, str], event: str, master_moves_on: bool)
ci/test_tests_fetcher.py:435
↓ 2 callersMethod_gather_and_compare_params
(self, model, torch_q, torch_o, compare_values=True)
tests/unit/v1/autotp/test_tp_plan_e2e.py:109
↓ 2 callersFunction_gather_sequence
(local: torch.Tensor, group, size: int)
deepspeed/models/glm_moe_dsa/attention.py:93
↓ 2 callersMethod_generate
(self, model, tokenizer, prompt)
tests/unit/hybrid_engine/test_he_llama.py:31
↓ 2 callersMethod_generate
(self, model, tokenizer, prompt)
tests/unit/hybrid_engine/test_he_all.py:31
↓ 2 callersMethod_generate_batched
(self, request, sampling, mask_padding=True)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:281
↓ 2 callersMethod_generation_kwargs
(self, sampling, attention_mask, pad_token_id, module=None)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:256
↓ 2 callersFunction_get_aio_latencies
csrc/aio/common/deepspeed_aio_common.cpp:61
↓ 2 callersMethod_get_all_zero_checkpoint_names
(self, load_dir, tag, bf16_mode)
deepspeed/runtime/engine.py:4969
↓ 2 callersMethod_get_all_zero_checkpoints
(self, load_dir, tag)
deepspeed/runtime/engine.py:5027
↓ 2 callersMethod_get_base
(self, h, use_cuda_pinned_tensor)
tests/unit/v1/nvme/test_aio.py:437
↓ 2 callersFunction_get_buffer_view
(base, layout)
tests/unit/v1/nvme/test_aio.py:418
↓ 2 callersFunction_get_checkpoint_files
(checkpoint_dir, glob_pattern)
deepspeed/checkpoint/ds_to_universal.py:1068
↓ 2 callersMethod_get_checkpoint_value
(self, key)
deepspeed/checkpoint/deepspeed_checkpoint.py:217
↓ 2 callersMethod_get_cpu_offload_accumulator_slice
Return the host slice that holds this rank's running sum for ``param``.
deepspeed/runtime/zero/stage_1_and_2.py:1956
↓ 2 callersFunction_get_cpu_offload_engine
Shared async CPU-offload engine, or None to use blocking copies. Only the non-partition ``cpu_checkpointing`` path uses it; synchronized acce
deepspeed/runtime/activation_checkpointing/checkpointing.py:498
↓ 2 callersMethod_get_current_buffer
(self)
deepspeed/runtime/swap_tensor/async_swapper.py:161
↓ 2 callersFunction_get_data_parallel_world_size
Return world size for the data parallel group.
deepspeed/utils/groups.py:856
↓ 2 callersFunction_get_expert_parallel_ranks
Generate expert parallel and expert data parallel group ranks list. Example - E + M + D parallel world_size = 16 model_degree
deepspeed/utils/groups.py:549
↓ 2 callersMethod_get_fixture_kwargs
(self, request, func)
tests/unit/common.py:180
↓ 2 callersMethod_get_flattened_partition
(self, all_partition_states, group=None)
deepspeed/runtime/zero/stage3.py:3907
↓ 2 callersMethod_get_lean_tensors
(self, padded_flattened_tensor, group_tensors, paddings)
deepspeed/runtime/zero/stage3.py:3737
↓ 2 callersMethod_get_nvtx_domain
(self, domain)
accelerator/cuda_accelerator.py:238
↓ 2 callersMethod_get_optimizer_ckpt_name
(self, checkpoints_path, tag, expp_rank)
deepspeed/runtime/engine.py:4526
↓ 2 callersMethod_get_optimizer_loss_scale
(self)
deepspeed/runtime/engine.py:3936
↓ 2 callersFunction_get_padded_tensor
(src_tensor, size)
deepspeed/runtime/zero/stage_1_and_2.py:101
↓ 2 callersMethod_get_parallel_write_for_ddp
(self, dp_world_size, dp_rank)
deepspeed/runtime/model_checkpointing/data_parallel_writer_factory.py:191
↓ 2 callersMethod_get_param_coordinator
(self)
deepspeed/runtime/zero/stage3.py:872
↓ 2 callersMethod_get_parameter_partitions
(self)
deepspeed/runtime/zero/stage3.py:1081
↓ 2 callersMethod_get_rank_zero_ckpt_name
(self, checkpoints_path, tag, mp_rank, dp_rank, bf16_mode)
deepspeed/runtime/engine.py:4486
↓ 2 callersMethod_get_scale_factor
(self)
deepspeed/runtime/lr_schedules.py:582
↓ 2 callersFunction_get_send_recv_group
the group id is always the smaller rank unless its a wrap around
deepspeed/runtime/pipe/p2p.py:161
↓ 2 callersMethod_get_sub_group_partition_count
(self, sub_group_id)
deepspeed/runtime/zero/stage3.py:696
↓ 2 callersMethod_get_swap_paths
(self, parameters, num_elems)
deepspeed/runtime/swap_tensor/optimizer_utils.py:430
↓ 2 callersMethod_get_trainable_parameter_groups
(self)
deepspeed/runtime/zero/stage3.py:767
↓ 2 callersFunction_get_zero3_model_state_files
(checkpoint_dir)
deepspeed/checkpoint/ds_to_universal.py:1047
↓ 2 callersFunction_git
(cwd: Path, *args: str)
ci/test_torch_latest.py:194
↓ 2 callersFunction_global_ranks
(group)
deepspeed/checkpoint/zero_affine.py:103
↓ 2 callersFunction_global_sp_sum
(local_value, sp_group)
deepspeed/sequence/cross_entropy.py:134
↓ 2 callersFunction_grad_mismatches
Name, relative error and scale of every gradient that differs from the reference. ``rounding`` adds a per-element allowance for rounding that hap
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:225
↓ 2 callersMethod_gradient_averaging_world_size
(self, params, partition_world_size)
deepspeed/runtime/zero/stage3.py:730
↓ 2 callersFunction_grads
(function, inputs, upstream)
tests/unit/v1/moe/test_autoep_permute_rows.py:37
↓ 2 callersFunction_group_gemm
Forward-style grouped GEMM: a[M,KC] x b[E,KC,NO] -> out[M,NO], grouped over M.
deepspeed/ops/triton_ops/group_gemm_triton.py:322
↓ 2 callersFunction_group_ranks
(group)
deepspeed/comm/custom_collective.py:36
↓ 2 callersMethod_group_step_offloaded
Per-parameter selective update for offloaded partitions (CPU or NVMe). NVMe partitions are swapped in, updated, and swapped back out one at a
deepspeed/ops/adam/zenflow_torch_adam.py:519
↓ 2 callersFunction_grouped_mlp_weight_grads
The weight gradients of the grouped-GEMM expert MLP in ``x.dtype``, or ``None`` where not needed. The products are the ones autograd forms for ``
deepspeed/moe/ep_experts.py:476
↓ 2 callersMethod_handle_overflow_rollback
Handle gradient overflow by rolling back CPU optimizer states.
deepspeed/runtime/superoffload/superoffload_stage3.py:354
↓ 2 callersFunction_has_3d_expert_params
Check if module stores expert weights as 3D parameter tensors (transformers 5.0.0+). Returns True if the module has a parameter named preset.expe
deepspeed/module_inject/auto_ep.py:112
↓ 2 callersMethod_has_inf_or_nan
(x, j=None)
deepspeed/runtime/zero/stage3.py:3428
↓ 2 callersFunction_has_mixed_gemm
Whether ``device_type`` has GEMMs that take fp16/bf16 inputs and produce fp32 outputs. The dispatcher is asked whether the device registers these
deepspeed/sequence/linear_cross_entropy.py:46
↓ 2 callersFunction_has_moments
(engine)
tests/unit/checkpoint/test_fp32_master_stage3_bf16.py:74
↓ 2 callersMethod_hf_sampling_kwargs
Hugging Face ``generate()`` arguments for ``sampling``; ``temperature <= 0`` is greedy.
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1815
↓ 2 callersFunction_in_backward
Whether this thread is running inside an autograd backward pass.
deepspeed/module_inject/auto_ep_comm.py:411
↓ 2 callersFunction_in_family
(layer_type, family)
deepspeed/compile/passes/tp_compile.py:52
↓ 2 callersFunction_indexed_operations
Every chunk of a batch in execution order, tagged with the index of its plan. Many parameters share one plan object; its geometry is built once p
deepspeed/checkpoint/affine_transfer_executor.py:380
↓ 2 callersFunction_infer_subparam_logical_shapes
(weight_shape, shape, partition_dim, name=None)
deepspeed/module_inject/layers.py:2012
↓ 2 callersMethod_init
(self, log_level=None)
tests/unit/v1/test_engine_log_level.py:53
↓ 2 callersMethod_init
(self, gradient_clipping=None)
tests/unit/v1/half_precision/test_gradient_clipping_default.py:50
↓ 2 callersFunction_init_engine
(config_dict, hidden_dim, seed=42)
tests/unit/v1/zero/test_zero2_offload_multi_backward.py:51
↓ 2 callersFunction_init_external_params
(module)
deepspeed/runtime/zero/partition_parameters.py:137
↓ 2 callersMethod_initialization_checker
Returns whether or not all parameters have been initialized and transformed by the model. Once this returns True, all the `ParameterB
deepspeed/inference/v2/model_implementations/layer_container_base.py:205
↓ 2 callersMethod_initialize_from_swapped_fp16_params
(self, aio_handle, fp16_partitions_info, fp16_num_elems, fp16_pin
deepspeed/runtime/swap_tensor/optimizer_utils.py:292
↓ 2 callersMethod_initialize_parameters
(self, parameters, src_tensors, aio_handle)
deepspeed/runtime/swap_tensor/optimizer_utils.py:403
↓ 2 callersMethod_inputs
(self, model_size, grad_dtype)
tests/unit/v1/ops/test_reflow_cpu_optimizers.py:246
↓ 2 callersFunction_install_skewed_routing
(engine)
tests/unit/v1/moe/test_autoep_deepep_parity.py:115
↓ 2 callersMethod_invalidate_trace
(self)
deepspeed/runtime/zero/partitioned_param_coordinator.py:212
↓ 2 callersMethod_is_checkpointable
(self, funcs)
deepspeed/runtime/pipe/module.py:660
↓ 2 callersFunction_is_column_parallel
(layer_type)
deepspeed/compile/passes/tp_compile.py:44
↓ 2 callersFunction_is_even
(x)
deepspeed/runtime/pipe/schedule.py:640
↓ 2 callersFunction_is_expert_model_state_file
(checkpoint_file)
deepspeed/checkpoint/ds_to_universal.py:1042
↓ 2 callersMethod_is_folded_expert_group
(self, group_index)
deepspeed/runtime/zero/stage_1_and_2.py:3052
↓ 2 callersMethod_is_last_rank
(self)
deepspeed/runtime/pipe/dualpipev.py:126
↓ 2 callersMethod_is_loss_stage
(self, phase)
deepspeed/runtime/pipe/dualpipev.py:123
↓ 2 callersMethod_is_ongoing_drain
(self)
deepspeed/io/double_io_buffer.py:83
↓ 2 callersFunction_is_packed
Whether a region is one run of consecutive elements in row-major order. This is ``Tensor.is_contiguous`` for the ``as_strided`` view ``_region``
deepspeed/checkpoint/affine_transfer_executor.py:342
↓ 2 callersFunction_is_rank_preserving
(node: Node)
deepspeed/compile/passes/sp_compile.py:153
↓ 2 callersFunction_is_reshape
(node: Node)
deepspeed/compile/passes/sp_compile.py:157
↓ 2 callersFunction_is_row_parallel
(layer_type)
deepspeed/compile/passes/tp_compile.py:48
↓ 2 callersFunction_is_sequence
A real sequence: indexable and sized, which a generator is not and a string should not count as.
deepspeed/checkpoint/affine_transfer.py:692
↓ 2 callersMethod_is_test_file
(self, path: Path)
ci/tests_fetcher.py:262
↓ 2 callersFunction_is_valid_send_recv
(src_stage, dest_stage)
deepspeed/runtime/pipe/p2p.py:37
↓ 2 callersFunction_join
(processes)
tests/unit/checkpoint/test_fp32_master_only.py:186
← previousnext →2,201–2,300 of 15,468, ranked by callers