MCPcopy Create free account

hub / github.com/NVIDIA/FasterTransformer / functions

Functions4,228 in github.com/NVIDIA/FasterTransformer

Method__init__
(self, head_num, size_per_head, vocab_size, rotary_embedding_dim,
examples/pytorch/gptneox/utils/gptneox.py:176
Method__init__
(self, path: str | pathlib.Path, tokenizer: transformers.PreTrainedTokenizer
examples/pytorch/gpt/bloom_lambada.py:42
Method__init__
(self)
examples/pytorch/gpt/bloom_lambada.py:94
Method__init__
(self, path, tokenizer, seq_len)
examples/pytorch/gpt/lambada_task_example.py:36
Method__init__
(self, encoder, bpe_merges, errors='replace')
examples/pytorch/gpt/utils/gpt_token_encoder.py:81
Method__init__
(self, head_num, size_per_head, layer_num, vocab_size, max_seq_len, tensor_para_size, pipeline_para_size,
examples/pytorch/gpt/utils/gpt_fp8.py:31
Method__init__
(self, head_num, size_per_head, vocab_size, start_id, end_id, layer_num,
examples/pytorch/gpt/utils/gpt_fp8.py:225
Method__init__
(self, head_num, size_per_head, layer_num, vocab_size, tensor_para_size, pipeline_para_size,
examples/pytorch/gpt/utils/bloom.py:31
Method__init__
(self, tokenizer_json_file)
examples/pytorch/gpt/utils/tokenizer.py:23
Method__init__
(self)
examples/pytorch/gpt/utils/profiler.py:6
Method__init__
(self, tensor_para_size: int, pipeline_para_size: int)
examples/pytorch/gpt/utils/comm.py:37
Method__init__
(self, num_heads: int, size_per_head: int, inter_size: int,
examples/pytorch/gpt/utils/gpt_decoder.py:86
Method__init__
(self)
examples/pytorch/gpt/utils/gpt_decoder.py:329
Method__init__
(self, num_heads: int, size_per_head: int, inter_size: int,
examples/pytorch/gpt/utils/gpt_decoder.py:388
Method__init__
(self, num_heads: int, size_per_head: int, inter_size: int,
examples/pytorch/gpt/utils/gpt_decoder.py:554
Method__init__
(self, head_num, size_per_head, layer_num, vocab_size, max_seq_len, tensor_para_size, pipeline_para_size,
examples/pytorch/gpt/utils/gpt.py:30
Method__init__
(self, head_num, size_per_head, vocab_size, start_id, end_id, layer_num,
examples/pytorch/gpt/utils/gpt.py:442
Method__init__
(self, layer_num, head_num, head_size, weights)
examples/pytorch/decoder/utils/decoder.py:58
Method__init__
(self, layer_num, hidden_dim, onmtcheckpoint, max_step_for_pe=2048)
examples/pytorch/decoder/utils/ft_decoder.py:31
Method__init__
(self, head_num, head_size, mem_hidden_dim, layer_num, weights, args)
examples/pytorch/decoder/utils/ft_decoder.py:120
Method__init__
(self, model_type=None, data_type=None, ths_path=None)
examples/pytorch/decoder/utils/ft_decoder.py:147
Method__init__
(self, chkpt_path, device="cpu")
examples/pytorch/gptj/utils/reference_gptj.py:24
Method__init__
weights need be a state_dict of swin transformer model
examples/pytorch/swin/SwinTransformerWeightTransposeQKVWeight.py:19
Method__init__
weights need be a state_dict of swin transformer model
examples/pytorch/swin/SwinTransformerINT8Weight.py:21
Method__init__
(self, scale, T = 3)
examples/pytorch/swin/Swin-Transformer-Quantization/main.py:55
Method__init__
(self, dim, window_size, num_heads, qkv_bias=True, qk_scale=None, attn_drop=0., proj_drop=0.)
examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer.py:97
Method__init__
(self, dim, input_resolution, num_heads, window_size=7, shift_size=0, mlp_ratio=4., qkv_bias=
examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer.py:216
Method__init__
(self, input_resolution, dim, norm_layer=nn.LayerNorm)
examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer.py:362
Method__init__
(self, dim, input_resolution, depth, num_heads, window_size, mlp_ratio=4., qkv_bias=True, qk_
examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer.py:422
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, embed_dim=96, norm_layer=None, do_quant=False)
examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer.py:483
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, num_classes=1000, embed_dim=96, depths=[2, 2,
examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer.py:549
Method__init__
(self, in_features, out_features, act='gelu', bias=True, do_quant=True)
examples/pytorch/swin/Swin-Transformer-Quantization/models/linear_activation.py:96
Method__init__
(self, dim, window_size, num_heads, qkv_bias=True, attn_drop=0., proj_drop=0., pretrained_win
examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer_v2.py:97
Method__init__
(self, dim, input_resolution, num_heads, window_size=7, shift_size=0, mlp_ratio=4., qkv_bias=
examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer_v2.py:259
Method__init__
(self, input_resolution, dim, norm_layer=nn.LayerNorm)
examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer_v2.py:395
Method__init__
(self, dim, input_resolution, depth, num_heads, window_size, mlp_ratio=4., qkv_bias=True, dro
examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer_v2.py:455
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, embed_dim=96, norm_layer=None)
examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer_v2.py:525
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, num_classes=1000, embed_dim=96, depths=[2, 2,
examples/pytorch/swin/Swin-Transformer-Quantization/models/swin_transformer_v2.py:588
Method__init__
(self, input_ids, attention_mask)
examples/pytorch/t5/mnli_task_example.py:109
Method__init__
(self, d_model, vocab_size, num_heads, d_kv, d_ff, num_layers, relative_attention_num_buckets
examples/pytorch/t5/mnli_task_example.py:115
Method__init__
(self, name, frame_work)
examples/pytorch/t5/translate_example.py:82
Method__init__
(self, name, frame_work)
examples/pytorch/t5/perf_benchmark.py:47
Method__init__
(self, batch_size, input_seq_len, bos_token, eos_token, vocab_size)
examples/pytorch/t5/perf_benchmark.py:60
Method__init__
(self, input_ids, attention_mask)
examples/pytorch/t5/xnli_task_example.py:111
Method__init__
(self, d_model, vocab_size, num_heads, d_kv, d_ff, num_layers, relative_attention_num_bucket
examples/pytorch/t5/xnli_task_example.py:117
Method__init__
( self, config, tensor_para_size, pipeline_para_size,
examples/pytorch/t5/utils/ft_decoding.py:23
Method__init__
(self, decoding_weight_list, lib_path, head_num, head_size, inter_size, mem_d_model, d_model,
examples/pytorch/t5/utils/ft_decoding.py:427
Method__init__
( self, config, tensor_para_size, pipeline_para_size,
examples/pytorch/t5/utils/ft_encoder.py:24
Method__init__
(self, encoder_weight_list, lib_path, head_num, head_size, inter_size, d_model, is_remove_padding,
examples/pytorch/t5/utils/ft_encoder.py:361
Method__iter__
(self)
examples/pytorch/gptj/utils/reference_gptj.py:38
Method__len__
Denotes the total number of samples
examples/pytorch/bert/bert-quantization-sparsity/run_pretraining.py:106
Method__len__
(self)
examples/pytorch/gptneox/utils/gptneox.py:110
Method__len__
(self)
examples/pytorch/gpt/bloom_lambada.py:59
Method__len__
(self)
examples/pytorch/gpt/lambada_task_example.py:55
Method__len__
(self)
examples/pytorch/gpt/utils/gpt_fp8.py:123
Method__len__
(self)
examples/pytorch/gpt/utils/gpt.py:217
Method__len__
(self)
examples/pytorch/gptj/utils/reference_gptj.py:28
Function__nv_bfloat16 add
src/fastertransformer/kernels/decoder_masked_multihead_attention_utils.h:211
Function__nv_bfloat16 mul
src/fastertransformer/kernels/decoder_masked_multihead_attention_utils.h:1025
Function__nv_bfloat162 add
src/fastertransformer/kernels/decoder_masked_multihead_attention_utils.h:218
Function__nv_bfloat162 fma
src/fastertransformer/kernels/decoder_masked_multihead_attention_utils.h:654
Function__nv_bfloat162 fp8x2_e4m3_to_bfloat2
src/fastertransformer/utils/cuda_fp8_utils.h:158
Function__nv_bfloat162 mul
src/fastertransformer/kernels/decoder_masked_multihead_attention_utils.h:1037
Function__nv_bfloat162 rotary_embedding_transform
src/fastertransformer/kernels/decoder_masked_multihead_attention_utils.h:1347
Function__nv_fp8_e4m3 vec_conversion<__nv_fp8_e4m3, float>
src/fastertransformer/kernels/decoder_masked_multihead_attention/decoder_masked_multihead_attention_template.hpp:565
Function__nv_fp8_storage_t __nv_cvt_double_to_fp8
tests/unittests/fp8_gemm_test/2022_03_21__fp8_stride_batch_example/include/cuda_fp8.hpp:94
Function__nv_fp8_storage_t __nv_cvt_float_to_fp8
tests/unittests/fp8_gemm_test/2022_03_21__fp8_stride_batch_example/include/cuda_fp8.hpp:212
Function__nv_fp8_storage_t __nv_cvt_halfraw_to_fp8
tests/unittests/fp8_gemm_test/2022_03_21__fp8_stride_batch_example/include/cuda_fp8.hpp:334
Function__nv_fp8_storage_t __nv_cvt_bfloat16raw_to_fp8
tests/unittests/fp8_gemm_test/2022_03_21__fp8_stride_batch_example/include/cuda_fp8.hpp:408
Function__nv_fp8x2_storage_t __nv_cvt_bfloat16raw2_to_fp8x2
tests/unittests/fp8_gemm_test/2022_03_21__fp8_stride_batch_example/include/cuda_fp8.hpp:417
Function__nv_fp8x2_storage_t __nv_cvt_double2_to_fp8x2
tests/unittests/fp8_gemm_test/2022_03_21__fp8_stride_batch_example/include/cuda_fp8.hpp:202
Function__nv_fp8x2_storage_t __nv_cvt_float2_to_fp8x2
tests/unittests/fp8_gemm_test/2022_03_21__fp8_stride_batch_example/include/cuda_fp8.hpp:258
Function__nv_fp8x2_storage_t __nv_cvt_halfraw2_to_fp8x2
tests/unittests/fp8_gemm_test/2022_03_21__fp8_stride_batch_example/include/cuda_fp8.hpp:361
Method__post_init__
(self)
examples/pytorch/gpt/utils/bloom.py:60
Method__repr__
(self)
examples/tensorflow/bert/bert-quantization/utils/create_pretraining_data.py:61
Method__repr__
(self)
examples/pytorch/bert/bert-quantization-sparsity/create_pretraining_data.py:61
Method__repr__
(self)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:292
Method__repr__
(self)
examples/pytorch/gpt/utils/gpt_decoder.py:428
Method__repr__
(self)
examples/pytorch/gpt/utils/gpt_decoder.py:588
Method__setitem__
(self, idx, val)
examples/pytorch/gptneox/utils/gptneox.py:107
Method__setitem__
(self, idx, val)
examples/pytorch/gpt/utils/gpt_fp8.py:120
Method__setitem__
(self, idx, val)
examples/pytorch/gpt/utils/gpt.py:214
Method__setitem__
(self, key, value)
examples/pytorch/gptj/utils/reference_gptj.py:32
Method__step
(opt_self, *args, **kwargs)
examples/pytorch/bert/bert-quantization-sparsity/apex_sparsity/asp.py:139
Method__str__
(self)
examples/tensorflow/bert/bert-quantization/utils/create_squad_data.py:106
Method__str__
(self)
examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/layers/tensor_quantizer.py:110
Method__str__
(self)
examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/calib/max.py:106
Method__str__
(self)
examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/calib/calibrator.py:290
Method__str__
(self)
examples/tensorflow/bert/bert-quantization/ft-tensorflow-quantization/ft_tensorflow_quantization/python/calib/histogram.py:106
Method__str__
(self)
examples/pytorch/bert/bert-quantization-sparsity/run_squad.py:100
Method__str__
(self)
examples/pytorch/bert/bert-quantization-sparsity/run_swag.py:69
Method_apply_flag
(module)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:702
Function_body
(word_ids, cum_log_probs, finished, step, outputs, my_cache, extra_vars, op_self_cache, op_mem_cache)
examples/tensorflow/decoder/utils/decoding.py:247
Function_cond
(from_tensor)
examples/tensorflow/encoder/encoder_example.py:161
Function_cond
(from_tensor)
examples/tensorflow/bert/bert_example.py:152
Function_cond
(word_ids, cum_log_probs, finished, step, outputs, my_cache, extra_vars, op_self_cache, op_mem_cache)
examples/tensorflow/decoder/utils/decoding.py:244
Method_create_examples
Creates examples for the training and dev sets.
examples/tensorflow/xlnet/convertInput.py:286
Method_create_position_encoding_table
(self, max_seq_len, input_dim, dtype)
examples/tensorflow/bert/utils/position.py:62
Method_create_position_encoding_table
(self, max_seq_len, input_dim, dtype)
examples/tensorflow/common_utils/position.py:62
Function_eff_body
(from_tensor)
examples/tensorflow/encoder/encoder_example.py:171
← previousnext →2,001–2,100 of 4,228, ranked by callers