MCPcopy Create free account

hub / github.com/NVIDIA/FasterTransformer / functions

Functions4,228 in github.com/NVIDIA/FasterTransformer

Method__init__
(self)
examples/tensorflow/common_utils/common.py:113
Method__init__
Initializes the position encoder. Args: reducer: A :class:`opennmt.layers.Reducer` to merge inputs and position encoding
examples/tensorflow/common_utils/position.py:23
Method__init__
(self)
examples/tensorflow/xlnet/convertInput.py:128
Method__init__
(self)
examples/tensorflow/xlnet/convertInput.py:257
Method__init__
(self)
examples/tensorflow/xlnet/convertInput.py:270
Method__init__
(self)
examples/tensorflow/xlnet/convertInput.py:277
Method__init__
(self, input_ids, input_mask, segment_ids,
examples/tensorflow/xlnet/convertInput.py:396
Method__init__
(self, name, frame_work)
examples/tensorflow/t5/translate_example.py:68
Method__init__
( self, config, tensor_para_size=1, pipeline_para_size=1, *, t
examples/tensorflow/t5/utils/ft_decoding.py:26
Method__init__
(self, encoder_params, decoding_params)
examples/tensorflow/t5/utils/ft_decoding.py:248
Method__init__
( self, config, tensor_para_size=1, pipeline_para_size=1, *, t
examples/tensorflow/t5/utils/ft_encoder.py:22
Method__init__
(self, checkpoints_dir: typing.Union[str, pathlib.Path], load_checkpoints_to_cpu: bool = False)
examples/pytorch/nemo.py:77
Method__init__
(self, name, frame_work)
examples/pytorch/bart/translate_example.py:49
Method__init__
( self, config, tensor_para_size, pipeline_para_size,
examples/pytorch/bart/utils/ft_decoding.py:21
Method__init__
(self, decoding_weight_list, lib_path, head_num, head_size, inter_size, mem_d_model, d_model,
examples/pytorch/bart/utils/ft_decoding.py:276
Method__init__
( self, config, tensor_para_size, pipeline_para_size,
examples/pytorch/bart/utils/ft_encoder.py:21
Method__init__
(self, encoder_weight_list, lib_path, head_num, head_size, inter_size, d_model, is_remove_padding,
examples/pytorch/bart/utils/ft_encoder.py:220
Method__init__
weights need be a pytorch state_dict of swin transformer model
examples/pytorch/vit/VisionTransformerINT8WeightLoader.py:41
Method__init__
weights need be a state_dict of swin transformer model
examples/pytorch/vit/VisionTransformerWeightLoader.py:39
Method__init__
(self, in_features, out_features, act='noact', bias=True, do_quant=True)
examples/pytorch/vit/ViT-quantization/vit_int8.py:85
Method__init__
(self, config, vis)
examples/pytorch/vit/ViT-quantization/vit_int8.py:146
Method__init__
(self, config, img_size, in_channels=3)
examples/pytorch/vit/ViT-quantization/vit_int8.py:239
Method__init__
(self, config, vis)
examples/pytorch/vit/ViT-quantization/vit_int8.py:285
Method__init__
(self, config, vis)
examples/pytorch/vit/ViT-quantization/vit_int8.py:368
Method__init__
(self, config, img_size, vis)
examples/pytorch/vit/ViT-quantization/vit_int8.py:388
Method__init__
(self, config, img_size=224, num_classes=21843, zero_head=False, vis=False)
examples/pytorch/vit/ViT-quantization/vit_int8.py:400
Method__init__
(self, scale, T = 3)
examples/pytorch/vit/ViT-quantization/main.py:64
Method__init__
(self, scale, T = 3)
examples/pytorch/vit/ViT-quantization/eval_engine.py:66
Method__init__
(self, weights_file, layer_num, head_num, size_per_head, intermediate_size, local_attn_window
examples/pytorch/longformer/model.py:61
Method__init__
weights need be a state_dict of bert model
examples/pytorch/encoder/utils/ft_encoder.py:24
Method__init__
(self, layer_num, head_num, head_size, weights, remove_padding=False, allow_gemm_test=False,
examples/pytorch/encoder/utils/ft_encoder.py:93
Method__init__
(self, config)
examples/pytorch/bert/utils/modeling_bert.py:125
Method__init__
(self, config)
examples/pytorch/bert/utils/modeling_bert.py:168
Method__init__
weights need be a state_dict of bert model
examples/pytorch/bert/utils/encoder.py:26
Method__init__
(self, layer_num, head_num, head_size, weights=None)
examples/pytorch/bert/utils/encoder.py:328
Method__init__
(self, T = 3)
examples/pytorch/bert/bert-quantization-sparsity/run_squad.py:66
Method__init__
(self, unique_id, example_index, doc_span_index,
examples/pytorch/bert/bert-quantization-sparsity/run_squad.py:121
Method__init__
(self, max_grad_norm)
examples/pytorch/bert/bert-quantization-sparsity/run_squad.py:724
Method__init__
(self, T = 3)
examples/pytorch/bert/bert-quantization-sparsity/run_glue.py:64
Method__init__
(self, swag_id, context_sentence, start_ending,
examples/pytorch/bert/bert-quantization-sparsity/run_swag.py:49
Method__init__
(self, example_id, choices_features, label )
examples/pytorch/bert/bert-quantization-sparsity/run_swag.py:90
Method__init__
(self, input_file, max_pred_length)
examples/pytorch/bert/bert-quantization-sparsity/run_pretraining.py:97
Method__init__
(self, vocab_size)
examples/pytorch/bert/bert-quantization-sparsity/run_pretraining.py:128
Method__init__
(self, tokens, segment_ids, masked_lm_positions, masked_lm_labels, is_random_next)
examples/pytorch/bert/bert-quantization-sparsity/create_pretraining_data.py:40
Method__init__
(self, vocab_file, do_lower_case=True, max_len=None, never_split=("[UNK]", "[SEP]", "[PAD]",
examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:98
Method__init__
Constructs a BasicTokenizer. Args: do_lower_case: Whether to lower case the input.
examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:181
Method__init__
(self, vocab, unk_token="[UNK]", max_input_chars_per_word=100)
examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:298
Method__init__
(self, params, lr=required, warmup=-1, t_total=-1, schedule='warmup_linear', b1=0.9, b2=0.999
examples/pytorch/bert/bert-quantization-sparsity/optimization.py:78
Method__init__
(self, optimizer, warmup, total_steps, last_epoch=-1)
examples/pytorch/bert/bert-quantization-sparsity/schedulers.py:56
Method__init__
(self, optimizer, warmup, total_steps, last_epoch=-1)
examples/pytorch/bert/bert-quantization-sparsity/schedulers.py:74
Method__init__
(self, optimizer, warmup, total_steps, last_epoch=-1)
examples/pytorch/bert/bert-quantization-sparsity/schedulers.py:92
Method__init__
(self, optimizer, warmup, total_steps, degree=0.5, last_epoch=-1)
examples/pytorch/bert/bert-quantization-sparsity/schedulers.py:110
Method__init__
(self, in_features, out_features, act='gelu', bias=True, do_quant=False)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:155
Method__init__
Constructs BertConfig. Args: vocab_size_or_config_json_file: Vocabulary size of `inputs_ids` in `BertModel`. hidden_s
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:217
Method__init__
Construct a layernorm module in the TF style (epsilon inside the square root).
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:305
Method__init__
(self, hidden_size, eps=1e-12)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:334
Method__init__
(self, config)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:363
Method__init__
(self, config)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:390
Method__init__
(self, config)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:462
Method__init__
(self, config)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:487
Method__init__
(self, config)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:499
Method__init__
(self, config)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:509
Method__init__
(self, config)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:547
Method__init__
(self, config)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:598
Method__init__
(self, config)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:611
Method__init__
(self, config, bert_model_embedding_weights)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:623
Method__init__
(self, config, bert_model_embedding_weights)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:642
Method__init__
(self, config)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:652
Method__init__
(self, config, bert_model_embedding_weights)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:662
Method__init__
(self, config, *inputs, **kwargs)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:677
Method__init__
(self, config)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:898
Method__init__
(self, config)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:981
Method__init__
(self, config)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:1037
Method__init__
(self, config)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:1099
Method__init__
(self, config, num_labels)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:1162
Method__init__
(self, config, num_choices)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:1220
Method__init__
(self, config, num_labels)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:1290
Method__init__
(self, config)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:1357
Method__init__
(self, unique_id, text_a, text_b)
examples/pytorch/bert/bert-quantization-sparsity/extract_features.py:43
Method__init__
(self, unique_id, tokens, input_ids, input_mask, input_type_ids)
examples/pytorch/bert/bert-quantization-sparsity/extract_features.py:52
Method__init__
(self, language, save_path)
examples/pytorch/bert/bert-quantization-sparsity/data/WikiDownloader.py:21
Method__init__
(self, books_path, output_filename, recursive = False)
examples/pytorch/bert/bert-quantization-sparsity/data/BookscorpusTextFormatting.py:18
Method__init__
(self, save_path)
examples/pytorch/bert/bert-quantization-sparsity/data/GLUEDownloader.py:26
Method__init__
(self, input_files, output_name_prefix, n_training_shards, n_test_shards, fraction_test_set)
examples/pytorch/bert/bert-quantization-sparsity/data/TextSharding.py:21
Method__init__
(self, save_path)
examples/pytorch/bert/bert-quantization-sparsity/data/BooksDownloader.py:17
Method__init__
(self, save_path)
examples/pytorch/bert/bert-quantization-sparsity/data/GooglePretrainedWeightDownloader.py:20
Method__init__
(self, save_path)
examples/pytorch/bert/bert-quantization-sparsity/data/SquadDownloader.py:20
Method__init__
(self, wiki_path, output_filename, recursive = False)
examples/pytorch/bert/bert-quantization-sparsity/data/WikicorpusTextFormatting.py:18
Method__init__
(self, save_path)
examples/pytorch/bert/bert-quantization-sparsity/data/NVIDIAPretrainedWeightDownloader.py:17
Method__init__
(self, dataset_name, save_path)
examples/pytorch/bert/bert-quantization-sparsity/data/Downloader.py:24
Method__init__
Constructs a InputExample. Args: guid: Unique id for the example. text_a: string. The untokenized text of the first s
examples/pytorch/bert/bert-quantization-sparsity/processors/glue.py:25
Method__init__
(self, input_ids, input_mask, segment_ids, label_id)
examples/pytorch/bert/bert-quantization-sparsity/processors/glue.py:47
Method__init__
( self, model, fields, src_reader, tgt_reader,
examples/pytorch/decoding/utils/translator.py:92
Method__init__
(self, layer_num, hidden_dim, vocab_size, onmtcheckpoint=None, max_step_for_pe=2048)
examples/pytorch/decoding/utils/decoding.py:50
Method__init__
(self, num_layers, d_model, heads, head_size, d_ff, copy_attn, self_attn_type, dropout, atten
examples/pytorch/decoding/utils/decoding.py:231
Method__init__
(self, layer_num, head_num, head_size, vocab_size, start_id, end_id, weights, beam_search_div
examples/pytorch/decoding/utils/decoding.py:424
Method__init__
(self, layer_num, hidden_dim, onmtcheckpoint, max_step_for_pe=2048)
examples/pytorch/decoding/utils/ft_decoding.py:27
Method__init__
(self, head_num, head_size, inter_size, mem_hidden_dim, layer_num, vocab_size, start_id, end_i
examples/pytorch/decoding/utils/ft_decoding.py:131
Method__init__
(self, vocab_file)
examples/pytorch/gptneox/utils/hftokenizer.py:23
Method__init__
(self, head_num, size_per_head, layer_num, vocab_size, max_seq_len, tensor
examples/pytorch/gptneox/utils/gptneox.py:32
← previousnext →1,901–2,000 of 4,228, ranked by callers