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

我在使用 faiss 的例子测试时 报错 AssertionError: Not compiled with CUDA。 #121

Open
LORD-9527 opened this issue Jan 10, 2024 · 0 comments

Comments

@LORD-9527
Copy link

我第一步 运行 python index.py zh ${your_data} ${index_name} 时要报错,我把 index.py中48行的 "use_cuda": True,换成了 "use_cuda": False, 然后没有报错了
我继续运行 python rocketqa_service.py zh ${your_data} ${index_name} & 时就会报错报错如下
Traceback (most recent call last): File "rocketqa_service.py", line 160, in <module> app = create_rocketqa_app(sub_address, RocketQAServer, language, data_file, index_file) File "rocketqa_service.py", line 130, in create_rocketqa_app dual_encoder = rocketqa.load_model(**de_conf) File "D:\Anaconda\envs\python3818_0110\lib\site-packages\rocketqa\rocketqa.py", line 120, in load_model encoder = DualEncoder(**encoder_conf) File "D:\Anaconda\envs\python3818_0110\lib\site-packages\rocketqa\encoder\dual_encoder.py", line 62, in __init__ dev_list = fluid.cuda_places() File "D:\Anaconda\envs\python3818_0110\lib\site-packages\paddle\fluid\framework.py", line 769, in cuda_places assert core.is_compiled_with_cuda(), \ AssertionError: Not compiled with CUDA

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

1 participant