MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 3 callersMethod_model_parallel_all_reduce
Perform all reduce within model parallel group, if any.
deepspeed/runtime/zero/stage_1_and_2.py:2736
↓ 3 callersMethod_module_list_model
(self, monkeypatch)
tests/unit/v1/moe/test_autoep_unit.py:3140
↓ 3 callersFunction_module_with_narrow_param
Linear layer plus a submodule holding a frozen quantized weight and its scale.
tests/unit/v1/half_precision/test_mixed_precision_dtype.py:33
↓ 3 callersFunction_muon_flags
(model)
tests/unit/runtime/zero/test_muon_use_muon_under_zero_init.py:36
↓ 3 callersFunction_narrow_sub_params
Take this rank's piece of every sub-parameter and concatenate them back together. ``shard_widths`` gives the per-rank width of each sub-parameter
deepspeed/checkpoint/universal_checkpoint.py:108
↓ 3 callersFunction_native_kernel_ready
The CUDA kernels read raw BFloat16 pointers only, so anything else (fp16 weights, non-contiguous views) must take the composite reference path
deepspeed/module_inject/segment_ki.py:128
↓ 3 callersMethod_num_bytes
(tensor: torch.Tensor)
deepspeed/runtime/activation_checkpointing/offload_activations.py:116
↓ 3 callersFunction_offloaded_stage3_param
(selected_indices)
tests/unit/ops/adam/test_zf_torch_adam.py:227
↓ 3 callersFunction_one_request_pair
()
tests/unit/checkpoint/test_affine_replica_policy.py:253
↓ 3 callersFunction_operator_profile_complete
Require the graph marker plus per-node absolute start and peak memory.
deepspeed/compile/passes/zero3_compile.py:69
↓ 3 callersMethod_optimizer
(self, optimizer_class, **fp16_config)
tests/unit/runtime/half_precision/test_dynamic_loss_scale.py:306
↓ 3 callersMethod_optimizer_has_ckpt_event_epilogue
(self)
deepspeed/runtime/engine.py:2033
↓ 3 callersMethod_optimizer_has_ckpt_event_prologue
(self)
deepspeed/runtime/engine.py:2030
↓ 3 callersFunction_oracle_storage
What each global rank stores, built by indexing the full tensor rather than through a map.
tests/unit/checkpoint/test_autoep_affine.py:243
↓ 3 callersFunction_ordered_bits
Integers whose difference is the distance in representable values, for 16-bit floats.
tests/unit/v1/runtime/test_chunked_cross_entropy.py:54
↓ 3 callersMethod_partition_autoep_zero3_experts
(replacement, convert_to_zero_parameters)
deepspeed/runtime/engine.py:985
↓ 3 callersFunction_partition_logical_tensor
(tensor, partition_dim, tp_world_size, tp_index, shard_widths, subparam_sizes=None)
deepspeed/module_inject/layers.py:2184
↓ 3 callersMethod_partition_param_sec
(self, param, buffer=None, has_been_updated=False)
deepspeed/runtime/zero/partition_parameters.py:1883
↓ 3 callersMethod_partitioned_buffers_all_gather
Allgather the partitioned buffers of the parameters to the global buffer. Args: params: List[Parameter] buffe
deepspeed/runtime/zero/stage3.py:2296
↓ 3 callersFunction_patch_kwargs
(kwargs, monkeypatch)
tests/unit/compile/test_inductor_aot_kwargs.py:51
↓ 3 callersFunction_per_head_orthogonalize
Newton-Schulz per attention head, then fold the head dim back.
deepspeed/runtime/zero/muon/original_muon.py:170
↓ 3 callersMethod_phase1_buffer
The phase-1 slot of the micro-batch held in phase-0 slot ``buffer_id``.
deepspeed/runtime/pipe/dualpipev.py:186
↓ 3 callersMethod_pin_fresh
(self, template, shape)
accelerator/abstract_accelerator.py:332
↓ 3 callersMethod_placeholder
(self, param)
tests/unit/ops/adam/test_zf_torch_adam.py:204
↓ 3 callersMethod_pool_cpu_buffer
(self, key: _BufferKey, tensor: torch.Tensor)
deepspeed/runtime/activation_checkpointing/offload_activations.py:150
↓ 3 callersFunction_pre_ln_test_helper
(n_tokens: int, n_channels: int, dtype: torch.dtype, res_add: bool = False)
tests/unit/inference/v2/modules/test_cuda_pre_ln_module.py:36
↓ 3 callersFunction_pre_rms_test_helper
(n_tokens: int, n_channels: int, dtype: torch.dtype, res_add: bool = False)
tests/unit/inference/v2/modules/test_pre_rms_module.py:38
↓ 3 callersMethod_precompute_checkpointable_values
(self)
deepspeed/runtime/pipe/module.py:221
↓ 3 callersMethod_profile_end
(profile, field, start, count=None)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1609
↓ 3 callersMethod_profile_start
(profile)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:1602
↓ 3 callersMethod_qkv_gemm
(inputs, weight, q_scale, bias, gamma, beta, eps, add_bias, q_int8, transpose)
op_builder/npu/inference.py:114
↓ 3 callersMethod_quantize_groups
Per-group symmetric quantization of an fp32 [groups, elems] tensor. Returns the quantized values (int32, in the representable range) and
op_builder/npu/quantizer.py:66
↓ 3 callersFunction_quantize_module
(model, policies)
deepspeed/module_inject/module_quantize.py:62
↓ 3 callersMethod_raise_if_autoep_zero3_consolidated_export
(self, operation)
deepspeed/runtime/engine.py:5914
↓ 3 callersMethod_reassign_or_swap_out_partitioned_parameters_async
Asynchronously update partitioned parameters with optimized values.
deepspeed/runtime/superoffload/superoffload_stage3.py:184
↓ 3 callersFunction_rebuild_zero3_autoep_rank_tensors
(ep_tensors, affine_map_or_placement, logical_shape, context)
deepspeed/checkpoint/ds_to_universal.py:782
↓ 3 callersFunction_record_grad_scales
(factors)
tests/unit/v1/zero/test_zero.py:2324
↓ 3 callersMethod_record_grad_set
Record that the safe_set APIs set param's gradient partition to value, so that the boundary keeps it. Without optimizer offload they write th
deepspeed/runtime/zero/stage3.py:1663
↓ 3 callersMethod_record_offload_copy
(self)
deepspeed/runtime/zero/stage_1_and_2.py:1847
↓ 3 callersMethod_recursive_getattr
Allow getting an attribute like "linear.weight
deepspeed/runtime/pipe/module.py:449
↓ 3 callersFunction_reduce_int
Reduce an integer scheduling input, or preserve it outside distributed mode.
deepspeed/compile/passes/zero3_compile.py:33
↓ 3 callersFunction_reference_grad
(model, inputs)
tests/unit/runtime/zero/test_zero_shared_loss_gradient.py:79
↓ 3 callersFunction_reference_unpermute
(expert_output, permuted_indices, n_tokens)
tests/unit/v1/moe/test_autoep_permute_rows.py:23
↓ 3 callersFunction_released
(param)
tests/unit/runtime/zero/test_zero_stale_handle_wait.py:17
↓ 3 callersMethod_replace_with_config
Replace layer using the new configurable AutoTP API. This method uses TPLayerSpec to determine how to partition the layer.
deepspeed/module_inject/auto_tp.py:526
↓ 3 callersFunction_require_aio_cuda
()
tests/unit/v1/nvme/test_aio_gil.py:25
↓ 3 callersFunction_require_liger
()
tests/unit/v1/sequence_parallelism/test_liger_vocab_parallel_cross_entropy.py:24
↓ 3 callersFunction_require_native
(monkeypatch)
tests/unit/v1/accelerator/test_accelerator.py:84
↓ 3 callersFunction_rescale_to_global_max
(local_max, global_max)
deepspeed/sequence/vocab_parallel_ops.py:122
↓ 3 callersMethod_residual_add_bias
(hidden_state, residual, attention_output, attention_bias, final_bias, mp_size, mlp
op_builder/npu/inference.py:453
↓ 3 callersMethod_resolve_presets
Determine which preset(s) to use for detection.
deepspeed/module_inject/auto_ep.py:769
↓ 3 callersFunction_restore_ckpt_config
(saved)
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:128
↓ 3 callersMethod_riscv_has_vector
(self)
op_builder/builder.py:423
↓ 3 callersFunction_router_bias_buffers
The routers' e_score_correction_bias buffers by name. They steer expert selection, and as buffers they are not in the universal checkpoint's zero/
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:734
↓ 3 callersFunction_router_biases
(engine)
tests/unit/v1/moe/test_autoep_autotp_sharded_attention.py:745
↓ 3 callersFunction_router_params
(engine)
tests/unit/v1/moe/test_autoep_checkpoint.py:143
↓ 3 callersFunction_rows
(box)
deepspeed/checkpoint/affine.py:1030
↓ 3 callersFunction_run_folded_checkpoint_same_topology_resume
(checkpoint_dir, *, ep_size=2, mixed_precision=True)
tests/unit/v1/moe/test_autoep_autotp_checkpoint.py:258
↓ 3 callersFunction_run_gate
Run ci/check_paths.py in ``repo``; return its exit code and what it wrote to GITHUB_OUTPUT.
ci/test_tests_fetcher.py:295
↓ 3 callersFunction_run_on
(device, op, student, teacher, index)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:540
↓ 3 callersMethod_run_test
(self, tmpdir, dtype, ds_config, load_optim, use_torch_adam, world_size)
tests/unit/checkpoint/test_universal_checkpoint.py:223
↓ 3 callersFunction_run_until_boundary
(engine, *, logical_dp_world_size, logical_dp_rank, grad_accum, seed)
tests/unit/v1/moe/test_autoep_grad_parity.py:111
↓ 3 callersFunction_scheduler_debug_enabled
()
deepspeed/compile/passes/zero3_compile.py:105
↓ 3 callersFunction_set_module_by_name
Replace the submodule at *dotted_name* with *new_module* in-place.
deepspeed/sequence/auto_sp.py:134
↓ 3 callersFunction_set_vocab_parallel_loss
(model, loss_fn)
deepspeed/sequence/cross_entropy.py:428
↓ 3 callersMethod_setup_baseline_linears
(self, model)
tests/unit/v1/autotp/test_tp_plan_e2e.py:55
↓ 3 callersFunction_shared_qk_shard_fn
(shard_value, meta)
tests/unit/checkpoint/test_affine_shard_map.py:157
↓ 3 callersFunction_skip_if_unsupported
Mirror the check the engine itself makes. `_do_sanity_check` raises `Type fp16 is not supported on your device.` on `not get_accelerator().is
tests/unit/runtime/zero/test_muon_without_zero_optimizer.py:82
↓ 3 callersFunction_skip_unless_cuda_grouped_mm
()
tests/unit/v1/moe/test_autoep_grad_parity.py:803
↓ 3 callersFunction_skip_unsupported_dtype
(dtype)
tests/unit/v1/ops/triton_ops/test_group_gemm_triton.py:174
↓ 3 callersMethod_slice_autoep_universal_expert_param
(self, checkpoint_state, param)
deepspeed/runtime/zero/stage3.py:4290
↓ 3 callersMethod_slice_embedding
(self, child, name, conv_linear_layer)
deepspeed/module_inject/auto_tp.py:989
↓ 3 callersFunction_snapshot_ckpt_config
()
tests/unit/runtime/activation_checkpointing/test_activation_checkpointing.py:123
↓ 3 callersMethod_softmax_context
(query_key_value, attn_mask, rotary_dim,
op_builder/npu/inference.py:193
↓ 3 callersFunction_source_param_shape
(param: torch.Tensor | nn.Parameter)
deepspeed/module_inject/auto_ep.py:102
↓ 3 callersFunction_spawn
(target, *args)
tests/unit/checkpoint/test_fp32_master_only.py:195
↓ 3 callersFunction_split_plan_counts
(scenario)
tests/unit/v1/moe/test_autoep_unit.py:1883
↓ 3 callersMethod_stop_timers
(self, timer_names)
deepspeed/runtime/engine.py:3896
↓ 3 callersMethod_sub_group_optimizer
The optimizer that steps a sub-group and holds its state.
deepspeed/runtime/zero/stage3.py:1332
↓ 3 callersMethod_sycl_env_paths
Find the SYCL include and lib directories from the Python environment. When using PyTorch XPU wheels, libsycl.so and SYCL headers are
op_builder/xpu/builder.py:61
↓ 3 callersMethod_test_set_z3_leaf_modules
(self, cls, requires_grad)
tests/unit/runtime/zero/test_zero_leaf_module.py:327
↓ 3 callersFunction_train
Train one step per entry of `schedule` and return the weights after each step.
tests/unit/v1/zero/test_zero3_unused_param_grads.py:115
↓ 3 callersFunction_trainable_parameters
(engine)
tests/unit/v1/moe/test_autoep_grad_parity.py:600
↓ 3 callersFunction_triton_device
()
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:517
↓ 3 callersFunction_unflatten_dense_tensors
View a flat buffer using the sizes of tensors. Assume that tensors are of same dense type, and that flat is given by _flatten_dense_tensors.
deepspeed/runtime/zenflow/zenflow_utils.py:37
↓ 3 callersFunction_unpadded_master
(engine)
tests/unit/checkpoint/test_fp32_master_only.py:67
↓ 3 callersMethod_update_hp_grad
(self, lp, group_idx, param_idx, clear_lp_grads)
deepspeed/runtime/bf16_optimizer.py:513
↓ 3 callersMethod_update_param_state_info
(self, swap_info, parameter)
deepspeed/runtime/swap_tensor/optimizer_utils.py:516
↓ 3 callersMethod_update_scale
(self, skip)
deepspeed/runtime/fp16/unfused_optimizer.py:277
↓ 3 callersMethod_valid_micro_batch
(self, micro_batch_id)
deepspeed/runtime/pipe/schedule.py:80
↓ 3 callersFunction_validate_stochastic_mode
(config)
deepspeed/ops/transformer/transformer.py:143
↓ 3 callersMethod_values
(kind)
tests/unit/checkpoint/test_affine_transfer_executor.py:362
↓ 3 callersMethod_vector_matmul
(input, weight, async_op, q_scale, q_int8, transposed_mode)
op_builder/npu/inference.py:394
↓ 3 callersFunction_verify_continuous_decrease
(values)
tests/unit/runtime/test_lr_schedulers.py:24
↓ 3 callersMethod_wait_for_async_operations
Wait for all pending asynchronous CPU optimizer operations to complete with timeout error. Args: timeout_seconds (int): Maximum t
deepspeed/runtime/superoffload/superoffload_stage3.py:374
↓ 3 callersMethod_wildcard_to_regex
(pattern: str)
deepspeed/module_inject/tp_plan_converter.py:91
↓ 3 callersFunction_zero3_config
(*, max_reuse_distance=10**9, use_preferred_dtype=False)
tests/unit/runtime/zero/test_zero_params_to_release_cache.py:107
↓ 3 callersMethod_zero3_consolidated_16bit_state_dict
Get a full non-partitioned state_dict with fp16 weights on cpu. Important: this function must be called on all ranks and not just ran
deepspeed/runtime/engine.py:5921
↓ 3 callersMethod_zero3_partition_group_metadata
(self)
deepspeed/runtime/zero/stage3.py:3786
↓ 3 callersFunction_zero3_tp_dp_ranks_from_file
(path)
deepspeed/checkpoint/ds_to_universal.py:624
← previousnext →1,601–1,700 of 15,767, ranked by callers