MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 1 callersFunction_check_fused_rms_norm_rejects_unsupported_inputs
(hidden_dtype, weight_dtype, width)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:214
↓ 1 callersMethod_check_int4_inference_support
()
op_builder/npu/quantizer.py:304
↓ 1 callersFunction_check_monotone_dest
(piece)
deepspeed/checkpoint/affine.py:935
↓ 1 callersMethod_check_overflow
(self, partition_gradients=True)
deepspeed/runtime/zero/stage3.py:3091
↓ 1 callersMethod_check_overflow
(self, partition_gradients=True)
deepspeed/runtime/zero/stage_1_and_2.py:3326
↓ 1 callersFunction_check_pair_budget
(name: str, parts: int, budget: PlanBudget)
deepspeed/checkpoint/affine_transfer.py:645
↓ 1 callersFunction_check_replace_rms_norm_data_parallel_matches_eager_training
()
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:504
↓ 1 callersFunction_check_replace_rms_norm_fuses_supported_norms
(qualified_name)
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:542
↓ 1 callersFunction_check_replace_rms_norm_runs_the_kernels_only_where_they_apply
()
tests/unit/v1/ops/triton_ops/test_fused_rms_norm.py:588
↓ 1 callersFunction_check_secondary_tensor_existence
(model: Module)
tests/unit/runtime/zero/test_zeropp.py:151
↓ 1 callersFunction_checkout_exact
( head_url: str, head_sha: str, base_url: str, base_sha: str, destination: Path, )
ci/torch_latest.py:446
↓ 1 callersFunction_checkpoint_autoep_layers
(engine)
tests/unit/v1/moe/test_autoep_grad_parity.py:594
↓ 1 callersFunction_checkpoint_moe_layers
Recompute each MoE block in backward, as the benchmarked runs do.
tests/unit/v1/moe/test_autoep_fused_parity.py:103
↓ 1 callersMethod_checkpoint_tag_validation
(self, tag)
deepspeed/runtime/engine.py:4958
↓ 1 callersMethod_checkpointed_block
Block that will be checkpointed
tests/unit/v1/zero/test_zero_user_backward.py:1335
↓ 1 callersMethod_checkpointed_block
(self, x)
tests/unit/v1/zero/test_zero_user_backward.py:1605
↓ 1 callersMethod_checkpointed_block
(self, x)
tests/unit/v1/zero/test_zero_user_backward.py:1693
↓ 1 callersMethod_checkpointed_block
(self, x)
tests/unit/v1/zero/test_zero_user_backward.py:1735
↓ 1 callersMethod_choose_module_key
(self, sd)
deepspeed/inference/engine.py:504
↓ 1 callersFunction_chunks
Tile a strided rectangle by its packed payload, retaining both address spaces.
deepspeed/checkpoint/affine_transfer_executor.py:127
↓ 1 callersFunction_classify_autoep_expert_file_consolidation
(autoep_metadata, expert_files)
deepspeed/checkpoint/ds_to_universal.py:1083
↓ 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:6048
↓ 1 callersMethod_clear_current_context
(state)
deepspeed/runtime/engine.py:462
↓ 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:3913
↓ 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:3942
↓ 1 callersMethod_clear_muon_allgather_buffers
(self)
deepspeed/runtime/zero/stage_1_and_2.py:2137
↓ 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:2706
↓ 1 callersMethod_clear_trace_structures
(self)
deepspeed/runtime/zero/partitioned_param_coordinator.py:174
↓ 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_clone_world_group
Create a clone of the world group Note: We need to clone the dist world group because we use dist.get_global_rank() utility function i
deepspeed/utils/groups.py:742
↓ 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:831
↓ 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:1545
↓ 1 callersFunction_codegen_type_transpose
(input, mp_size, codegen_mp_num=4, meta=meta)
deepspeed/module_inject/fusedqkv_utils.py:110
↓ 1 callersFunction_col_markers
(rows, cols)
tests/unit/checkpoint/test_affine_shard_map.py:45
↓ 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:5074
↓ 1 callersMethod_commit_messages
(self, base_rev: str)
ci/tests_fetcher.py:249
↓ 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:3108
↓ 1 callersMethod_compact_rows
Compact only the row tensors; used by the multi-layer cache.
deepspeed/utils/static_cache.py:159
↓ 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_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)
tests/unit/v1/zero/test_zero3_nvme_offload.py:30
↓ 1 callersFunction_config
(combine_impl, ep_size, mixed_precision=True)
tests/unit/v1/moe/test_autoep_fused_parity.py:56
↓ 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:2444
↓ 1 callersMethod_configure_basic_optimizer
(self, model_parameters)
deepspeed/runtime/engine.py:2549
↓ 1 callersMethod_configure_checkpointing
(self)
deepspeed/runtime/engine.py:1971
↓ 1 callersFunction_configure_defaults
()
deepspeed/runtime/activation_checkpointing/checkpointing.py:1135
↓ 1 callersMethod_configure_distributed_model
(self, model)
deepspeed/runtime/engine.py:2146
↓ 1 callersMethod_configure_fp16_optimizer
(self, optimizer, low_precision_dtype)
deepspeed/runtime/engine.py:2627
↓ 1 callersMethod_configure_lr_scheduler
(self)
deepspeed/runtime/engine.py:1955
↓ 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:876
↓ 1 callersMethod_configure_offloading
(self, offload_optimizer_config, offload_param_config)
deepspeed/runtime/zero/stage3.py:842
↓ 1 callersMethod_configure_optimizer
(self, client_optimizer, model_parameters)
deepspeed/runtime/engine.py:2401
↓ 1 callersMethod_configure_random_ltd_scheduler
(self, configs)
deepspeed/runtime/engine.py:2624
↓ 1 callersMethod_configure_tensor_parallel
(self, model, tp_config)
deepspeed/runtime/engine.py:949
↓ 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:954
↓ 1 callersMethod_configure_tensor_swapping
(self, offload_optimizer_config, aio_config)
deepspeed/runtime/zero/stage3.py:860
↓ 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:2025
↓ 1 callersMethod_consolidate_address
(self, address, contiguous_size)
deepspeed/runtime/zero/contiguous_memory_allocator.py:161
↓ 1 callersMethod_continuous_cache_exhaustion_error
(max_cache_len)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:888
↓ 1 callersMethod_continuous_cache_layer
(cache, layer_idx, prefill_keys, prefill_values, max_batch_size)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1061
↓ 1 callersMethod_continuous_dead_prefix
(attention_mask, active_count)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:954
↓ 1 callersMethod_continuous_graph_signature
(module, max_batch_size, prompt_len, max_cache_len, device, model_dtype)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:829
↓ 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:136
↓ 1 callersFunction_copy_parameter_data
(target: nn.Parameter, source: torch.Tensor)
deepspeed/module_inject/auto_ep_layer.py:123
↓ 1 callersMethod_copy_pinned_master_to_device
Copy the pinned CPU master partition ``src`` into the low-precision device partition ``dst``. The master goes to the device in its own dtype
deepspeed/runtime/zero/stage3.py:2938
↓ 1 callersMethod_copy_recovery_script
(self, save_path)
deepspeed/runtime/engine.py:5628
↓ 1 callersFunction_corrupt_one_piece
(affine_map, rng)
tests/unit/checkpoint/test_affine_shard_map.py:731
↓ 1 callersFunction_count_autoep_layer_forwards
(engine)
tests/unit/v1/moe/test_autoep_deepep_parity.py:159
↓ 1 callersFunction_count_deepep_combines
Counts forward combines; the backward of a dispatch combines through combine_with_weight_grad.
tests/unit/v1/moe/test_autoep_deepep_parity.py:146
↓ 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:420
← previousnext →3,301–3,400 of 14,579, ranked by callers