MCPcopy Create free account

hub / github.com/deepspeedai/DeepSpeed / functions

Functions14,579 in github.com/deepspeedai/DeepSpeed

Functionprefetch_fn
()
tests/unit/compile/test_pass_contract.py:128
Functionprefetch_params_fused
csrc/compile/z3.cpp:570
Functionprefetch_params_fused_meta
csrc/compile/z3.cpp:579
Methodprepare_batch
See ``DSInferenceModelBase.prepare_batch`` for documentation. This method assumes an autoregressive dense attention pattern. Overrid
deepspeed/inference/v2/model_implementations/inference_transformer_base.py:466
Methodprepare_batch
This will be called before each forward with the intent of building forward-specific metadata about a batch. The intent here is to bu
deepspeed/inference/v2/model_implementations/inference_model_base.py:257
Functionprepare_read
(pool_params)
deepspeed/nvme/io_engine.py:30
Functionprepare_read
(pool_params)
csrc/aio/py_test/io_engine.py:30
Functionprepare_write
(pool_params)
deepspeed/nvme/io_engine.py:35
Functionprepare_write
(pool_params)
csrc/aio/py_test/io_engine.py:35
Functionpreprocess_weight
* Function to prepack the fake 6-bit-quantized FP16 weights into 2bit and 4bit. * * Parameters: * weight: input weight in FP16 (containing the q
deepspeed/inference/v2/kernels/core_ops/cuda_linear/linear_kernels.cpp:193
Methodpreserves_storage_sharing
(self)
deepspeed/runtime/checkpoint_engine/datastates_checkpoint_engine.py:58
Methodprint_3d_file_map
(self, tag=None)
deepspeed/checkpoint/zero_checkpoint.py:81
Methodprint_3d_index_map
(self, tag=None)
deepspeed/checkpoint/zero_checkpoint.py:75
Functionprint_backward_tensors
(tensor)
deepspeed/utils/debug.py:204
Functionprint_bits
deepspeed/inference/v2/kernels/core_ops/cuda_linear/linear_kernels.cpp:14
Methodprint_func
()
deepspeed/runtime/zero/stage3.py:2295
Methodprint_func
()
deepspeed/runtime/zero/stage_1_and_2.py:2389
Functionprint_params
(tag, model)
tests/small_model_debugging/test_model.py:109
Functionprint_params
(tag, model)
tests/small_model_debugging/partial_offload_test.py:111
Functionprint_rank
print something on all global ranks with [rank] prefix.
deepspeed/utils/debug.py:221
Functionprint_rank0
print something only on rank 0
deepspeed/utils/debug.py:230
Functionprint_rank_msg
(msg)
deepspeed/runtime/zero/stage_1_and_2.py:97
Functionprintflock
For printing messages for all concurrent gpus w/o getting interleaved text. This is useful when debugging issues where multi-gpus don't syn
deepspeed/utils/debug.py:137
Functionprobe
()
ci/torch_latest.py:1635
MethodprocessBlockIJ
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:1174
Functionprologue
csrc/deepspeed4science/evoformer_attn/gemm/custom_mma_pipelined.h:217
Functionprologue
csrc/deepspeed4science/evoformer_attn/gemm/custom_mma_multistage.h:260
MethodprologueQkNextIteration
csrc/deepspeed4science/evoformer_attn/kernel_backward.h:1758
Methodpush
csrc/deepspeed4science/evoformer_attn/epilogue/epilogue_pipelined.h:282
Methodpush_range
(self, message=None, category=None)
tests/unit/utils/test_nvtx.py:79
Methodput
Put a ragged batch onto the inference engine. This will perform one forward and return a Tensor of the shape [len(batch_uids), *outpu
deepspeed/inference/v2/engine_v2.py:107
Functionpytest
()
ci/accelerate.py:41
Functionpytest_addoption
(parser)
tests/conftest.py:43
Functionpytest_collection_modifyitems
(config, items)
tests/conftest.py:81
Functionpytest_configure
(config)
tests/conftest.py:33
Functionpytest_fixture_setup
(fixturedef, request)
tests/conftest.py:145
Functionpytest_pycollect_makeitem
(collector, name, obj)
tests/conftest.py:124
Functionpytest_runtest_call
(item)
tests/conftest.py:105
Functionpytest_runtest_teardown
(item, nextitem)
tests/conftest.py:116
Methodq_block_size
Property to calculate blocking granularity for the query dimension. This has no impact on the KV-cache structure, but will affect th
deepspeed/inference/v2/modules/implementations/attention/dense_blocked_attention.py:131
Methodq_block_size
Property to calculate blocking granularity for the query dimension. This has no impact on the KV-cache structure, but will affect th
deepspeed/inference/v2/modules/interfaces/attention_base.py:43
Methodqkv_gemm_bf16
(inputs, weight, q_scale, bias, gamma, beta, eps, add_bias, q_int8, transpose)
op_builder/npu/inference.py:128
Methodqkv_gemm_bf16
(inputs, weight, q_scale, bias, gamma, beta, eps, add_bias, q_int8, transpose)
op_builder/supa/inference.py:207
Methodqkv_gemm_fallback
(input, weight, q_scale, bias, gamma, beta, eps, add_bias, q_int8, transpose)
deepspeed/ops/transformer/inference/op_binding/qkv_gemm.py:60
Methodqkv_gemm_fp16
(inputs, weight, q_scale, bias, gamma, beta, eps, add_bias, q_int8, transpose)
op_builder/npu/inference.py:124
Methodqkv_gemm_fp16
(inputs, weight, q_scale, bias, gamma, beta, eps, add_bias, q_int8, transpose)
op_builder/supa/inference.py:202
Methodqkv_gemm_fp32
(inputs, weight, q_scale, bias, gamma, beta, eps, add_bias, q_int8, transpose)
op_builder/npu/inference.py:132
Methodqkv_gemm_fp32
(inputs, weight, q_scale, bias, gamma, beta, eps, add_bias, q_int8, transpose)
op_builder/supa/inference.py:212
Functionqkv_gemm_func
( input, weight, q_scale, bias, gamma, beta, epsilon, add_bias, q_int8,
deepspeed/ops/transformer/inference/triton/ops.py:100
Functionqkv_unfused_cublas
csrc/transformer/inference/csrc/pt_binding.cpp:900
Functionquantization_bits
(request)
tests/unit/inference/quantization/test_intX_quantization.py:258
Functionquantize
csrc/fp_quantizer/fp_quantize.cpp:25
Methodquantize
csrc/includes/quantization_utils.h:111
Methodquantize
Grouped symmetric int8 quantization. Args: input_vals: fp16 tensor (the hpZ path converts bf16 weights to fp16 be
op_builder/npu/quantizer.py:111
Methodquantize
(cls, out, val, scale, group_size, stochastic_rounding, q_bits, q_mantisa_bits)
op_builder/hpu/fp_quantizer.py:64
Methodquantize
(input_vals, groups, num_bits, quant_type)
op_builder/supa/quantizer.py:32
Methodquantize_dstensor
(tensor)
deepspeed/runtime/zero/stage3.py:2268
Methodquantize_fn
(layer, policy_cls)
deepspeed/runtime/weight_quantizer.py:113
Functionquantize_kernel
csrc/quantization/pt_binding.cpp:12
Methodquantize_nontrainable_params
In ZeRO-3, when the zero_quantized_nontrainable_weights flag is set, we quantize the non-trainable weights and also store them in quantized format. H
deepspeed/runtime/zero/stage3.py:2258
Functionquantize_transformer_layer
Quantize bert-style transformer layers with DeepSpeed's transformer layer Arguments: orig_layer_impl (torch.nn.Module): the original tran
deepspeed/module_inject/module_quantize.py:9
Functionquantized_gemm
csrc/transformer/inference/csrc/pt_binding.cpp:855
Functionquantized_reduction
csrc/quantization/pt_binding.cpp:166
Methodquantized_reduction
(input_vals, input_scales, in_groups, out_groups, num_bits, quant_type, devices_per_node)
op_builder/supa/quantizer.py:59
Functionquery
(model_w_task)
tests/unit/inference/test_inference.py:154
Functionquestion_answering_assert
(x, y)
tests/unit/inference/test_inference.py:201
Methodqwen2
Qwen2 model.
deepspeed/module_inject/autotp_config.py:507
Functionragged_embed
Embeddings kernel aware of ragged batch structure. */
deepspeed/inference/v2/kernels/ragged_ops/embed/embed.cpp:56
Functionraise_from_run
(self, *args)
tests/unit/v1/compile/test_graph_profile.py:159
Functionraise_split_error
(*args, **kwargs)
tests/unit/v1/autotp/test_autotp_training.py:93
Methodrandom
(self)
accelerator/supa_accelerator.py:62
Methodrandom
(self)
accelerator/sdaa_accelerator.py:90
Methodrandom
(self)
accelerator/cpu_accelerator.py:234
Methodrandom
(self)
accelerator/mlu_accelerator.py:60
Methodrandom
(self)
accelerator/npu_accelerator.py:94
Methodrandom
(self)
accelerator/xpu_accelerator.py:226
Methodrandom
(self)
accelerator/cuda_accelerator.py:95
Methodrandom
(self)
accelerator/mps_accelerator.py:72
Methodrandom
(self)
accelerator/abstract_accelerator.py:65
Methodrange_pop
(self, domain=None)
tests/unit/utils/test_nvtx.py:24
Methodrange_pop
(self)
tests/unit/utils/test_nvtx.py:52
Methodrange_pop
(self, domain=None)
accelerator/hpu_accelerator.py:182
Methodrange_pop
(self, domain=None)
accelerator/supa_accelerator.py:175
Methodrange_pop
(self, domain=None)
accelerator/sdaa_accelerator.py:201
Methodrange_pop
(self, domain=None)
accelerator/cpu_accelerator.py:357
Methodrange_pop
(self, domain=None)
accelerator/mlu_accelerator.py:172
Methodrange_pop
(self, domain=None)
accelerator/npu_accelerator.py:237
Methodrange_pop
(self, domain=None)
accelerator/xpu_accelerator.py:321
Methodrange_pop
(self, domain=None)
accelerator/cuda_accelerator.py:252
Methodrange_pop
(self, domain=None)
accelerator/mps_accelerator.py:187
Methodrange_pop
(self, domain=None)
accelerator/abstract_accelerator.py:195
Methodrange_push
(self, msg, domain=None, category=None)
tests/unit/utils/test_nvtx.py:21
Methodrange_push
(self, msg)
tests/unit/utils/test_nvtx.py:49
Methodrange_push
(self, msg, domain=None, category=None)
accelerator/hpu_accelerator.py:179
Methodrange_push
(self, msg, domain=None, category=None)
accelerator/supa_accelerator.py:172
Methodrange_push
(self, msg, domain=None, category=None)
accelerator/sdaa_accelerator.py:198
Methodrange_push
(self, msg, domain=None, category=None)
accelerator/cpu_accelerator.py:352
Methodrange_push
(self, msg, domain=None, category=None)
accelerator/mlu_accelerator.py:168
Methodrange_push
(self, msg, domain=None, category=None)
accelerator/npu_accelerator.py:234
Methodrange_push
(self, msg, domain=None, category=None)
accelerator/xpu_accelerator.py:316
← previousnext →10,501–10,600 of 14,579, ranked by callers