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,438 callers
Method
at
prevent converting int or size_t to string automatically
src/fastertransformer/utils/Tensor.h:353
↓ 827 callers
Method
size
src/fastertransformer/utils/Tensor.cc:164
↓ 640 callers
Method
reMalloc
src/fastertransformer/utils/allocator.h:75
↓ 580 callers
Method
free
src/fastertransformer/utils/allocator.h:348
↓ 471 callers
Method
insert
src/fastertransformer/utils/Tensor.h:333
↓ 385 callers
Method
cuda
(self)
examples/pytorch/gpt/utils/gpt.py:550
↓ 369 callers
Method
GetInteger
3rdparty/INIReader.h:411
↓ 317 callers
Method
get
src/fastertransformer/tensorrt_plugin/bert_fp8/bertFp8Plugin.h:78
↓ 262 callers
Method
info
(self, s)
examples/pytorch/vit/ViT-quantization/quant_utils.py:30
↓ 197 callers
Method
data
examples/cpp/xlnet/cnpy.h:36
↓ 193 callers
Method
end
src/fastertransformer/utils/Tensor.h:496
↓ 193 callers
Method
get_tensor
src/fastertransformer/tf_op/BaseOp.h:68
↓ 189 callers
Method
to
(self, device=None)
examples/pytorch/gpt/utils/gpt_decoder.py:954
↓ 171 callers
Method
begin
src/fastertransformer/utils/Tensor.h:491
↓ 115 callers
Method
info
(self, s)
examples/pytorch/bert/bert-quantization-sparsity/quant_utils.py:31
↓ 113 callers
Method
Gemm
src/fastertransformer/utils/gemm.cc:23
↓ 111 callers
Method
isExist
src/fastertransformer/utils/cublasAlgoMap.cc:125
↓ 110 callers
Function
initialize
src/fastertransformer/utils/mpi_utils.cc:37
↓ 109 callers
Method
device
(self)
examples/pytorch/gpt/utils/gpt_decoder.py:944
↓ 107 callers
Method
clear
3rdparty/trt_fused_multihead_attention/fused_multihead_attention_v2.h:78
↓ 91 callers
Method
load
(self, ckpt_path)
examples/pytorch/gpt/utils/gpt.py:539
↓ 87 callers
Method
half
(self)
examples/pytorch/gpt/utils/gpt_decoder.py:964
↓ 86 callers
Method
keys
(self)
examples/pytorch/gptj/utils/reference_gptj.py:36
↓ 84 callers
Method
float
(self)
examples/pytorch/gpt/utils/gpt_decoder.py:959
↓ 80 callers
Method
Get
3rdparty/INIReader.h:394
↓ 74 callers
Function
fmtstr
src/fastertransformer/utils/string_utils.h:27
↓ 68 callers
Method
GetFloat
3rdparty/INIReader.h:445
↓ 67 callers
Method
log
src/fastertransformer/utils/logger.h:47
↓ 64 callers
Function
getSMVersion
src/fastertransformer/utils/cuda_utils.h:281
↓ 63 callers
Method
dtype
(self)
examples/pytorch/gpt/utils/gpt_decoder.py:939
↓ 61 callers
Method
setFP32GemmConfig
src/fastertransformer/utils/cublasMMWrapper.cc:330
↓ 59 callers
Method
run
* \brief Forward a model and asynchronously check whether to stop. * * The device having the last rank of a pipeline parallel group checks a
examples/cpp/multi_gpu_gpt/multi_gpu_gpt_async_example.cc:338
↓ 52 callers
Method
max
src/fastertransformer/utils/Tensor.h:207
↓ 52 callers
Function
rotary_embedding_transform
src/fastertransformer/kernels/decoder_masked_multihead_attention_utils.h:1331
↓ 52 callers
Function
torch2np
(tensor: torch.Tensor, np_data_type: typing.Optional[np.dtype] = None)
examples/pytorch/utils.py:28
↓ 51 callers
Method
forward
(self, start_ids: torch.IntTensor, start_lengths: torch.IntTensor,
examples/pytorch/gpt/utils/gpt.py:580
↓ 50 callers
Method
from_pretrained
Instantiate a PreTrainedBertModel from a pre-trained model file. Download and cache the pre-trained model file if needed.
examples/pytorch/bert/bert-quantization-sparsity/tokenization.py:140
↓ 49 callers
Function
as_GPU_tensor
src/fastertransformer/triton_backend/triton_utils.hpp:45
↓ 48 callers
Function
move_tensor_H2D
src/fastertransformer/triton_backend/triton_utils.hpp:25
↓ 47 callers
Method
saveNpy
src/fastertransformer/utils/Tensor.cc:282
↓ 44 callers
Method
setFP16GemmConfig
src/fastertransformer/utils/cublasMMWrapper.cc:338
↓ 39 callers
Function
barrier
()
examples/pytorch/bert/bert-quantization-sparsity/utils.py:40
↓ 39 callers
Method
setBF16GemmConfig
src/fastertransformer/utils/cublasMMWrapper.cc:347
↓ 37 callers
Function
checkCublasStatus
tests/unittests/fp8_gemm_test/2022_03_21__fp8_stride_batch_example/worker.cpp:8
↓ 37 callers
Function
invokeGeneralLayerNorm
src/fastertransformer/kernels/layernorm_kernels.h:138
↓ 36 callers
Function
checkCudaStatus
tests/unittests/fp8_gemm_test/worker.cpp:98
↓ 36 callers
Method
close
(self)
examples/tensorflow/bert/bert-quantization/utils/create_squad_data.py:507
↓ 36 callers
Function
deserialize_value
src/fastertransformer/tensorrt_plugin/swin/serialize.hpp:127
↓ 36 callers
Function
ftNcclParamDestroy
src/fastertransformer/utils/nccl_utils.cc:299
↓ 36 callers
Function
serialize_value
src/fastertransformer/tensorrt_plugin/swin/serialize.hpp:121
↓ 35 callers
Method
stridedBatchedGemm
src/fastertransformer/utils/gemm.cc:481
↓ 35 callers
Method
what
src/fastertransformer/utils/gemm.h:601
↓ 34 callers
Method
SpGemm
src/fastertransformer/utils/gemm.cc:715
↓ 34 callers
Function
getActivationType
src/fastertransformer/utils/activation_types.h:34
↓ 34 callers
Method
info
(self, s)
examples/pytorch/swin/Swin-Transformer-Quantization/quant_utils.py:30
↓ 34 callers
Function
rotary_embedding_coefficient
src/fastertransformer/kernels/decoder_masked_multihead_attention_utils.h:1325
↓ 32 callers
Method
bfloat16
(self)
examples/pytorch/gpt/utils/gpt_decoder.py:969
↓ 32 callers
Function
diffTime
src/fastertransformer/utils/cuda_utils.h:264
↓ 32 callers
Function
is_main_process
()
examples/pytorch/bert/bert-quantization-sparsity/utils.py:36
↓ 31 callers
Method
GetBoolean
3rdparty/INIReader.h:468
↓ 30 callers
Function
safe_transpose
(param: torch.nn.Parameter)
examples/pytorch/gpt/utils/huggingface_bloom_convert.py:126
↓ 29 callers
Function
ftNcclRecv
src/fastertransformer/utils/nccl_utils.cc:111
↓ 29 callers
Function
ftNcclSend
src/fastertransformer/utils/nccl_utils.cc:85
↓ 29 callers
Method
update
(self, update_params: dict)
examples/pytorch/gpt/utils/gpt.py:742
↓ 28 callers
Method
ParseError
3rdparty/INIReader.h:382
↓ 28 callers
Function
np2th
Possibly convert HWIO to OIHW.
examples/pytorch/vit/ViT-quantization/vit_int8.py:57
↓ 27 callers
Function
getDevice
src/fastertransformer/utils/cuda_utils.h:317
↓ 27 callers
Function
pad_to_multiple_of_16
src/fastertransformer/kernels/moe_kernels.h:24
↓ 27 callers
Function
sum
src/fastertransformer/kernels/decoder_masked_multihead_attention_utils.h:1188
↓ 27 callers
Method
update
(self, val, n=1)
examples/pytorch/vit/ViT-quantization/main.py:57
↓ 26 callers
Function
checkCudaStatus
tests/unittests/fp8_gemm_test/2022_03_21__fp8_stride_batch_example/worker.cpp:15
↓ 26 callers
Function
create_initializer
(initializer_range=0.02, data_type=tf.float32)
examples/tensorflow/decoder/utils/common.py:247
↓ 26 callers
Function
ftNcclBroadCast
src/fastertransformer/utils/nccl_utils.cc:136
↓ 25 callers
Method
__init__
(self, config)
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:534
↓ 25 callers
Function
bcast
src/fastertransformer/utils/mpi_utils.cc:114
↓ 25 callers
Function
bert_example
(args)
examples/pytorch/bert/bert_example.py:90
↓ 25 callers
Function
checkCublasStatus
tests/unittests/fp8_gemm_test/worker.cpp:89
↓ 25 callers
Method
compressMatrix
src/fastertransformer/utils/cublasMMWrapper.cc:770
↓ 25 callers
Function
encoder_example
(args)
examples/pytorch/encoder/encoder_example.py:60
↓ 25 callers
Function
ftNcclAllGather
src/fastertransformer/utils/nccl_utils.cc:70
↓ 24 callers
Method
getPtrWithOffset
src/fastertransformer/utils/Tensor.h:175
↓ 24 callers
Method
isUseSparse
src/fastertransformer/utils/cublasAlgoMap.cc:209
↓ 24 callers
Method
loadModel
src/fastertransformer/models/bert/BertWeight.cc:120
↓ 24 callers
Method
to_host_vec
src/fastertransformer/utils/gpu_buf.h:65
↓ 23 callers
Method
load
(module, prefix='')
examples/pytorch/bert/bert-quantization-sparsity/modeling.py:832
↓ 22 callers
Method
decode
(self, tokens)
examples/pytorch/gpt/utils/gpt_token_encoder.py:141
↓ 22 callers
Function
getCublasDataType
src/fastertransformer/utils/gemm.cc:1024
↓ 21 callers
Method
Tensor
src/fastertransformer/utils/Tensor.cc:36
↓ 21 callers
Method
setGemmConfig
src/fastertransformer/utils/cublasMMWrapper.cc:356
↓ 20 callers
Function
ftNcclInitialize
src/fastertransformer/utils/nccl_utils.cc:308
↓ 20 callers
Method
setStream
src/fastertransformer/models/t5/T5Encoder.cc:248
↓ 19 callers
Method
all
src/fastertransformer/utils/Tensor.h:272
↓ 19 callers
Method
forward
src/fastertransformer/th_op/vit/ViTOp.cc:99
↓ 19 callers
Method
start
(self, tag='__default')
examples/pytorch/gpt/bloom_lambada.py:98
↓ 18 callers
Function
ftNcclAllReduceSum
src/fastertransformer/utils/nccl_utils.cc:56
↓ 18 callers
Function
ftNcclGroupEnd
src/fastertransformer/utils/nccl_utils.cc:208
↓ 18 callers
Function
ftNcclGroupStart
src/fastertransformer/utils/nccl_utils.cc:201
↓ 18 callers
Function
ftNcclStreamSynchronize
src/fastertransformer/utils/nccl_utils.cc:215
↓ 18 callers
Method
insertIfValid
src/fastertransformer/utils/Tensor.h:340
↓ 18 callers
Function
print_mem_usage
src/fastertransformer/utils/cuda_utils.h:271
next →
1–100 of 4,228, ranked by callers