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

run_biorex_exp.sh doesn't seem to use GPU #6

Open
dongheechoi opened this issue May 15, 2024 · 1 comment
Open

run_biorex_exp.sh doesn't seem to use GPU #6

dongheechoi opened this issue May 15, 2024 · 1 comment

Comments

@dongheechoi
Copy link

I tried to run the script but I don't think it is using a GPU. I stopped the code before this line (https://github.com/ncbi/BioREx/blob/0031c52d2dd0d7fb8e3b84e256d8fbf73c4bd463/src/tf_wrapper.py#L199C28-L200C1), and check it whether using GPU or not, but I got this.

In [16]: self.model.layers[0].variables[0].device
Out[16]: '/job:localhost/replica:0/task:0/device:CPU:0'

Can you kindly check the script or runfile to use GPU to train?

And I think it is better to change the static gpu variable in the script into dynamic one as you put in the other script. I also put that in the pull request(#4)

cuda_visible_devices=0

@ptlai
Copy link
Collaborator

ptlai commented May 22, 2024

Hi @dongheechoi ,

The program can run on GPU as below.
image

Yes, you should be able to change cuda_visible_devices to the visible GPUs.

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