MCPcopy Create free account

hub / github.com/NVIDIA/FasterTransformer / functions

Functions4,228 in github.com/NVIDIA/FasterTransformer

↓ 1 callersFunctionprompt_convert
(args, prompt_config, prompt_weights)
examples/pytorch/t5/utils/nemo_t5_ckpt_convert.py:129
↓ 1 callersFunctionqk_hmma_dot_
src/fastertransformer/kernels/decoder_masked_multihead_attention/decoder_masked_multihead_attention_template.hpp:650
↓ 1 callersFunctionquantization_CUBLASLT_ORDER_COL32_2R_4R4
src/fastertransformer/tf_op/bert/weight_quantize_op.cc:101
↓ 1 callersFunctionquantization_CUBLASLT_ORDER_COL4_4R2_8C
src/fastertransformer/tf_op/bert/weight_quantize_op.cc:57
↓ 1 callersFunctionread_config
(gin_file)
examples/tensorflow/t5/utils/jax_t5_ckpt_convert.py:211
↓ 1 callersFunctionread_examples
Read a list of `InputExample`s from an input file.
examples/tensorflow/bert/bert-quantization/extract_features.py:319
↓ 1 callersFunctionread_examples
Read a list of `InputExample`s from an input file.
examples/pytorch/bert/bert-quantization-sparsity/extract_features.py:168
↓ 1 callersFunctionread_layers
(filename, range)
examples/pytorch/gptneox/utils/eleutherai_gpt_neox_convert.py:101
↓ 1 callersFunctionread_model_config
examples/cpp/multi_gpu_gpt/gpt_example_utils.cc:97
↓ 1 callersFunctionread_request_config
examples/cpp/multi_gpu_gpt/gpt_example_utils.cc:174
↓ 1 callersFunctionread_shard
(ckpt_dir, idx)
examples/pytorch/gptj/utils/gptj_ckpt_convert.py:70
↓ 1 callersFunctionread_start_ids
examples/cpp/multi_gpu_gpt/multi_gpu_gpt_async_example.cc:453
↓ 1 callersMethodreduce
See :meth:`opennmt.layers.Reducer.__call__`.
examples/tensorflow/bert/utils/reducer.py:120
↓ 1 callersMethodreduce
(self, inputs)
examples/tensorflow/bert/utils/reducer.py:133
↓ 1 callersMethodreduce
See :meth:`opennmt.layers.Reducer.__call__`.
examples/tensorflow/decoder/utils/reducer.py:120
↓ 1 callersMethodreduce
(self, inputs)
examples/tensorflow/decoder/utils/reducer.py:133
↓ 1 callersMethodreduce
See :meth:`opennmt.layers.Reducer.__call__`.
examples/tensorflow/common_utils/reducer.py:120
↓ 1 callersMethodreduce
(self, inputs)
examples/tensorflow/common_utils/reducer.py:133
↓ 1 callersMethodreduce_sequence
See :meth:`opennmt.layers.Reducer.__call__`.
examples/tensorflow/bert/utils/reducer.py:125
↓ 1 callersMethodreduce_sequence
See :meth:`opennmt.layers.Reducer.__call__`.
examples/tensorflow/decoder/utils/reducer.py:125
↓ 1 callersMethodreduce_sequence
See :meth:`opennmt.layers.Reducer.__call__`.
examples/tensorflow/common_utils/reducer.py:125
↓ 1 callersMethodref_moe_fc
(self, activations, expert_for_row, weights, scales, biases, activation_str)
tests/moe/th_moe_unit_tests.py:131
↓ 1 callersFunctionrel_multihead_attn
Multi-head attention with relative positional encoding.
examples/tensorflow/xlnet/modeling.py:293
↓ 1 callersFunctionrel_shift
perform relative shift to form the relative attention score.
examples/tensorflow/xlnet/modeling.py:179
↓ 1 callersFunctionrelative_positional_encoding
create relative positional encoding.
examples/tensorflow/xlnet/modeling.py:221
↓ 1 callersFunctionremove_articles
(text)
examples/tensorflow/bert/tensorflow_bert/squad_evaluate-v1.1.py:27
↓ 1 callersFunctionremove_articles
(text)
examples/tensorflow/bert/tensorflow_bert/squad_evaluate_v1_1.py:27
↓ 1 callersFunctionremove_punc
(text)
examples/tensorflow/bert/tensorflow_bert/squad_evaluate-v1.1.py:33
↓ 1 callersFunctionremove_punc
(text)
examples/tensorflow/bert/tensorflow_bert/squad_evaluate_v1_1.py:33
↓ 1 callersFunctionreorder_qkv_weight_or_bias
Reorder the qkv weight to use at FT. Note that the shape of the fused QKV weights in HF is different from the shape that FT requires.
examples/pytorch/gpt/utils/huggingface_bloom_convert.py:163
↓ 1 callersMethodreset
(self)
examples/pytorch/gpt/utils/profiler.py:25
↓ 1 callersMethodreset_parameters
(self)
examples/pytorch/vit/ViT-quantization/vit_int8.py:115
↓ 1 callersMethodreset_parameters
(self)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:186
↓ 1 callersMethodreset_parameters
(self)
examples/pytorch/swin/Swin-Transformer-Quantization/models/linear_activation.py:75
↓ 1 callersMethodreset_parameters
(self)
examples/pytorch/swin/Swin-Transformer-Quantization/models/linear_activation.py:126
↓ 1 callersFunctionreshape
(config, name, array)
examples/pytorch/t5/utils/nemo_t5_ia3.py:178
↓ 1 callersFunctionreshape_1d
(matrix, m)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/sparse_masklib.py:13
↓ 1 callersFunctionreshape_key_cache
src/fastertransformer/kernels/decoder_masked_multihead_attention_fp8_test.cc:94
↓ 1 callersFunctionreshard
(x, old_shape)
examples/pytorch/gptj/utils/gptj_ckpt_convert.py:14
↓ 1 callersMethodrestore_pruned_weights
Call this method to disable sparsity and restore all weights. This will only work if init(...) was called with allow_recompute=True.
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/asp.py:176
↓ 1 callersMethodreturnStream
src/fastertransformer/utils/allocator.h:313
↓ 1 callersFunctionrunTest
(json_file, seq_len, batch_size, input_ids, input_mask, segment_ids, use_float16)
examples/tensorflow/xlnet/runData.py:72
↓ 1 callersMethodrun_causal_masked_fmha
3rdparty/trt_fused_multihead_attention/qkvToContext.h:88
↓ 1 callersMethodrun_ft_moe
(self, input_dict, active_rows, k, activation_str)
tests/moe/th_moe_unit_tests.py:341
↓ 1 callersMethodrun_ref_moe
(self, input_dict, k, activation_str)
tests/moe/th_moe_unit_tests.py:350
↓ 1 callersFunctionrun_swintransformer_plugin
(args, config, model, images)
examples/tensorrt/swin/infer_swintransformer_plugin_int8.py:97
↓ 1 callersFunctionrun_swintransformer_plugin
(args, config, model, images)
examples/tensorrt/swin/infer_swintransformer_plugin.py:109
↓ 1 callersFunctionrun_swintransformernv_op
(config, args, model, images, use_fp16)
examples/pytorch/swin/infer_swintransformer_int8_op.py:204
↓ 1 callersFunctionrun_torch
(model, images, mark)
examples/tensorrt/vit/infer_visiontransformer_plugin.py:131
↓ 1 callersFunctionrun_torch
(model, images, mark)
examples/tensorrt/vit/infer_visiontransformer_int8_plugin.py:142
↓ 1 callersFunctionrun_torch
(model, images, mark)
examples/tensorrt/swin/infer_swintransformer_plugin_int8.py:141
↓ 1 callersFunctionrun_torch
(model, images, mark)
examples/tensorrt/swin/infer_swintransformer_plugin.py:153
↓ 1 callersFunctionrun_torch
(model, images, mark)
examples/pytorch/vit/infer_visiontransformer_int8_op.py:287
↓ 1 callersFunctionrun_trt_plugin
(plugin_loader:ViTPluginLoader, images, engine)
examples/tensorrt/vit/infer_visiontransformer_plugin.py:86
↓ 1 callersFunctionrun_trt_plugin
(plugin_loader:ViTINT8PluginLoader, images, engine)
examples/tensorrt/vit/infer_visiontransformer_int8_plugin.py:102
↓ 1 callersFunctionrun_vitnv_op
(args, config, model, images)
examples/pytorch/vit/infer_visiontransformer_int8_op.py:218
↓ 1 callersFunctions3_etag
Check ETag on S3 object.
examples/pytorch/bert/bert-quantization-sparsity/file_utils.py:160
↓ 1 callersFunctions3_get
Pull a file directly from S3.
examples/pytorch/bert/bert-quantization-sparsity/file_utils.py:169
↓ 1 callersFunctionsave
(w, save_dir, n_inference_gpus, num_layers=28)
examples/pytorch/gptj/utils/gptj_ckpt_convert.py:112
↓ 1 callersFunctionsave
(w, save_dir, n_inference_gpus, n_layers, layer_id)
examples/pytorch/gptj/utils/huggingface_gptj_ckpt_convert.py:42
↓ 1 callersFunctionsave_checkpoint
(queue, args)
examples/pytorch/gpt/utils/checkpoint_saver_fastertransformer.py:18
↓ 1 callersFunctionsave_dense_concat
(model_states_list, inference_tensor_para_size, factor_dense, model_key, megatron_gpt_key, np_weight_d
examples/pytorch/gpt/utils/megatron_gpt_moe_ckpt_convert.py:189
↓ 1 callersFunctionsave_dense_split
(model_states_list, factor_dense, model_key, megatron_gpt_key, np_weight_data_type, saved_dir, ckpt_ve
examples/pytorch/gpt/utils/megatron_gpt_moe_ckpt_convert.py:39
↓ 1 callersFunctionsave_experts_split
(moe_layers, num_experts, training_tensor_para_dense_size, training_tensor_para_expert_size, factor_ex
examples/pytorch/gpt/utils/megatron_gpt_moe_ckpt_convert.py:342
↓ 1 callersFunctionsave_model
(args, model)
examples/pytorch/vit/ViT-quantization/main.py:89
↓ 1 callersFunctionsave_model
(args, model)
examples/pytorch/vit/ViT-quantization/eval_engine.py:91
↓ 1 callersFunctionsave_word_list
(filename, word_list)
examples/pytorch/gpt/utils/word_list.py:70
↓ 1 callersFunctionscaled_quant_np
Scaled quantize x using numpy.
examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/utils/utils.py:32
↓ 1 callersFunctionsearch_word
(beam_width, vocab_size, step, logits, cum_log
examples/tensorflow/decoder/utils/beam_search.py:17
↓ 1 callersMethodsegment_articles_into_sentences
(self, segmenter)
examples/pytorch/bert/bert-quantization-sparsity/data/TextSharding.py:61
↓ 1 callersMethodserialize_engine
(self, engine, file_folder='./')
examples/tensorrt/vit/plugin_loader_int8.py:156
↓ 1 callersFunctionserialize_h2h
src/fastertransformer/models/bert_fp8/serialize.hpp:45
↓ 1 callersFunctionsetDeviceDomain
src/fastertransformer/utils/nvtx_utils.cc:44
↓ 1 callersMethodsetPluginNamespace
src/fastertransformer/tensorrt_plugin/wenet/DecoderPlugin.cc:290
↓ 1 callersMethodsetPluginNamespace
src/fastertransformer/tensorrt_plugin/wenet/EncoderPlugin.cc:339
↓ 1 callersMethodset_batch_index
Called to set the batch index
src/fastertransformer/cutlass_extensions/include/cutlass_extensions/epilogue/threadblock/epilogue_per_row_per_col_scale.h:217
↓ 1 callersFunctionset_box_corner_dhw
3rdparty/fp8_qgmma_1x1/utils.h:237
↓ 1 callersFunctionset_box_size
3rdparty/fp8_qgmma_1x1/utils.h:185
↓ 1 callersMethodset_default_quant_desc_kernel
Args: value: An instance of :func:`QuantDescriptor <quantization.QuantDescriptor>`
examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/layers/utils.py:42
↓ 1 callersMethodset_input_tensor
Set input tensor to be used instead of forward()'s input. When doing pipeline parallelism the input from the previous stage comes fro
examples/pytorch/gpt/utils/gpt.py:635
↓ 1 callersFunctionset_logger
(verbose=False)
examples/pytorch/gpt/utils/huggingface_bloom_convert.py:48
↓ 1 callersFunctionset_output_name
(layer, prefix, name, out_idx = 0)
examples/tensorrt/swin/builder.py:91
↓ 1 callersFunctionset_output_name
(layer, prefix, name, out_idx = 0)
examples/tensorrt/swin/builder_int8.py:92
↓ 1 callersFunctionset_quantizers
Set quantizer attributes for mod.
examples/pytorch/vit/ViT-quantization/quant_utils.py:266
↓ 1 callersFunctionset_quantizers
Set quantizer attributes for mod.
examples/pytorch/bert/bert-quantization-sparsity/quant_utils.py:266
↓ 1 callersFunctionset_quantizers
Set quantizer attributes for mod.
examples/pytorch/swin/Swin-Transformer-Quantization/quant_utils.py:235
↓ 1 callersFunctionset_range_c
3rdparty/fp8_qgmma_1x1/utils.h:227
↓ 1 callersFunctionset_range_ndhw
3rdparty/fp8_qgmma_1x1/utils.h:286
↓ 1 callersFunctionset_seed
(args)
examples/pytorch/bert/run_squad.py:46
↓ 1 callersFunctionset_seed
(args)
examples/pytorch/bert/run_glue.py:42
↓ 1 callersFunctionset_tensor_name
(tensor, prefix, name)
examples/tensorrt/swin/builder.py:88
↓ 1 callersFunctionset_tensor_name
(tensor, prefix, name)
examples/tensorrt/swin/builder_int8.py:89
↓ 1 callersFunctionset_traversal_stride_im2col
3rdparty/fp8_qgmma_1x1/utils.h:208
↓ 1 callersFunctionset_traversal_stride_tiled
3rdparty/fp8_qgmma_1x1/utils.h:168
↓ 1 callersFunctionsetup
(args)
examples/pytorch/vit/infer_visiontransformer_int8_op.py:44
↓ 1 callersFunctionsetup
(args)
examples/pytorch/vit/infer_visiontransformer_op.py:37
↓ 1 callersFunctionsetup
(args)
examples/pytorch/vit/ViT-quantization/eval_engine.py:98
↓ 1 callersMethodsetup_causal_masked_fmha
3rdparty/trt_fused_multihead_attention/qkvToContext.h:72
↓ 1 callersMethodsetup_flags
3rdparty/trt_fused_multihead_attention/qkvToContext.h:83
↓ 1 callersFunctionsetup_torch
(args)
examples/tensorrt/vit/infer_visiontransformer_plugin.py:37
← previousnext →1,301–1,400 of 4,228, ranked by callers