calcoloscientifico:userguide:boltz2
Differenze
Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.
| Entrambe le parti precedenti la revisioneRevisione precedenteProssima revisione | Revisione precedente | ||
| calcoloscientifico:userguide:boltz2 [17/12/2025 18:06] – federico.prost | calcoloscientifico:userguide:boltz2 [17/12/2025 21:02] (versione attuale) – fabio.spataro | ||
|---|---|---|---|
| Linea 1: | Linea 1: | ||
| ===== Boltz2 ===== | ===== Boltz2 ===== | ||
| - | [[https:// | + | * [[https:// |
| - | [[https:// | + | |
| === Boltz2 Apptainer File Image === | === Boltz2 Apptainer File Image === | ||
| Linea 14: | Linea 14: | ||
| === Boltz2 python script === | === Boltz2 python script === | ||
| - | < | + | Download the '' |
| + | |||
| + | < | ||
| import requests | import requests | ||
| import json | import json | ||
| Linea 86: | Linea 88: | ||
| </ | </ | ||
| - | === Alphafold3 | + | === Boltz2 |
| - | Download the Alphafold3 input file '' | + | Script |
| - | <code json fold_input.json> | + | <code bash slurm-boltz2-gpu-a100_40g.sh> |
| - | { | + | |
| - | " | + | |
| - | " | + | |
| - | { | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | } | + | |
| - | } | + | |
| - | ], | + | |
| - | " | + | |
| - | " | + | |
| - | " | + | |
| - | } | + | |
| - | </ | + | |
| - | + | ||
| - | Script '' | + | |
| - | + | ||
| - | <code bash slurm-alphafold-gpu-a100_40g.sh> | + | |
| #!/bin/bash --login | #!/bin/bash --login | ||
| - | #SBATCH --job-name=alphafold | + | #SBATCH --job-name=boltz2 |
| #SBATCH --output=af_output/ | #SBATCH --output=af_output/ | ||
| #SBATCH --error=af_output/ | #SBATCH --error=af_output/ | ||
| Linea 118: | Linea 101: | ||
| #SBATCH --cpus-per-task=8 | #SBATCH --cpus-per-task=8 | ||
| #SBATCH --time=0-02: | #SBATCH --time=0-02: | ||
| - | #SBATCH --mem=10G | + | #SBATCH --mem=40G |
| #SBATCH --partition=gpu | #SBATCH --partition=gpu | ||
| #SBATCH --qos=gpu | #SBATCH --qos=gpu | ||
| Linea 129: | Linea 112: | ||
| module load apptainer | module load apptainer | ||
| - | module load alphafold/ | + | module load boltz2 |
| - | + | ||
| - | test -n " | + | |
| - | + | ||
| - | set -x | + | |
| - | + | ||
| - | ALPHAFOLD_JSON_INPUT_FILE=' | + | |
| - | ALPHAFOLD_INPUT_DIR=" | + | |
| - | ALPHAFOLD_OUTPUT_DIR=" | + | |
| - | + | ||
| - | mkdir -p " | + | |
| - | + | ||
| - | apptainer exec \ | + | |
| - | --nv \ | + | |
| - | --bind " | + | |
| - | --bind " | + | |
| - | " | + | |
| - | python / | + | |
| - | --json_path="/ | + | |
| - | --model_dir=/ | + | |
| - | --db_dir=/ | + | |
| - | --db_dir=/ | + | |
| - | --output_dir=/ | + | |
| - | </ | + | |
| - | + | ||
| - | The processing result will be saved in the '' | + | |
| - | + | ||
| - | Scripts for specific NVIDIA GPU models to run '' | + | |
| - | + | ||
| - | ^ GPU ^ Path ^ | + | |
| - | | NVIDIA [[https:// | + | |
| - | | NVIDIA [[https:// | + | |
| - | | NVIDIA [[https:// | + | |
| - | | NVIDIA [[https:// | + | |
| - | + | ||
| - | === Documentation === | + | |
| - | + | ||
| - | How to get a list of all flags of '' | + | |
| - | + | ||
| - | <code bash> | + | |
| - | module load apptainer | + | |
| - | module load alphafold/ | + | |
| - | + | ||
| - | apptainer exec " | + | |
| - | </ | + | |
| - | + | ||
| - | List of all flags of '' | + | |
| - | + | ||
| - | < | + | |
| - | AlphaFold 3 structure prediction script. | + | |
| - | + | ||
| - | AlphaFold 3 source code is licensed under CC BY-NC-SA 4.0. To view a copy of | + | |
| - | this license, visit https:// | + | |
| - | + | ||
| - | To request access to the AlphaFold 3 model parameters, follow the process set | + | |
| - | out at https:// | + | |
| - | if received directly from Google. Use is subject to terms of use available at | + | |
| - | https:// | + | |
| - | + | ||
| - | flags: | + | |
| - | + | ||
| - | run_alphafold.py: | + | |
| - | --buckets: Strictly increasing order of token sizes for which to cache compilations. For any input with more tokens than the largest bucket size, a new | + | |
| - | bucket is created for exactly that number of tokens. | + | |
| - | (default: ' | + | |
| - | (a comma separated list) | + | |
| - | --conformer_max_iterations: | + | |
| - | (an integer) | + | |
| - | --db_dir: Path to the directory containing the databases. Can be specified multiple times to search multiple directories in order.; | + | |
| - | repeat this option to specify a list of values | + | |
| - | (default: " | + | |
| - | --flash_attention_implementation: | + | |
| - | implementation, | + | |
| - | ' | + | |
| - | (default: ' | + | |
| - | --gpu_device: | + | |
| - | to a specific GPU. | + | |
| - | (default: ' | + | |
| - | (an integer) | + | |
| - | --hmmalign_binary_path: | + | |
| - | (default: '/ | + | |
| - | --hmmbuild_binary_path: | + | |
| - | (default: '/ | + | |
| - | --hmmsearch_binary_path: | + | |
| - | (default: '/ | + | |
| - | --input_dir: | + | |
| - | --jackhmmer_binary_path: | + | |
| - | (default: '/ | + | |
| - | --jackhmmer_n_cpu: | + | |
| - | (default: ' | + | |
| - | (an integer) | + | |
| - | --jax_compilation_cache_dir: | + | |
| - | --json_path: | + | |
| - | --max_template_date: | + | |
| - | (default: ' | + | |
| - | --mgnify_database_path: | + | |
| - | (default: ' | + | |
| - | --model_dir: | + | |
| - | (default: '/ | + | |
| - | --nhmmer_binary_path: | + | |
| - | (default: '/ | + | |
| - | --nhmmer_n_cpu: | + | |
| - | (default: ' | + | |
| - | (an integer) | + | |
| - | --ntrna_database_path: | + | |
| - | (default: ' | + | |
| - | --num_diffusion_samples: | + | |
| - | (default: ' | + | |
| - | (a positive integer) | + | |
| - | --num_recycles: | + | |
| - | (default: ' | + | |
| - | (a positive integer) | + | |
| - | --num_seeds: | + | |
| - | seeds in sequence, starting from the single seed specified in the input JSON. The full input JSON produced by AlphaFold 3 will include the generated | + | |
| - | random seeds. If not set, AlphaFold 3 will use the seeds as provided in the input JSON. | + | |
| - | (a positive integer) | + | |
| - | --output_dir: | + | |
| - | --pdb_database_path: | + | |
| - | (default: ' | + | |
| - | --rfam_database_path: | + | |
| - | (default: ' | + | |
| - | --rna_central_database_path: | + | |
| - | (default: ' | + | |
| - | --[no]run_data_pipeline: | + | |
| - | (default: ' | + | |
| - | --[no]run_inference: | + | |
| - | (default: ' | + | |
| - | --[no]save_embeddings: | + | |
| - | (default: ' | + | |
| - | --seqres_database_path: | + | |
| - | (default: ' | + | |
| - | --small_bfd_database_path: | + | |
| - | (default: ' | + | |
| - | --uniprot_cluster_annot_database_path: | + | |
| - | (default: ' | + | |
| - | --uniref90_database_path: | + | |
| - | search. | + | |
| - | (default: ' | + | |
| - | absl.app: | + | export NGC_API_KEY=" |
| - | | + | export NIM_HTTP_API_PORT=$(hpc-find-free-tcp4-port 2>/ |
| - | | + | export TMPDIR=$HOME/ |
| - | | + | export APPTAINERENV_NGC_API_KEY=$NGC_API_KEY |
| - | (default: ' | + | export APPTAINERENV_LOCAL_NIM_CACHE=/ |
| - | | + | export APPTAINERENV_NIM_CACHE=/ |
| - | (default: ' | + | export APPTAINERENV_NIM_WORKSPACE=/ |
| - | --[no]helpxml: | + | export APPTAINERENV_NIM_HTTP_API_PORT=$NIM_HTTP_API_PORT |
| - | | + | |
| - | --[no]only_check_args: | + | |
| - | | + | |
| - | --[no]pdb: Alias for --pdb_post_mortem. | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | --profile_file: | + | |
| - | --[no]run_with_pdb: | + | |
| - | (default: ' | + | |
| - | --[no]run_with_profiling: | + | |
| - | (default: ' | + | |
| - | --[no]use_cprofile_for_profiling: | + | |
| - | (default: ' | + | |
| - | absl.logging: | + | mkdir -p $HOME/nim-cache/ |
| - | | + | |
| - | (default: ' | + | |
| - | --log_dir: directory to write logfiles into | + | |
| - | (default: '' | + | |
| - | --logger_levels: | + | |
| - | and `level` is a level name (INFO, DEBUG, etc). e.g. `myapp.foo: | + | |
| - | (default: '' | + | |
| - | --[no]logtostderr: | + | |
| - | (default: ' | + | |
| - | --[no]showprefixforinfo: | + | |
| - | is used. | + | |
| - | (default: ' | + | |
| - | --stderrthreshold: | + | |
| - | ' | + | |
| - | --verbosity and requires logfile not be stderr. | + | |
| - | (default: ' | + | |
| - | -v, | + | |
| - | supplied, the value will be changed from the default of -1 (warning) to 0 (info) after flags are parsed. | + | |
| - | (default: ' | + | |
| - | (an integer) | + | |
| - | absl.testing.absltest: | + | apptainer instance run \ |
| - | --test_random_seed: | + | --nv \ |
| - | seeding probabilistic tests. | + | --bind $HOME/ |
| - | (default: ' | + | --bind $HOME/ |
| - | (an integer) | + | --bind $HOME/ |
| - | --test_randomize_ordering_seed: If positive, use this as a seed to randomize the execution order for test cases. If " | + | |
| - | 0 or not set, do not randomize test case execution order. This flag also overrides the TEST_RANDOMIZE_ORDERING_SEED environment variable. | + | |
| - | (default: '' | + | |
| - | --test_srcdir: Root of directory tree where source files live | + | |
| - | (default: '' | + | |
| - | --test_tmpdir: | + | |
| - | (default: '/tmp/absl_testing' | + | |
| - | | + | |
| - | (default: '' | + | |
| - | chex._src.fake: | + | apptainer instance list |
| - | --[no]chex_assert_multiple_cpu_devices: | + | |
| - | (default: ' | + | |
| - | --chex_n_cpu_devices: | + | |
| - | (default: ' | + | |
| - | (an integer) | + | |
| - | chex._src.variants: | + | # Waiting for the boltz2 server to start |
| - | --[no]chex_skip_pmap_variant_if_single_device: Whether to skip pmap variant if only one device is available. | + | until curl -sSf http:// |
| - | | + | echo " |
| + | | ||
| + | done | ||
| + | echo " | ||
| - | absl.flags: | + | # Testing boltz2 |
| - | | + | module load miniconda3 |
| - | | + | source " |
| - | | + | conda activate boltz2-env |
| - | | + | python $HOME/ |
| - | (default: '' | + | |
| </ | </ | ||
calcoloscientifico/userguide/boltz2.1765991183.txt.gz · Ultima modifica: da federico.prost
