Skip to content

Conversation

tonykew
Copy link
Contributor

@tonykew tonykew commented Aug 6, 2025

AlphaFold 3 container build & run examples.

Tony

@tonykew tonykew changed the title AlphaFold 3 AlphaFold 3 container docs Aug 6, 2025
Fix pagination

Tony
Tony
@zihuahu
Copy link
Contributor

zihuahu commented Aug 13, 2025

  1. I was able to build the .sif file.
  2. In the first example test, I got the following error message

apptainer shell -B /util:/util,/scratch:/scratch,/projects:/projects ./AlphaFold-3-$(arch).sif
FATAL: While checking container encryption: could not open image /projects/academic/zihuahu/container_test/AlphaFold-3-x86_64.sif: failed to retrieve path for /projects/academic/zihuahu/container_test/AlphaFold-3-x86_64.sif: lstat /projects/academic/zihuahu/container_test/AlphaFold-3-x86_64.sif: no such file or directory

change the command to:
apptainer shell AlphaFold-3-aarch64.sif
FATAL: While checking container encryption: could not open image /projects/academic/zihuahu/container_test/AlphaFold-3-aarch64.sif: the image's architecture (arm64) could not run on the host's (amd64)

Copy link
Contributor

@Monishnd Monishnd left a comment

Choose a reason for hiding this comment

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

This review includes grammar fixes and other minor adjustments. I'll test the Slurm scripts soon.

# Example AlphaFold 3 container

NOTE:
AlphaFold 3 requeres a model parameters file.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
AlphaFold 3 requeres a model parameters file.
AlphaFold 3 requires a model parameters file.


3. Build your container

Building the AlphaFold-3 container taks about half an hour
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Building the AlphaFold-3 container taks about half an hour
Building the AlphaFold-3 container takes about half an hour

