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 change GPU #2

Closed
danboshuiyan opened this issue May 20, 2022 · 3 comments
Closed

How to change GPU #2

danboshuiyan opened this issue May 20, 2022 · 3 comments

Comments

@danboshuiyan
Copy link

Your work is very meaningful, which I am very interested in. When I was using it, I found that my GPU0 card did not have enough memory. I want to replace it with 1 card. Where should I modify it?
Thanks for your reply

@blacktanktop
Copy link
Contributor

blacktanktop commented May 20, 2022

I honestly don't know much about the GPU replace.
Since JAX is basically being used, I assume it is an issue regarding the use of GPUs in JAX.

The following JAX issue may be helpful (it talks about the use of multiple GPUs)
jax-ml/jax#9859

@danboshuiyan
Copy link
Author

I honestly don't know much about the GPU replace. Since JAX is basically being used, I assume it is an issue regarding the use of GPUs in JAX.

The following JAX issue may be helpful (it talks about the use of multiple GPUs) google/jax#9859

Thanks for your reply, I use another computer to make it.
If I want to appoint the residue which the protein created can dock, do I need to modify something to make it?

@blacktanktop
Copy link
Contributor

maybe you can use hotspot option. (but Sorry, I have not checked the behavior. It is no different than the original AfDesign (from about late 2022-02).)

The actual code is as follows, so try it as the JAX code, as in the example, in a format that is acceptable, even if you insert it in the "H" part
https://github.com/ohuelab/Solubility_AfDesign#for-binder-hallucination-can-i-specify-the-site-i-want-to-bind

if self._hotspot is None:
pae_inter = 0.5 * (pae_loss[...,:T,T:].mean() + pae_loss[...,T:,:T].mean())
con_inter = con_loss[...,:T,T:].mean()
else:
# restrict the inter loss to specific hotspot residues
H = self._hotspot
pae_inter = 0.5 * (pae_loss[...,H,T:].mean() + pae_loss[...,T:,H].mean())
con_inter = con_loss[...,H,T:].mean()

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