MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 1 callersMethodvalidate
(self)
deepspeed/inference/v2/model_implementations/inference_policy_base.py:85
↓ 1 callersMethodvalidate
csrc/aio/py_lib/deepspeed_cpu_op.cpp:67
↓ 1 callersFunctionvalidate_adam_states_device
Validates that the sharded Adam optimizer states are on the specified device.
tests/unit/v1/zero/test_offload_states.py:45
↓ 1 callersFunctionvalidate_args
(args)
deepspeed/nvme/perf_generate_param.py:31
↓ 1 callersFunctionvalidate_args
(args)
deepspeed/nvme/ds_aio_args.py:68
↓ 1 callersFunctionvalidate_args
(args)
deepspeed/nvme/parse_nvme_stats.py:103
↓ 1 callersMethodvalidate_args
Validate self.args
deepspeed/launcher/multinode_runner.py:51
↓ 1 callersFunctionvalidate_arguments
(args)
deepspeed/nvme/perf_run_sweep.py:49
↓ 1 callersMethodvalidate_compatibility
Validate public HF compatibility metadata for a selected preset.
deepspeed/module_inject/auto_ep_presets/base.py:182
↓ 1 callersFunctionvalidate_containers
Validate params match what is on the containers.
tests/unit/inference/v2/model_implementations/parameters/test_contiguify.py:84
↓ 1 callersFunctionvalidate_device
(model, state_device: dict[OffloadStateTypeEnum, torch.device], offloaded_states)
tests/unit/v1/zero/test_offload_states.py:352
↓ 1 callersMethodvalidate_embedding
(module)
deepspeed/module_inject/layers.py:1249
↓ 1 callersFunctionvalidate_grad_device
Validates that the sharded gradients are on the specified device.
tests/unit/v1/zero/test_offload_states.py:55
↓ 1 callersFunctionvalidate_hp_params_device
Validates that the sharded FP32 parameters are on the specified device.
tests/unit/v1/zero/test_offload_states.py:33
↓ 1 callersFunctionvalidate_lp_params_device
Validates that the sharded LP parameters are on the specified device.
tests/unit/v1/zero/test_offload_states.py:39
↓ 1 callersMethodvalidate_torch_op_version
Check that a pre-compiled op was built against the device toolkit of the runtime torch. Builders whose ops are compiled against a dev
op_builder/builder.py:249
↓ 1 callersMethodvalidate_torch_version
(torch_info)
op_builder/builder.py:239
↓ 1 callersFunctionvalidate_transformers_ref
(value: str)
ci/torch_latest.py:320
↓ 1 callersFunctionvalidate_uniqueness
(all_blocks: List[torch.Tensor])
tests/unit/inference/v2/ragged/test_blocked_allocator.py:127
↓ 1 callersFunctionvalidate_version
(expected, found)
tests/conftest.py:48
↓ 1 callersFunctionvector_matmul_func
(input, weight, async_op, q_scale, q_int8, transposed_mode)
deepspeed/ops/transformer/inference/triton/ops.py:12
↓ 1 callersFunctionverify_injection
(module)
tests/unit/inference/test_inference.py:251
↓ 1 callersFunctionversion_appropriate_gelu
(activations)
tests/unit/ops/transformer/inference/test_gelu.py:24
↓ 1 callersMethodversion_dependent_macros
(self)
op_builder/xpu/builder.py:44
↓ 1 callersMethodvisible_devices_envs
(self)
accelerator/supa_accelerator.py:280
↓ 1 callersMethodvisible_devices_envs
(self)
accelerator/sdaa_accelerator.py:301
↓ 1 callersMethodvisible_devices_envs
(self)
accelerator/cpu_accelerator.py:515
↓ 1 callersMethodvisible_devices_envs
(self)
accelerator/mlu_accelerator.py:273
↓ 1 callersMethodvisible_devices_envs
(self)
accelerator/npu_accelerator.py:342
↓ 1 callersMethodvisible_devices_envs
(self)
accelerator/xpu_accelerator.py:510
↓ 1 callersMethodvisible_devices_envs
(self)
accelerator/cuda_accelerator.py:426
↓ 1 callersMethodvisible_devices_envs
(self)
accelerator/mps_accelerator.py:297
↓ 1 callersMethodwaitAllgather
csrc/compile/z3.cpp:245
↓ 1 callersMethodwaitOffload
csrc/compile/z3.cpp:396
↓ 1 callersMethodwaitReload
csrc/compile/z3.cpp:405
↓ 1 callersFunctionwait_for_aws_backend
( instance: AwsInstance, run_command: Any = _default_command, *, sleep: Any = time.sleep,
ci/torch_latest.py:998
↓ 1 callersMethodwait_for_external_allgather_dependencies
Make future param all-gathers wait for external GPU writes. Reflow writes updated fp16/bf16 parameter partitions on its own H2D stream. With
deepspeed/runtime/zero/partitioned_param_coordinator.py:165
↓ 1 callersFunctionwait_last_update_and_copy
(optimizer_z3, timer_names)
deepspeed/runtime/zenflow/engine_stage3.py:560
↓ 1 callersMethodwarn_if_nfs
(cache_dir)
deepspeed/ops/transformer/inference/triton/matmul_ext.py:55
↓ 1 callersFunctionwas_interrupted
(filename)
deepspeed/autotuning/utils.py:29
↓ 1 callersFunctionweight_matrix_prepacking
* Inputs: * (1) unsigned char Weight_6bit [M*K*6/8] * Outputs: * (1) unsigned char Weight_2bit [M*K*2/8] * (2) unsigned char Weight_4bit [M*K*4/8]
deepspeed/inference/v2/kernels/core_ops/cuda_linear/include/weight_prepacking.h:146
↓ 1 callersFunctionweight_prepacking_fp16_to_fp6
* Function to prepack FP16 weights into continuous FP6 values. * * Parameters: * weight_16bit: input weight in FP16, size M*K * weight_6
deepspeed/inference/v2/kernels/core_ops/cuda_linear/linear_kernels.cpp:116
↓ 1 callersFunctionwindow
(grads)
tests/unit/v1/zero/test_zero2_gradient_safety.py:730
↓ 1 callersFunctionwithin
(row, start, stop)
deepspeed/checkpoint/affine_geometry.py:104
↓ 1 callersMethodworld_size
(self)
deepspeed/checkpoint/reshape_3d_utils.py:45
↓ 1 callersFunctionwrap_load_from_state_dict
(f)
deepspeed/inference/quantization/utils.py:258
↓ 1 callersFunctionwrap_partition_fn
(z3_partition: bool, partition_fn, real_inputs, param_indices, frame_id: int, frames_par
deepspeed/compile/inductor.py:128
↓ 1 callersFunctionwrap_quantized_functional
(f)
deepspeed/inference/quantization/utils.py:243
↓ 1 callersMethodwrapped
(sub_group_id, grad_scale)
tests/unit/v1/zero/test_zero.py:2260
↓ 1 callersFunctionwrite
(cgroup_line, files)
tests/unit/v1/accelerator/test_accelerator.py:318
↓ 1 callersMethodwrite
(self, buffer)
deepspeed/io/fast_file_writer.py:62
↓ 1 callersFunctionwrite_experiments
(exps: list, exps_dir: str)
deepspeed/autotuning/utils.py:405
↓ 1 callersFunctionwrite_full_into_sharded
Arena-sync semantics: write FULL weights into the TP-sharded rollout storage in place (split dim inferred from shape mismatch — the same contr
tests/integration/zero3_arena_e2e.py:171
↓ 1 callersFunctionwrite_longs
(f, a)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:97
↓ 1 callersMethodwrite_optimal_config
(self)
deepspeed/autotuning/autotuner.py:1079
↓ 1 callersMethodwrite_partition
Only the last writer may submit this chunk to DMA.
csrc/includes/reflow_ready.h:161
↓ 1 callersMethodwrite_unswapped_gradients
(self, src_buffer)
deepspeed/runtime/swap_tensor/optimizer_utils.py:142
↓ 1 callersMethodwriteback_optimizer_state_and_gradients
(self, parameter, write_opt_state, write_gradients)
deepspeed/runtime/swap_tensor/pipelined_optimizer_swapper.py:161
↓ 1 callersFunctionz3_leaf_parameter
Returns whether a parameter belongs to a leaf module. See `set_z3_leaf_modules` for more details. Args: model (torch.nn.Pa
deepspeed/utils/z3_leaf_module.py:26
↓ 1 callersMethodzeMemAllocHost
(self, context, host_desc, size, alignment, out)
tests/unit/v1/pin_memory/test_pin_memory.py:225
↓ 1 callersFunctionzenflow_cpu_optimizer_overlap_step
(optimizer_z3, now_state, scaled_global_grad_norm)
deepspeed/runtime/zenflow/engine_stage3.py:539
↓ 1 callersFunctionzenflow_step
Main step logic for ZenFlow update scheduling. This function performs either: - a selective optimizer update (if at accumulation boundary),
deepspeed/runtime/zenflow/engine.py:93
↓ 1 callersFunctionzero2_align
(x)
deepspeed/utils/zero_to_fp32.py:375
↓ 1 callersFunctionzero3_params_to_fetch
(param_list)
tests/unit/checkpoint/common.py:30
↓ 1 callersMethodzero_allgather_sequential
(self)
deepspeed/runtime/engine.py:1856
↓ 1 callersMethodzero_allow_untested_optimizer
(self)
deepspeed/runtime/engine.py:1628
↓ 1 callersMethodzero_contiguous_gradients
(self)
deepspeed/runtime/engine.py:1711
↓ 1 callersMethodzero_cpu_offload
(self)
deepspeed/runtime/engine.py:1651
↓ 1 callersMethodzero_force_ds_cpu_optimizer
(self)
deepspeed/runtime/engine.py:1631
↓ 1 callersMethodzero_gather_16bit_weights_on_model_save
(self)
deepspeed/runtime/engine.py:1741
↓ 1 callersMethodzero_grad
Zero parameter grads.
deepspeed/runtime/engine.py:3655
↓ 1 callersMethodzero_grad
Zero FP16 parameter grads.
deepspeed/runtime/zero/stage_1_and_2.py:2707
↓ 1 callersMethodzero_grad
Zero FP16 parameter grads.
deepspeed/runtime/fp16/fused_optimizer.py:137
↓ 1 callersMethodzero_grad
Zero FP16 parameter grads.
deepspeed/runtime/fp16/unfused_optimizer.py:110
↓ 1 callersMethodzero_hpz_partition_size
(self)
deepspeed/runtime/engine.py:1841
↓ 1 callersMethodzero_ignore_unused_parameters
(self)
deepspeed/runtime/engine.py:1747
↓ 1 callersMethodzero_legacy_stage1
(self)
deepspeed/runtime/engine.py:1744
↓ 1 callersMethodzero_log_trace_cache_warnings
(self)
deepspeed/runtime/engine.py:1853
↓ 1 callersMethodzero_max_live_parameters
(self)
deepspeed/runtime/engine.py:1723
↓ 1 callersMethodzero_max_reuse_distance
(self)
deepspeed/runtime/engine.py:1726
↓ 1 callersMethodzero_model_persistence_threshold
(self)
deepspeed/runtime/engine.py:1738
↓ 1 callersMethodzero_module_granularity_threshold
(self)
deepspeed/runtime/engine.py:1732
↓ 1 callersMethodzero_multi_rank_bucket_allreduce
(self)
deepspeed/runtime/engine.py:1690
↓ 1 callersMethodzero_param_persistence_threshold
(self)
deepspeed/runtime/engine.py:1735
↓ 1 callersMethodzero_parameter_alignment
(self)
deepspeed/runtime/engine.py:1838
↓ 1 callersMethodzero_partial_offload
(self)
deepspeed/runtime/engine.py:1656
↓ 1 callersMethodzero_prefetch_bucket_size
(self)
deepspeed/runtime/engine.py:1729
↓ 1 callersMethodzero_quantized_nontrainable_weights
(self)
deepspeed/runtime/engine.py:1847
↓ 1 callersMethodzero_reduce_scatter
(self)
deepspeed/runtime/engine.py:1634
↓ 1 callersMethodzero_retain_gpu_grad_partition_until_step
(self)
deepspeed/runtime/engine.py:1699
↓ 1 callersMethodzero_round_robin_gradients
(self)
deepspeed/runtime/engine.py:1835
↓ 1 callersMethodzero_save_muon_momentum_buffer_in_memory
(self)
deepspeed/runtime/engine.py:1750
↓ 1 callersMethodzero_sub_group_size
(self)
deepspeed/runtime/engine.py:1665
↓ 1 callersFunctionzero_wrapper_for_fp_tensor_constructor
(fn: Callable, target_fp_dtype: torch.dtype, target_device: torch.d
deepspeed/runtime/zero/partition_parameters.py:258
↓ 1 callersFunctionzeropower_via_gram_newtonschulz
Gram Newton-Schulz iteration for orthogonalization. Mathematically equivalent to standard Newton-Schulz but iterates on the small square
deepspeed/runtime/zero/muon/original_muon.py:82
↓ 1 callersFunctionzeropower_via_newtonschulz5
Newton-Schulz iteration to compute the zeroth power / orthogonalization of G. We opt to use a quintic iteration whose coefficients are select
deepspeed/runtime/zero/muon/original_muon.py:51
MethodAdagrad_Optimizer
csrc/includes/cpu_adagrad.h:25
MethodAdagrad_Optimizer
csrc/xpu/includes/cpu_adagrad.h:27
MethodAdam_Optimizer
csrc/includes/cpu_adam.h:30
MethodAdam_Optimizer
csrc/xpu/includes/cpu_adam.h:30
← previousnext →6,201–6,300 of 15,468, ranked by callers