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
↓ 3 callers
Function
float_from_int8
src/fastertransformer/kernels/decoder_masked_multihead_attention/decoder_masked_multihead_attention_template.hpp:943
↓ 3 callers
Function
float_to_int8_rn_host
be consistent with FasterTransformer
src/fastertransformer/utils/convert_data_type.h:22
↓ 3 callers
Method
flops
(self)
examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer_v2.py:498
↓ 3 callers
Method
forward
src/fastertransformer/th_op/vit/ViTINT8Op.cc:104
↓ 3 callers
Method
forward
src/fastertransformer/th_op/longformer/LongformerEncoderOp.cc:58
↓ 3 callers
Method
forward
src/fastertransformer/th_op/swin/SwinOp.cc:128
↓ 3 callers
Method
forward
src/fastertransformer/th_op/swin/SwinINT8Op.cc:131
↓ 3 callers
Method
from_config
(cls, config: GptInitModelParameters, **kwargs)
examples/pytorch/gpt/utils/gpt_decoder.py:840
↓ 3 callers
Method
from_json_file
Constructs a `BertConfig` from a json file of parameters.
examples/tensorflow/bert/bert-quantization/modeling.py:96
↓ 3 callers
Function
fuse3
(qq, qk, qv)
examples/pytorch/vit/ViT-quantization/quant_utils.py:194
↓ 3 callers
Function
fuse3
(qq, qk, qv)
examples/pytorch/bert/bert-quantization-sparsity/quant_utils.py:194
↓ 3 callers
Function
fuse3
(qq, qk, qv)
examples/pytorch/swin/Swin-Transformer-Quantization/quant_utils.py:165
↓ 3 callers
Method
fuse3
(self, qq, qk, qv)
examples/tensorflow/bert/bert-quantization/run_squad.py:286
↓ 3 callers
Method
gating_softmax_test_helper
(self, dtype, rtol=1e-05, atol=1e-08)
tests/moe/th_moe_unit_tests.py:58
↓ 3 callers
Function
getCublasComputeType
src/fastertransformer/utils/gemm.cc:1037
↓ 3 callers
Method
getFinishBuffer
src/fastertransformer/models/gptj/GptJ.cc:1237
↓ 3 callers
Function
getGemmOpString
src/fastertransformer/utils/gemm.cc:1074
↓ 3 callers
Method
getSpAlgo
src/fastertransformer/utils/cublasAlgoMap.cc:196
↓ 3 callers
Function
getUnfusedAttentionType
src/fastertransformer/layers/attention_layers/BaseAttentionLayer.h:128
↓ 3 callers
Method
getWeightsPtr
src/fastertransformer/models/longformer/LongformerEncoder.cc:134
↓ 3 callers
Method
getXMMAKernels
3rdparty/trt_fused_multihead_attention/fused_multihead_attention.h:410
↓ 3 callers
Function
get_args
()
examples/pytorch/gpt/utils/huggingface_bloom_convert.py:55
↓ 3 callers
Function
get_candidate_configs
src/fastertransformer/kernels/cutlass_kernels/cutlass_heuristic.cc:110
↓ 3 callers
Method
get_dev_examples
Gets a collection of `InputExample`s for the dev set.
examples/pytorch/bert/bert-quantization-sparsity/processors/glue.py:61
↓ 3 callers
Function
get_name_prefix
(tensor_name)
examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/calib/calibrator.py:332
↓ 3 callers
Function
get_shape_list
(tensor, expected_rank=None, name=None)
examples/tensorflow/encoder/utils/encoder.py:135
↓ 3 callers
Function
get_tokenizer
(vocab_file=None, bpe_file=None)
examples/pytorch/gpt/utils/word_list.py:27
↓ 3 callers
Method
get_train_examples
Gets a collection of `InputExample`s for the train set.
examples/pytorch/bert/bert-quantization-sparsity/processors/glue.py:57
↓ 3 callers
Function
get_world_size
()
examples/pytorch/gpt/utils/comm.py:19
↓ 3 callers
Function
gpt_generate_fn
()
examples/pytorch/gpt/multi_gpu_gpt_example.py:301
↓ 3 callers
Function
handle_exceptions
(model_config: PretrainedConfig, param_name: str, param: torch.nn.
examples/pytorch/gpt/utils/huggingface_bloom_convert.py:205
↓ 3 callers
Function
igemm_config
src/fastertransformer/utils/gemm_test/encoder_igemm_func.cc:1013
↓ 3 callers
Function
init_onmt_cache
(layer_num, memory_bank)
examples/pytorch/decoder/utils/decoder.py:48
↓ 3 callers
Function
init_op_cache
(layer_num, batch_size, beam_width, max_seq_len, \ decoding_max_seq_len, head_num, size_per_
examples/pytorch/decoder/utils/decoder.py:30
↓ 3 callers
Method
init_state
Initialize decoder state.
examples/pytorch/decoding/utils/decoding.py:293
↓ 3 callers
Method
initialize
src/fastertransformer/models/vit/ViT.cc:31
↓ 3 callers
Function
isUnPaddedMHA
src/fastertransformer/layers/attention_layers/BaseAttentionLayer.h:118
↓ 3 callers
Function
layer_norm
(input_tensor, name=None)
examples/tensorflow/encoder/utils/encoder.py:21
↓ 3 callers
Function
layer_norm
Run layer normalization on the last dimension of the tensor.
examples/tensorflow/bert/bert-quantization/modeling.py:385
↓ 3 callers
Method
load
(self, ckpt_path)
examples/pytorch/gptneox/utils/gptneox.py:237
↓ 3 callers
Function
load_state_dict
Load weights from model file `safetensors` or `pytorch binary` is supported # Args. file_path: model file path, ends with .bin or .
examples/pytorch/gpt/utils/huggingface_bloom_convert.py:308
↓ 3 callers
Function
load_the_npy_file
examples/cpp/xlnet/cnpy.cpp:201
↓ 3 callers
Method
map_state
(self, fn)
examples/pytorch/decoding/utils/decoding.py:298
↓ 3 callers
Function
metric_fn
Computes the loss and accuracy of the model.
examples/tensorflow/bert/bert-quantization/run_pretraining.py:276
↓ 3 callers
Function
norm
Layer normalizes :obj:`inputs`.
examples/tensorflow/decoder/utils/decoder.py:28
↓ 3 callers
Function
paraName
examples/cpp/xlnet/xlnet_correctness_example.cc:133
↓ 3 callers
Function
param2file
(pt_param, layer_id, save_dir, dest_key)
examples/pytorch/gptj/utils/gptj_ckpt_convert.py:90
↓ 3 callers
Function
param2file
(pt_param, layer_id, save_dir, dest_key)
examples/pytorch/gptj/utils/huggingface_gptj_ckpt_convert.py:21
↓ 3 callers
Function
print_abs_mean
(node, tensor, info = "")
examples/tensorflow/common_utils/common.py:126
↓ 3 callers
Method
process_feature
Write a InputFeature to the TFRecordWriter as a tf.train.Example.
examples/tensorflow/bert/bert-quantization/utils/create_squad_data.py:481
↓ 3 callers
Function
quantize
(mat, act_range)
examples/pytorch/gpt/utils/huggingface_opt_convert.py:47
↓ 3 callers
Function
random_tensor
(shape, dtype, device, mean=0, std=1)
tests/gemm_dequantize/th_gemm_dequantize.py:4
↓ 3 callers
Function
reshape_from_matrix
Reshapes a rank 2 tensor back to its original rank >= 2 tensor.
examples/tensorflow/bert/tensorflow_bert/my_modeling.py:956
↓ 3 callers
Function
reshape_to_matrix
Reshapes a >= rank 2 tensor to a rank 2 tensor (i.e., a matrix).
examples/tensorflow/bert/utils/bert.py:299
↓ 3 callers
Function
reshape_to_matrix
Reshapes a >= rank 2 tensor to a rank 2 tensor (i.e., a matrix).
examples/tensorflow/bert/bert-quantization/modeling.py:1025
↓ 3 callers
Method
run_decode
(self, batch_size=4, beam_width=1, max_input_length=4
tests/unittests/th_op/test_th_decode_op.py:85
↓ 3 callers
Method
set
src/fastertransformer/utils/gpu_buf.h:45
↓ 3 callers
Method
setMaxSeqLen
src/fastertransformer/models/gptneox/GptNeoXWeight.h:70
↓ 3 callers
Method
set_hf_plugin_mode
(self, is_plugin)
examples/pytorch/longformer/model.py:80
↓ 3 callers
Function
set_tensor_common_0
3rdparty/fp8_qgmma_1x1/utils.h:73
↓ 3 callers
Function
tf_beamsearch_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/decoder/utils/decoding.py:200
↓ 3 callers
Function
tf_encoder_opennmt
Run the bert transformer layer by TensorFlow. Args: input_tensor: A tf.Tensor with shape [batch_size, seq_len, hidden_dimension]
examples/tensorflow/encoder/utils/encoder.py:47
↓ 3 callers
Function
tf_sampling_decoding
Run the decoding with sampling by TensorFlow. Args: memory_tensor: A tf.tensor with shape [batch_size, max(memory_sequence_lengt
examples/tensorflow/decoder/utils/decoding.py:341
↓ 3 callers
Method
to_cuda
(self)
examples/pytorch/vit/VisionTransformerINT8WeightLoader.py:97
↓ 3 callers
Method
to_dict
Serializes this instance to a Python dictionary.
examples/tensorflow/bert/bert-quantization/modeling.py:102
↓ 3 callers
Method
to_int8
(self, ths_path='../../../lib/libth_transformer.so')
examples/pytorch/vit/VisionTransformerINT8WeightLoader.py:149
↓ 3 callers
Function
to_numpy_dtype
(maybe_str_dtype: Union[str, np.dtype])
examples/pytorch/gpt/utils/gpt_decoder.py:32
↓ 3 callers
Function
train_loop
(args, model, optimizer, step, num_steps)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/test/checkpointing_test_reference.py:35
↓ 3 callers
Method
transpose_for_scores
(self, x)
examples/pytorch/vit/ViT-quantization/vit_int8.py:170
↓ 3 callers
Function
trt_getS
examples/cpp/swin/functions.h:43
↓ 3 callers
Function
validate
(config, data_loader, model)
examples/pytorch/swin/Swin-Transformer-Quantization/main.py:300
↓ 3 callers
Method
warn
(self, s)
examples/pytorch/bert/bert-quantization-sparsity/quant_utils.py:33
↓ 3 callers
Function
whitespace_tokenize
Runs basic whitespace cleaning and splitting on a piece of text.
examples/tensorflow/bert/bert-quantization/tokenization.py:138
↓ 2 callers
Method
CopyWeightsFromHostBuffers
src/fastertransformer/models/vit/ViTWeight.h:203
↓ 2 callers
Method
DynamicDecodeOp
src/fastertransformer/th_op/common/DynamicDecodeOp.cc:211
↓ 2 callers
Method
GetSerializeSize
src/fastertransformer/models/vit_int8/ViTINT8Weight.h:155
↓ 2 callers
Method
GetWeightCount
src/fastertransformer/models/vit/ViTWeight.h:236
↓ 2 callers
Function
LtIgemmCustomFind
src/fastertransformer/utils/gemm_test/encoder_igemm_func.cc:281
↓ 2 callers
Method
SwinTransformerINT8Class
src/fastertransformer/th_op/swin/SwinINT8Op.cc:22
↓ 2 callers
Method
__init__
(self, config)
examples/pytorch/bert/utils/modeling_bert.py:26
↓ 2 callers
Method
__init__
(self, model_type=None, data_type=None, decoder_ths_path=None, decoding_ths_path=None)
examples/pytorch/decoding/utils/decoding.py:416
↓ 2 callers
Method
__init__
(self, num_heads: int, size_per_head: int, num_layers: int,
examples/pytorch/gpt/utils/gpt_decoder.py:714
↓ 2 callers
Function
__nv_fp8_e4m3
tests/unittests/fp8_gemm_test/2022_03_21__fp8_stride_batch_example/include/cuda_fp8.hpp:706
↓ 2 callers
Function
_append_to_models
(model, adapter, rank_weights, is_merge: bool)
examples/pytorch/t5/utils/nemo_t5_ckpt_convert.py:904
↓ 2 callers
Function
_compute_softmax
Compute softmax probability over raw logits.
examples/pytorch/bert/bert-quantization-sparsity/run_squad.py:695
↓ 2 callers
Function
_config_update_adapter
(side: str)
examples/pytorch/t5/utils/nemo_t5_ckpt_convert.py:1127
↓ 2 callers
Method
_create_examples
Creates examples for the training and dev sets.
examples/tensorflow/xlnet/convertInput.py:216
↓ 2 callers
Method
_create_examples
(self, data_dir)
examples/tensorflow/xlnet/convertInput.py:240
↓ 2 callers
Method
_create_examples
Creates examples for the training and dev sets.
examples/pytorch/bert/bert-quantization-sparsity/processors/glue.py:103
↓ 2 callers
Method
_create_examples
Creates examples for the training and dev sets.
examples/pytorch/bert/bert-quantization-sparsity/processors/glue.py:142
↓ 2 callers
Method
_create_examples
Creates examples for the training and dev sets.
examples/pytorch/bert/bert-quantization-sparsity/processors/glue.py:181
↓ 2 callers
Method
_create_examples
Creates examples for the training and dev sets.
examples/pytorch/bert/bert-quantization-sparsity/processors/glue.py:215
↓ 2 callers
Method
_create_position_encoding_table
(self, max_seq_len, input_dim, dtype)
examples/tensorflow/decoder/utils/position.py:62
↓ 2 callers
Method
_decode_and_generate
( self, decoder_in, memory_bank, batch, src_vocabs
examples/pytorch/decoding/utils/translator.py:509
↓ 2 callers
Method
_encode
Creates position encodings. Args: positions: The positions to encode of shape :math:`[B, ...]`. depth: The encoding depth
examples/tensorflow/bert/utils/position.py:52
↓ 2 callers
Method
_encode
Creates position encodings. Args: positions: The positions to encode of shape :math:`[B, ...]`. depth: The encoding depth
examples/tensorflow/decoder/utils/position.py:52
↓ 2 callers
Method
_encode
Creates position encodings. Args: positions: The positions to encode of shape :math:`[B, ...]`. depth: The encoding depth
examples/tensorflow/common_utils/position.py:52
↓ 2 callers
Function
_extract_pp_weights
(model, pp_idx: int)
examples/pytorch/t5/utils/nemo_t5_ckpt_convert.py:873
↓ 2 callers
Function
_fused_gemm_dq
tests/gemm_dequantize/th_gemm_dequantize.cc:78
↓ 2 callers
Function
_get_best_indexes
Get the n-best logits from a list.
examples/tensorflow/bert/bert-quantization/run_squad.py:912
← previous
next →
401–500 of 4,228, ranked by callers