MCPcopy Create free account

hub / github.com/NVIDIA/FasterTransformer / functions

Functions4,228 in github.com/NVIDIA/FasterTransformer

↓ 1 callersMethodcheck_parallel_size_validity
(tensor_para_size, pipeline_para_size)
examples/pytorch/gpt/utils/comm.py:51
↓ 1 callersMethodcheckpoint_activations
(self, val)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:701
↓ 1 callersFunctioncheckpoint_dtype_cast
(in_checkpoint_file, out_checkpoint_file)
examples/tensorflow/ckpt_type_convert.py:25
↓ 1 callersFunctioncheckpoint_dtype_cast
(in_checkpoint_file, out_checkpoint_file)
examples/tensorflow/bert/tensorflow_bert/ckpt_type_convert.py:25
↓ 1 callersFunctioncheckpoint_quantization
(in_checkpoint_file, out_checkpoint_file, per_channel_quantization)
examples/tensorflow/bert/tensorflow_bert/ckpt_quantization.py:35
↓ 1 callersFunctioncheckpoint_quantization
(init_dict, sparse, ths_path='./lib/libth_transformer.so', verbose=True)
examples/pytorch/bert/utils/checkpoint_quantization.py:26
↓ 1 callersMethodcheckpointed_forward
(self, hidden_states, attention_mask)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:557
↓ 1 callersFunctionclz
3rdparty/fp8_qgmma_1x1/utils.h:382
↓ 1 callersFunctioncompressInt8Matrix
src/fastertransformer/th_op/bert/WeightQuantizeOp.cc:26
↓ 1 callersFunctioncompute_exact_match
(tokens, n_tokens=[1, 10, 25, 50, 100, 150, 200, 250])
examples/pytorch/gpt/gpt_summarization.py:336
↓ 1 callersFunctioncompute_exact_match
(tokens, n_tokens=[1, 10, 25, 50, 100, 150, 200, 250])
examples/pytorch/gpt/opt_summarization.py:337
↓ 1 callersFunctioncompute_exact_match
(tokens, n_tokens=[1, 10, 25, 50, 100, 150, 200, 250])
examples/pytorch/t5/summarization.py:352
↓ 1 callersFunctioncompute_valid_1d_patterns
(m,n)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/sparse_masklib.py:25
↓ 1 callersFunctioncompute_valid_2d_patterns
(m,n)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/sparse_masklib.py:103
↓ 1 callersMethodconvert
src/fastertransformer/cutlass_extensions/include/cutlass_extensions/interleaved_numeric_conversion.h:59
↓ 1 callersFunctionconvert_checkpoint
(args)
examples/tensorflow/t5/utils/tf_saved_model_t5_ckpt_convert.py:235
↓ 1 callersFunctionconvert_checkpoint
(args)
examples/tensorflow/t5/utils/jax_t5_ckpt_convert.py:227
↓ 1 callersFunctionconvert_checkpoint
(args)
examples/pytorch/gptneox/utils/eleutherai_gpt_neox_convert.py:169
↓ 1 callersFunctionconvert_checkpoint
(args)
examples/pytorch/gpt/utils/megatron_gpt_moe_ckpt_convert.py:446
↓ 1 callersFunctionconvert_checkpoint
(args)
examples/pytorch/gpt/utils/megatron_fp8_ckpt_convert.py:376
↓ 1 callersFunctionconvert_checkpoint
(args)
examples/pytorch/gpt/utils/megatron_ckpt_convert.py:327
↓ 1 callersFunctionconvert_checkpoint
(unpacked_checkpoints_dir: UnpackedNemoCheckpointDir, args)
examples/pytorch/gpt/utils/nemo_ckpt_convert.py:264
↓ 1 callersFunctionconvert_checkpoint
(args)
examples/pytorch/t5/utils/megatron_t5_ckpt_convert.py:356
↓ 1 callersFunctionconvert_checkpoint
(unpacked_checkpoints_dir: UnpackedNemoCheckpointDir, args: argparse.Namespace)
examples/pytorch/t5/utils/nemo_t5_ia3.py:55
↓ 1 callersFunctionconvert_checkpoint
(unpacked_checkpoints_dir: UnpackedNemoCheckpointDir, args: argparse.Namespace, unpacke
examples/pytorch/t5/utils/nemo_t5_ckpt_convert.py:681
↓ 1 callersFunctionconvert_checkpoint
(args)
examples/pytorch/t5/utils/huggingface_t5_ckpt_convert.py:154
↓ 1 callersFunctionconvert_examples_to_features
Loads a data file into a list of `InputBatch`s.
examples/pytorch/bert/bert-quantization-sparsity/extract_features.py:60
↓ 1 callersMethodconvert_ids_to_tokens
Converts a sequence of ids in wordpiece tokens using the vocab.
examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:132
↓ 1 callersFunctionconvert_single_example
Converts a single `InputExample` into a single `InputFeatures`.
examples/tensorflow/xlnet/convertInput.py:426
↓ 1 callersFunctionconvert_type
(tensor, data_type)
examples/pytorch/bert/run_glue.py:49
↓ 1 callersFunctioncopysignf_pos
src/fastertransformer/cutlass_extensions/include/cutlass_extensions/epilogue/thread/ft_fused_activations.h:54
↓ 1 callersFunctioncount_parameters
(model)
examples/pytorch/vit/ViT-quantization/main.py:114
↓ 1 callersFunctioncount_parameters
(model)
examples/pytorch/vit/ViT-quantization/eval_engine.py:116
↓ 1 callersFunctioncreate_attention_mask_from_input_mask
Create 3D attention mask from a 2D tensor mask. Args: from_tensor: 2D or 3D Tensor of shape [batch_size, from_seq_length, ...]. to_mask: in
examples/tensorflow/bert/tensorflow_bert/my_modeling.py:533
↓ 1 callersFunctioncreate_attention_mask_from_input_mask
Create 3D attention mask from a 2D tensor mask. Args: from_tensor: 2D or 3D Tensor of shape [batch_size, from_seq_length, ...]. to_mask: in
examples/tensorflow/bert/bert-quantization/modeling.py:561
↓ 1 callersFunctioncreate_float_feature
(values)
examples/tensorflow/bert/bert-quantization/utils/create_pretraining_data.py:174
↓ 1 callersFunctioncreate_instances_from_document
Creates `TrainingInstance`s for a single document.
examples/tensorflow/bert/bert-quantization/utils/create_pretraining_data.py:224
↓ 1 callersFunctioncreate_instances_from_document
Creates `TrainingInstance`s for a single document.
examples/pytorch/bert/bert-quantization-sparsity/create_pretraining_data.py:191
↓ 1 callersFunctioncreate_mask
(tensor, pattern="m4n2_1d", density=0.5)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/sparse_masklib.py:145
↓ 1 callersFunctioncreate_masked_lm_predictions
Creates the predictions for the masked LM objective.
examples/tensorflow/bert/bert-quantization/utils/create_pretraining_data.py:347
↓ 1 callersFunctioncreate_masked_lm_predictions
Creates the predictions for the masked LM objective.
examples/pytorch/bert/bert-quantization-sparsity/create_pretraining_data.py:314
↓ 1 callersFunctioncreate_model
Creates a classification model.
examples/tensorflow/bert/tensorflow_bert/profile_bert_inference.py:44
↓ 1 callersFunctioncreate_training_instances
Create `TrainingInstance`s from raw text.
examples/tensorflow/bert/bert-quantization/utils/create_pretraining_data.py:179
↓ 1 callersFunctioncreate_training_instances
Create `TrainingInstance`s from raw text.
examples/pytorch/bert/bert-quantization-sparsity/create_pretraining_data.py:146
↓ 1 callersFunctioncross_check
(name, tf_val, op_val, atol_threshold)
examples/tensorflow/decoder/utils/common.py:275
↓ 1 callersMethodcuFuncSetAttribute
3rdparty/common/cudaDriverWrapper.cpp:76
↓ 1 callersMethodcuFuncSetAttribute
3rdparty/trt_fused_multihead_attention/cudaDriverWrapper.cpp:76
↓ 1 callersMethodcuGetErrorName
3rdparty/common/cudaDriverWrapper.cpp:71
↓ 1 callersMethodcuGetErrorName
3rdparty/trt_fused_multihead_attention/cudaDriverWrapper.cpp:71
↓ 1 callersMethodcuLaunchKernel
3rdparty/common/cudaDriverWrapper.cpp:132
↓ 1 callersMethodcuModuleGetFunction
3rdparty/common/cudaDriverWrapper.cpp:107
↓ 1 callersMethodcuModuleGetFunction
3rdparty/trt_fused_multihead_attention/cudaDriverWrapper.cpp:107
↓ 1 callersMethodcuModuleLoadData
3rdparty/common/cudaDriverWrapper.cpp:96
↓ 1 callersMethodcuModuleLoadData
3rdparty/trt_fused_multihead_attention/cudaDriverWrapper.cpp:96
↓ 1 callersFunctioncublasTester
tests/unittests/fp8_gemm_test/worker.cpp:207
↓ 1 callersFunctiondeserialize_h2h
src/fastertransformer/models/bert_fp8/serialize.hpp:89
↓ 1 callersMethoddetokenize
(self, token_ids)
examples/pytorch/gptneox/utils/hftokenizer.py:32
↓ 1 callersMethoddistribute_articles_over_shards
(self)
examples/pytorch/bert/bert-quantization-sparsity/data/TextSharding.py:146
↓ 1 callersFunctiondot
src/fastertransformer/kernels/decoder_masked_multihead_attention_utils.h:1286
↓ 1 callersMethoddownload
(self)
examples/pytorch/bert/bert-quantization-sparsity/data/WikiDownloader.py:39
↓ 1 callersMethoddownload
(self, task_name)
examples/pytorch/bert/bert-quantization-sparsity/data/GLUEDownloader.py:29
↓ 1 callersMethoddownload
(self)
examples/pytorch/bert/bert-quantization-sparsity/data/BooksDownloader.py:22
↓ 1 callersMethoddownload
(self)
examples/pytorch/bert/bert-quantization-sparsity/data/GooglePretrainedWeightDownloader.py:116
↓ 1 callersMethoddownload
(self)
examples/pytorch/bert/bert-quantization-sparsity/data/SquadDownloader.py:41
↓ 1 callersMethoddownload
(self)
examples/pytorch/bert/bert-quantization-sparsity/data/NVIDIAPretrainedWeightDownloader.py:26
↓ 1 callersFunctiondump_predictions
(path, label_map, preds, examples)
examples/pytorch/bert/bert-quantization-sparsity/run_glue.py:467
↓ 1 callersMethodelapsed_time_in_sec
(self, tag)
examples/pytorch/gpt/utils/profiler.py:20
↓ 1 callersFunctioneligible_modules
(model, whitelist_layer_types, allowed_layer_names, disallowed_layer_names)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/asp.py:12
↓ 1 callersFunctionembedding_lookup
Looks up words embeddings for id tensor. Args: input_ids: int32 Tensor of shape [batch_size, seq_length] containing word ids. vocab_s
examples/tensorflow/bert/tensorflow_bert/my_modeling.py:386
↓ 1 callersFunctionembedding_lookup
Looks up words embeddings for id tensor. Args: input_ids: int32 Tensor of shape [batch_size, seq_length] containing word ids. vocab_s
examples/tensorflow/bert/bert-quantization/modeling.py:413
↓ 1 callersFunctionembedding_lookup
TPU and GPU embedding_lookup function.
examples/tensorflow/xlnet/modeling.py:39
↓ 1 callersFunctionembedding_postprocessor
Performs various post-processing on a word embedding tensor. Args: input_tensor: float Tensor of shape [batch_size, seq_length, embedding
examples/tensorflow/bert/tensorflow_bert/my_modeling.py:435
↓ 1 callersFunctionembedding_postprocessor
Performs various post-processing on a word embedding tensor. Args: input_tensor: float Tensor of shape [batch_size, seq_length, embedding
examples/tensorflow/bert/bert-quantization/modeling.py:461
↓ 1 callersFunctionencode_ids
(sp_model, text, sample=False)
examples/tensorflow/xlnet/convertInput.py:386
↓ 1 callersFunctionencode_pieces
(sp_model, text, return_unicode=True, sample=False)
examples/tensorflow/xlnet/convertInput.py:349
↓ 1 callersFunctionencoder_example
(args_dict)
examples/tensorflow/encoder/encoder_example.py:44
↓ 1 callersFunctionevaluate
(dataset, predictions)
examples/tensorflow/bert/tensorflow_bert/squad_evaluate-v1.1.py:68
↓ 1 callersFunctionevaluate
(dataset, predictions)
examples/tensorflow/bert/tensorflow_bert/squad_evaluate_v1_1.py:68
↓ 1 callersFunctionevaluate
(args, model, tokenizer, prefix="")
examples/pytorch/bert/run_squad.py:58
↓ 1 callersFunctionevaluate
(args, model, tokenizer, prefix="")
examples/pytorch/bert/run_glue.py:58
↓ 1 callersFunctionevaluate
Evaluation.
examples/pytorch/gpt/evaluate_zeroshot_gpt.py:244
↓ 1 callersFunctionevaluate_and_print_results
Evaluate and print results on screen.
examples/pytorch/gpt/evaluate_zeroshot_gpt.py:270
↓ 1 callersFunctionexport_key_name
(key)
examples/tensorflow/t5/utils/tf_saved_model_t5_ckpt_convert.py:59
↓ 1 callersFunctionexport_key_name
(key)
examples/tensorflow/t5/utils/jax_t5_ckpt_convert.py:41
↓ 1 callersFunctionexport_model
Exports a checkpoint in SavedModel format in a directory structure compatible with TRTIS.
examples/tensorflow/bert/bert-quantization/run_squad.py:977
↓ 1 callersFunctionextract_flags
()
examples/tensorflow/bert/bert-quantization/utils/create_squad_data.py:34
↓ 1 callersFunctionf1_score
(prediction, ground_truth)
examples/tensorflow/bert/tensorflow_bert/squad_evaluate-v1.1.py:43
↓ 1 callersFunctionfake_quantize
Universal tensor fake quantization function Args: inputs: A Tensor of dtype float32. quant_min: Scalar (0-d Tensor), 1-d Tensor or None
examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/ops/fake_quantize.py:25
↓ 1 callersFunctionfake_quantize_core
(inputs, quant_min, quant_max)
examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/ops/fake_quantize.py:88
↓ 1 callersFunctionfbeta
Multi-class fbeta metric for Tensorflow Parameters ---------- labels : Tensor of tf.int32 or tf.int64 The true labels pre
examples/tensorflow/bert/bert-quantization/tf_metrics.py:97
↓ 1 callersFunctionfieldTypeToDataType
src/fastertransformer/tensorrt_plugin/swin/swinTransformerINT8Plugin.h:41
↓ 1 callersFunctionfieldTypeToDataType
src/fastertransformer/tensorrt_plugin/swin/swinTransformerPlugin.h:41
↓ 1 callersFunctionfile_based_convert_examples_to_npz
Convert a set of `InputExample`s to a NPZ file.
examples/tensorflow/xlnet/convertInput.py:506
↓ 1 callersFunctionfinalize
(beam_width, parent_ids, sequence_lengths, outputs, end_id, max_seq_len=None)
examples/tensorflow/decoder/utils/decoding.py:76
↓ 1 callersFunctionfinalize
(beam_size, output_ids, parent_ids, out_seq_lens, end_id, max_seq_len=None, args=None)
examples/pytorch/decoding/utils/decoding.py:184
↓ 1 callersFunctionfind_context_duplications
Results a tensor of {batch_to_compact_idx, compact_to_batch_idx}
src/fastertransformer/th_op/common/GptOps.cc:26
↓ 1 callersFunctionfind_log_2
3rdparty/fp8_qgmma_1x1/utils.h:393
↓ 1 callersFunctionfix_key
(s)
examples/pytorch/decoding/decoding_example.py:111
↓ 1 callersFunctionfix_key
(s)
examples/pytorch/decoding/utils/translation_model.py:191
↓ 1 callersFunctionfloat_to_half
src/fastertransformer/kernels/decoder_masked_multihead_attention_utils.h:288
← previousnext →901–1,000 of 4,228, ranked by callers