MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 1 callersFunction_classify_autoep_expert_file_consolidation
(autoep_metadata, expert_files)
deepspeed/checkpoint/ds_to_universal.py:1104
↓ 1 callersFunction_classify_leaf
Which kind of attention matrix this leaf name claims to be, or None if it claims none. A name is a claim, not a layout. What the leaf resolves to
deepspeed/__init__.py:143
↓ 1 callersMethod_cleanup_deepcompile_native
(self)
deepspeed/runtime/engine.py:6151
↓ 1 callersMethod_clear_current_context
(state)
deepspeed/runtime/engine.py:463
↓ 1 callersMethod_clear_group_paddings
(self, sd)
deepspeed/checkpoint/zero_checkpoint.py:114
↓ 1 callersMethod_clear_hp_buffer_references
Clear all references that might prevent GPU memory release when offloading HP params. This includes gradient views, HP mapping fragme
deepspeed/runtime/zero/stage_1_and_2.py:3939
↓ 1 callersMethod_clear_lp_params_references
Clear all references that might prevent GPU memory release when offloading LP params. This includes HP mapping lp_fragment references
deepspeed/runtime/zero/stage_1_and_2.py:3968
↓ 1 callersMethod_clear_muon_allgather_buffers
(self)
deepspeed/runtime/zero/stage_1_and_2.py:2154
↓ 1 callersMethod_clear_param_grad_only
Clear only param.grad but keep grad_accum intact. This is used at the end of the epilogue to ensure safe_get_full_grad() goes through
deepspeed/runtime/zero/stage_1_and_2.py:2724
↓ 1 callersMethod_clear_trace_structures
(self)
deepspeed/runtime/zero/partitioned_param_coordinator.py:188
↓ 1 callersFunction_clipped_step_against_reference
Observe a real SGD update with a threshold calibrated before building the folded engine. A correct reported norm is not sufficient: a parameter f
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:441
↓ 1 callersFunction_clone_partition_grad_views
(partition_grad_views)
deepspeed/compile/init_z1_and_2.py:55
↓ 1 callersFunction_close
(engine)
tests/unit/v1/zero/test_zero_partial_offload.py:91
↓ 1 callersFunction_coalesce
Merge repeatedly in a fixed order until nothing joins. Deterministic, and identical for identical geometry whatever order the pairs were generate
deepspeed/checkpoint/affine_transfer.py:883
↓ 1 callersFunction_code_key
(code, docstring=None)
deepspeed/ops/triton_ops/fused_rotary_pos_emb.py:272
↓ 1 callersMethod_codegen_affine_map
CodeGen reassembles q, k and v per sub-block, so a rank holds scattered equal blocks. The partition builds that order out of reshapes rather
deepspeed/module_inject/layers.py:1625
↓ 1 callersFunction_codegen_type_transpose
(input, mp_size, codegen_mp_num=4, meta=meta)
deepspeed/module_inject/fusedqkv_utils.py:176
↓ 1 callersFunction_col_markers
(rows, cols)
tests/unit/checkpoint/test_affine_shard_map.py:48
↓ 1 callersFunction_collect_zero2_expert_grads
(engine)
tests/unit/v1/moe/test_autoep_grad_parity.py:157
↓ 1 callersFunction_collective_schedule_fingerprint
(projection)
deepspeed/compile/passes/zero3_compile.py:152
↓ 1 callersFunction_collective_schedule_projection
Return the ordered gather/release identities, excluding graph-local names and IDs.
deepspeed/compile/passes/zero3_compile.py:136
↓ 1 callersMethod_combine_local_sequences
(self, query, key, value)
deepspeed/runtime/sequence_parallel/ulysses_sp.py:168
↓ 1 callersMethod_commit_decoupled_checkpoint
(self)
deepspeed/runtime/engine.py:5157
↓ 1 callersMethod_commit_messages
(self, base_rev: str)
ci/tests_fetcher.py:255
↓ 1 callersMethod_commit_muon_momentum
Move this step's momentum into the optimizer state, now that the step survived.
deepspeed/runtime/zero/stage_1_and_2.py:3127
↓ 1 callersMethod_commit_subgroup_state
(self, sub_group_id, group_id, hyperparams, grad, combined_scale)
deepspeed/runtime/reflow/reflow_stage3.py:996
↓ 1 callersMethod_compact_rows
Compact only the row tensors; used by the multi-layer cache.
deepspeed/utils/static_cache.py:173
↓ 1 callersFunction_compare_optimizers
(model_size, param1, optimizer1, param2, optimizer2)
tests/unit/ops/lion/test_cpu_lion.py:31
↓ 1 callersMethod_compare_tp_gradients
(self, model, torch_q, torch_o, input_tensor, engine)
tests/unit/v1/autotp/test_tp_plan_e2e.py:73
↓ 1 callersFunction_compare_with_torch_adamw
(param, zenflow_opt, atol=1e-4)
tests/unit/ops/adam/test_zf_torch_adam.py:155
↓ 1 callersMethod_compiler_disabled_forward
(self, input_ids)
tests/torch_compile/test_deepcompile_skipped_frame.py:44
↓ 1 callersMethod_complete_pending_gradient_window
(self)
deepspeed/runtime/reflow/reflow_stage3.py:1077
↓ 1 callersMethod_compress_uint8_to_uint4
(self, tensor: Tensor)
deepspeed/inference/quantization/utils.py:89
↓ 1 callersMethod_compute
(self, x)
tests/unit/v1/moe/test_autoep_autotp_bf16_folding_parity.py:109
↓ 1 callersFunction_compute_persistence_budget
(all_graph_mem_records: List[List[Tuple[str, int, int, int]]], total_mem: int,
deepspeed/compile/passes/selective_gather.py:46
↓ 1 callersFunction_compute_zf_pt_affinity
Split this rank's cores into a ZenFlow-optimizer set and a training (PyTorch) set. When every rank reports the same affinity the launcher did not
deepspeed/runtime/zenflow/zenflow_utils.py:84
↓ 1 callersFunction_config
(*, load_universal=False, world_size=1)
tests/unit/checkpoint/test_fp32_master_only.py:36
↓ 1 callersFunction_config
(kind)
tests/unit/checkpoint/test_fp32_master_stage3_bf16.py:30
↓ 1 callersFunction_config
(stage, gas=1)
tests/unit/v1/zero/test_zero_torch_func.py:23
↓ 1 callersFunction_config
(param_device, nvme_path=None)
tests/unit/v1/zero/test_zero3_nvme_param_prefetch.py:54
↓ 1 callersFunction_config
(nvme_path, optimizer_device, param_device, pipeline=False, fast_init=False, dtype=torch.bfloat16)
tests/unit/v1/zero/test_zero3_nvme_offload.py:30
↓ 1 callersFunction_config
(transformers, *, n_layer=2, n_head=4)
tests/unit/v1/autotp/test_autotp_inference.py:21
↓ 1 callersMethod_config
(self, log_level=None)
tests/unit/v1/test_engine_log_level.py:38
↓ 1 callersMethod_config
(self, gradient_clipping=None)
tests/unit/v1/half_precision/test_gradient_clipping_default.py:35
↓ 1 callersMethod_config
(self)
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:192
↓ 1 callersMethod_configure_aio
(self, ds_config)
deepspeed/runtime/swap_tensor/partitioned_param_swapper.py:83
↓ 1 callersMethod_configure_autoep_folding_optimizer_gradient_reduction
(self)
deepspeed/runtime/engine.py:2501
↓ 1 callersMethod_configure_basic_optimizer
(self, model_parameters)
deepspeed/runtime/engine.py:2612
↓ 1 callersMethod_configure_checkpointing
(self)
deepspeed/runtime/engine.py:2024
↓ 1 callersFunction_configure_defaults
()
deepspeed/runtime/activation_checkpointing/checkpointing.py:1135
↓ 1 callersMethod_configure_distributed_model
(self, model)
deepspeed/runtime/engine.py:2199
↓ 1 callersMethod_configure_fp16_optimizer
(self, optimizer, low_precision_dtype)
deepspeed/runtime/engine.py:2693
↓ 1 callersMethod_configure_lr_scheduler
(self)
deepspeed/runtime/engine.py:2008
↓ 1 callersMethod_configure_moe_settings
(self)
deepspeed/runtime/bf16_optimizer.py:141
↓ 1 callersMethod_configure_moe_settings
(self)
deepspeed/runtime/zero/stage_1_and_2.py:884
↓ 1 callersMethod_configure_offloading
(self, offload_optimizer_config, offload_param_config)
deepspeed/runtime/zero/stage3.py:875
↓ 1 callersMethod_configure_optimizer
(self, client_optimizer, model_parameters)
deepspeed/runtime/engine.py:2454
↓ 1 callersMethod_configure_random_ltd_scheduler
(self, configs)
deepspeed/runtime/engine.py:2690
↓ 1 callersMethod_configure_tensor_parallel
(self, model, tp_config)
deepspeed/runtime/engine.py:975
↓ 1 callersMethod_configure_tensor_parallel_states
Configures the tensor parallel states for the model. This includes setting up the tensor parallel groups, initializing the TP mesh,
deepspeed/runtime/engine.py:980
↓ 1 callersMethod_configure_tensor_swapping
(self, offload_optimizer_config, aio_config)
deepspeed/runtime/zero/stage3.py:893
↓ 1 callersFunction_configure_using_config_file
(config, mpu=None)
deepspeed/runtime/activation_checkpointing/checkpointing.py:1120
↓ 1 callersMethod_configure_with_arguments
(self, args, mpu)
deepspeed/runtime/engine.py:2078
↓ 1 callersMethod_continuous_cache_exhaustion_error
(max_cache_len)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1144
↓ 1 callersMethod_continuous_cache_layer
(cache, layer_idx, prefill_keys, prefill_values, max_batch_size)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1342
↓ 1 callersMethod_continuous_dead_prefix
(attention_mask, active_count)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1215
↓ 1 callersMethod_continuous_graph_signature
(module, max_batch_size, max_cache_len, device, model_dtype)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1077
↓ 1 callersMethod_convert_shape
Convert shape from list to tuple, handling nested structures.
deepspeed/module_inject/autotp_config.py:321
↓ 1 callersMethod_convert_to_byte_tensors
(self, obj_list, save_size)
deepspeed/io/fast_file_writer.py:218
↓ 1 callersMethod_convert_to_deepspeed_param
(self, param)
deepspeed/runtime/zero/partition_parameters.py:1274
↓ 1 callersMethod_convert_to_dtype
(self, config)
deepspeed/inference/engine.py:513
↓ 1 callersMethod_convert_to_zero_parameters
(self, ds_config, module, mpu)
deepspeed/runtime/zero/parameter_offload.py:258
↓ 1 callersFunction_copy_e_score_correction_bias
( target_router: nn.Module, source_owner: nn.Module, source_bias, source_path: str, )
deepspeed/module_inject/auto_ep_layer.py:138
↓ 1 callersFunction_copy_parameter_data
(target: nn.Parameter, source: torch.Tensor)
deepspeed/module_inject/auto_ep_layer.py:125
↓ 1 callersMethod_copy_recovery_script
(self, save_path)
deepspeed/runtime/engine.py:5724
↓ 1 callersFunction_corrupt_one_piece
(affine_map, rng)
tests/unit/checkpoint/test_affine_shard_map.py:779
↓ 1 callersFunction_count_autoep_layer_forwards
(engine)
tests/unit/v1/moe/test_autoep_deepep_parity.py:183
↓ 1 callersFunction_count_kv_gradient_all_reduces
Count the K/V-row all-reduces issued by the fused c_attn gradient hook. The hook runs in the autograd thread, so the test observes it by wrapping
tests/unit/v1/autotp/test_autotp_training.py:1345
↓ 1 callersMethod_count_layer_params
Count the trainable parameters in individual layers. This routine will only build one layer at a time. Returns: A list o
deepspeed/runtime/pipe/module.py:302
↓ 1 callersFunction_covers_exactly
Whether ``parts`` fill ``region`` once and only once. They are intersections of ``region`` with source regions, so each is inside it, and the sou
deepspeed/checkpoint/affine_transfer.py:498
↓ 1 callersFunction_covers_union
Check a union without enumerating parameter elements or counting replica overlap twice.
deepspeed/checkpoint/affine_transfer.py:511
↓ 1 callersMethod_cpu_adam_step_and_copy_back
CPU Adam on this sub-group in pieces: for each piece the kernel updates the fp32 parameters and writes them in bfloat16 into one of two pinned
deepspeed/runtime/zero/stage3.py:3132
↓ 1 callersMethod_create_buffers
(self)
deepspeed/inference/v2/modules/implementations/moe/cutlass_multi_gemm.py:77
↓ 1 callersFunction_create_checkpoint_paths
(base_folder, iteration, tp_degree, pp_degree)
deepspeed/checkpoint/ds_to_universal.py:113
↓ 1 callersMethod_create_column_parallel_layer
Create column-parallel layer (AllReduce in backward).
deepspeed/module_inject/auto_tp.py:630
↓ 1 callersMethod_create_context
(self, args, tid, read_op)
deepspeed/nvme/ds_aio_handle.py:85
↓ 1 callersMethod_create_context
(self, args, tid, read_op)
deepspeed/nvme/torch_io.py:39
↓ 1 callersMethod_create_context
(self, args, tid, read_op)
deepspeed/nvme/torch_fastio_engine.py:52
↓ 1 callersMethod_create_context
(self, args, tid, read_op)
deepspeed/nvme/ds_aio_basic.py:43
↓ 1 callersMethod_create_cuda_graph
(self, *inputs, **kwargs)
deepspeed/inference/engine.py:528
↓ 1 callersMethod_create_cuda_graph
(self, *inputs, **kwargs)
deepspeed/model_implementations/transformers/clip_encoder.py:56
↓ 1 callersMethod_create_cuda_graph
(self, *inputs, **kwargs)
deepspeed/model_implementations/diffusers/unet.py:47
↓ 1 callersMethod_create_cuda_graph
(self, *inputs, **kwargs)
deepspeed/model_implementations/diffusers/vae.py:131
↓ 1 callersMethod_create_cuda_graph_decoder
(self, *inputs, **kwargs)
deepspeed/model_implementations/diffusers/vae.py:37
↓ 1 callersMethod_create_cuda_graph_encoder
(self, *inputs, **kwargs)
deepspeed/model_implementations/diffusers/vae.py:80
↓ 1 callersMethod_create_dataloader
(self)
deepspeed/runtime/dataloader.py:126
↓ 1 callersMethod_create_ep_parallel_group
(self, moe_experts)
deepspeed/inference/engine.py:291
↓ 1 callersFunction_create_expert_parallel_info
(groups)
deepspeed/runtime/model_checkpointing/utils.py:46
↓ 1 callersMethod_create_files
(self, args, folder, tid)
deepspeed/nvme/ds_aio_handle.py:64
↓ 1 callersMethod_create_fp16_partitions_with_defragmentation
(self, fp16_param_groups)
deepspeed/runtime/zero/stage3.py:967
← previousnext →3,601–3,700 of 15,468, ranked by callers