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

测试脚本text_generation.py使用gpu模式时报错。使用cpu正常。 #103

Open
summerghw opened this issue Aug 24, 2023 · 2 comments

Comments

@summerghw
Copy link

RuntimeError: CUDA error: CUBLAS_STATUS_INVALID_VALUE when calling cublasGemmEx( handle, opa, opb, m, n, k, &falpha, a, CUDA_R_16F, lda, b, CUDA_R_16F, ldb, &fbeta, c, CUDA_R_16F, ldc, CUDA_R_32F, CUBLAS_GEMM_DFALT_TENSOR_OP)

@EnHuiPug
Copy link

cuda是不是没配置好
命令行 nvcc -V 看看
import torch 然后 print(torch.version.cuda) 看看

@summerghw
Copy link
Author

torch version 是对的,nvcc是老款的,把原来的软连接删了,现在可以了。thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants