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

feat: nvidia nim blueprint for drug discovery #948

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sujituk
Copy link

@sujituk sujituk commented Jan 24, 2025

Generative virtual screening for drug discovery NIM Blueprint on GKE

@roberthbailey roberthbailey self-assigned this Jan 24, 2025
@roberthbailey
Copy link
Collaborator

/gcbrun


Here you will find the NVIDIA NIM Blueprints that can be provisioned to run on GKE. These are good for proof of concepts only.

- [ ] [Generative Virtual Screening for Drug Discovery](./drugdiscovery/README.md) uses 3 NIMs
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason you made this an empty checkbox? Would a numbered or bulleted list make more sense?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack. updated.

* **kubectl:** kubectl command-line tool installed and configured.

Clone the repo before proceeding further:
`git clone https://github.com/GoogleCloudPlatform/ai-on-gke`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this would format better using the multi-line code block like you do below:

git clone https://github.com/GoogleCloudPlatform/ai-on-gke
cd ai-on-gke/tutorials-and-examples/nvidia-nim/blueprints/drugdiscovery

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack. updated.

gcloud container clusters create "${CLUSTER_NAME}" \
--project="${PROJECT_ID}" \
--num-nodes=1 --location="${ZONE}" \
--machine-type=e2-standard-16 \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need a 16 core machine in the default node pool for management? Do we run anything on this node as part of the guide or is this just for system components?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch. changed to e2-standard-2.

--max-time 900 \
-X POST \
-i \
"http://localhost:62921/protein-structure/alphafold2/predict-structure-from-sequence" \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does this port number come from? In the port forward command it looks like you only set the destination port; should we set a source port too so that it is consistent for this next step in the guide?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

switched to a fixed port and instructions to update if unavailable.

"min_similarity": 0.7,
"iterations": 10
}' \
"http://localhost:49530/generate"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question about the port here.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above.

- name: NGC_API_KEY
valueFrom:
secretKeyRef:
name: ngc-api-key # Replace with your actual secret name
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to add a step to the guide to create this secret? It looks like you create a docker registry secret but not the secret used by the application.

I found the secret below at the bottom of this file. We either need to update step 7 to let people know to edit this file before applying it (to set the secret value) or we should update step 6 to create two secrets instead of creating the ngc-api-key secret in this file.

I also this the comment here isn't necessary, because we will be setting the secret name correctly (either in this file or in the guide) so you shouldn't have to verify the secret name as the comment suggests.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simplified this, created the secret key from cli as it was in a env variable and removed this part.

@@ -0,0 +1,110 @@
import requests

AF2_HOST = "http://localhost:<replace with port number>"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think if we change the port forward command to use a consistent local port number we can just insert it here and folks wouldn't need to modify this file before running it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack. updated

@sujituk
Copy link
Author

sujituk commented Feb 4, 2025

@roberthbailey comments addressed. ready for review.

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

Successfully merging this pull request may close these issues.

2 participants