MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,767 in github.com/deepspeedai/DeepSpeed

↓ 2 callersFunctioncpp_standard
()
op_builder/xpu/builder.py:19
↓ 2 callersFunctioncreate_config_file
(tmpdir, zeroenabled=False)
tests/model/BingBertSquad/test_e2e_squad.py:30
↓ 2 callersFunctioncreate_deepspeed_engine_from_model
(model, zero_stage, gradient_accumulation_steps=1)
tests/unit/v1/zero/test_zero_user_backward.py:135
↓ 2 callersMethodcreate_ds_model_config
(self)
deepspeed/module_inject/containers/base.py:88
↓ 2 callersMethodcreate_logger
create a logger Args: name (str): name of the logger level: level of logger Raises: ValueError i
deepspeed/utils/logging.py:25
↓ 2 callersFunctioncreate_mem_table
(graph: Graph)
deepspeed/compile/list_schedule.py:93
↓ 2 callersFunctioncreate_model
(config_dict)
tests/unit/runtime/test_multiple_models.py:15
↓ 2 callersMethodcreate_module
(self, config=None)
deepspeed/module_inject/containers/opt.py:26
↓ 2 callersFunctioncreate_perf_jobs
(io_op_desc, log_dir, cmd_lines)
deepspeed/nvme/perf_run_sweep.py:234
↓ 2 callersFunctioncreate_predictor
()
deepspeed/compile/profilers/comm_profile.py:125
↓ 2 callersFunctioncreate_symbolic_slice_indices
( gm: GraphModule, sym_seq_dim_node: Node, )
deepspeed/compile/util.py:582
↓ 2 callersMethodcurrent_device
(self)
accelerator/xpu_accelerator.py:213
↓ 2 callersMethodcurrent_device
(self)
accelerator/cuda_accelerator.py:78
↓ 2 callersMethodcurrent_device_name
(self)
accelerator/xpu_accelerator.py:216
↓ 2 callersMethodcurrent_tokens
csrc/transformer/inference/includes/inference_context.h:217
↓ 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:2995
↓ 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 callersFunctiondelay_reflow_gradient_copies
(engine, cycles=200_000_000)
tests/unit/v1/zero/test_reflow.py:1599
↓ 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, *, topk_idx=None, topk_weights=None, handle=None, do_expand=False, **kwargs)
tests/unit/module_inject/test_auto_ep_comm.py:843
↓ 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:1902
↓ 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:667
↓ 2 callersFunctionenable_universal_checkpoint
(param_list)
deepspeed/checkpoint/universal_checkpoint.py:394
↓ 2 callersFunctionencode_world_info
(world_info)
deepspeed/launcher/runner.py:409
↓ 2 callersMethodeval
r
deepspeed/runtime/engine.py:3064
↓ 2 callersMethodexchange
(self, buffer)
tests/unit/module_inject/test_auto_ep_comm.py:765
↓ 2 callersMethodexec
(*args, **kwargs)
ci/test_torch_latest.py:792
↓ 2 callersFunctionexpected_stats
The ``TransferStats`` fields ``process`` should return for the analyzed batch. ``segments`` and ``chunks`` count the whole batch, so every proces
deepspeed/checkpoint/affine_transfer_analysis.py:180
↓ 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 callersFunctionextent
(buffers, location, offset, shape, strides)
deepspeed/checkpoint/affine_transfer_executor.py:275
↓ 2 callersMethodextra_compile_args
(self)
op_builder/builder.py:869
↓ 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:332
↓ 2 callersMethodfile_path
(self)
deepspeed/io/base_file_writer.py:32
↓ 2 callersMethodfileno
(self)
deepspeed/io/py_file_writer.py:21
↓ 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 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:2806
↓ 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 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:282
↓ 2 callersMethodget_data_parallel_group
(self)
tests/unit/v1/autotp/test_autotp_training.py:130
← previousnext →2,801–2,900 of 15,767, ranked by callers