MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

↓ 2 callersMethodcxx_args
(self)
op_builder/xpu/builder.py:81
↓ 2 callersFunctiondebug_param2name_id_shape_device
(param)
deepspeed/utils/debug.py:125
↓ 2 callersFunctiondebug_rank0
(message: str)
deepspeed/runtime/zero/partitioned_param_coordinator.py:29
↓ 2 callersFunctiondecode_steps_from_generate_kwargs
How many single-token forwards a generate call will make, if knowable. HF emits one prompt forward that produces the first new token, then one
deepspeed/runtime/hybrid_engine_graph.py:183
↓ 2 callersFunctiondeepcompile_z3_inductor_config_patch
Disable reduction heuristics that create oversized kernels for DeepCompile ZeRO-3 graphs.
deepspeed/compile/inductor.py:37
↓ 2 callersMethoddeepspeed_io
(self, dataset, batch_size=None, route=ROUTE_TR
deepspeed/runtime/engine.py:2897
↓ 2 callersFunctiondefer_collectives_to_compiler
Suppress the module-level TP collectives on layers this pass will handle in the graph.
deepspeed/compile/passes/tp_compile.py:58
↓ 2 callersFunctiondel_if_exists
Deletes a key from a dictionary if it exists. Args: t (string): target key to delete d (dict): dictionary to delete from
deepspeed/autotuning/utils.py:95
↓ 2 callersMethoddequantize
(self, quantized_param, scale, num_groups, num_bits, quant_type)
tests/unit/runtime/zero/test_zeropp.py:58
↓ 2 callersMethoddestroy
(self)
deepspeed/runtime/zero/stage_1_and_2.py:762
↓ 2 callersFunctiondetach_variable
(inputs, device=None)
deepspeed/runtime/activation_checkpointing/checkpointing.py:78
↓ 2 callersMethoddevice_name
(self, device_index=None)
accelerator/mps_accelerator.py:48
↓ 2 callersMethoddispatch
(self, tokens, *, handle, do_expand=False, **kwargs)
tests/unit/module_inject/test_auto_ep_comm.py:759
↓ 2 callersFunctiondot
(index, strides)
deepspeed/checkpoint/affine_geometry.py:45
↓ 2 callersFunctiondtype
(request)
tests/unit/inference/test_inference.py:131
↓ 2 callersMethoddtype
(self)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:571
↓ 2 callersFunctiondump_param_fragment
(dir, tp_index, dp_index, state_name, state_flat_tensor, param_name, offset, numel)
deepspeed/checkpoint/ds_to_universal.py:218
↓ 2 callersMethoddynamic_loss_scale_args
(self)
deepspeed/runtime/engine.py:1821
↓ 2 callersFunctioneinsum
(rule, a, b)
deepspeed/moe/sharded_moe.py:119
↓ 2 callersMethodelapsed
(self)
tests/unit/modeling.py:94
↓ 2 callersFunctionembed
(logits)
tests/unit/v1/sequence_parallelism/test_vocab_parallel_ops.py:197
↓ 2 callersMethodenable_profiling
(self, enabled)
tests/unit/v1/compile/test_graph_profile.py:59
↓ 2 callersMethodenable_symm_mem_for_group
(self, group_name)
deepspeed/comm/torch.py:634
↓ 2 callersFunctionenable_universal_checkpoint
(param_list)
deepspeed/checkpoint/universal_checkpoint.py:394
↓ 2 callersFunctionencode_world_info
(world_info)
deepspeed/launcher/runner.py:409
↓ 2 callersMethodexchange
(self, buffer)
tests/unit/module_inject/test_auto_ep_comm.py:747
↓ 2 callersMethodexec
(*args, **kwargs)
ci/test_torch_latest.py:792
↓ 2 callersMethodexport_envs
(self)
accelerator/hpu_accelerator.py:307
↓ 2 callersMethodextend_kv_cache
Extend the KV-cache for the sequence. Arguments: new_ids (Union[List[torch.IntTensor], torch.IntTensor]): For each alloc
deepspeed/inference/v2/ragged/sequence_descriptor.py:235
↓ 2 callersMethodfast_enabled
(self)
deepspeed/autotuning/autotuner.py:241
↓ 2 callersFunctionfast_free_schedule
Order a ZeRO-3 graph while limiting scheduler-managed gather residency. The optional budget is already reduced across ranks by the caller. With
deepspeed/compile/list_schedule.py:578
↓ 2 callersMethodfetch_sub_module
This method does the following (in order): 1. kick off fetch for parameters in immediately required sub module 2. kick off fetch for n
deepspeed/runtime/zero/partitioned_param_coordinator.py:313
↓ 2 callersMethodfile_path
(self)
deepspeed/io/base_file_writer.py:32
↓ 2 callersMethodfill_buffer
(src_tensor, src_offset, buffer_tensor, buffer_offset)
deepspeed/io/base_io_buffer.py:56
↓ 2 callersFunctionfill_indices_cpu
Pure-PyTorch CPU reference for filling permutation indices.
deepspeed/moe/ep_kernels.py:150
↓ 2 callersMethodfilter_match
Return the list of ranks whose coordinates match the provided criteria. Example: >>> X = ProcessTopology(axes=['pipe', 'data', 'm
deepspeed/runtime/pipe/topology.py:167
↓ 2 callersFunctionfind_sym_seq_node
Return the SymInt placeholder node for the sequence-length dimension of input_ids, or None if it cannot be found.
tests/unit/v1/compile/util.py:291
↓ 2 callersMethodfit
(self, xs, ys)
deepspeed/autotuning/tuner/cost_model.py:51
↓ 2 callersFunctionflatten
(d, parent_key='', sep='_')
deepspeed/autotuning/tuner/utils.py:55
↓ 2 callersFunctionflatten_inference_model
Flatten the underlying parameters into Arguments: transformer_containers: Iterable of layer containers corresponding to the transfor
deepspeed/inference/v2/model_implementations/flat_model_helpers.py:100
↓ 2 callersFunctionflops_to_string
(flops, units=None, precision=DEFAULT_PRECISION)
deepspeed/profiling/flops_profiler/profiler.py:1161
↓ 2 callersFunctionforward
(self, hidden_states)
deepspeed/ops/triton_ops/fused_rms_norm.py:322
↓ 2 callersMethodforward
(self, name, input_tensor)
tests/unit/v1/compile/test_z3_eager_fallback.py:219
↓ 2 callersMethodfree_cpu_locked_tensor_by_ptr
(self, address)
tests/unit/v1/pin_memory/test_pin_memory.py:454
↓ 2 callersMethodfuse_lora_weight
(self)
deepspeed/runtime/hybrid_engine.py:164
↓ 2 callersFunctionfused
(q, k, cos, sin, unsqueeze_dim=1)
deepspeed/ops/triton_ops/fused_rotary_pos_emb.py:295
↓ 2 callersFunctiongather
(tensor, gather_list=None, dst=0, group=None, async_op=False,
deepspeed/comm/comm.py:441
↓ 2 callersFunctiongather_opt_state
(optimizer_state)
tests/unit/checkpoint/test_universal_checkpoint.py:40
↓ 2 callersFunctiongather_partitioned_activations
(tensors, device=None)
deepspeed/runtime/activation_checkpointing/checkpointing.py:276
↓ 2 callersMethodgb_size
(self)
deepspeed/runtime/checkpoint_engine/decoupled_checkpoint_engine.py:31
↓ 2 callersFunctiongelu_functor
(x)
deepspeed/ops/transformer/inference/triton/gelu.py:13
↓ 2 callersMethodgen_cpu_optimizer_flag
(self, test_config, is_baseline)
tests/model/Megatron_GPT2/run_func_test.py:550
↓ 2 callersFunctiongeneralized_jsd_loss
Compute generalized JSD on valid response tokens. ``beta=0`` yields forward KL from teacher to student; ``beta=1`` yields reverse KL from stu
deepspeed/runtime/rollout/opsd.py:71
↓ 2 callersMethodgenerate
Run generation, return prompt+response in one tensor.
deepspeed/runtime/rollout/base.py:99
↓ 2 callersFunctiongenerate_main
(log_dir)
deepspeed/nvme/perf_generate_param.py:86
↓ 2 callersFunctiongenerate_permute_indices
Prepare permutation indices and aligned token counts per expert. Args: tokens_per_expert_group: Token counts for each expert from all ran
deepspeed/moe/ep_kernels.py:186
↓ 2 callersFunctionget
Returns a pointer
csrc/deepspeed4science/evoformer_attn/iterators/predicated_tile_access_iterator_residual_last.h:315
↓ 2 callersMethodgetOffset
csrc/includes/deepcompile.h:302
↓ 2 callersMethodgetShape
csrc/includes/deepcompile.h:276
↓ 2 callersMethodget_2d_parallel_files
(self, tp_index: int, pp_index: int)
deepspeed/checkpoint/deepspeed_checkpoint.py:278
↓ 2 callersFunctionget_active_z3_eager_fallback
()
deepspeed/compile/z3_eager_fallback.py:21
↓ 2 callersMethodget_additional_losses
(self)
deepspeed/runtime/pipe/engine.py:1380
↓ 2 callersFunctionget_all_comm_dtypes
(params: Iterable)
deepspeed/runtime/torch_autocast.py:85
↓ 2 callersMethodget_all_grad_tensors
(self, tensor_list, dtype)
deepspeed/runtime/zero/stage_1_and_2.py:2788
↓ 2 callersFunctionget_annotations_from_namespace
(namespace: Mapping[str, object])
deepspeed/compat.py:23
↓ 2 callersFunctionget_autocast_dtype
()
deepspeed/runtime/torch_autocast.py:73
↓ 2 callersFunctionget_autoep_zero12_expert_param_info
Validate AutoEP metadata and map fused expert parameter names to layer metadata.
deepspeed/checkpoint/autoep_universal.py:159
↓ 2 callersFunctionget_autoep_zero12_fp32_fallback_param_names
Find parameters that need per-expert weights as a fallback for missing master fragments.
deepspeed/checkpoint/autoep_universal.py:254
↓ 2 callersFunctionget_autosp_seq_dim
Return the sequence dimension recorded by prepare_autosp_inputs, defaulting to 1.
deepspeed/compile/util.py:573
↓ 2 callersMethodget_backend
(self, group=None)
deepspeed/comm/torch.py:578
↓ 2 callersMethodget_best_space_records
(self)
deepspeed/autotuning/autotuner.py:732
↓ 2 callersFunctionget_bfloat16_config
(param_dict)
deepspeed/runtime/precision_config.py:34
↓ 2 callersMethodget_block_size
csrc/aio/py_lib/deepspeed_py_io_handle.cpp:78
↓ 2 callersFunctionget_checkpoint_files
(checkpoint_dir, glob_pattern)
deepspeed/utils/zero_to_fp32.py:106
↓ 2 callersFunctionget_checkpoint_folder_size
(save_dir, tag, local_rank=None)
deepspeed/runtime/utils.py:1152
↓ 2 callersMethodget_checkpoint_version
(self, state_dict)
deepspeed/runtime/state_dict_factory.py:421
↓ 2 callersMethodget_compute_tensors
(self)
deepspeed/runtime/swap_tensor/utils.py:80
↓ 2 callersFunctionget_config_default
(config, field_name)
deepspeed/runtime/config_utils.py:120
↓ 2 callersFunctionget_config_dict
(zero_stage)
tests/unit/v1/zero/test_zero_hook_count_regression.py:23
↓ 2 callersFunctionget_cpu_activations_for_backward
(args, inputs)
deepspeed/runtime/activation_checkpointing/checkpointing.py:484
↓ 2 callersFunctionget_data_efficiency_enabled
(param_dict)
deepspeed/runtime/data_pipeline/config.py:26
↓ 2 callersFunctionget_data_parallel_group
Get the data parallel group the caller rank belongs to.
deepspeed/utils/groups.py:261
↓ 2 callersMethodget_data_parallel_group
(self)
tests/unit/v1/autotp/test_autotp_training.py:129
↓ 2 callersMethodget_data_parallel_group_ranks
List of ranks in the data parallel group.
deepspeed/runtime/pipe/topology.py:438
↓ 2 callersMethodget_data_parallel_world_size
(self)
tests/unit/v1/autotp/test_autotp_training.py:126
↓ 2 callersMethodget_deepspeed_compile_backend
(self, backend, compile_kwargs, schedule)
deepspeed/runtime/engine.py:5916
↓ 2 callersFunctionget_default_args
(func)
deepspeed/comm/utils.py:59
↓ 2 callersFunctionget_default_compute_capabilities
()
op_builder/builder.py:80
↓ 2 callersFunctionget_dist_msg
(message, ranks=None)
deepspeed/utils/logging.py:86
↓ 2 callersFunctionget_env_if_set
Returns an environment variable if it is set and not "", otherwise returns a default value. In contrast, the fallback parameter of os.env
setup.py:70
↓ 2 callersMethodget_ep_ranks
(self, rank=0, group_name=None)
deepspeed/runtime/zero/stage_1_and_2.py:3720
↓ 2 callersMethodget_files_for_rank
(self, pp_index, tp_index, dp_index)
deepspeed/checkpoint/zero_checkpoint.py:49
↓ 2 callersFunctionget_first_config
(config: dict)
deepspeed/autotuning/utils.py:389
↓ 2 callersMethodget_flat_partition
(self, tensor_list, first_offset,
deepspeed/runtime/zero/stage_1_and_2.py:2800
↓ 2 callersMethodget_fp32_grad_partitions
get fp32 gradient partition dictionary accessed as grad_dict[parameter_group_index][parameter_index]
deepspeed/runtime/zero/stage3.py:3173
↓ 2 callersMethodget_full_hp_param
(self, param, optim_state_key=None)
deepspeed/runtime/zero/stage3.py:3263
↓ 2 callersMethodget_gpu_chunk
(self)
deepspeed/sequence/fpdt_layer.py:545
↓ 2 callersFunctionget_grad
(param, zero_stage)
tests/unit/ulysses_alst/test_ulysses_sp_hf.py:24
↓ 2 callersFunctionget_grad
(param, zero_stage)
tests/unit/ulysses_alst/test_tiled_compute.py:20
↓ 2 callersMethodget_grad_norm_direct
Clips gradient norm of an iterable of parameters. This is adapted from torch.nn.utils.clip_grad.clip_grad_norm_ and added functionali
deepspeed/runtime/zero/stage3.py:2499
← previousnext →2,501–2,600 of 14,579, ranked by callers