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

GPU memory is used while running inference.py changing the device to cpu #206

Open
srilekha1993 opened this issue Mar 23, 2024 · 1 comment

Comments

@srilekha1993
Copy link

Hi,
I observed while running the command [ time python -m inference --config default_inference_args.yaml --protein_ligand_csv data/test_1.csv --out_dir results_L_cpu/user_predictions_small] the GPU memory is used while the device is changed to 'cpu' in inference.py.
Can anyone help me out how to completely run the above script in cpu only?

@jsilter
Copy link
Collaborator

jsilter commented Apr 26, 2024

The simplest thing would be to hide by environment variable

export CUDA_VISIBLE_DEVICES=-1
time python -m inference --config default_inference_args.yaml --protein_ligand_csv data/test_1.csv --out_dir results_L_cpu/user_predictions_small

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