Comment on lines +186 to +191
[AlphaFold 3 Slurm Data Pipeline example](https://raw.githubusercontent.com/tonykew/ccr-examples/refs/heads/AlphaFold-3/containers/2_ApplicationSpecific/AlphaFold-3/slurm_AlphaFold-3_Data_Pipeline_example.bash)
[AlphaFold 3 Slurm Inference example](https://raw.githubusercontent.com/tonykew/ccr-examples/refs/heads/AlphaFold-3/containers/2_ApplicationSpecific/AlphaFold-3/slurm_AlphaFold-3_Inference_example.bash)

### Grace Hopper (GH200) GPU example
[AlphaFold 3 Slurm (x86_64) Data Pipeline example](https://raw.githubusercontent.com/tonykew/ccr-examples/refs/heads/AlphaFold-3/containers/2_ApplicationSpecific/AlphaFold-3/slurm_GH200_AlphaFold-3_Data_Pipeline_example.bash)
[AlphaFold 3 Slurm Grace Hopper Inference example](https://raw.githubusercontent.com/tonykew/ccr-examples/refs/heads/AlphaFold-3/containers/2_ApplicationSpecific/AlphaFold-3/slurm_GH200_AlphaFold-3_Inference_example.bash)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
[AlphaFold 3 Slurm Data Pipeline example](https://raw.githubusercontent.com/tonykew/ccr-examples/refs/heads/AlphaFold-3/containers/2_ApplicationSpecific/AlphaFold-3/slurm_AlphaFold-3_Data_Pipeline_example.bash)
[AlphaFold 3 Slurm Inference example](https://raw.githubusercontent.com/tonykew/ccr-examples/refs/heads/AlphaFold-3/containers/2_ApplicationSpecific/AlphaFold-3/slurm_AlphaFold-3_Inference_example.bash)
### Grace Hopper (GH200) GPU example
[AlphaFold 3 Slurm (x86_64) Data Pipeline example](https://raw.githubusercontent.com/tonykew/ccr-examples/refs/heads/AlphaFold-3/containers/2_ApplicationSpecific/AlphaFold-3/slurm_GH200_AlphaFold-3_Data_Pipeline_example.bash)
[AlphaFold 3 Slurm Grace Hopper Inference example](https://raw.githubusercontent.com/tonykew/ccr-examples/refs/heads/AlphaFold-3/containers/2_ApplicationSpecific/AlphaFold-3/slurm_GH200_AlphaFold-3_Inference_example.bash)
[AlphaFold 3 Slurm Data Pipeline example](https://raw.githubusercontent.com/ubccr/ccr-examples/refs/heads/AlphaFold-3/containers/2_ApplicationSpecific/AlphaFold-3/slurm_AlphaFold-3_Data_Pipeline_example.bash)
[AlphaFold 3 Slurm Inference example](https://raw.githubusercontent.com/ubccr/ccr-examples/refs/heads/AlphaFold-3/containers/2_ApplicationSpecific/AlphaFold-3/slurm_AlphaFold-3_Inference_example.bash)
### Grace Hopper (GH200) GPU example
[AlphaFold 3 Slurm (x86_64) Data Pipeline example](https://raw.githubusercontent.com/ubccr/ccr-examples/refs/heads/AlphaFold-3/containers/2_ApplicationSpecific/AlphaFold-3/slurm_GH200_AlphaFold-3_Data_Pipeline_example.bash)
[AlphaFold 3 Slurm Grace Hopper Inference example](https://raw.githubusercontent.com/ubccr/ccr-examples/refs/heads/AlphaFold-3/containers/2_ApplicationSpecific/AlphaFold-3/slurm_GH200_AlphaFold-3_Inference_example.bash)

Comment on lines +11 to +16
Copy the sample Slurm scripts "slurm_AlphaFold-3_Data_Pipeline_example.bash"
and "slurm_AlphaFold-3_Inference_example.bash" to this directory then modify
for your use case.

You should change the SLURM cluster, partition, qos and account; then change
the "[YourGroupName]" in the cd command:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Copy the sample Slurm scripts "slurm_AlphaFold-3_Data_Pipeline_example.bash"
and "slurm_AlphaFold-3_Inference_example.bash" to this directory then modify
for your use case.
You should change the SLURM cluster, partition, qos and account; then change
the "[YourGroupName]" in the cd command:
Copy the sample Slurm scripts [slurm_AlphaFold-3_Data_Pipeline_example.bash](./slurm_AlphaFold-3_Data_Pipeline_example.bash)
and [slurm_AlphaFold-3_Inference_example.bash](./slurm_AlphaFold-3_Inference_example.bash) to this directory then modify
for your use case.
You should change the SLURM cluster, partition, qos and account; then change
the `[YourGroupName]` in the cd command.
Use the `slimits` command to see what accounts and QOS settings you have access to.

Note that the partition/qos combination does not have to be the same for the
Data Pipeline and Inference scripts.

NOTE: You can add other Slurm options to eiher script.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
NOTE: You can add other Slurm options to eiher script.
NOTE: You can add other Slurm options to either script.

> -rw-rw-r-- 1 [CCRusername] nogroup 7301275 Aug 1 11:12 ./af_output/2PV7/2PV7_data.json
> ```

The "./af_output/2PV7" directory will be used as the input directory for the Inference run
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
The "./af_output/2PV7" directory will be used as the input directory for the Inference run
The `./af_output/2PV7` directory will be used as the input directory for the Inference run

> ```


Note from the about output the location of the AlphaFold run output files
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Note from the about output the location of the AlphaFold run output files
Note from the above output the location of the AlphaFold run output files

cd /projects/academic/[YourGroupName]/AlphaFold-3
```

Then create the sample fold_input.json from [here](https://github.com/google-deepmind/alphafold3?tab=readme-ov-file#installation-and-running-your-first-prediction)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Then create the sample fold_input.json from [here](https://github.com/google-deepmind/alphafold3?tab=readme-ov-file#installation-and-running-your-first-prediction)
Then create the sample `fold_input.json` from [here](https://github.com/google-deepmind/alphafold3?tab=readme-ov-file#installation-and-running-your-first-prediction)

```


## Buid the ARM64 container image
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
## Buid the ARM64 container image
## Build the ARM64 container image

for ARM64


# Slurm batch job
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if level 1 heading is required here.

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.

3 participants