Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed building t5 model in FastTransformer (Reached 82% then stopped) #744

Open
EmanElrefai12 opened this issue Aug 15, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@EmanElrefai12
Copy link

Branch/Tag/Commit

https://github.com/NVIDIA/FasterTransformer/blob/main/docs/t5_guide.md

Docker Image Version

nvcr.io/nvidia/pytorch:22.09-py3

GPU name

T4

CUDA Driver

12.0

Reproduced Steps

1. Run this command 
!git clone https://github.com/NVIDIA/FasterTransformer
2. Run this command 
!pip install -r FasterTransformer/examples/pytorch/t5/requirement.txt
3. Run this !apt-get -qq install cmake if you are using colab.
4. !cmake -DSM=70 -DCMAKE_BUILD_TYPE=Release -DBUILD_PYT=ON -DBUILD_MULTI_GPU=ON /content/FasterTransformer 
5. !make -j12 (the error here)

__________________________________________________


[ 82%] Built target th_common
/content/FasterTransformer/src/fastertransformer/utils/cuda_fp8_utils.cu(99): error: identifier "printf" is undefined

1 error detected in the compilation of "/content/FasterTransformer/src/fastertransformer/utils/cuda_fp8_utils.cu".
make[2]: *** [src/fastertransformer/utils/CMakeFiles/cuda_fp8_utils.dir/build.make:77: src/fastertransformer/utils/CMakeFiles/cuda_fp8_utils.dir/cuda_fp8_utils.cu.o] Error 2
make[1]: *** [CMakeFiles/Makefile2:2253: src/fastertransformer/utils/CMakeFiles/cuda_fp8_utils.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/content/FasterTransformer/src/fastertransformer/kernels/decoder_masked_multihead_attention_utils.h(1743): error: identifier "printf" is undefined

/content/FasterTransformer/src/fastertransformer/kernels/decoder_masked_multihead_attention_utils.h(1852): error: identifier "printf" is undefined

2 errors detected in the compilation of "/content/FasterTransformer/src/fastertransformer/kernels/unfused_attention_kernels.cu".
make[2]: *** [src/fastertransformer/kernels/CMakeFiles/unfused_attention_kernels.dir/build.make:77: src/fastertransformer/kernels/CMakeFiles/unfused_attention_kernels.dir/unfused_attention_kernels.cu.o] Error 2
make[1]: *** [CMakeFiles/Makefile2:3129: src/fastertransformer/kernels/CMakeFiles/unfused_attention_kernels.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
@EmanElrefai12 EmanElrefai12 added the bug Something isn't working label Aug 15, 2023
@rainyfly
Copy link

I met the same problem, any solution ?

@JihaoXin
Copy link

JihaoXin commented Oct 19, 2023

Please try to include <stdio.h> manually in two files mentioned at #770 .

@nacc
Copy link

nacc commented Oct 31, 2023

Also hitting this in local testing via mlcommons/mlperf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants