Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytedance/ABQ-LLM
/ functions
Functions
14,558 in github.com/bytedance/ABQ-LLM
⨍
Functions
14,558
◇
Types & classes
4,979
↓ 2 callers
Function
build_sample
Convert to numpy and return a sample consumed by the batch producer.
fastertransformer/3rdparty/Megatron-LM/tasks/data_utils.py:33
↓ 2 callers
Function
build_sequence_mask
Builds the dot product mask. Args: sequence_length: The sequence length. num_heads: The number of heads. maximum_length: Optional size o
fastertransformer/examples/tensorflow/encoder/utils/encoder.py:25
↓ 2 callers
Function
build_token_types_from_context_list
(ctx_list, tokenizer, max_seq_length)
fastertransformer/3rdparty/Megatron-LM/tasks/orqa/supervised/data.py:29
↓ 2 callers
Function
build_tokens_types_paddings_from_ids
Build token types and paddings, trim if needed, and pad if needed.
fastertransformer/3rdparty/Megatron-LM/tasks/data_utils.py:62
↓ 2 callers
Function
build_train_valid_datasets
(data_path, image_size=224)
fastertransformer/3rdparty/Megatron-LM/megatron/data/vit_dataset.py:56
↓ 2 callers
Function
build_train_valid_test_data_iterators
XXX
fastertransformer/3rdparty/Megatron-LM/megatron/training.py:848
↓ 2 callers
Function
build_val_loader
(config)
fastertransformer/examples/pytorch/swin/Swin-Transformer-Quantization/data.py:33
↓ 2 callers
Function
bx
(bR,e)
fastertransformer/3rdparty/cutlass/docs/jquery.js:23
↓ 2 callers
Function
calGptGemmTestBufSizeInByte
fastertransformer/src/fastertransformer/utils/gemm_test/gpt_gemm_func.cc:754
↓ 2 callers
Function
calT5GemmTestBufSizeInByte
fastertransformer/src/fastertransformer/utils/gemm_test/t5_gemm_func.cc:766
↓ 2 callers
Method
capacity
Returns the logical capacity based on extent and layout. May differ from size().
fastertransformer/3rdparty/cutlass/tools/util/include/cutlass/util/host_tensor_planar_complex.h:235
↓ 2 callers
Function
ceil_div
Returns the ceiling of (a / b)
fastertransformer/3rdparty/cutlass/include/cutlass/fast_math.h:181
↓ 2 callers
Function
checkByNpz
fastertransformer/examples/cpp/xlnet/xlnet_correctness_example.cc:148
↓ 2 callers
Function
checkMat
fastertransformer/examples/cpp/decoding/layernorm_test.cc:42
↓ 2 callers
Function
checkNonZero
fastertransformer/src/fastertransformer/kernels/layernorm_fp8_kernels_test.cc:30
↓ 2 callers
Function
checkNonZero
fastertransformer/examples/cpp/decoding/layernorm_test.cc:27
↓ 2 callers
Function
check_args
fastertransformer/3rdparty/Megatron-LM/megatron/fused_kernels/layer_norm_cuda.cpp:45
↓ 2 callers
Method
check_index
(self, i)
fastertransformer/3rdparty/Megatron-LM/megatron/data/indexed_dataset.py:158
↓ 2 callers
Function
checkpoint_quantization
(init_dict, ths_path='../../../build/lib/libth_transformer.so', verbose=True)
fastertransformer/examples/pytorch/vit/checkpoint_quantization.py:26
↓ 2 callers
Function
chunks
(iter, n)
algorithm/lm_eval/utils.py:41
↓ 2 callers
Method
clear
< Efficiently disables all accesses guarded by mask
fastertransformer/3rdparty/cutlass/include/cutlass/epilogue/threadblock/predicated_tile_iterator_affine.h:227
↓ 2 callers
Method
clear
< Efficiently disables all accesses guarded by mask
fastertransformer/3rdparty/cutlass/include/cutlass/epilogue/threadblock/predicated_tile_iterator_strided_dgrad.h:155
↓ 2 callers
Function
clear_mask
Clears the predicates
fastertransformer/3rdparty/cutlass/include/cutlass/conv/threadblock/conv2d_fprop_filter_tile_access_iterator_optimized.h:239
↓ 2 callers
Function
clear_mask
Clears the predicates
fastertransformer/3rdparty/cutlass/include/cutlass/conv/threadblock/conv2d_fprop_activation_tile_access_iterator_optimized.h:324
↓ 2 callers
Method
clear_mask
Clears the predicate set efficiently
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_iterator_triangular_matrix.h:752
↓ 2 callers
Method
clear_mask
Clears the predicate set efficiently
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_iterator_2dthreadtile.h:733
↓ 2 callers
Method
clip_grad_norm
(self, clip_grad)
fastertransformer/3rdparty/Megatron-LM/megatron/optimizer/optimizer.py:95
↓ 2 callers
Function
code
(dtype)
fastertransformer/3rdparty/Megatron-LM/megatron/data/indexed_dataset.py:104
↓ 2 callers
Method
collect
Collect min/max values Args: x_np: A numpy array to be processed. Raises: RuntimeError: when the input shape changed
fastertransformer/examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/calib/max.py:45
↓ 2 callers
Method
commitStage
engine/common/base.h:96
↓ 2 callers
Method
commitStage
algorithm/ABQ/csrc/common/base.h:96
↓ 2 callers
Method
commitStage
fastertransformer/src/fastertransformer/kernels/abqgemm/common/base.h:96
↓ 2 callers
Function
compareTwoTensorV2
fastertransformer/examples/cpp/bert_fp8/bert_fp8_example.cc:38
↓ 2 callers
Method
compress_weight
fastertransformer/src/fastertransformer/models/llama/LlamaDecoderLayerWeight.cc:550
↓ 2 callers
Function
compute_loss
(logits, positions)
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/run_squad.py:646
↓ 2 callers
Function
compute_loss
(logits, positions)
fastertransformer/examples/tensorflow/bert/bert-quantization/run_squad.py:511
↓ 2 callers
Function
compute_metrics
(task_name, preds, labels)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/run_glue.py:76
↓ 2 callers
Function
compute_ngram_freq_sorted
(args, ngrams)
fastertransformer/3rdparty/Megatron-LM/tools/openwebtext/filter_ngrams.py:285
↓ 2 callers
Function
concat_partitions
(partitions_)
fastertransformer/3rdparty/Megatron-LM/tools/merge_mp_partitions.py:66
↓ 2 callers
Method
configuration_name
The full procedural name indicates architecture, extended name, tile size
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/reduction_operation.py:303
↓ 2 callers
Function
conv2d_few_channel_problemsizes
(channels)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/test/conv/conv2d_fprop_few_channels_f16nhwc_f16nhwc_f16nhwc_tensor_op_f32_sm80.py:6
↓ 2 callers
Function
conversion_helper
Apply conversion to val. Recursively apply conversion if `val` #is a nested tuple/list structure.
fastertransformer/3rdparty/Megatron-LM/megatron/model/module.py:130
↓ 2 callers
Function
convert_and_save_parameter
Convert and save to FT parameter Split a param into tensor_para_size if needed, and save each split param at {save_dir}/{param_name}.bin or
fastertransformer/examples/pytorch/gpt/utils/huggingface_bloom_convert.py:216
↓ 2 callers
Function
convert_by_vocab
Converts a sequence of [tokens|ids] using the vocab.
fastertransformer/examples/tensorflow/bert/bert-quantization/tokenization.py:130
↓ 2 callers
Function
convert_examples_to_features
Loads a data file into a list of `InputBatch`s.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/run_squad.py:309
↓ 2 callers
Function
convert_examples_to_features
Loads a data file into a list of `InputBatch`s.
fastertransformer/examples/tensorflow/bert/bert-quantization/utils/create_squad_data.py:306
↓ 2 callers
Function
convert_examples_to_features
Loads a data file into a list of `InputBatch`s.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/run_squad.py:226
↓ 2 callers
Function
convert_examples_to_features
Loads a data file into a list of `InputBatch`s.
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/processors/glue.py:230
↓ 2 callers
Method
convert_ids_to_tokens
Converts a sequence of ids in BPE tokens using the vocab.
fastertransformer/3rdparty/Megatron-LM/megatron/tokenizer/gpt2_tokenization.py:269
↓ 2 callers
Function
convert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
fastertransformer/examples/tensorflow/bert/tensorflow_bert/bert/run_classifier.py:377
↓ 2 callers
Function
convert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
fastertransformer/examples/tensorflow/bert/bert-quantization/utils/create_glue_data.py:332
↓ 2 callers
Method
convert_tokens_to_ids
Converts a sequence of tokens into ids using the vocab.
fastertransformer/3rdparty/Megatron-LM/megatron/tokenizer/gpt2_tokenization.py:247
↓ 2 callers
Function
copy_tiles_and_advance
fastertransformer/3rdparty/cutlass/examples/42_fused_multi_head_attention/gemm/custom_mma_multistage.h:290
↓ 2 callers
Function
copy_tiles_and_advance
fastertransformer/3rdparty/cutlass/examples/43_dual_gemm/threadblock/dual_mma_multistage.h:91
↓ 2 callers
Function
copy_tiles_and_advance
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/threadblock/mma_with_reduction_multistage.h:90
↓ 2 callers
Function
copy_tiles_and_advance
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/threadblock/mma_planar_complex_multistage.h:94
↓ 2 callers
Function
copy_tiles_and_advance
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/threadblock/mma_sparse_multistage.h:97
↓ 2 callers
Function
copy_tiles_and_advance
fastertransformer/3rdparty/cutlass/include/cutlass/gemm/threadblock/mma_blas3_multistage.h:94
↓ 2 callers
Function
copy_tiles_and_advance
fastertransformer/src/fastertransformer/cutlass_extensions/include/cutlass_extensions/gemm/threadblock/dq_mma_multistage.h:98
↓ 2 callers
Function
copy_tiles_and_advance_0
fastertransformer/3rdparty/cutlass/examples/13_two_tensor_op_fusion/threadblock/b2b_implicit_gemm_multistage.h:110
↓ 2 callers
Function
copy_tiles_and_advance_0
fastertransformer/3rdparty/cutlass/examples/13_two_tensor_op_fusion/threadblock/b2b_mma_multistage_smem_accumulator.h:115
↓ 2 callers
Function
copy_tiles_and_advance_0
fastertransformer/3rdparty/cutlass/examples/13_two_tensor_op_fusion/threadblock/b2b_mma_multistage.h:113
↓ 2 callers
Function
copy_tiles_and_advance_0
fastertransformer/3rdparty/cutlass/examples/13_two_tensor_op_fusion/threadblock/b2b_implicit_gemm_multistage_smem_accumulator.h:113
↓ 2 callers
Function
copy_tiles_and_advance_1
fastertransformer/3rdparty/cutlass/examples/42_fused_multi_head_attention/mma_from_smem.h:715
↓ 2 callers
Function
copy_tiles_and_advance_1
fastertransformer/3rdparty/cutlass/examples/13_two_tensor_op_fusion/threadblock/b2b_implicit_gemm_multistage.h:333
↓ 2 callers
Function
copy_tiles_and_advance_1
fastertransformer/3rdparty/cutlass/examples/13_two_tensor_op_fusion/threadblock/b2b_mma_multistage_smem_accumulator.h:386
↓ 2 callers
Function
copy_tiles_and_advance_1
fastertransformer/3rdparty/cutlass/examples/13_two_tensor_op_fusion/threadblock/b2b_mma_multistage.h:363
↓ 2 callers
Function
copy_tiles_and_advance_1
fastertransformer/3rdparty/cutlass/examples/13_two_tensor_op_fusion/threadblock/b2b_implicit_gemm_multistage_smem_accumulator.h:360
↓ 2 callers
Function
corresponding_ft_name
(ia3_weight, ia3_name=False)
fastertransformer/examples/pytorch/t5/utils/nemo_t5_ia3.py:148
↓ 2 callers
Method
count_zeros
(self)
fastertransformer/3rdparty/Megatron-LM/megatron/optimizer/optimizer.py:100
↓ 2 callers
Function
create_masked_lm_predictions
Creates the predictions for the masked LM objective. Note: Tokens here are vocab ids and not text tokens.
fastertransformer/3rdparty/Megatron-LM/megatron/data/dataset_utils.py:181
↓ 2 callers
Method
custom_moe_fc
(self, torch_activations, torch_experts_for_rows, torch_weights, torch_scales, torch_biases, activation_str)
fastertransformer/tests/moe/th_moe_unit_tests.py:135
↓ 2 callers
Function
decoding_body
(word_ids, step, memory, memory_sequence_length,
fastertransformer/examples/tensorflow/decoder/utils/decoding.py:97
↓ 2 callers
Method
dequantize
fastertransformer/src/fastertransformer/cutlass_extensions/include/cutlass_extensions/gemm/warp/mma_tensorop_dequantizer.h:259
↓ 2 callers
Method
deserialize
fastertransformer/src/fastertransformer/tensorrt_plugin/swin/serialize.hpp:74
↓ 2 callers
Method
destroy
fastertransformer/src/fastertransformer/tensorrt_plugin/vit/ViTPlugin.cpp:301
↓ 2 callers
Method
detokenize
(self, token_ids)
fastertransformer/3rdparty/Megatron-LM/megatron/tokenizer/tokenizer.py:99
↓ 2 callers
Method
device
(self)
algorithm/lm_eval/base.py:143
↓ 2 callers
Method
doc_to_text
(self, doc)
algorithm/lm_eval/base.py:513
↓ 2 callers
Method
doc_to_text
(self, doc)
algorithm/lm_eval/tasks/hendrycks_ethics.py:253
↓ 2 callers
Function
dot
fastertransformer/src/fastertransformer/kernels/decoder_masked_multihead_attention_utils.h:1286
↓ 2 callers
Method
download_bookscorpus
(self)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/data/Downloader.py:64
↓ 2 callers
Method
download_google_pretrained_weights
(self)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/data/Downloader.py:72
↓ 2 callers
Method
download_nvidia_pretrained_weights
(self)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/data/Downloader.py:76
↓ 2 callers
Method
download_squad
(self)
fastertransformer/examples/pytorch/bert/bert-quantization-sparsity/data/Downloader.py:84
↓ 2 callers
Method
duration
(self, iterations=1)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/test/profiler.py:66
↓ 2 callers
Method
emit_declaration
(self)
fastertransformer/3rdparty/cutlass/tools/library/scripts/rt.py:321
↓ 2 callers
Method
enable_mask
Clears the predicate set efficiently
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_iterator_triangular_matrix.h:758
↓ 2 callers
Method
enable_mask
Clears the predicate set efficiently
fastertransformer/3rdparty/cutlass/include/cutlass/transform/threadblock/predicated_tile_iterator_2dthreadtile.h:739
↓ 2 callers
Method
enabled
fastertransformer/3rdparty/cutlass/include/cutlass/epilogue/threadblock/predicated_tile_iterator_v2.h:453
↓ 2 callers
Method
end
fastertransformer/3rdparty/cutlass/include/cutlass/array.h:460
↓ 2 callers
Function
ensure_divisibility
Ensure that numerator is divisible by the denominator.
fastertransformer/3rdparty/Megatron-LM/megatron/mpu/utils.py:20
↓ 2 callers
Method
epilogue
engine/mma_any/aq_wmma_kernel.h:508
↓ 2 callers
Method
epilogue
algorithm/ABQ/csrc/mma_any/aq_wmma_kernel.h:503
↓ 2 callers
Method
eq_gemm_size
(self, problem_size)
fastertransformer/3rdparty/cutlass/tools/library/scripts/pycutlass/src/pycutlass/test/conv2d_testbed.py:226
↓ 2 callers
Method
extent_row
Extent of the matrix in rows
fastertransformer/3rdparty/cutlass/include/cutlass/epilogue/threadblock/predicated_tile_iterator_v2.h:392
↓ 2 callers
Function
extract_amaxlist
(init_dict, depths, version=1, ths_path='../../../build/lib/libth_transformer.so', verbose=True)
fastertransformer/examples/pytorch/swin/checkpoint_quantization.py:27
↓ 2 callers
Function
fast_acos
fastertransformer/3rdparty/cutlass/include/cutlass/fast_math.h:659
↓ 2 callers
Function
fast_log
fastertransformer/3rdparty/cutlass/include/cutlass/fast_math.h:740
↓ 2 callers
Function
fixprob
(att, T=3)
fastertransformer/examples/tensorflow/bert/bert-quantization/run_squad.py:519
← previous
next →
1,501–1,600 of 14,558, ranked by callers