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
main
()
examples/pytorch/bert/bert-quantization-sparsity/create_pretraining_data.py:385
↓ 1 callers
Function
main
()
examples/pytorch/bert/bert-quantization-sparsity/extract_features.py:192
↓ 1 callers
Function
main
()
examples/pytorch/bert/bert-quantization-sparsity/inference.py:219
↓ 1 callers
Function
main
(args)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/test/toy_problem.py:38
↓ 1 callers
Function
main
(args)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/test/checkpointing_test_part1.py:38
↓ 1 callers
Function
main
(args)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/test/checkpointing_test_reference.py:42
↓ 1 callers
Function
main
(step, args, model_state_dict, optimizer_state_dict)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/test/checkpointing_test_part2.py:38
↓ 1 callers
Function
main
(args)
examples/pytorch/bert/bert-quantization-sparsity/data/bertPrep.py:27
↓ 1 callers
Function
main
()
examples/pytorch/decoding/decoding_example.py:32
↓ 1 callers
Function
main
()
examples/pytorch/gptneox/gptneox_example.py:33
↓ 1 callers
Function
main
(in_file, tokenizer, out_file, action)
examples/pytorch/gptneox/utils/hftokenizer.py:46
↓ 1 callers
Function
main
Main program.
examples/pytorch/gpt/evaluate_zeroshot_gpt.py:307
↓ 1 callers
Function
main
()
examples/pytorch/gpt/multi_gpu_gpt_example.py:35
↓ 1 callers
Function
main
()
examples/pytorch/gpt/bloom_lambada.py:299
↓ 1 callers
Function
main
()
examples/pytorch/gpt/gpt_summarization.py:33
↓ 1 callers
Function
main
()
examples/pytorch/gpt/gpt_example.py:35
↓ 1 callers
Function
main
()
examples/pytorch/gpt/lambada_task_example.py:122
↓ 1 callers
Function
main
()
examples/pytorch/gpt/opt_summarization.py:33
↓ 1 callers
Function
main
()
examples/pytorch/gpt/utils/huggingface_bloom_convert.py:464
↓ 1 callers
Function
main
()
examples/pytorch/gpt/utils/megatron_gpt_moe_ckpt_convert.py:647
↓ 1 callers
Function
main
()
examples/pytorch/gpt/utils/megatron_fp8_ckpt_convert.py:627
↓ 1 callers
Function
main
()
examples/pytorch/gpt/utils/megatron_ckpt_convert.py:501
↓ 1 callers
Function
main
()
examples/pytorch/gpt/utils/nemo_ckpt_convert.py:515
↓ 1 callers
Function
main
()
examples/pytorch/gpt/utils/update_gpt_config.py:21
↓ 1 callers
Function
main
()
examples/pytorch/decoder/decoder_example.py:32
↓ 1 callers
Function
main
(ckpt_dir, num_layers=28, total_shards=8)
examples/pytorch/gptj/utils/gptj_ckpt_convert.py:172
↓ 1 callers
Function
main
(args, config)
examples/pytorch/swin/infer_swintransformer_int8_op.py:94
↓ 1 callers
Function
main
(args, config)
examples/pytorch/swin/infer_swintransformer_acc.py:116
↓ 1 callers
Function
main
(args, config)
examples/pytorch/swin/infer_swintransformer_op.py:82
↓ 1 callers
Function
main
(config, args)
examples/pytorch/swin/Swin-Transformer-Quantization/main.py:130
↓ 1 callers
Function
main
()
examples/pytorch/t5/summarization.py:43
↓ 1 callers
Function
main
Enhance your model IA3 features. The converter has two modes: - Out-of-place: use dedicated IA3 weight files to apply the converters at
examples/pytorch/t5/utils/nemo_t5_ia3.py:220
↓ 1 callers
Function
main
()
examples/pytorch/t5/utils/nemo_t5_ckpt_convert.py:1212
↓ 1 callers
Function
match_results
(examples, features, results)
examples/pytorch/bert/bert-quantization-sparsity/run_squad.py:574
↓ 1 callers
Method
merge
(self)
examples/pytorch/bert/bert-quantization-sparsity/data/BookscorpusTextFormatting.py:25
↓ 1 callers
Function
merge_adapters
(models)
examples/pytorch/t5/utils/nemo_t5_ia3.py:47
↓ 1 callers
Function
mkdir
(path)
examples/pytorch/bert/bert-quantization-sparsity/data/GLUEDownloader.py:20
↓ 1 callers
Function
mkdir_by_main_process
(path)
examples/pytorch/bert/bert-quantization-sparsity/utils.py:62
↓ 1 callers
Function
mn_1d_best
(matrix, m, n)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/sparse_masklib.py:37
↓ 1 callers
Function
mn_2d_best
(matrix, m, n)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/sparse_masklib.py:122
↓ 1 callers
Function
mn_2d_greedy
(matrix, m, n)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/sparse_masklib.py:67
↓ 1 callers
Function
mnli_task
(args_dict)
examples/pytorch/t5/mnli_task_example.py:133
↓ 1 callers
Function
model_fn
(input_tensor, attention_mask, sequence_length=None)
examples/tensorflow/bert/tensorflow_bert/profile_transformer_inference.py:99
↓ 1 callers
Function
model_fn
(features)
examples/tensorflow/bert/tensorflow_bert/profile_bert_inference.py:59
↓ 1 callers
Function
model_fn_builder
(bert_config)
examples/tensorflow/bert/tensorflow_bert/profile_bert_inference.py:57
↓ 1 callers
Function
model_fn_builder
Returns `model_fn` closure for Estimator.
examples/tensorflow/bert/bert-quantization/run_squad.py:409
↓ 1 callers
Function
model_fn_builder
Returns `model_fn` closure for TPUEstimator.
examples/tensorflow/bert/bert-quantization/run_pretraining.py:199
↓ 1 callers
Function
model_fn_builder
Returns `model_fn` closure for TPUEstimator.
examples/tensorflow/bert/bert-quantization/extract_features.py:148
↓ 1 callers
Method
moe_gemm_bias_act
src/fastertransformer/kernels/cutlass_kernels/moe_gemm/moe_gemm_kernels_template.h:819
↓ 1 callers
Function
multihead_attn
Standard multi-head attention with absolute positional embedding.
examples/tensorflow/xlnet/modeling.py:271
↓ 1 callers
Method
next_tile
src/fastertransformer/cutlass_extensions/include/cutlass_extensions/gemm/kernel/moe_problem_visitor.h:212
↓ 1 callers
Function
np2th
(weights, is_conv=False)
examples/pytorch/vit/VisionTransformerINT8WeightLoader.py:34
↓ 1 callers
Function
op_decoder
Run the decoder transformer layer by FasterTransformer. Args: inputs: A tf.Tensor with shape [batch_size * beam_width, 1, hidden
examples/tensorflow/decoder/utils/decoder.py:329
↓ 1 callers
Method
operand_A_ref
Returns a TensorRef to the A operand
src/fastertransformer/cutlass_extensions/include/cutlass_extensions/gemm/threadblock/dq_mma_base.h:187
↓ 1 callers
Function
pad_n_with_identity
Pads each input tensors with identity values up to ``max(sequence_lengths)`` for each batch. Args: inputs: A list of ``tf.Tensor``.
examples/tensorflow/bert/utils/reducer.py:62
↓ 1 callers
Function
pad_n_with_identity
Pads each input tensors with identity values up to ``max(sequence_lengths)`` for each batch. Args: inputs: A list of ``tf.Tensor``.
examples/tensorflow/decoder/utils/reducer.py:62
↓ 1 callers
Function
pad_n_with_identity
Pads each input tensors with identity values up to ``max(sequence_lengths)`` for each batch. Args: inputs: A list of ``tf.Tensor``.
examples/tensorflow/common_utils/reducer.py:62
↓ 1 callers
Function
pad_with_identity
Pads a tensor with identity values up to :obj:`max_sequence_length`. Args: x: A ``tf.Tensor`` of shape ``[batch_size, time, depth]``.
examples/tensorflow/bert/utils/reducer.py:32
↓ 1 callers
Function
pad_with_identity
Pads a tensor with identity values up to :obj:`max_sequence_length`. Args: x: A ``tf.Tensor`` of shape ``[batch_size, time, depth]``.
examples/tensorflow/decoder/utils/reducer.py:32
↓ 1 callers
Function
pad_with_identity
Pads a tensor with identity values up to :obj:`max_sequence_length`. Args: x: A ``tf.Tensor`` of shape ``[batch_size, time, depth]``.
examples/tensorflow/common_utils/reducer.py:32
↓ 1 callers
Function
parse_args
(parser=argparse.ArgumentParser())
examples/pytorch/bert/bert-quantization-sparsity/run_glue.py:159
↓ 1 callers
Function
parse_arguments
()
examples/pytorch/bert/bert-quantization-sparsity/run_pretraining.py:139
↓ 1 callers
Function
parse_option
()
examples/tensorrt/vit/infer_visiontransformer_plugin.py:53
↓ 1 callers
Function
parse_option
()
examples/tensorrt/vit/infer_visiontransformer_int8_plugin.py:58
↓ 1 callers
Function
parse_option
()
examples/tensorrt/swin/builder.py:33
↓ 1 callers
Function
parse_option
()
examples/tensorrt/swin/infer_swintransformer_plugin_int8.py:38
↓ 1 callers
Function
parse_option
()
examples/tensorrt/swin/builder_int8.py:34
↓ 1 callers
Function
parse_option
()
examples/tensorrt/swin/infer_swintransformer_plugin.py:53
↓ 1 callers
Function
parse_option
()
examples/pytorch/vit/infer_visiontransformer_int8_op.py:59
↓ 1 callers
Function
parse_option
()
examples/pytorch/vit/infer_visiontransformer_op.py:48
↓ 1 callers
Function
parse_option
()
examples/pytorch/vit/ViT-quantization/main.py:327
↓ 1 callers
Function
parse_option
()
examples/pytorch/vit/ViT-quantization/eval_engine.py:432
↓ 1 callers
Function
parse_option
()
examples/pytorch/swin/infer_swintransformer_int8_op.py:42
↓ 1 callers
Function
parse_option
()
examples/pytorch/swin/infer_swintransformer_acc.py:67
↓ 1 callers
Function
parse_option
()
examples/pytorch/swin/infer_swintransformer_op.py:37
↓ 1 callers
Function
parse_option
()
examples/pytorch/swin/Swin-Transformer-Quantization/main.py:67
↓ 1 callers
Function
permute_B_rows_for_mixed_gemm
Permutes the rows of B for Turing and Ampere. Throws an error for other architectures. The data is permuted such that: For int8, each group of 16 rows
src/fastertransformer/kernels/cutlass_kernels/cutlass_preprocessors.cc:139
↓ 1 callers
Function
pop_quant_desc_in_kwargs
Pop quant descriptors in kwargs If there is no descriptor in kwargs, the default one in quant_cls will be used Arguments: quant_cls: A class
examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/layers/utils.py:52
↓ 1 callers
Function
populate_request
examples/cpp/multi_gpu_gpt/gpt_example_utils.cc:328
↓ 1 callers
Function
preds_and_labels_to_text
(tokenizer, preds, labels)
examples/pytorch/t5/mnli_task_example.py:59
↓ 1 callers
Function
preds_and_labels_to_text
(tokenizer, preds, labels)
examples/pytorch/t5/xnli_task_example.py:74
↓ 1 callers
Function
prefix_prompt_convert
(args, config, weight_data_type)
examples/pytorch/gptneox/utils/huggingface_jp_gptneox_convert.py:34
↓ 1 callers
Function
prepareRequest
examples/cpp/multi_gpu_gpt/multi_gpu_gpt_triton_example.cc:212
↓ 1 callers
Function
prepareRequest
examples/cpp/gptneox/gptneox_triton_example.cc:221
↓ 1 callers
Function
prepareRequest
examples/cpp/gpt_fp8/gpt_fp8_triton_example.cc:182
↓ 1 callers
Function
prepareRequest
examples/cpp/gptj/gptj_triton_example.cc:228
↓ 1 callers
Function
prepare_model_and_optimizer
(args, device)
examples/pytorch/bert/bert-quantization-sparsity/run_pretraining.py:358
↓ 1 callers
Function
preprocess_text
(inputs, lower=False, remove_space=True, keep_accents=False)
examples/tensorflow/xlnet/convertInput.py:330
↓ 1 callers
Function
preprocess_tokenized_text
converts an example into a feature
examples/pytorch/bert/bert-quantization-sparsity/inference.py:57
↓ 1 callers
Function
preprocess_weights_for_mixed_gemm
src/fastertransformer/kernels/cutlass_kernels/cutlass_preprocessors.cc:500
↓ 1 callers
Function
printBatchPerfStructure
src/fastertransformer/utils/gemm_test/encoder_igemm_func.cc:133
↓ 1 callers
Function
printPerfStructure
Utility function to print customMatmulPerf_t structure
src/fastertransformer/utils/gemm_test/encoder_igemm_func.cc:68
↓ 1 callers
Function
print_quant_summary
Print summary of all quantizer modules in the model.
examples/pytorch/swin/Swin-Transformer-Quantization/quant_utils.py:187
↓ 1 callers
Method
problem_index
Gets the index of the problem
src/fastertransformer/cutlass_extensions/include/cutlass_extensions/gemm/kernel/moe_problem_visitor.h:137
↓ 1 callers
Method
process
inputs: total_probs: float tensor, [batch_size * beam_width, vocab_size] beam_width: int scalar outp
examples/tensorflow/decoder/utils/beam_search.py:86
↓ 1 callers
Function
process_batch
Process batch and produce inputs for the model.
examples/pytorch/gpt/evaluate_zeroshot_gpt.py:157
↓ 1 callers
Function
process_by_model_param
Process conversion parameter by parameter.
examples/pytorch/gpt/utils/huggingface_bloom_convert.py:382
↓ 1 callers
Function
process_by_model_shard
Process conversion shard by shard. Benchmarks @ 64C(Intel Xeon 6326 2.90GH) x 756G: | model | format | by-shard | nproc
examples/pytorch/gpt/utils/huggingface_bloom_convert.py:431
↓ 1 callers
Function
profile_model
(config, jit_xla, num_iter)
examples/tensorflow/bert/tensorflow_bert/profile_transformer_inference.py:113
↓ 1 callers
Function
prompt_convert
(args, prompt_config, prompt_weights)
examples/pytorch/gpt/utils/nemo_ckpt_convert.py:407
← previous
next →
1,201–1,300 of 4,228, ranked by callers