Access and Startup
The BioNeMo Framework is free to use and easily accessible. The preferred method of accessing the software is through the BioNeMo Docker container, which provides a seamless and hassle-free way to develop and execute code. By using the Docker container, you can bypass the complexity of handling dependencies, ensuring that you have a consistent and reproducible environment for your projects.
In this section of the documentation, we will guide you through the process of pulling the BioNeMo Docker container and setting up a local development environment. By following these steps, you will be able to quickly get started with the BioNeMo Framework and begin exploring its features and capabilities.
Access the BioNeMo Framework
Brev.Dev Access
The BioNeMo Framework container can run in a brev.dev launchable: . It takes about 10 minutes to deploy this notebook as a Launchable. As of this writing, we are working on a free tier so a credit card may be required. You can reach out to your NVIDIA rep for credit. After launching the instance, launch a Terminal session in the Jupyter Lab UI. (Note: This links to the nightly release and may be out of sync with these docs.)
NGC Account and API Key Configuration
Another option to access the BioNeMo Framework container is to use a free NVIDIA GPU Cloud (NGC) account and an API key linked to that account.
NGC is a portal of enterprise services, software, and support for artificial intelligence and high-performance computing (HPC) workloads. The BioNeMo Docker container is hosted on the NGC Container Registry. To pull and run a container from this registry, you will need to create a free NGC account and an API Key using the following steps:
- Create a free account on NGC and log in.
- At the top right, click on the User > Setup > Generate API Key, then click + Generate API Key and Confirm. Copy and store your API Key in a secure location.
You can now view the BioNeMo Framework container at this direct link in the NGC Catalog or by searching the NGC Catalog for “BioNeMo Framework”. Feel free to explore the other resources available to you in the catalog.
NGC CLI Configuration
The NGC Command Line Interface (CLI) is a command-line tool for managing resources in NGC, including datasets and model checkpoints. You can download the CLI on your local machine using the instructions on the NGC CLI website.
Once you have installed the NGC CLI, run ngc config set
at the command line to setup your NGC credentials:
- API key: Enter your API Key
- CLI output: Accept the default (ASCII format) by pressing
Enter
- org: Choose your preferred organization from the supplied list
- team: Choose the team to which you have been assigned from the supplied list
- ace : Choose an ACE, if applicable, otherwise press
Enter
to continue
Note that the org and team are only relevant when pulling private containers/datasets from NGC created by you or your team. To access BioNeMo Framework, you can use the default value.
Startup Instructions
BioNeMo is compatible with a wide variety of computing environments, including both local workstations, data centers, and Cloud Service Providers (CSPs) such as Amazon Web Services, Microsoft Azure, Google Cloud Platform, and Oracle Cloud Infrastructure, and NVIDIA’s own DGX Cloud.
Running the Container on a Local Machine
This section will provide instructions for running the BioNeMo Framework container on a local workstation. This process will involve the following steps:
- Logging into the NGC Container Registry (
nvcr.io
) - Pulling the container from the registry
- Running a Jupyter Lab instance inside the container for local development
Pull Docker Container from NGC
Open a command prompt on your machine and enter the following:
docker login nvcr.io
This command will prompt you to enter your API key. Fill in the details as shown below. Note that you should enter the
string $oauthtoken
as your username. Replace the password (<YOUR_API_KEY>
) with the API key that you generated in
the NGC Account and API Key Configuration section above:
Username: $oauthtoken
Password: <YOUR_API_KEY>
You can now pull the BioNeMo Framework container using the following command:
docker pull nvcr.io/nvidia/clara/bionemo-framework:nightly
Run the BioNeMo Framework Container
Now that you have pulled the BioNeMo Framework container, you can run it as you would a normal Docker container. For instance, to get basic shell access you can run the following command:
docker run --rm -it --gpus all \
nvcr.io/nvidia/clara/bionemo-framework:nightly \
/bin/bash
Because BioNeMo is distributed as a Docker container, standard arguments can be passed to the docker run
command to
alter the behavior of the container and its interactions with the host system. For more information on these arguments,
refer to the Docker documentation.
In the next section, Initialization Guide, we will present some useful docker run
command
variants for common workflows.
Running on Any Major CSP with the NVIDIA GPU-Optimized VMI
The BioNeMo Framework container is supported on cloud-based GPU instances through the NVIDIA GPU-Optimized Virtual Machine Image (VMI), available for AWS, GCP, Azure, and OCI. NVIDIA VMIs are built on Ubuntu and provide a standardized operating system environment across cloud infrastructure for running NVIDIA GPU-accelerated software. These images are pre-configured with software dependencies such as NVIDIA GPU drivers, Docker, and the NVIDIA Container Toolkit. More details about NVIDIA VMIs can be found in the NGC Catalog.
The general steps for launching the BioNeMo Framework container using a CSP are:
- Launch a GPU-equipped instance running the NVIDIA GPU-Optimized VMI on your preferred CSP. Follow the instructions for launching a GPU-equipped instance provided by your CSP.
- Connect to the running instance using SSH and run the BioNeMo Framework container exactly as outlined in the Running the Container on a Local Machine section on the Access and Startup page.