MCPcopy Create free account

hub / github.com/NVIDIA/FasterTransformer / functions

Functions4,228 in github.com/NVIDIA/FasterTransformer

↓ 1 callersFunctionsetup_torch
(args)
examples/tensorrt/vit/infer_visiontransformer_int8_plugin.py:39
↓ 1 callersFunctionsetup_training
(args)
examples/pytorch/bert/bert-quantization-sparsity/run_pretraining.py:307
↓ 1 callersFunctionsetup_trt
(args, config)
examples/tensorrt/vit/infer_visiontransformer_plugin.py:47
↓ 1 callersFunctionsetup_trt
(args, config, model)
examples/tensorrt/vit/infer_visiontransformer_int8_plugin.py:51
↓ 1 callersMethodsha256sum
(self, filename)
examples/pytorch/bert/bert-quantization-sparsity/data/GooglePretrainedWeightDownloader.py:106
↓ 1 callersFunctionshfl_mask
src/fastertransformer/kernels/decoder_masked_multihead_attention/decoder_masked_multihead_attention_template.hpp:1098
↓ 1 callersFunctionsimple_accuracy
(preds, labels)
examples/pytorch/vit/ViT-quantization/eval_engine.py:87
↓ 1 callersFunctionsplit_and_convert
(args)
examples/tensorflow/gpt/utils/openai_gpt_ckpt_converter.py:94
↓ 1 callersFunctionsplit_and_convert
(args)
examples/pytorch/bert/utils/huggingface_bert_convert.py:79
↓ 1 callersFunctionsplit_and_convert
(args)
examples/pytorch/bert/utils/huggingface_bert_fp8_convert.py:37
↓ 1 callersFunctionsplit_and_convert
(args)
examples/pytorch/gptneox/utils/huggingface_gptneox_convert.py:85
↓ 1 callersFunctionsplit_and_convert
(args)
examples/pytorch/gptneox/utils/huggingface_jp_gptneox_convert.py:121
↓ 1 callersFunctionsplit_and_convert
(args)
examples/pytorch/gpt/utils/huggingface_gpt_convert.py:90
↓ 1 callersFunctionsplit_and_convert
(args)
examples/pytorch/gpt/utils/huggingface_jp_gpt_convert.py:92
↓ 1 callersFunctionsplit_and_convert
(args)
examples/pytorch/gpt/utils/huggingface_opt_convert.py:156
↓ 1 callersFunctionsplit_and_convert
(args)
examples/onnx/multi_gpu_gpt/onnx_ckpt_convert.py:77
↓ 1 callersFunctionsplit_and_convert_process
(key, val, factor, saved_dir)
examples/tensorrt/t5/extractT5ModelToBIN.py:46
↓ 1 callersFunctionsplit_inputs_and_targets
(entries: Dict[str, torch.LongTensor], pad_token_id: int,
examples/pytorch/gpt/bloom_lambada.py:269
↓ 1 callersFunctionsubbyte_transpose
src/fastertransformer/kernels/cutlass_kernels/cutlass_preprocessors.cc:332
↓ 1 callersFunctionswin_transformer
(network, config, args, input_img, weights_dict)
examples/tensorrt/swin/builder.py:94
↓ 1 callersFunctionswin_transformer
(network, config, args, input_img, weights_dict)
examples/tensorrt/swin/builder_int8.py:95
↓ 1 callersFunctiontake_optimizer_step
(args, optimizer, model, overflow_buf, global_step)
examples/pytorch/bert/bert-quantization-sparsity/run_pretraining.py:462
↓ 1 callersFunctiontanh_opt
src/fastertransformer/cutlass_extensions/include/cutlass_extensions/epilogue/thread/ft_fused_activations.h:61
↓ 1 callersFunctiontestBoth
(arg, stream)
examples/tensorrt/t5/testT5Plugin.py:172
↓ 1 callersFunctiontest_csv_read_write
()
examples/pytorch/gpt/utils/word_list.py:88
↓ 1 callersFunctiontest_fp8_add_fused_QKV_bias_transpose
src/fastertransformer/kernels/unfused_attention_fp8_kernels_test.cc:136
↓ 1 callersFunctiontest_fp8_general_add_bias_residual_pre_layernorm
src/fastertransformer/kernels/layernorm_fp8_kernels_test.cc:90
↓ 1 callersFunctiontest_fp8_masked_softmax
src/fastertransformer/kernels/unfused_attention_fp8_kernels_test.cc:241
↓ 1 callersFunctiontest_fp8_transpose_4d_batch_major
* test FP8Transpose4dBatchMajor * input: k/v cache buffers, shape [B, H, L, Dh] * output: k/v cache buffers, shape [B, H, Dh/x, L, x], [B, H, L, Dh/
src/fastertransformer/kernels/unfused_attention_fp8_kernels_test.cc:49
↓ 1 callersFunctiontf_decoder
Run the decoder transformer layer by TensorFlow. Args: decoder_args: The arguments for decoder. The details ar
examples/tensorflow/decoder/utils/decoder.py:76
↓ 1 callersMethodthreadblock_idx
src/fastertransformer/cutlass_extensions/include/cutlass_extensions/gemm/kernel/moe_problem_visitor.h:143
↓ 1 callersFunctionthroughput
(data_loader, model, logger)
examples/pytorch/swin/Swin-Transformer-Quantization/main.py:415
↓ 1 callersFunctionthrowRuntimeError
src/fastertransformer/utils/cuda_utils.h:197
↓ 1 callersMethodtile_count
src/fastertransformer/cutlass_extensions/include/cutlass_extensions/gemm/kernel/moe_problem_visitor.h:179
↓ 1 callersMethodto_bfloat16
(self)
examples/pytorch/bart/utils/ft_decoding.py:271
↓ 1 callersMethodto_bfloat16
(self)
examples/pytorch/bart/utils/ft_encoder.py:215
↓ 1 callersMethodto_bfloat16
(self)
examples/pytorch/swin/SwinTransformerWeightTransposeQKVWeight.py:202
↓ 1 callersMethodto_cuda
(self)
examples/pytorch/vit/VisionTransformerWeightLoader.py:134
↓ 1 callersMethodto_cuda
(self)
examples/pytorch/encoder/utils/ft_encoder.py:79
↓ 1 callersMethodto_cuda
(self)
examples/pytorch/t5/utils/ft_decoding.py:405
↓ 1 callersMethodto_cuda
(self)
examples/pytorch/t5/utils/ft_encoder.py:339
↓ 1 callersMethodto_dict
Serializes this instance to a Python dictionary.
examples/tensorflow/bert/tensorflow_bert/my_modeling.py:100
↓ 1 callersMethodto_float
(self)
examples/pytorch/t5/utils/ft_decoding.py:409
↓ 1 callersMethodto_half
(self)
examples/pytorch/bart/utils/ft_decoding.py:263
↓ 1 callersMethodto_half
(self)
examples/pytorch/bart/utils/ft_encoder.py:207
↓ 1 callersMethodto_half
(self)
examples/pytorch/vit/VisionTransformerWeightLoader.py:138
↓ 1 callersMethodto_half
(self)
examples/pytorch/encoder/utils/ft_encoder.py:83
↓ 1 callersFunctionto_list
(tensor)
examples/pytorch/bert/run_squad.py:54
↓ 1 callersFunctionto_word_list_format
(word_dict, tokenizer=None)
examples/pytorch/gpt/utils/word_list.py:36
↓ 1 callersMethodtokenize
Tokenizes a piece of text.
examples/tensorflow/bert/bert-quantization/tokenization.py:250
↓ 1 callersMethodtokenize
Tokenizes a piece of text.
examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:192
↓ 1 callersMethodtokenize
(self, text: str)
examples/pytorch/gptneox/utils/hftokenizer.py:26
↓ 1 callersFunctiontrain
(args, config)
examples/pytorch/vit/ViT-quantization/main.py:196
↓ 1 callersFunctiontrain
(args, config)
examples/pytorch/vit/ViT-quantization/eval_engine.py:301
↓ 1 callersFunctiontrain_loop
(args, model, optimizer, step, num_steps)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/test/checkpointing_test_part2.py:31
↓ 1 callersFunctiontrain_one_epoch
(config, model, criterion, data_loader_train, optimizer, epoch, mixup_fn, teacher, dis_loss)
examples/pytorch/swin/Swin-Transformer-Quantization/main.py:242
↓ 1 callersFunctiontrain_step
(args, model, optimizer, input_batch, target_batch, step)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/test/toy_problem.py:21
↓ 1 callersFunctiontrain_step
(args, model, optimizer, input_batch, target_batch, step)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/test/checkpointing_test_part1.py:21
↓ 1 callersFunctiontrain_step
(args, model, optimizer, input_batch, target_batch, step)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/test/checkpointing_test_reference.py:25
↓ 1 callersFunctiontrain_step
(args, model, optimizer, input_batch, target_batch, step)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/test/checkpointing_test_part2.py:21
↓ 1 callersFunctiontransformer_model
Multi-headed, multi-layer Transformer from "Attention is All You Need". This is almost an exact implementation of the original Transformer encoder.
examples/tensorflow/bert/tensorflow_bert/my_modeling.py:763
↓ 1 callersFunctiontransformer_model
Multi-headed, multi-layer Transformer from "Attention is All You Need". This is almost an exact implementation of the original Transformer encoder.
examples/tensorflow/bert/bert-quantization/modeling.py:816
↓ 1 callersFunctiontranslate
(args_dict)
examples/tensorflow/decoding/translate_example.py:82
↓ 1 callersFunctiontranslate
(args_dict)
examples/tensorflow/t5/translate_example.py:82
↓ 1 callersFunctiontranslate
(args_dict)
examples/pytorch/bart/translate_example.py:63
↓ 1 callersFunctiontranslate
(args_dict)
examples/pytorch/t5/perf_benchmark.py:78
↓ 1 callersMethodtranslate
Translate content of ``src`` and get gold scores from ``tgt``. Args: src: See :func:`self.src_reader.read()`. tgt: Se
examples/pytorch/decoding/utils/translator.py:263
↓ 1 callersMethodtranslate_batch
Translate a batch of sentences.
examples/pytorch/decoding/utils/translator.py:433
↓ 1 callersMethodtranslate_batch_ftdecoding
(self, batch, src_vocabs)
examples/pytorch/decoding/utils/translator.py:468
↓ 1 callersMethodtranspose_key_for_scores
(self, x)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:418
↓ 1 callersFunctiontruncate_seq_pair
Truncates a pair of sequences to a maximum sequence length.
examples/tensorflow/bert/bert-quantization/utils/create_pretraining_data.py:400
↓ 1 callersFunctiontruncate_seq_pair
Truncates a pair of sequences to a maximum sequence length.
examples/pytorch/bert/bert-quantization-sparsity/create_pretraining_data.py:367
↓ 1 callersFunctiontwo_stream_rel_attn
Two-stream attention with relative positional encoding.
examples/tensorflow/xlnet/modeling.py:332
↓ 1 callersFunctionupdate
(accum_vars)
examples/tensorflow/bert/bert-quantization/optimization.py:142
↓ 1 callersMethodupdateShape
src/fastertransformer/utils/Tensor.h:290
↓ 1 callersFunctionupdate_config
(config, args)
examples/pytorch/vit/ViT-quantization/config.py:187
↓ 1 callersFunctionurl_to_filename
Convert `url` into a hashed filename in a repeatable way. If `etag` is specified, append its hash to the url's, delimited by a period.
examples/pytorch/bert/bert-quantization-sparsity/file_utils.py:53
↓ 1 callersFunctionusage
()
examples/tensorflow/xlnet/convertInput.py:542
↓ 1 callersFunctionusage
()
examples/tensorflow/xlnet/convertModel.py:34
↓ 1 callersFunctionusage
()
examples/tensorflow/xlnet/runData.py:101
↓ 1 callersFunctionvalidate
(args, data_config, config, model)
examples/pytorch/vit/infer_visiontransformer_int8_op.py:119
↓ 1 callersFunctionvalidate
(config, args, data_loader, model)
examples/pytorch/swin/infer_swintransformer_int8_op.py:114
↓ 1 callersFunctionvalidate
(config, args, data_loader, model)
examples/pytorch/swin/infer_swintransformer_acc.py:144
↓ 1 callersFunctionvalidate_flags_or_throw
Validate the input FLAGS or throw an exception.
examples/tensorflow/bert/bert-quantization/run_squad.py:948
↓ 1 callersFunctionvalidate_trt
(args, config)
examples/pytorch/vit/ViT-quantization/eval_engine.py:198
↓ 1 callersFunctionvalidate_trt
(config, data_loader, model, engine)
examples/pytorch/swin/Swin-Transformer-Quantization/main.py:346
↓ 1 callersFunctionvalidate_with_random_data
(plugin_loader:ViTPluginLoader, model, engine)
examples/tensorrt/vit/infer_visiontransformer_plugin.py:152
↓ 1 callersFunctionvalidate_with_random_data
(plugin_loader:ViTINT8PluginLoader, model, engine)
examples/tensorrt/vit/infer_visiontransformer_int8_plugin.py:149
↓ 1 callersFunctionvalidate_with_random_data
(config, args, model)
examples/tensorrt/swin/infer_swintransformer_plugin_int8.py:146
↓ 1 callersFunctionvalidate_with_random_data
(config, args, model)
examples/tensorrt/swin/infer_swintransformer_plugin.py:170
↓ 1 callersFunctionvalidate_with_random_data
(args, model_cfg, model)
examples/pytorch/vit/infer_visiontransformer_int8_op.py:306
↓ 1 callersFunctionvalidate_with_random_data
(args, config, model)
examples/pytorch/vit/infer_visiontransformer_op.py:166
↓ 1 callersFunctionvalidate_with_random_data
(config, args, model)
examples/pytorch/swin/infer_swintransformer_int8_op.py:275
↓ 1 callersFunctionvalidate_with_random_data
(args, config, model)
examples/pytorch/swin/infer_swintransformer_op.py:191
↓ 1 callersFunctionwarmup_linear
(x, warmup=0.002)
examples/pytorch/bert/bert-quantization-sparsity/optimization.py:46
↓ 1 callersMethodwhereToString
src/fastertransformer/utils/Tensor.cc:177
↓ 1 callersFunctionwhite_space_fix
(text)
examples/tensorflow/bert/tensorflow_bert/squad_evaluate-v1.1.py:30
↓ 1 callersFunctionwhite_space_fix
(text)
examples/tensorflow/bert/tensorflow_bert/squad_evaluate_v1_1.py:30
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer.py:66
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer_v2.py:66
← previousnext →1,401–1,500 of 4,228, ranked by callers