MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 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:178
↓ 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:271
↓ 1 callersMethodvalidate_embedding
(module)
deepspeed/module_inject/layers.py:1245
↓ 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
(torch_info)
op_builder/builder.py:182
↓ 1 callersMethodvalidate_torch_version
(torch_info)
op_builder/builder.py:171
↓ 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_allgather
Verify that each rank's partition contains the expected fill pattern.
examples/sdma_allgather/test_sdma_allgather_zero3.py:35
↓ 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:511
↓ 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:496
↓ 1 callersMethodvisible_devices_envs
(self)
accelerator/cuda_accelerator.py:419
↓ 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 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:543
↓ 1 callersFunctionwithin
(row, start, stop)
deepspeed/checkpoint/affine_geometry.py:74
↓ 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
(*args, **kwargs)
deepspeed/runtime/zero/partition_parameters.py:1676
↓ 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 callersMethodwrite
(self, args, tid)
csrc/aio/py_test/torch_io.py:29
↓ 1 callersFunctionwriteAs
csrc/includes/simd.h:29
↓ 1 callersFunctionwrite_experiments
(exps: list, exps_dir: str)
deepspeed/autotuning/utils.py:405
↓ 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_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:1803
↓ 1 callersMethodzero_allow_untested_optimizer
(self)
deepspeed/runtime/engine.py:1575
↓ 1 callersMethodzero_contiguous_gradients
(self)
deepspeed/runtime/engine.py:1658
↓ 1 callersMethodzero_cpu_offload
(self)
deepspeed/runtime/engine.py:1598
↓ 1 callersMethodzero_force_ds_cpu_optimizer
(self)
deepspeed/runtime/engine.py:1578
↓ 1 callersMethodzero_gather_16bit_weights_on_model_save
(self)
deepspeed/runtime/engine.py:1688
↓ 1 callersMethodzero_grad
Zero parameter grads.
deepspeed/runtime/engine.py:3578
↓ 1 callersMethodzero_grad
Zero FP16 parameter grads.
deepspeed/runtime/zero/stage_1_and_2.py:2689
↓ 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:1788
↓ 1 callersMethodzero_ignore_unused_parameters
(self)
deepspeed/runtime/engine.py:1694
↓ 1 callersMethodzero_legacy_stage1
(self)
deepspeed/runtime/engine.py:1691
↓ 1 callersMethodzero_log_trace_cache_warnings
(self)
deepspeed/runtime/engine.py:1800
↓ 1 callersMethodzero_max_live_parameters
(self)
deepspeed/runtime/engine.py:1670
↓ 1 callersMethodzero_max_reuse_distance
(self)
deepspeed/runtime/engine.py:1673
↓ 1 callersMethodzero_model_persistence_threshold
(self)
deepspeed/runtime/engine.py:1685
↓ 1 callersMethodzero_module_granularity_threshold
(self)
deepspeed/runtime/engine.py:1679
↓ 1 callersMethodzero_multi_rank_bucket_allreduce
(self)
deepspeed/runtime/engine.py:1637
↓ 1 callersMethodzero_param_persistence_threshold
(self)
deepspeed/runtime/engine.py:1682
↓ 1 callersMethodzero_parameter_alignment
(self)
deepspeed/runtime/engine.py:1785
↓ 1 callersMethodzero_partial_offload
(self)
deepspeed/runtime/engine.py:1603
↓ 1 callersMethodzero_prefetch_bucket_size
(self)
deepspeed/runtime/engine.py:1676
↓ 1 callersMethodzero_quantized_nontrainable_weights
(self)
deepspeed/runtime/engine.py:1794
↓ 1 callersMethodzero_reduce_scatter
(self)
deepspeed/runtime/engine.py:1581
↓ 1 callersMethodzero_retain_gpu_grad_partition_until_step
(self)
deepspeed/runtime/engine.py:1646
↓ 1 callersMethodzero_round_robin_gradients
(self)
deepspeed/runtime/engine.py:1782
↓ 1 callersMethodzero_save_muon_momentum_buffer_in_memory
(self)
deepspeed/runtime/engine.py:1697
↓ 1 callersMethodzero_sub_group_size
(self)
deepspeed/runtime/engine.py:1612
↓ 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
MethodAdd>
deepspeed/inference/v2/kernels/includes/reduction_utils.h:157
MethodAdd>
csrc/includes/reduction_utils.h:161
MethodApplyLogSumExp
csrc/deepspeed4science/evoformer_attn/epilogue/epilogue_thread_apply_logsumexp.h:129
MethodAsymmetric, numBits> get_params
csrc/includes/quantization_utils.h:241
MethodBFloat16Tensor
(self)
accelerator/hpu_accelerator.py:207
MethodBFloat16Tensor
(self)
accelerator/supa_accelerator.py:199
← previousnext →5,901–6,000 of 14,579, ranked by callers