MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 2 callersFunction_exchange_key
Everything two layers must agree on to share one buffer. Capacity, hidden size and top-k size the buffer itself; the queue-pair budget is fix
deepspeed/module_inject/auto_ep_comm.py:95
↓ 2 callersMethod_exec_schedule
(self, pipe_schedule)
deepspeed/runtime/pipe/engine.py:1364
↓ 2 callersFunction_execute
(plan, source_storage, target_storage)
tests/unit/checkpoint/test_autoep_affine.py:258
↓ 2 callersMethod_fill_param_grad_accum_attribute
(self, param)
deepspeed/runtime/zero/stage_1_and_2.py:1274
↓ 2 callersMethod_find_tied_embedding_modules
Locate every registered embedding reference sharing lm_head's weight Parameter. Safe to call at any point during replacement: _slice_embeddin
deepspeed/module_inject/auto_tp.py:731
↓ 2 callersMethod_fini
(self)
deepspeed/io/fast_file_writer.py:113
↓ 2 callersMethod_finish_continuous_profile
(self, profile, request, responses, max_batch_size, prompt_len, generation_end,
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1101
↓ 2 callersFunction_fits_budget
(scheduler_budget: Optional[SchedulerMemoryBudget], peak_bytes: int)
deepspeed/compile/list_schedule.py:473
↓ 2 callersFunction_flat_buffer
Flatten ``tensor`` into a buffer whose storage starts at its first element. Piece offsets are storage offsets, because that is what ``torch.as_st
deepspeed/checkpoint/affine.py:554
↓ 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_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:3951
↓ 2 callersFunction_fp32_reference_step
An fp32 eager step, independent of the kernel under test.
tests/unit/v1/moe/test_autoep_fused_parity.py:91
↓ 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 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:601
↓ 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 callersFunction_generate_layout_params
This function generates the parameters required for `permute` and `reshape` operations, which are used to process data before and after `all2
deepspeed/sequence/layer.py:49
↓ 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:4887
↓ 2 callersMethod_get_all_zero_checkpoints
(self, load_dir, tag)
deepspeed/runtime/engine.py:4945
↓ 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:1047
↓ 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:1939
↓ 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:168
↓ 2 callersMethod_get_flattened_partition
(self, all_partition_states, group=None)
deepspeed/runtime/zero/stage3.py:3573
↓ 2 callersMethod_get_lean_tensors
(self, padded_flattened_tensor, group_tensors, paddings)
deepspeed/runtime/zero/stage3.py:3444
↓ 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:4444
↓ 2 callersMethod_get_optimizer_loss_scale
(self)
deepspeed/runtime/engine.py:3854
↓ 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_parameter_partitions
(self)
deepspeed/runtime/zero/stage3.py:1048
↓ 2 callersMethod_get_rank_zero_ckpt_name
(self, checkpoints_path, tag, mp_rank, dp_rank, bf16_mode)
deepspeed/runtime/engine.py:4404
↓ 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:664
↓ 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:735
↓ 2 callersFunction_get_zero3_model_state_files
(checkpoint_dir)
deepspeed/checkpoint/ds_to_universal.py:1026
↓ 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_grad_norm_counts_every_rank
Whether every rank holds a different gradient partition of ``params``, so each rank adds its own to the norm and the model-parallel all-reduce
deepspeed/runtime/zero/stage3.py:703
↓ 2 callersMethod_gradient_averaging_world_size
(self, params, partition_world_size)
deepspeed/runtime/zero/stage3.py:698
↓ 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 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 callersMethod_handle_overflow_rollback
Handle gradient overflow by rolling back CPU optimizer states.
deepspeed/runtime/superoffload/superoffload_stage3.py:353
↓ 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:3150
↓ 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:1200
↓ 2 callersFunction_in_family
(layer_type, family)
deepspeed/compile/passes/tp_compile.py:52
↓ 2 callersFunction_infer_subparam_logical_shapes
(weight_shape, shape, partition_dim, name=None)
deepspeed/module_inject/layers.py:1930
↓ 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 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:198
↓ 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 callersMethod_is_eos
(self, token)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1249
↓ 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:1021
↓ 2 callersMethod_is_folded_expert_group
(self, group_index)
deepspeed/runtime/zero/stage_1_and_2.py:3033
↓ 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_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:640
↓ 2 callersMethod_is_test_file
(self, path: Path)
ci/tests_fetcher.py:256
↓ 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:182
↓ 2 callersFunction_jsd_log_ratios
(student, teacher, global_max, log_sum_exp, beta)
deepspeed/sequence/vocab_parallel_ops.py:391
← previousnext →2,001–2,100 of 14,579, ranked by callers