MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions15,468 in github.com/deepspeedai/DeepSpeed

↓ 1 callersFunctionextract_zero_shards_stage3
(optim_files_grid, param_shapes_grid, dp_degree,
deepspeed/checkpoint/ds_to_universal.py:168
↓ 1 callersFunctionf_gelu
(x)
tests/unit/modeling.py:47
↓ 1 callersFunctionf_gelu
(x)
tests/unit/modelingpreln.py:46
↓ 1 callersFunctionfallback_handler_no_reuse
(kernel, never_reuse_input, never_reuse_ou
deepspeed/compile/inductor.py:230
↓ 1 callersFunctionfetch_hostfile
(hostfile_path)
deepspeed/launcher/runner.py:212
↓ 1 callersFunctionfetch_requirements
(path)
setup.py:58
↓ 1 callersMethodfile_write_ordered
MPI_file_write_ordered extended to write a list of tensors, by one rank, iteratively
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:670
↓ 1 callersMethodfill_grad_accum_attribute
(self)
deepspeed/runtime/zero/stage_1_and_2.py:1290
↓ 1 callersFunctionfill_indices_wrapper
Launch the Triton kernel to fill permutation indices. Falls back to :func:`fill_indices_cpu` when Triton is unavailable.
deepspeed/moe/ep_kernels.py:104
↓ 1 callersMethodfilter_ccs
Prune any compute capabilities that are not compatible with the builder. Should log which CCs have been pruned.
op_builder/builder.py:772
↓ 1 callersMethodfinalize
Finalize the parameter after all of its source parameters have been set. This method will be automatically called when all inputs hav
deepspeed/inference/v2/model_implementations/parameter_base.py:144
↓ 1 callersMethodfinalize
(self, index_file)
deepspeed/runtime/data_pipeline/data_sampling/indexed_dataset.py:316
↓ 1 callersMethodfinalize_metric_results
(self, metric_types, metric_dtypes, metric_results)
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:132
↓ 1 callersFunctionfind_del_key
(d: dict, k: str)
deepspeed/autotuning/utils.py:243
↓ 1 callersFunctionfind_dtype
(module)
tests/unit/inference/test_checkpoint_sharding.py:33
↓ 1 callersMethodfind_estimated_top_configs
Use the cost model to predict the estimated performance of configurations and find the top ones for the next round of evaluation
deepspeed/autotuning/tuner/model_based_tuner.py:58
↓ 1 callersFunctionfind_gdn_segments
Detect GatedDeltaNet blocks by structure (in_proj attribute set).
deepspeed/module_inject/segment_ki.py:288
↓ 1 callersFunctionfind_glu_segments
Detect gated MLPs by structure (gate_proj/up_proj/down_proj attribute set).
deepspeed/module_inject/segment_ki.py:94
↓ 1 callersFunctionfind_replace_str
(value, replace_dict)
deepspeed/autotuning/utils.py:41
↓ 1 callersMethodfini
(self)
deepspeed/nvme/torch_io.py:19
↓ 1 callersMethodfinish
csrc/aio/py_lib/deepspeed_cpu_op.cpp:43
↓ 1 callersFunctionfirst_holder
The lowest holder location for every request, which is what ``plan_transfer`` does by default.
deepspeed/checkpoint/affine_replica_policy.py:27
↓ 1 callersFunctionfix_placeholder_meta
(graph)
deepspeed/compile/inductor.py:144
↓ 1 callersMethodfixed_aotflags
(self)
op_builder/xpu/builder.py:123
↓ 1 callersFunctionflat_nodes_in_args
(args: List[Node])
deepspeed/compile/list_schedule.py:44
↓ 1 callersMethodflatten_dense_tensors_aligned
(self, tensor_list, alignment)
deepspeed/runtime/zero/stage3.py:2991
↓ 1 callersFunctionflatten_dp_dimension
(meg_2d_map, src_2d_size, dp_degree)
deepspeed/checkpoint/reshape_3d_utils.py:141
↓ 1 callersFunctionflatten_options
(key, value_list)
deepspeed/nvme/perf_run_sweep.py:137
↓ 1 callersMethodflops_profiler_detailed
(self)
deepspeed/runtime/engine.py:1564
↓ 1 callersMethodflops_profiler_module_depth
(self)
deepspeed/runtime/engine.py:1558
↓ 1 callersMethodflops_profiler_output_file
(self)
deepspeed/runtime/engine.py:1569
↓ 1 callersMethodflops_profiler_recompute_fwd_factor
(self)
deepspeed/runtime/engine.py:1549
↓ 1 callersMethodflops_profiler_top_modules
(self)
deepspeed/runtime/engine.py:1561
↓ 1 callersMethodflush
(self)
deepspeed/monitor/tensorboard.py:54
↓ 1 callersMethodflush_sequence
Free all resources associated with the given sequence id.
deepspeed/inference/v2/ragged/ragged_manager.py:108
↓ 1 callersMethodfork
Fork the cuda rng state, perform operations, and exit with the original state.
deepspeed/runtime/activation_checkpointing/checkpointing.py:182
↓ 1 callersFunctionformat_options
(cpu_offload, cpu_offload_params, zero_init)
deepspeed/runtime/zero/stage3.py:4595
↓ 1 callersFunctionformat_options
(cpu_offload)
deepspeed/runtime/zero/stage_1_and_2.py:4253
↓ 1 callersMethodforward
(self, inputs)
tests/unit/runtime/zero/test_zero_shared_loss_gradient.py:25
↓ 1 callersMethodforward
(self, x, y)
tests/unit/runtime/zero/test_zeropp.py:34
↓ 1 callersMethodforward
A: input, activation matrix A B: input, weight matrix B
deepspeed/ops/transformer/inference/triton/matmul_ext.py:136
↓ 1 callersMethodforward
(self, hidden_states: torch.Tensor, gate_w: torch.Tensor, mlp_
deepspeed/inference/v2/modules/interfaces/moe_base.py:68
↓ 1 callersMethodforward
(self, input)
deepspeed/runtime/utils.py:1178
↓ 1 callersMethodforward
Disabled for pipeline parallel training. See ``train_batch()``.
deepspeed/runtime/pipe/engine.py:1287
↓ 1 callersMethodforward_context
Enable fallback lookup for the outermost forward and restore nested state on exit.
deepspeed/compile/z3_eager_fallback.py:80
↓ 1 callersMethodforward_handle
The handle a recompute must reuse, or None when no forward graph can need one.
deepspeed/module_inject/auto_ep_comm.py:454
↓ 1 callersMethodfp16_auto_cast
(self)
deepspeed/runtime/engine.py:1784
↓ 1 callersMethodfp16_master_weights_and_gradients
(self)
deepspeed/runtime/engine.py:1765
↓ 1 callersFunctionfp_quantize
Args: input (`torch.FloatTensor`) The input which needs to be quantized num_bits (int, >=4) Number of bit
deepspeed/inference/v2/modules/implementations/linear/quantized_linear.py:25
↓ 1 callersMethodfp_tensor_constructor
(self, fn: Callable, target_fp_dtype: torch.dtype)
deepspeed/utils/init_on_device.py:42
↓ 1 callersMethodfree
Free a set of blocks from the cache. This will mark the blocks as free in the allocator. Parameters: blocks (Ite
deepspeed/inference/v2/ragged/kv_cache.py:152
↓ 1 callersMethodfree_buffer
()
deepspeed/runtime/zero/partition_parameters.py:804
↓ 1 callersMethodfree_grad_in_param_list
(self, param_list)
deepspeed/runtime/zero/stage_1_and_2.py:3002
↓ 1 callersFunctionfree_param
Free underlying storage of a parameter.
deepspeed/runtime/zero/partition_parameters.py:309
↓ 1 callersMethodfree_pinned_device_tensor
csrc/gds/deepspeed_py_gds_handle.cpp:86
↓ 1 callersMethodfrom_dict
Constructs a `BertConfig` from a Python dictionary of parameters.
tests/unit/modelingpreln.py:210
↓ 1 callersMethodfrom_dict
(cls, json_object)
deepspeed/ops/transformer/transformer.py:130
↓ 1 callersMethodfrom_dict
(cls, json_object)
deepspeed/ops/transformer/inference/config.py:123
↓ 1 callersMethodfrom_dict
(cls, json_object)
deepspeed/ops/transformer/inference/moe_inference.py:97
↓ 1 callersMethodfrom_profiled_non_gathered_peak
Reserve profiled non-gather memory before budgeting transient gathers.
deepspeed/compile/list_schedule.py:310
↓ 1 callersMethodfrom_str
(cls, value: str)
deepspeed/inference/config.py:22
↓ 1 callersMethodfrom_weights
(cls, weight_shape=None, dtype=torch.half, weight=None, bias=None, gather_output=False)
deepspeed/module_inject/layers.py:1078
↓ 1 callersMethodfull_size
(self)
deepspeed/runtime/utils.py:832
↓ 1 callersMethodfull_weight
(self)
deepspeed/linear/optimized_linear.py:183
↓ 1 callersMethodfuse_lora
Fuse the LoRA parameters for the inference mode.
deepspeed/module_inject/containers/features/hybrid_engine.py:63
↓ 1 callersFunctionfused_qkv_subparam_sizes
Sizes of the sub-parameters a fused qkv weight is cut into, or None. ``prepare_tp_fused_qkvw`` splits most layouts into q/k/v (or a single block)
deepspeed/module_inject/fusedqkv_utils.py:120
↓ 1 callersMethodgQ_strideM
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:266
↓ 1 callersMethodgated_activation
(activation_func_type, vals, bias)
op_builder/supa/inference.py:320
↓ 1 callersFunctiongather_attn_mask_queries
Rewrite an SDPA mask for the layout after the Q/K/V all-to-all, where each rank attends with the full query sequence and its own block of hea
deepspeed/compile/passes/sp_compile.py:468
↓ 1 callersMethodgather_params
Gather partitioned parameters back to full size.
deepspeed/module_inject/layers.py:2433
↓ 1 callersFunctiongather_rows
``out[r] = src[index[r]]``, or a zero row where ``index[r]`` is outside ``[0, src.shape[0])``. The forward kernel of :func:`permute_rows`. ``gene
deepspeed/moe/ep_kernels.py:282
↓ 1 callersFunctiongather_subparam_output
(output, subparam_sizes, mp_group)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:183
↓ 1 callersFunctiongather_tokens
(input_, dim=0)
deepspeed/moe/mappings.py:105
↓ 1 callersMethodgather_v
MPI_Gatherv. gather tensors of variable sizes in a single rank
deepspeed/runtime/data_pipeline/data_sampling/data_analyzer.py:746
↓ 1 callersFunctiongather_z3_weights
Pull full bf16 weights out of the ZeRO-3 engine (both ranks agree).
tests/integration/zero3_arena_e2e.py:134
↓ 1 callersFunctiongds_io_setup
()
deepspeed/nvme/perf_run_sweep.py:254
↓ 1 callersFunctiongelu
(activations: torch.Tensor)
deepspeed/ops/transformer/inference/triton/gelu.py:30
↓ 1 callersFunctiongen
(ro)
tests/integration/zero3_arena_e2e.py:157
↓ 1 callersFunctiongen_combinations
(d: dict)
deepspeed/autotuning/utils.py:297
↓ 1 callersMethodgen_name
(self, test_config, prefix)
tests/model/Megatron_GPT2/run_checkpoint_test.py:429
↓ 1 callersMethodgen_output_name
(self, test_config, prefix)
tests/model/BingBertSquad/BingBertSquad_test_common.py:21
↓ 1 callersFunctiongenerate_aio_param
(read_log_dir, write_log_dir)
deepspeed/nvme/perf_generate_param.py:52
↓ 1 callersFunctiongeneric_injection
(module, dtype=None, enable_cuda_graph=True)
deepspeed/module_inject/replace_module.py:86
↓ 1 callersMethodgetBuffer
csrc/includes/deepcompile.h:146
↓ 1 callersFunctiongetDeviceId
(local_rank)
tests/unit/inference/test_inference.py:264
↓ 1 callersMethodgetDtype
csrc/includes/deepcompile.h:277
↓ 1 callersMethodgetEvent
csrc/includes/deepcompile.h:230
↓ 1 callersMethodgetExpectedGradDtype
csrc/includes/deepcompile.h:305
↓ 1 callersFunctiongetSymmMemWorkspace
csrc/compile/deepcompile.cpp:43
↓ 1 callersFunctionget_AsyncPartitionedParameterSwapper
(model: nn.Module)
deepspeed/inference/quantization/utils.py:165
↓ 1 callersMethodget_activation_memory_per_gpu
(self)
deepspeed/autotuning/autotuner.py:274
↓ 1 callersFunctionget_activation_node_names
(graph: Graph, param_nodes_bw: List[Node], fwd_output_names: List[str])
deepspeed/compile/util.py:361
↓ 1 callersFunctionget_ag_stream
csrc/compile/z3.cpp:446
↓ 1 callersFunctionget_aio_config
(param_dict)
deepspeed/runtime/swap_tensor/aio_config.py:20
↓ 1 callersMethodget_alibi_mask
(self, tensor, sequence_length)
tests/unit/v1/autotp/test_autotp_custom_patterns.py:870
↓ 1 callersMethodget_aligned_num_bytes
(self)
deepspeed/io/base_io_buffer.py:34
↓ 1 callersFunctionget_all_configs
Splits the tuning space dictionary to result in all combinations of values. Args: tuning_space (dict): the tuning space where tunable pa
deepspeed/autotuning/utils.py:290
↓ 1 callersMethodget_all_gather_function
(self)
deepspeed/comm/torch.py:286
↓ 1 callersFunctionget_all_parameters
(sub_module, recurse=False)
deepspeed/runtime/zero/partitioned_param_coordinator.py:44
↓ 1 callersMethodget_all_params
(self)
deepspeed/module_inject/containers/base.py:304
← previousnext →5,001–5,100 of 15,468, ranked by callers