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
↓ 4 callers
Function
dropout
Perform dropout. Args: input_tensor: float Tensor. dropout_prob: Python float. The probability of dropping out a value (NOT of *keepi
examples/tensorflow/bert/bert-quantization/modeling.py:367
↓ 4 callers
Method
enabled
src/fastertransformer/models/t5/T5AdapterWeight.h:39
↓ 4 callers
Function
find_chars_or_comment
Return pointer to first char (of chars) or inline comment in given string, or pointer to null at end of string if neither found. Inline comment mus
3rdparty/INIReader.h:137
↓ 4 callers
Method
forward
# Args. max_input_length: int, maximum input context length. step: int, the current step index. ite: int
examples/pytorch/gpt/utils/gpt_decoder.py:656
↓ 4 callers
Method
forward_features
(self, x)
examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer.py:624
↓ 4 callers
Method
from_opt
Alternate constructor. Args: model (onmt.modules.NMTModel): See :func:`__init__()`. fields (dict[str, torchtext.data.
examples/pytorch/decoding/utils/translator.py:183
↓ 4 callers
Function
ft_bert
Run the bert transformer layer by FasterTransformer. Args: inputs: A tf.Tensor with shape [batch_size, seq_len, hidden_dimension].
examples/tensorflow/bert/utils/bert.py:344
↓ 4 callers
Function
ft_decoding
Run the decoding with beam search by TensorFlow. Args: memory_tensor: A tf.tensor with shape [batch_size * beam_width, max(memor
examples/tensorflow/decoding/utils/ft_decoding.py:43
↓ 4 callers
Function
fuse_qkv_weight
(q, k, v)
examples/pytorch/gpt/utils/huggingface_opt_convert.py:149
↓ 4 callers
Function
gen_relative_pos_bias
src/fastertransformer/th_op/swin/SwinOp.cc:138
↓ 4 callers
Function
generateWeightSize
examples/cpp/swin/functions.h:73
↓ 4 callers
Function
getCusparseOperation
src/fastertransformer/utils/gemm.cc:1086
↓ 4 callers
Method
getDModel
src/fastertransformer/models/t5/T5Encoder.h:157
↓ 4 callers
Method
getMaxSeqLen
src/fastertransformer/models/multi_gpu_gpt/ParallelGptWeight.h:69
↓ 4 callers
Function
getSetDevice
src/fastertransformer/utils/cuda_utils.cc:333
↓ 4 callers
Method
get_checkpoints_paths
Injects tensor/pipeline model parallel ranks into the filepath. Does nothing if not using model parallelism.
examples/pytorch/nemo.py:129
↓ 4 callers
Function
get_ft_quant_type
src/fastertransformer/th_op/common/WeightOnlyQuantOps.cc:40
↓ 4 callers
Function
get_shape_list
(tensor, expected_rank=None, name=None)
examples/tensorflow/bert/utils/bert.py:276
↓ 4 callers
Function
graph_fn_builder
(model_fn)
examples/tensorflow/bert/tensorflow_bert/profile_transformer_inference.py:130
↓ 4 callers
Method
has_adapters
src/fastertransformer/models/t5/T5Decoder.h:125
↓ 4 callers
Function
int_result_cross_check
(name, tf_result, op_result, shape)
examples/tensorflow/decoder/utils/common.py:281
↓ 4 callers
Function
invokeAddBias
src/fastertransformer/kernels/activation_kernels.h:91
↓ 4 callers
Function
invokeAddBiasAttentionFfnResidual
src/fastertransformer/kernels/add_residual_kernels.h:67
↓ 4 callers
Function
invokeMaskPaddingTokens
src/fastertransformer/kernels/gpt_kernels.h:214
↓ 4 callers
Function
invokeUpdatePaddingCount
src/fastertransformer/kernels/gpt_kernels.h:193
↓ 4 callers
Method
isFuseBatchGemm
src/fastertransformer/utils/cublasMMWrapper.cc:625
↓ 4 callers
Method
load_from
(self, weights, n_block)
examples/pytorch/vit/ViT-quantization/vit_int8.py:329
↓ 4 callers
Method
load_from
(self, weights)
examples/pytorch/vit/ViT-quantization/vit_int8.py:420
↓ 4 callers
Function
normalize_answer
Lower text and remove punctuation, articles and extra whitespace.
examples/tensorflow/bert/tensorflow_bert/squad_evaluate-v1.1.py:25
↓ 4 callers
Function
normalize_answer
Lower text and remove punctuation, articles and extra whitespace.
examples/tensorflow/bert/tensorflow_bert/squad_evaluate_v1_1.py:25
↓ 4 callers
Function
np2th
(weights, is_conv=False)
examples/pytorch/vit/VisionTransformerWeightLoader.py:32
↓ 4 callers
Method
num_bytes
examples/cpp/xlnet/cnpy.h:61
↓ 4 callers
Function
post_attention
Post-attention processing.
examples/tensorflow/xlnet/modeling.py:106
↓ 4 callers
Function
printMatrix
tests/unittests/fp8_gemm_test/worker.cpp:191
↓ 4 callers
Function
print_fraction
(a, b, counters, desc)
examples/pytorch/vit/ViT-quantization/quant_utils.py:243
↓ 4 callers
Function
print_fraction
(a, b, counters, desc)
examples/pytorch/bert/bert-quantization-sparsity/quant_utils.py:243
↓ 4 callers
Function
print_fraction
(a, b, counters, desc)
examples/pytorch/swin/Swin-Transformer-Quantization/quant_utils.py:212
↓ 4 callers
Function
read_squad_examples
Read a SQuAD json file into a list of SquadExample.
examples/tensorflow/bert/bert-quantization/utils/create_squad_data.py:152
↓ 4 callers
Function
read_start_ids
examples/cpp/multi_gpu_gpt/gpt_example_utils.cc:27
↓ 4 callers
Method
registerCallback
src/fastertransformer/triton_backend/transformer_triton_backend.hpp:273
↓ 4 callers
Function
rel_attn_core
Core relative positional attention operations.
examples/tensorflow/xlnet/modeling.py:141
↓ 4 callers
Function
reshape_to_matrix
Reshapes a >= rank 2 tensor to a rank 2 tensor (i.e., a matrix).
examples/tensorflow/bert/tensorflow_bert/my_modeling.py:942
↓ 4 callers
Function
rstrip
Strip whitespace chars off end of given string, in place. Return s. */
3rdparty/INIReader.h:118
↓ 4 callers
Method
run_moe_fc
src/fastertransformer/kernels/moe_kernels.h:218
↓ 4 callers
Function
run_torch
(model, images, mark)
examples/pytorch/swin/infer_swintransformer_op.py:173
↓ 4 callers
Method
serialize
(self)
examples/pytorch/bert/bert-quantization-sparsity/data/GooglePretrainedWeightDownloader.py:145
↓ 4 callers
Method
setT5StructureDiff
src/fastertransformer/models/t5/T5EncoderWeight.cc:392
↓ 4 callers
Method
set_default_quant_desc_input
Args: value: An instance of :func:`QuantDescriptor <quantization.QuantDescriptor>`
examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/layers/utils.py:32
↓ 4 callers
Function
setup
(args)
examples/pytorch/vit/ViT-quantization/main.py:96
↓ 4 callers
Function
tile
tests/unittests/gtest_utils.h:122
↓ 4 callers
Method
to_bfloat16
(self)
examples/pytorch/bert/utils/encoder.py:216
↓ 4 callers
Method
to_bfloat16
(self)
examples/pytorch/t5/utils/ft_decoding.py:421
↓ 4 callers
Method
to_bfloat16
(self)
examples/pytorch/t5/utils/ft_encoder.py:355
↓ 4 callers
Method
to_cuda
(self)
examples/pytorch/bert/utils/encoder.py:196
↓ 4 callers
Method
to_dict
Serializes this instance to a Python dictionary.
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:295
↓ 4 callers
Method
to_float
(self)
examples/pytorch/t5/utils/ft_encoder.py:343
↓ 4 callers
Method
to_half
(self)
examples/pytorch/bert/utils/encoder.py:210
↓ 4 callers
Function
train_loop
(args, model, optimizer, step, num_steps)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/test/toy_problem.py:31
↓ 4 callers
Method
unRegisterCallback
src/fastertransformer/triton_backend/transformer_triton_backend.hpp:279
↓ 4 callers
Method
warn
(self, s)
examples/pytorch/vit/ViT-quantization/quant_utils.py:32
↓ 4 callers
Function
weight_quantize
src/fastertransformer/th_op/bert/WeightQuantizeOp.cc:44
↓ 4 callers
Function
whitespace_tokenize
Runs basic whitespace cleaning and splitting on a piece of text.
examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:86
↓ 3 callers
Method
Int8Gemm
src/fastertransformer/utils/cublasMMWrapper.cc:1074
↓ 3 callers
Method
__init__
(self)
examples/tensorflow/decoder/utils/common.py:298
↓ 3 callers
Method
__init__
Constructs a InputExample. Args: guid: Unique id for the example. text_a: string. The untokenized text of the first sequen
examples/tensorflow/xlnet/convertInput.py:73
↓ 3 callers
Function
_copy_tokenizer_file_if_defined
(key_name, tokenizer_file_path, saved_dir)
examples/pytorch/gpt/utils/nemo_ckpt_convert.py:469
↓ 3 callers
Function
_copy_tokenizer_file_if_defined
(key_name, tokenizer_file_path, saved_dir)
examples/pytorch/t5/utils/nemo_t5_ckpt_convert.py:1165
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
examples/tensorflow/bert/bert-quantization/utils/create_glue_data.py:217
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
examples/tensorflow/bert/bert-quantization/utils/create_glue_data.py:257
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
examples/tensorflow/bert/bert-quantization/utils/create_glue_data.py:297
↓ 3 callers
Method
_create_examples
Creates examples for the training and dev sets.
examples/tensorflow/xlnet/convertInput.py:164
↓ 3 callers
Function
_cudaGetErrorEnum
debug tools ********************************* */
src/fastertransformer/utils/cuda_utils.h:74
↓ 3 callers
Method
_map
(self, func)
examples/pytorch/gptneox/utils/gptneox.py:113
↓ 3 callers
Method
_map
(self, func)
examples/pytorch/gpt/utils/gpt.py:220
↓ 3 callers
Method
_read_tsv
Reads a tab separated value file.
examples/tensorflow/xlnet/convertInput.py:115
↓ 3 callers
Function
_update_config_entry
(key, file_pattern)
examples/pytorch/gpt/utils/nemo_ckpt_convert.py:449
↓ 3 callers
Function
_update_config_entry
(key, file_pattern)
examples/pytorch/t5/utils/nemo_t5_ckpt_convert.py:1145
↓ 3 callers
Function
add_bias_and_interleave_quantized_tensor_inplace
src/fastertransformer/kernels/cutlass_kernels/cutlass_preprocessors.cc:424
↓ 3 callers
Method
add_pointer_offset
Adds a pointer offset in units of Element
src/fastertransformer/cutlass_extensions/include/cutlass_extensions/epilogue/threadblock/epilogue_tensor_op_int32.h:207
↓ 3 callers
Function
add_special_tokens_to_tokenizer
(tokenizer)
examples/pytorch/tokenizer.py:16
↓ 3 callers
Method
asdict
(self)
examples/pytorch/gpt/utils/gpt.py:747
↓ 3 callers
Function
basic_moe_fc
(activations, expert_for_row, weights, scales, biases)
tests/moe/th_moe_unit_tests.py:23
↓ 3 callers
Function
batch_igemm_config
src/fastertransformer/utils/gemm_test/encoder_igemm_func.cc:982
↓ 3 callers
Function
cached_path
Given something that might be a URL (or might be a local path), determine which. If it's a URL, download the file and cache it, and retur
examples/pytorch/bert/bert-quantization-sparsity/file_utils.py:97
↓ 3 callers
Method
can_implement
Determines whether kernel satisfies alignment
src/fastertransformer/cutlass_extensions/include/cutlass_extensions/gemm/kernel/fpA_intB_gemm.h:228
↓ 3 callers
Function
cast_to_float
src/fastertransformer/kernels/decoder_masked_multihead_attention/decoder_masked_multihead_attention_template.hpp:877
↓ 3 callers
Function
convert_examples_to_features
Loads a data file into a list of `InputBatch`s.
examples/tensorflow/bert/bert-quantization/extract_features.py:210
↓ 3 callers
Function
convert_examples_to_features
Loads a data file into a list of `InputBatch`s.
examples/pytorch/bert/bert-quantization-sparsity/run_swag.py:139
↓ 3 callers
Function
convert_parameter_name
(name: str)
examples/pytorch/gpt/utils/huggingface_bloom_convert.py:130
↓ 3 callers
Function
convert_to_unicode
Converts `text` to Unicode (if it's not already), assuming utf-8 input.
examples/tensorflow/bert/bert-quantization/tokenization.py:92
↓ 3 callers
Function
create_model
Creates a classification model.
examples/tensorflow/bert/bert-quantization/run_squad.py:308
↓ 3 callers
Method
cuda
(self, device=None)
examples/pytorch/gpt/utils/gpt_decoder.py:948
↓ 3 callers
Function
customMatmulRun
src/fastertransformer/utils/gemm_test/gemm_func.cc:156
↓ 3 callers
Function
decode_output
(outputs, model_dir, input_ids, actual_seq_len)
examples/pytorch/longformer/longformer_qa.py:96
↓ 3 callers
Method
download_glue
(self, task_name)
examples/pytorch/bert/bert-quantization-sparsity/data/Downloader.py:80
↓ 3 callers
Method
elapsed_time_in_sec
(self, tag='__default')
examples/pytorch/gpt/bloom_lambada.py:108
↓ 3 callers
Method
encode
(self, text)
examples/tensorflow/gpt/utils/gpt_token_encoder.py:134
↓ 3 callers
Function
estimate_best_config_from_occupancies
src/fastertransformer/kernels/cutlass_kernels/cutlass_heuristic.cc:128
↓ 3 callers
Function
expand_dims
(x, v, axis)
examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/utils/utils.py:23
↓ 3 callers
Function
file_based_convert_examples_to_features
Convert a set of `InputExample`s to a TFRecord file.
examples/tensorflow/bert/bert-quantization/utils/create_glue_data.py:450
← previous
next →
301–400 of 4,228, ranked by callers