一键导入
ai4science-material-science
Applies to material science and chemistry ML recipes under material_science/models/ in AI4Science Studio.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Applies to material science and chemistry ML recipes under material_science/models/ in AI4Science Studio.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Applies to Earth-system ML in AI4Science Studio—climate, weather, geospatial data, and model folders under earth_science/models/. Includes validated AMD/ROCm HPC patterns for earth science models.
Runs the AMD AI agents bottleneck-analysis workflow on a HydraGNN or ORBIT-2 training job using TraceLens + Omnistat user-mode + paired analyst/verifier subagents, or drives the iterative perf-optimizer-loop (accept/revert on throughput or epoch time). Use when the user wants to analyze a perf run, analyze a 2-node HydraGNN run, find bottlenecks with TraceLens/Omnistat, run the AMD AI agents on a job, run the perf-optimizer-loop, tune ORBIT-2 throughput, or optimize HydraGNN training performance.
Applies when working in the AI4Science Studio repository. Describes domain layout, model slug rules, where recipes live, safety expectations, and AMD/ROCm HPC patterns (Apptainer and Docker) validated in practice.
Step-by-step instructions for how Cursor should run any model in AI4Science Studio — read model.yaml, check preflight, select container runtime, launch.
Applies to healthcare and life sciences ML recipes under healthcare/models/ in AI4Science Studio, with privacy and non-clinical-use guardrails.
How to answer user questions about what models are available, filter by domain/task/license, and compare models in AI4Science Studio.
| name | ai4science-material-science |
| description | Applies to material science and chemistry ML recipes under material_science/models/ in AI4Science Studio. |
The material_science/ domain covers materials, chemistry, and related ML: property prediction, generative models, surrogates for DFT or MD-scale workflows when exposed as Hugging Face models, and similar tasks.
material_science/models/<model-slug>/material_science/models/README.md (default org__model; public on-disk names such as HydraGNN are allowed when the model README.md states the canonical Hub id)_template/ (repo root)material_science/models/HydraGNN/ — atomistic graph foundation models (HydraGNN), Hub id mlupopa/HydraGNN_Predictive_GFM_2024data-access.md-style runbooks for ADIOS or similar scientific I/O when models use them.HydraGNN uses MPI-based distributed training with ADIOS datasets. Key patterns for AMD clusters:
srun --mpi=pmix apptainer exec --rocm --overlay <overlay>:ro $SIF bash <rank_script>. The --mpi=pmix is required because mpi4py calls MPI_Init inside the container.--multi --multi_model_list=<datasets> without --ddstore. Each rank opens ADIOS files directly via AdiosMultiDataset. Simpler and sufficient for moderate scales (1-8 nodes).--ddstore flag plus env vars HYDRAGNN_AGGR_BACKEND=mpi, HYDRAGNN_DDSTORE_METHOD=1, HYDRAGNN_CUSTOM_DATALOADER=1. Required for large-scale (32+ nodes) where per-rank ADIOS I/O becomes a bottleneck../dataset/<name>-v2.bp relative to the training script. Symlink from shared storage rather than copying.gfm_mlip.json is hardware-agnostic and works on any cluster. Use CLI flags (--batch_size, --num_epoch, --precision) to override parameters at runtime without modifying the file.OMP_NUM_THREADS to match --cpus-per-task, MIOPEN_DISABLE_CACHE=1, MIOPEN_USER_DB_PATH=$SCRATCH_LOCAL/<jobid>/miopen (node-local fast storage from .cluster-config.yaml), HYDRAGNN_USE_VARIABLE_GRAPH_SIZE=1./31 subnets that don't route between nodes — IB verbs cannot work for MPI. Use OMPI_MCA_pml=ob1, OMPI_MCA_btl=tcp,self, OMPI_MCA_btl_tcp_if_include=$MGMT_NIC, MPI4PY_RC_THREADS=false. RCCL uses ANP plugin (librccl-anp.so) over ionic native transport (RoCEv2/GDRDMA) for GPU allreduce, independent of MPI. The ANP plugin and libionic.so.1 must be bind-mounted from the host into the container.HYDRAGNN_VALTEST=1 to get epoch-level loss reporting. Parse with examples/parse_convergence.py --log <slurm_output>.examples/run_scaling_study.sh (identical env, HYDRAGNN_VALTEST=0, 6 epochs). Collate steady-state throughput (epochs 2–5) with examples/collate_scaling_study.py. Results table and methodology in recipes/train/README.md §6. sbatch_train_amd.sh defaults TORCH_NCCL_HIGH_PRIORITY=1 and GPU_MAX_HW_QUEUES=2.GFM 2024 checkpoints use an older model architecture (branch Predictive_GFM_2024) that is structurally incompatible with the training-pinned SHA. The inference script auto-clones the correct branch and uses sys.path.insert(0, ...) to load matching code. Key points:
heads_NN.0.0.weight vs heads_NN.0.energy.0.weight).model_type; new code expects mpnn_type. Old output_heads is a flat dict; new expects list-of-dicts.HG_INFER_REPO or let run_inference.sh clone Predictive_GFM_2024 to $HG_OUTPUT_DIR/HydraGNN-infer on first run.README.md.