Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/FasterTransformer
/ functions
Functions
4,228 in github.com/NVIDIA/FasterTransformer
⨍
Functions
4,228
◇
Types & classes
1,417
↓ 1 callers
Function
_get_special_tokens_ids
(tokenizer_config: typing.Dict)
examples/pytorch/t5/utils/nemo_t5_ckpt_convert.py:1181
↓ 1 callers
Method
_get_variable_name
Get the variable name from the tensor name.
examples/tensorflow/bert/bert-quantization/optimization.py:276
↓ 1 callers
Method
_get_variable_name
Get the variable name from the tensor name.
examples/tensorflow/bert/bert-quantization/optimization.py:392
↓ 1 callers
Function
_improve_answer_span
Returns tokenized answer spans that better match the annotated answer.
examples/tensorflow/bert/bert-quantization/utils/create_squad_data.py:269
↓ 1 callers
Function
_improve_answer_span
Returns tokenized answer spans that better match the annotated answer.
examples/pytorch/bert/bert-quantization-sparsity/run_squad.py:365
↓ 1 callers
Method
_init_cache
(self, memory_bank, decoding_max_seq_len)
examples/pytorch/decoding/utils/decoding.py:384
↓ 1 callers
Method
_init_respostnorm
(self)
examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer_v2.py:506
↓ 1 callers
Method
_init_weights
(self)
examples/pytorch/vit/ViT-quantization/vit_int8.py:221
↓ 1 callers
Method
_initialize_model
(self, force_init=False)
examples/pytorch/gpt/utils/gpt_decoder.py:466
↓ 1 callers
Method
_initialize_model
(self, force_init=False)
examples/pytorch/gpt/utils/gpt_decoder.py:623
↓ 1 callers
Function
_inject_model_parallel_rank
Injects tensor/pipeline model parallel ranks into the filepath. Does nothing if not using model parallelism.
examples/pytorch/gpt/utils/megatron_fp8_ckpt_convert.py:40
↓ 1 callers
Function
_inject_model_parallel_rank
Injects tensor/pipeline model parallel ranks into the filepath. Does nothing if not using model parallelism.
examples/pytorch/gpt/utils/megatron_ckpt_convert.py:40
↓ 1 callers
Method
_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
examples/tensorflow/bert/bert-quantization/tokenization.py:316
↓ 1 callers
Method
_is_chinese_char
Checks whether CP is the codepoint of a CJK character.
examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:259
↓ 1 callers
Function
_is_control
Checks whether `chars` is a control character.
examples/tensorflow/bert/bert-quantization/tokenization.py:426
↓ 1 callers
Function
_is_control
Checks whether `chars` is a control character.
examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:367
↓ 1 callers
Function
_is_punctuation
Checks whether `chars` is a punctuation character.
examples/tensorflow/bert/bert-quantization/tokenization.py:438
↓ 1 callers
Function
_is_punctuation
Checks whether `chars` is a punctuation character.
examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:379
↓ 1 callers
Function
_is_whitespace
Checks whether `chars` is a whitespace character.
examples/tensorflow/bert/bert-quantization/tokenization.py:414
↓ 1 callers
Function
_is_whitespace
Checks whether `chars` is a whitespace character.
examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:355
↓ 1 callers
Method
_map
(self, func)
examples/pytorch/gpt/utils/gpt_fp8.py:126
↓ 1 callers
Function
_process_by_model_shard
(model_config, model_file, dtype: torch.dtype, tp_size: int, save_dir: Path)
examples/pytorch/gpt/utils/huggingface_bloom_convert.py:420
↓ 1 callers
Function
_read_config_ini
(args, checkpoint_path)
examples/pytorch/gpt/lambada_task_example.py:85
↓ 1 callers
Method
_run_split_on_punc
Splits punctuation on a piece of text.
examples/tensorflow/bert/bert-quantization/tokenization.py:283
↓ 1 callers
Method
_run_split_on_punc
Splits punctuation on a piece of text.
examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:224
↓ 1 callers
Method
_run_strip_accents
Strips accents from a piece of text.
examples/tensorflow/bert/bert-quantization/tokenization.py:272
↓ 1 callers
Method
_run_strip_accents
Strips accents from a piece of text.
examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:213
↓ 1 callers
Function
_scaled_fake_quantize
(inputs, quant_min, quant_max)
examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/ops/fake_quantize.py:90
↓ 1 callers
Method
_score_target
(self, batch, memory_bank, src_lengths, src_vocabs, src_map)
examples/pytorch/decoding/utils/translator.py:654
↓ 1 callers
Method
_tokenize_chinese_chars
Adds whitespace around any CJK character.
examples/tensorflow/bert/bert-quantization/tokenization.py:303
↓ 1 callers
Method
_tokenize_chinese_chars
Adds whitespace around any CJK character.
examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:246
↓ 1 callers
Method
_translate_batch_with_strategy
Translate a batch of sentences step by step using cache. Args: batch: a batch of sentences, yield by data iterator. s
examples/pytorch/decoding/utils/translator.py:567
↓ 1 callers
Function
_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
examples/tensorflow/bert/bert-quantization/extract_features.py:302
↓ 1 callers
Function
_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
examples/tensorflow/bert/bert-quantization/utils/create_glue_data.py:316
↓ 1 callers
Function
_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
examples/tensorflow/xlnet/convertInput.py:409
↓ 1 callers
Function
_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
examples/pytorch/bert/bert-quantization-sparsity/run_swag.py:217
↓ 1 callers
Function
_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
examples/pytorch/bert/bert-quantization-sparsity/extract_features.py:151
↓ 1 callers
Function
_truncate_seq_pair
Truncates a sequence pair in place to the maximum length.
examples/pytorch/bert/bert-quantization-sparsity/processors/glue.py:303
↓ 1 callers
Function
_update_tokenizer_config
(tokenizer_config: typing.Dict, unpacked_checkpoints_dir)
examples/pytorch/gpt/utils/nemo_ckpt_convert.py:448
↓ 1 callers
Function
_update_tokenizer_config
(tokenizer_config: typing.Dict, unpacked_checkpoints_dir)
examples/pytorch/t5/utils/nemo_t5_ckpt_convert.py:1144
↓ 1 callers
Function
abs_attn_core
Core absolute positional attention operations.
examples/tensorflow/xlnet/modeling.py:122
↓ 1 callers
Function
accuracy
Computes the accuracy over the k top predictions for the specified values of k
examples/pytorch/vit/ViT-quantization/eval_engine.py:78
↓ 1 callers
Function
accuracy
(out, labels)
examples/pytorch/bert/bert-quantization-sparsity/run_swag.py:233
↓ 1 callers
Function
accuracy_score
(pred, ref)
examples/pytorch/t5/mnli_task_example.py:82
↓ 1 callers
Function
accuracy_score
(pred, ref)
examples/pytorch/t5/xnli_task_example.py:97
↓ 1 callers
Function
add_bias_and_interleave_int4s_inplace
src/fastertransformer/kernels/cutlass_kernels/cutlass_preprocessors.cc:372
↓ 1 callers
Function
add_bias_and_interleave_int8s_inplace
src/fastertransformer/kernels/cutlass_kernels/cutlass_preprocessors.cc:350
↓ 1 callers
Method
allocateAndExchangePeerAccessPointer
src/fastertransformer/utils/custom_ar_comm.cc:58
↓ 1 callers
Function
almostEqual
tests/unittests/unittest_utils.h:66
↓ 1 callers
Function
almostEqual
tests/unittests/gtest_utils.h:22
↓ 1 callers
Method
apply_act
(self, inp, act_str)
tests/gemm_dequantize/th_gemm_dequantize.py:53
↓ 1 callers
Function
assert_rank
(tensor, expected_rank, name=None)
examples/tensorflow/encoder/utils/encoder.py:183
↓ 1 callers
Function
assert_rank
(tensor, expected_rank, name=None)
examples/tensorflow/bert/utils/bert.py:325
↓ 1 callers
Function
assert_rank
Raises an exception if the tensor rank is not of the expected rank. Args: tensor: A tf.Tensor to check the rank of. expected_rank: Python i
examples/tensorflow/bert/tensorflow_bert/my_modeling.py:969
↓ 1 callers
Function
assert_rank
Raises an exception if the tensor rank is not of the expected rank. Args: tensor: A tf.Tensor to check the rank of. expected_rank: Python i
examples/tensorflow/bert/bert-quantization/modeling.py:1052
↓ 1 callers
Function
attention_layer
(from_tensor, to_tensor, attention_mask=None, num_
examples/tensorflow/bert/utils/bert.py:38
↓ 1 callers
Function
attention_layer
Performs multi-headed attention from `from_tensor` to `to_tensor`. This is an implementation of multi-headed attention based on "Attention is all
examples/tensorflow/bert/bert-quantization/modeling.py:585
↓ 1 callers
Function
axis_to_split
(name: str)
examples/pytorch/gpt/utils/huggingface_bloom_convert.py:154
↓ 1 callers
Function
bench_cublas
tests/gemm_dequantize/th_gemm_dequantize.cc:152
↓ 1 callers
Function
bert_example
(args_dict)
examples/tensorflow/bert/bert_example.py:43
↓ 1 callers
Function
bleu_score
(pred, ref)
examples/tensorrt/t5/testT5Plugin.py:60
↓ 1 callers
Function
bleu_score
(pred, ref)
examples/tensorflow/t5/translate_example.py:38
↓ 1 callers
Function
bleu_score
(pred, ref)
examples/pytorch/bart/translate_example.py:38
↓ 1 callers
Function
bleu_score
(pred_file, ref_file, bleu_score_threshold=None)
examples/pytorch/decoding/utils/bleu_score.py:18
↓ 1 callers
Function
bleu_score
(pred, ref)
examples/pytorch/t5/translate_example.py:71
↓ 1 callers
Method
bpe
(self, token)
examples/tensorflow/gpt/utils/gpt_token_encoder.py:93
↓ 1 callers
Method
bpe
(self, token)
examples/pytorch/gpt/utils/gpt_token_encoder.py:93
↓ 1 callers
Function
broadCastRequest
examples/cpp/gptneox/gptneox_triton_example.cc:48
↓ 1 callers
Function
broadCastRequest
examples/cpp/gptj/gptj_triton_example.cc:48
↓ 1 callers
Function
broadcastRequest
examples/cpp/multi_gpu_gpt/multi_gpu_gpt_triton_example.cc:31
↓ 1 callers
Function
broadcastRequest
examples/cpp/bert/bert_triton_example.cc:28
↓ 1 callers
Function
broadcastRequest
examples/cpp/gpt_fp8/gpt_fp8_triton_example.cc:29
↓ 1 callers
Method
build
(self, input_shape)
examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/layers/dense.py:94
↓ 1 callers
Function
buildEngine
(logger, arg, trtFileName)
examples/tensorrt/t5/testT5Plugin.py:110
↓ 1 callers
Function
build_base_model
Build a model from opts. Args: model_opt: the option loaded from checkpoint. It's important that the opts have been updated a
examples/pytorch/decoding/utils/translation_model.py:109
↓ 1 callers
Function
build_engine
(config, args, weights_dict)
examples/tensorrt/swin/builder.py:262
↓ 1 callers
Function
build_engine
(config, args, weights_dict)
examples/tensorrt/swin/builder_int8.py:260
↓ 1 callers
Function
build_loader
(config, args)
examples/pytorch/swin/Swin-Transformer-Quantization/data.py:52
↓ 1 callers
Function
build_model
(args)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/test/toy_problem.py:7
↓ 1 callers
Function
build_model
(args)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/test/checkpointing_test_part1.py:7
↓ 1 callers
Function
build_model
(args)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/test/checkpointing_test_reference.py:11
↓ 1 callers
Function
build_model
(args)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/test/checkpointing_test_part2.py:7
↓ 1 callers
Method
build_network
(self, weights)
examples/tensorrt/vit/plugin_loader_int8.py:116
↓ 1 callers
Method
build_network
(self, weights_path)
examples/tensorrt/vit/plugin_loader.py:128
↓ 1 callers
Method
build_plugin_field_collection
(self, weights)
examples/tensorrt/vit/plugin_loader_int8.py:69
↓ 1 callers
Method
build_plugin_field_collection
(self, weights)
examples/tensorrt/vit/plugin_loader.py:66
↓ 1 callers
Function
build_sequence_mask
Builds the dot product mask. Args: sequence_length: The sequence length. num_heads: The number of heads. maximum_length: O
examples/tensorflow/bert/utils/bert.py:254
↓ 1 callers
Function
build_sequence_mask
Builds the dot product mask. Args: sequence_length: The sequence length. num_heads: The number of heads. maximum_length: Option
examples/tensorflow/decoder/utils/decoder.py:51
↓ 1 callers
Function
build_transform
(is_train, config)
examples/pytorch/vit/ViT-quantization/data.py:126
↓ 1 callers
Function
build_val_loader
(config)
examples/pytorch/vit/ViT-quantization/data.py:45
↓ 1 callers
Function
bytes_to_unicode
Returns list of utf-8 byte and a corresponding list of unicode strings. The reversible bpe codes work on unicode strings. This means you
examples/tensorflow/gpt/utils/gpt_token_encoder.py:47
↓ 1 callers
Function
bytes_to_unicode
Returns list of utf-8 byte and a corresponding list of unicode strings. The reversible bpe codes work on unicode strings. This means you
examples/pytorch/gpt/utils/gpt_token_encoder.py:47
↓ 1 callers
Function
calDecodingGemmTestBufSizeInByte
src/fastertransformer/utils/gemm_test/decoding_gemm_func.cc:359
↓ 1 callers
Function
calGemmTestBufSizeInByteXlnet
src/fastertransformer/utils/gemm_test/gemm_func.cc:906
↓ 1 callers
Function
calib
Calibrate the model
examples/pytorch/vit/ViT-quantization/main.py:165
↓ 1 callers
Function
calib
Calibrate the model
examples/pytorch/vit/ViT-quantization/eval_engine.py:167
↓ 1 callers
Method
calib_step_op
get the op for one step of calibration Args: graph: The being executed TensorFlow Graph. Returns: A wrapped TensorFlow op of `tf
examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/calib/calibrator.py:62
↓ 1 callers
Function
cast_to_int8
src/fastertransformer/kernels/decoder_masked_multihead_attention/decoder_masked_multihead_attention_template.hpp:991
↓ 1 callers
Function
checkMat
src/fastertransformer/kernels/layernorm_fp8_kernels_test.cc:45
↓ 1 callers
Function
checkMat
tests/unittests/fp8_gemm_test/worker.cpp:18
← previous
next →
801–900 of 4,228, ranked by callers