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

How to run the demo on a machine with no NVIDIA GPUs? #19

Open
saeednj opened this issue May 8, 2024 · 1 comment
Open

How to run the demo on a machine with no NVIDIA GPUs? #19

saeednj opened this issue May 8, 2024 · 1 comment

Comments

@saeednj
Copy link

saeednj commented May 8, 2024

Hello,

I was trying to use your repo for some fact checking tasks.

I followed the quick start guide, but when I want to use the demo app (demo/main.py), it fails with the assertion that CUDA is not enabled. On may Mac it says AssertionError: Torch not compiled with CUDA enabled, and on my Linux machine it says RuntimeError: Found no NVIDIA driver on your system..

None of my machines have a NVIDIA GPU. Is there a way to run your system on CPU only? Does it work if I change the requirements to Torch-cpu or there are other GPU requirements as well?

Thanks

@alexlorenzo
Copy link

  1. Force the device = torch.device('cpu')
  2. Remove all .to(0) that is used for GPU only
    It should work (at least it work on my Mac)

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