MCPcopy Create free account

hub / github.com/bytedance/ABQ-LLM / functions

Functions14,558 in github.com/bytedance/ABQ-LLM

↓ 9 callersMethodprocedural_name
The full procedural name indicates architecture, extended name, tile size, and layout.
fastertransformer/3rdparty/cutlass/tools/library/scripts/gemm_operation.py:128
↓ 9 callersFunctionrandom_cuda_tensor
(shape, dtype, mean=0, std=1)
fastertransformer/tests/moe/th_moe_unit_tests.py:20
↓ 9 callersFunctionread
fastertransformer/src/fastertransformer/tensorrt_plugin/bert_fp8/bertFp8Plugin.h:94
↓ 9 callersFunctionread_start_ids
fastertransformer/examples/cpp/gpt/gpt_example.cc:73
↓ 9 callersMethodreset
fastertransformer/src/fastertransformer/kernels/abqgemm/common/base.h:143
↓ 9 callersMethodrun_all_qa
(self, seq_len, batch_size, ft_longformer, data_type)
fastertransformer/tests/longformer/py_longformer_unit_test.py:64
↓ 9 callersFunctionsave_checkpoint
Save a model checkpoint.
fastertransformer/3rdparty/Megatron-LM/megatron/checkpointing.py:170
↓ 9 callersFunctionscaled_init_method_normal
Init method based on N(0, sigma/sqrt(2*num_layers).
fastertransformer/3rdparty/Megatron-LM/megatron/model/utils.py:32
↓ 9 callersMethodset_mask
Sets the predicate mask, overriding value stored in predicate iterator
fastertransformer/3rdparty/cutlass/examples/42_fused_multi_head_attention/iterators/predicated_tile_access_iterator_residual_last.h:865
↓ 9 callersMethodsizes
(self)
fastertransformer/3rdparty/Megatron-LM/megatron/data/indexed_dataset.py:515
↓ 9 callersFunctionsmooth_ln_fcs_temporary
(ln, fcs, scales,shifts)
algorithm/models/transformation.py:24
↓ 9 callersMethodtransform
fastertransformer/3rdparty/cutlass/include/cutlass/conv/warp/scale_bias_relu_transform.h:82
↓ 9 callersFunctionwrite
fastertransformer/src/fastertransformer/tensorrt_plugin/bert_fp8/bertFp8Plugin.h:87
↓ 8 callersFunctionCreateRankKOperator
(manifest, layouts, fill_modes, tile_descriptions, data_type, \ alignment_constraints, blas_mode, epilogue_f
fastertransformer/3rdparty/cutlass/tools/library/scripts/generator.py:192
↓ 8 callersFunctionCreateSymmOperator
(manifest, layouts, side_modes, fill_modes, tile_descriptions, data_type, \ alignment_constraints, blas_mode
fastertransformer/3rdparty/cutlass/tools/library/scripts/generator.py:279
↓ 8 callersFunctionJ
()
fastertransformer/3rdparty/cutlass/docs/jquery.js:68
↓ 8 callersFunction__internal_pack_u16x2_to_u32
fastertransformer/tests/unittests/fp8_gemm_test/2022_03_21__fp8_stride_batch_example/include/cuda_fp8.hpp:625
↓ 8 callersMethod_read_tsv
Reads a tab separated value file.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/processors/glue.py:70
↓ 8 callersFunctionaccuracy
Computes the accuracy over the k top predictions for the specified values of k
fastertransformer/examples/pytorch/vit/ViT-quantization/main.py:76
↓ 8 callersMethodadd_pointer_offset
Adds a pointer offset in units of Element
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/regular_tile_access_iterator_tensor_op_sm80.h:533
↓ 8 callersMethodadd_tile_offset
Adds a tile offset
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/regular_tile_iterator_tensor_op.h:293
↓ 8 callersMethodadd_tile_offset
Adds a tile offset
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/regular_tile_access_iterator_tensor_op_sm80.h:598
↓ 8 callersFunctionapply_rotary_embedding
fastertransformer/src/fastertransformer/kernels/decoder_masked_multihead_attention_utils.h:1357
↓ 8 callersFunctionby
(bz)
fastertransformer/3rdparty/cutlass/docs/jquery.js:16
↓ 8 callersMethodcapacity
Compute the number of contiguous elements needed to store a tensor with the given size
fastertransformer/3rdparty/cutlass/include/cutlass/layout/tensor_op_multiplicand_sm80.h:136
↓ 8 callersFunctionceil_div
fastertransformer/3rdparty/cutlass/examples/42_fused_multi_head_attention/gemm_kernel_utils.h:156
↓ 8 callersFunctioncheckIfFileExist
fastertransformer/src/fastertransformer/utils/memory_utils.h:132
↓ 8 callersFunctionclean_text
Remove new lines and multiple spaces and adjust end of sentence dot.
fastertransformer/3rdparty/Megatron-LM/tasks/data_utils.py:22
↓ 8 callersMethodclear_mask
Clears the predicate set efficiently
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_access_iterator.h:253
↓ 8 callersFunctioncompute_source_not_needed_
Streams the result to global memory
fastertransformer/3rdparty/cutlass/include/cutlass/epilogue/threadblock/epilogue_direct_store.h:276
↓ 8 callersMethodconvertTritonTensorToFt
fastertransformer/src/fastertransformer/triton_backend/transformer_triton_backend.hpp:170
↓ 8 callersMethodconvert_tokens_to_ids
(self, tokens)
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/tokenization.py:178
↓ 8 callersMethodcuda
(self)
fastertransformer/examples/pytorch/llama2/llamav2.py:265
↓ 8 callersMethodenable_mask
Clears the predicate set efficiently
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_access_iterator.h:263
↓ 8 callersFunctionfast_exp
fastertransformer/3rdparty/cutlass/include/cutlass/fast_math.h:713
↓ 8 callersMethodget
Returns a pointer
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/regular_tile_access_iterator_tensor_op_sm80.h:540
↓ 8 callersMethodget
Retrieves a single item from the dataset with the option to only return a portion of the item. get(idx) is the same as [idx] but get
fastertransformer/3rdparty/Megatron-LM/megatron/data/indexed_dataset.py:500
↓ 8 callersFunctionget_cudnn_datatype
Maps a CUTLASS numeric type to a cuDNN cudnnDataType_t
fastertransformer/3rdparty/cutlass/tools/profiler/src/cudnn_helpers.cpp:112
↓ 8 callersFunctionget_linear_layer
Simple linear layer with weight initialization.
fastertransformer/3rdparty/Megatron-LM/megatron/model/utils.py:47
↓ 8 callersMethodget_log_tile
Calculates optimal swizzle width
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/threadblock/threadblock_swizzle.h:170
↓ 8 callersMethodget_mask
Gets the mask
fastertransformer/3rdparty/cutlass/examples/42_fused_multi_head_attention/iterators/predicated_tile_access_iterator_residual_last.h:871
↓ 8 callersMethodget_mask
Gets the mask
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_access_iterator.h:282
↓ 8 callersMethodinit_model_for_pruning
Call this method to modify your model to take advantage of sparse matrix multiplication. Note that this call alone only augments the model wit
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/asp.py:29
↓ 8 callersFunctioninvokeAddBiasAttentionFfnResidual
fastertransformer/src/fastertransformer/kernels/add_residual_kernels.h:92
↓ 8 callersMethodlayout_c
fastertransformer/3rdparty/cutlass/tools/library/include/cutlass/library/library.h:1426
↓ 8 callersFunctionload_with_byte_offset
Loads a fragment from memory with additional logical offset
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/warp/mma_tensor_op_tile_iterator_sm80.h:270
↓ 8 callersMethodload_with_byte_offset
Loads a fragment from memory with additional logical offset
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/warp/mma_complex_tensor_op_tile_iterator_sm80.h:1010
↓ 8 callersMethodload_with_byte_offset
Loads a fragment from memory with additional logical offset
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/warp/tile_iterator_planar_complex.h:164
↓ 8 callersMethodload_with_byte_offset
Loads a fragment from memory with additional logical offset
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/warp/mma_tensor_op_tile_iterator_sm70.h:1364
↓ 8 callersMethodload_with_byte_offset
Loads a fragment from memory with additional logical offset
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/warp/mma_tensor_op_tile_iterator.h:2565
↓ 8 callersMethodload_with_pointer_offset
Loads a fragment from memory with additional logical offset
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/warp/tile_iterator_planar_complex.h:176
↓ 8 callersFunctionmegatron2hf_name
(saved_key, name_mapping)
fastertransformer/examples/pytorch/t5/utils/nemo_t5_ckpt_convert.py:112
↓ 8 callersFunctionprint_datetime
Note that this call will sync across all ranks.
fastertransformer/3rdparty/Megatron-LM/megatron/training.py:57
↓ 8 callersMethodrun_attn
(self, batch_size, seq_len, head_num, size_per_head, data_type)
fastertransformer/tests/decoding/tf_fused_self_multihead_attention_unit_test.py:68
↓ 8 callersMethodset_iteration_index
Overrides the internal iteration index
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/regular_tile_access_iterator_tensor_op_sm80.h:525
↓ 8 callersMethodset_mask
Sets the predicate mask, overriding value stored in predicate iterator
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_access_iterator.h:272
↓ 8 callersFunctionsmooth_ln_fcs_inplace
(ln, fcs, scales,shifts)
algorithm/models/transformation.py:83
↓ 8 callersFunctiontime_test
(sess, tensor, iterations=100, warmup=True)
fastertransformer/examples/tensorflow/bert/utils/common.py:75
↓ 8 callersFunctiontranspose
(layout)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/test/gemm_testbed.py:44
↓ 8 callersMethodvisit
Called after accumulators have been exchanged for each accumulator vector
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/cpp/include/epilogue/epilogue_visitor_generic.h:188
↓ 7 callersFunctionC
(e)
fastertransformer/3rdparty/cutlass/docs/jquery.js:23
↓ 7 callersFunctionCreateSparseGemmOperator
(manifest, layouts, tile_descriptions, data_type, \ alignment_constraints, complex_transforms = None, epilog
fastertransformer/3rdparty/cutlass/tools/library/scripts/generator.py:85
↓ 7 callersFunctionTestConv2dOperator
Test Conv2d Operation based on configurations
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/test/unit/test_sm80.py:114
↓ 7 callersMethod__init__
(self, element_compute)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/epilogue.py:308
↓ 7 callersMethod__init__
(self, config)
fastertransformer/examples/pytorch/vit/ViT-quantization/vit_int8.py:212
↓ 7 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0., mlp_
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/SwinTransformer/models/swin_transformer_moe.py:24
↓ 7 callersFunction_ensure_var_is_not_initialized
Make sure the input variable is not None.
fastertransformer/3rdparty/Megatron-LM/megatron/global_vars.py:191
↓ 7 callersMethod_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
algorithm/models/int_opt_layer.py:74
↓ 7 callersMethodadd_pointer_offset
Adds a pointer offset in units of Element
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_iterator.h:727
↓ 7 callersFunctionapply_output_operator_
Helper to invoke the output functor over each vector of output
fastertransformer/3rdparty/cutlass/examples/43_dual_gemm/threadblock/dual_epilogue.h:384
↓ 7 callersFunctionbuild_model
(config)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/models/build.py:12
↓ 7 callersFunctionbw
()
fastertransformer/3rdparty/cutlass/docs/jquery.js:16
↓ 7 callersMethodclear_mask
Clears the predicate set efficiently
fastertransformer/3rdparty/cutlass/examples/42_fused_multi_head_attention/iterators/predicated_tile_access_iterator_residual_last.h:853
↓ 7 callersMethodclear_mask
Clears the predicate set efficiently
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_iterator.h:756
↓ 7 callersMethodclose
(self)
fastertransformer/examples/tensorflow/bert/bert-quantization/utils/create_squad_data.py:507
↓ 7 callersMethodconvert
fastertransformer/3rdparty/cutlass/include/cutlass/half.h:211
↓ 7 callersFunctionconvert_from_float
fastertransformer/src/fastertransformer/kernels/decoder_masked_multihead_attention/decoder_masked_multihead_attention_template.hpp:730
↓ 7 callersFunctionconvert_from_float
fastertransformer/src/fastertransformer/kernels/llama/decoder_masked_groupedquery_attention/decoder_masked_groupedquery_attention_template.hpp:730
↓ 7 callersFunctionconvert_val
(x)
fastertransformer/examples/pytorch/gpt/utils/megatron_gpt_moe_ckpt_convert.py:191
↓ 7 callersFunctiondata_file_path
(prefix_path)
fastertransformer/3rdparty/Megatron-LM/megatron/data/indexed_dataset.py:115
↓ 7 callersMethoddeterminant
Computes the determinant of a 2-by-2 matrix
fastertransformer/3rdparty/cutlass/include/cutlass/matrix.h:3231
↓ 7 callersFunctiondiv_up
fastertransformer/src/fastertransformer/utils/cuda_utils.h:310
↓ 7 callersFunctiondiv_up
fastertransformer/src/fastertransformer/kernels/decoder_masked_multihead_attention/decoder_masked_multihead_attention_template.hpp:1038
↓ 7 callersFunctiondot
fastertransformer/3rdparty/cutlass/include/cutlass/arch/simd_sm60.h:106
↓ 7 callersMethodenable_mask
Clears the predicate set efficiently
fastertransformer/3rdparty/cutlass/examples/42_fused_multi_head_attention/iterators/predicated_tile_access_iterator_residual_last.h:859
↓ 7 callersMethodenable_mask
Clears the predicate set efficiently
fastertransformer/3rdparty/cutlass/examples/42_fused_multi_head_attention/iterators/predicated_tile_iterator_residual_last.h:857
↓ 7 callersMethodenable_mask
Clears the predicate set efficiently
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_iterator.h:762
↓ 7 callersMethodforward
fastertransformer/src/fastertransformer/models/bert_int8/BertINT8.cc:162
↓ 7 callersFunctionforward_step
Forward step for passed-in model. If first stage, input tensor is obtained from data_iterator, otherwise passed-in input_tensor is used.
fastertransformer/3rdparty/Megatron-LM/megatron/schedules.py:101
↓ 7 callersMethodfrom_pretrained
Instantiate a PreTrainedBertModel from a pre-trained model file. Download and cache the pre-trained model file if needed.
fastertransformer/3rdparty/Megatron-LM/megatron/tokenizer/gpt2_tokenization.py:98
↓ 7 callersFunctionget
Returns a pointer
fastertransformer/3rdparty/cutlass/include/cutlass/conv/threadblock/predicated_scale_bias_vector_access_iterator.h:240
↓ 7 callersFunctiongetAddress
fastertransformer/src/fastertransformer/utils/allocator.h:113
↓ 7 callersMethodgetStream
fastertransformer/src/fastertransformer/layers/BaseLayer.h:43
↓ 7 callersFunctiongetTensorView
(tensor, tensor_layout, conv_kind, problem_size, operand)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/test/conv2d_testbed.py:77
↓ 7 callersFunctionget_config
Get a yacs CfgNode object with default values.
fastertransformer/examples/pytorch/vit/ViT-quantization/config.py:220
↓ 7 callersFunctionget_language_model
Build language model and return along with the key to save.
fastertransformer/3rdparty/Megatron-LM/megatron/model/language_model.py:46
↓ 7 callersMethodget_mask
Gets the mask
fastertransformer/3rdparty/cutlass/examples/42_fused_multi_head_attention/iterators/predicated_tile_iterator_residual_last.h:869
↓ 7 callersMethodget_mask
Gets the mask
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_iterator.h:774
↓ 7 callersFunctionget_pipeline_model_parallel_rank
Return my rank for the pipeline model parallel group.
fastertransformer/3rdparty/Megatron-LM/megatron/mpu/initialize.py:313
↓ 7 callersMethodguard
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/cpp/include/epilogue/epilogue_visitor_op/unary_ops.h:87
← previousnext →501–600 of 14,558, ranked by callers