MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 1 callersFunctionget_scale_zero_point
(q_bits, is_symmetric_quant, max, min, absmax, scales=None, zero_points=None)
tests/unit/ops/quantizer/test_quantize.py:50
↓ 1 callersFunctionget_schedule
(args, read_op)
deepspeed/nvme/io_engine.py:55
↓ 1 callersFunctionget_scheduler_params
(param_dict)
deepspeed/runtime/config.py:337
↓ 1 callersMethodget_seq_length
(self)
deepspeed/utils/static_cache.py:145
↓ 1 callersFunctionget_shm_size
()
deepspeed/env_report.py:104
↓ 1 callersMethodget_split_state_dict
(self, mp_world_size, mp_rank)
deepspeed/runtime/state_dict_factory.py:125
↓ 1 callersMethodget_stage_times
(self)
deepspeed/runtime/rollout/hybrid_engine_rollout.py:92
↓ 1 callersMethodget_start_end_idx
given the length of a minibatch (defaults to micro-batch size * data_parallel_size), return the start and end indices of the current
deepspeed/runtime/data_pipeline/data_sampling/data_sampler.py:122
↓ 1 callersMethodget_state
Return the Adam state of each sub-group that has taken a step, keyed by sub-group id.
deepspeed/runtime/superoffload/superoffload_utils.py:318
↓ 1 callersMethodget_state_for_rank
(self, pp_index, tp_index, dp_index, keys_to_ignore=[], strip_tensor_paddings=True)
deepspeed/checkpoint/zero_checkpoint.py:53
↓ 1 callersMethodget_stderr
(self)
deepspeed/nvme/ds_aio_job.py:26
↓ 1 callersMethodget_stdout
(self)
deepspeed/nvme/ds_aio_job.py:23
↓ 1 callersFunctionget_steps_per_print
(param_dict)
deepspeed/runtime/config.py:257
↓ 1 callersMethodget_summary_writer
(self, base=os.path.join(os.path.expanduser("~"), "tensorboard"))
deepspeed/monitor/tensorboard.py:27
↓ 1 callersMethodget_swap_buffers_and_paths
(self, pinned)
deepspeed/runtime/swap_tensor/optimizer_utils.py:93
↓ 1 callersMethodget_swap_gradient_buffers
(self, swap_buffer)
deepspeed/runtime/swap_tensor/optimizer_utils.py:123
↓ 1 callersMethodget_swap_gradient_paths
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:127
↓ 1 callersFunctionget_sweep_cmd_lines
(sweep_config_dict)
deepspeed/nvme/perf_run_sweep.py:135
↓ 1 callersFunctionget_sweep_config_dict
(sweep_config_json)
deepspeed/nvme/perf_run_sweep.py:126
↓ 1 callersFunctionget_tensor_kwarg
(func, kwargs)
deepspeed/comm/utils.py:89
↓ 1 callersFunctionget_tensor_model_parallel_rank
Return my rank for the tensor model parallel group.
deepspeed/utils/groups.py:313
↓ 1 callersFunctionget_tensor_parallel_config
(ds_config)
deepspeed/runtime/tensor_parallel/config.py:157
↓ 1 callersFunctionget_tensor_position
(func)
deepspeed/comm/utils.py:65
↓ 1 callersFunctionget_thread_count
(file)
deepspeed/nvme/parse_nvme_stats.py:67
↓ 1 callersMethodget_tied_weights_and_groups
(self)
deepspeed/runtime/pipe/module.py:463
↓ 1 callersMethodget_timer_names
(self)
deepspeed/runtime/swap_tensor/async_swapper.py:50
↓ 1 callersFunctionget_timers_config
(param_dict)
deepspeed/utils/config.py:27
↓ 1 callersMethodget_tokenizer
(self, model_name)
tests/unit/hybrid_engine/test_he_lora.py:133
↓ 1 callersFunctionget_tolerances
()
tests/unit/ops/transformer/inference/inference_test_utils.py:14
↓ 1 callersFunctionget_tolerances
()
tests/unit/ops/transformer/inference/test_residual_add.py:21
↓ 1 callersFunctionget_tolerances
()
tests/unit/inference/v2/inference_test_utils.py:14
↓ 1 callersFunctionget_torch_autocast_dtype
(param_dict)
deepspeed/runtime/config.py:191
↓ 1 callersFunctionget_torch_autocast_enabled
(param_dict)
deepspeed/runtime/config.py:184
↓ 1 callersMethodget_total_operations
Get total number of communication operations logged across all types. Returns: int: Total count of operations
deepspeed/utils/comms_logging.py:158
↓ 1 callersFunctionget_train_batch_size
(param_dict)
deepspeed/runtime/config.py:344
↓ 1 callersFunctionget_train_micro_batch_size_per_gpu
(param_dict)
deepspeed/runtime/config.py:348
↓ 1 callersMethodget_train_sentences
(self, batch_size)
tests/unit/hybrid_engine/test_he_lora.py:138
↓ 1 callersFunctionget_trans_op
deepspeed/inference/v2/kernels/core_ops/blas_kernels/blas_utils.h:61
↓ 1 callersFunctionget_transformer_name
(replaced_module)
deepspeed/module_inject/replace_module.py:27
↓ 1 callersMethodget_tuning_micro_batch_size_list
Get a list of micro batch sizes to tune based on min and max values, as well as the size of the list. Args: min_micro_batch_size (
deepspeed/autotuning/autotuner.py:1014
↓ 1 callersMethodget_unaligned_num_bytes
(self)
deepspeed/io/base_io_buffer.py:37
↓ 1 callersMethodget_unpinned_state_tensors
(self)
deepspeed/runtime/swap_tensor/optimizer_utils.py:130
↓ 1 callersFunctionget_user
()
deepspeed/autotuning/scheduler.py:302
↓ 1 callersFunctionget_validated_args
()
deepspeed/nvme/ds_aio_args.py:199
↓ 1 callersMethodget_value
(self, global_steps)
deepspeed/runtime/data_pipeline/data_routing/scheduler.py:30
↓ 1 callersMethodget_var_name_for_arg
(self, arg: str)
deepspeed/compile/inductor.py:258
↓ 1 callersMethodget_w
(self)
tests/unit/modeling.py:403
↓ 1 callersMethodget_w
(self)
tests/unit/modelingpreln.py:445
↓ 1 callersFunctionget_wall_clock_breakdown
(param_dict)
deepspeed/runtime/config.py:356
↓ 1 callersMethodget_workspace
Allocate workspace for the kernel. The workspace is used to store the intermediate results of the matmul before split-K. The split-K
deepspeed/inference/v2/kernels/core_ops/cuda_linear/cuda_linear.py:199
↓ 1 callersFunctionget_z3_leaf_modules
Returns a list of modules in `model` that have been flagged as 'leaf' modules. See `set_z3_leaf_modules` for more details. Args:
deepspeed/utils/z3_leaf_module.py:37
↓ 1 callersFunctionget_zero_allow_untested_optimizer
(param_dict)
deepspeed/runtime/config.py:322
↓ 1 callersFunctionget_zero_config
(param_dict)
deepspeed/runtime/zero/config.py:72
↓ 1 callersFunctionget_zero_force_ds_cpu_optimizer
(param_dict)
deepspeed/runtime/config.py:326
↓ 1 callersFunctiongpu_input_count
Number of local GPUs/processes the job was launched with (the 'GPU input'), matching the num_local_procs DeepSpeed uses for --bind_cores_to_rank c
deepspeed/runtime/reflow/reflow_utils.py:49
↓ 1 callersFunctiongpu_numa_node_for_device
Return the NUMA node id that a CUDA device's PCIe link is physically attached to, or -1 if unknown. Reads the device's PCI address numa_node from
deepspeed/runtime/reflow/reflow_utils.py:74
↓ 1 callersFunctiongpu_pci_id
Return a unique integer key for a CUDA device's real PCI address (domain/bus/device), used to order GPUs deterministically across ranks; -1 if una
deepspeed/runtime/reflow/reflow_utils.py:106
↓ 1 callersFunctiongrads
()
tests/unit/runtime/activation_checkpointing/test_offload_activations.py:221
↓ 1 callersMethodgrep_latency_from_file
(self, file_name)
tests/model/Megatron_GPT2/run_perf_baseline.py:98
↓ 1 callersMethodgrep_latency_from_file
(self, file_name)
tests/model/Megatron_GPT2/run_perf_test.py:102
↓ 1 callersFunctiongroup_lengths
(params)
tests/unit/runtime/zero/test_autoep_zero3_init.py:193
↓ 1 callersFunctionh100_tests_enabled
()
tests/unit/v1/moe/autoep_test_utils.py:28
↓ 1 callersMethodhasParam
csrc/compile/z3.cpp:425
↓ 1 callersMethodhasReloadBuffer
csrc/compile/z3.cpp:423
↓ 1 callersFunctionhas_all_reduce_coalesced
()
deepspeed/comm/torch.py:88
↓ 1 callersFunctionhas_inf_or_nan
(x)
tests/unit/v1/zero/test_invalid_grad_norm.py:20
↓ 1 callersMethodhas_loss_data
(self, file_name)
tests/model/BingBertSquad/BingBertSquad_run_func_test.py:141
↓ 1 callersMethodhas_next
Whether there exists more configurations for evaluation
deepspeed/autotuning/tuner/base_tuner.py:24
↓ 1 callersMethodhas_outstanding_graph_claim
(self, param)
deepspeed/compile/z3_eager_fallback.py:152
↓ 1 callersMethodhas_overflow
(self, params, has_moe_params=None)
deepspeed/runtime/utils.py:304
↓ 1 callersMethodhas_overflow
(self, partition_gradients=True)
deepspeed/runtime/zero/stage3.py:3389
↓ 1 callersMethodhas_overflow
(self, partition_gradients=True)
deepspeed/runtime/zero/stage_1_and_2.py:3364
↓ 1 callersMethodhas_overflow
(self, params)
deepspeed/runtime/fp16/loss_scaler.py:192
↓ 1 callersMethodhas_overflow_partitioned_grads_serial
(self)
deepspeed/runtime/zero/stage_1_and_2.py:3356
↓ 1 callersMethodhas_overflow_serial
(self, params)
deepspeed/runtime/utils.py:298
↓ 1 callersMethodhas_overflow_serial
(self, params, is_grad_list=False)
deepspeed/runtime/zero/stage3.py:3374
↓ 1 callersMethodhas_previous_state
(self, layer_idx: int = 0, state_idx: int = 0)
deepspeed/utils/static_cache.py:452
↓ 1 callersMethodhas_unequal_sub_params
Check if this spec has unequal sub-parameters (nested tuple at partition_dim).
deepspeed/module_inject/autotp_config.py:187
↓ 1 callersFunctionheuristic_rank_cores
Positional NUMA assignment used only when the real GPU->NUMA topology is unavailable.
deepspeed/runtime/reflow/reflow_utils.py:248
↓ 1 callersMethodhipify_extension
(self)
op_builder/builder.py:235
↓ 1 callersFunctionhuman_readable_size
(size)
deepspeed/env_report.py:124
↓ 1 callersFunctionin_aml
()
deepspeed/comm/comm.py:949
↓ 1 callersFunctionin_aws_sm
()
deepspeed/comm/comm.py:954
↓ 1 callersFunctionin_dlts
()
deepspeed/comm/comm.py:959
↓ 1 callersMethodin_module_list
(module, module_list)
deepspeed/module_inject/auto_tp.py:301
↓ 1 callersMethodinclude_paths
(self)
op_builder/mps/cpu_adam.py:29
↓ 1 callersMethodinclude_paths
(self)
op_builder/klxpu/utils.py:20
↓ 1 callersMethodinclude_paths
(self)
op_builder/sdaa/cpu_adam.py:52
↓ 1 callersMethodinclude_paths
(self)
op_builder/hpu/cpu_adam.py:27
↓ 1 callersMethodinclude_paths
(self)
op_builder/supa/cpu_lion.py:20
↓ 1 callersMethodinclude_paths
(self)
op_builder/mlu/cpu_adam.py:27
↓ 1 callersMethodincrement
(self, numel)
deepspeed/runtime/zero/partitioned_param_profiler.py:22
↓ 1 callersMethodindependent_gradient_partition_epilogue
(self)
deepspeed/runtime/zero/stage_1_and_2.py:1038
↓ 1 callersFunctioninfer_config_dtype
(config_dict: dict)
deepspeed/runtime/tensor_parallel/init_utils.py:69
↓ 1 callersFunctioninfer_dataset_impl
(path)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:44
↓ 1 callersFunctioninfer_transformer_type
NOTE: this is a temporary and dodgy solution to distinguish GPT and BERT style models based on the dimensions of the corresponding attention mask.
csrc/transformer/inference/csrc/pt_binding.cpp:27
↓ 1 callersMethodinference_all_reduce
(self, tensor, op, group=None)
deepspeed/comm/torch.py:334
↓ 1 callersFunctioninference_all_reduce_
Success - return 0 Fail (cannot hornor the request and need to fall back) - return -1
csrc/cpu/comm/shm_interface.cpp:53
↓ 1 callersFunctioninit_autocast_params
(engine, dtype: torch.dtype, torch_autocast_lower_precision_safe_modules: Union[None,
deepspeed/runtime/torch_autocast.py:35
↓ 1 callersFunctioninit_autoep_engine
(ep_size=1, zero_stage=0, load_balance_coeff=UNSET)
tests/unit/v1/moe/autoep_test_utils.py:262
← previousnext →5,401–5,500 of 15,767, ranked by callers