invDesMobility contains the generation, screening, acquisition-ranking and
feedback data-preparation workflow used by the InvDesMobility closed-loop
materials-discovery campaign. It is not only a DiffCSP generator repository. The
workflow prepares seed and feedback datasets, fine-tunes the structure
generator, generates candidate structures, deduplicates generated and reference
pools, applies electronic, formation-energy and dynamical-stability screens,
ranks surviving candidates with an ALIGNN mobility acquisition model and exports
top-k validation queues for first-principles mobility calculations.
First-principles mobility labels are assigned by the companion VASP-based
runtime 2d-mobility. This repository owns the code and lightweight metadata
for generation, screening, ranking and feedback preparation; processed source
data, trained checkpoints and large generated pools are released through
external data/model archives. It does not distribute VASP inputs,
pseudopotentials or completed first-principles calculation folders.
00_project/: shared path helpers and high-level pipeline notes.01_code/: local source checkouts and adapters used by the workflow, including DiffCSP, ALIGNN and PhononBench-related code.02_envs/: conda environment files and installation helpers.03_datasets/04_metadata/: small public metadata files.04_models/: model configuration JSON files only; weights are excluded.05_steps/: step-level scripts for dataset construction, generator fine-tuning, structure generation, filtering, mobility ranking and feedback.06_runs/and07_logs/: placeholders for local run outputs and logs.tests/: lightweight tests for closed-loop feedback helpers.
The public repository is intentionally small. Large generated pools, training datasets, checkpoints, run directories and raw VASP results should be stored in an external data/model archive.
This public GitHub repository contains workflow code, environment files, step-level scripts, tests and lightweight metadata. The data and model artifacts needed to reproduce the manuscript-level workflow are distributed separately:
- Processed source data and retained feedback records: Zenodo DOI
10.5281/zenodo.20475023. - Companion Hugging Face dataset:
https://huggingface.co/datasets/DreamLufei/invDesMobility-data. - DiffCSP generator checkpoints:
https://huggingface.co/DreamLufei/invDesMobility-diffcsp-generator. - ALIGNN mobility acquisition-ranker checkpoints:
https://huggingface.co/DreamLufei/invDesMobility-alignn-mobility-ranker. - ALIGNN band-gap / nonmetal-screening checkpoints:
https://huggingface.co/DreamLufei/invDesMobility-alignn-bandgap-nonmetal. - MEGNet formation-energy screening checkpoints:
https://huggingface.co/DreamLufei/invDesMobility-megnet-formation-energy. - First-principles mobility runtime:
https://github.com/DreamLufei/2d-mobility. - Closed-loop orchestration bridge:
https://github.com/DreamLufei/invdesmobility_loop. - Companion evidence website:
https://dreamlufei.github.io/invDesMobility/.
The Zenodo and Hugging Face data releases include manuscript source tables and audit records such as seed mobility channels, generated-candidate validation records, ALIGNN validation tables, round-wise feedback accounting, retrospective policy-replay source tables, manifests and checksums. The model repositories provide released checkpoints and model cards for the generator and surrogate screening/ranking models. Large raw VASP working directories, POTCAR files, OUTCAR, CHGCAR, WAVECAR and local credentials are not redistributed.
The full workflow uses several separate scientific Python environments because generation, screening, ranking and feedback preparation rely on different model families:
- DiffCSP generation and fine-tuning.
- ALIGNN bandgap/nonmetal and mobility ranking.
- MEGNet formation-energy screening.
- PhononBench/MatterSim stability screening.
Install helpers are provided in 02_envs/. They assume conda or mamba is
available and may need small edits for the CUDA/PyTorch versions on a new
cluster.
git clone https://github.com/DreamLufei/invDesMobility.git
cd invDesMobility
source 00_project/paths.sh
bash 02_envs/install_diffcsp_gen.sh
bash 02_envs/install_alignn_screen.sh
bash 02_envs/install_megnet_form.shInstall the PhononBench/MatterSim environment only if you plan to run the stability-screening step:
bash 02_envs/install_phononbench_mattersim.shThe repository uses 00_project/paths.sh and 00_project/paths.py as central
path definitions. By default, INVDES_ROOT resolves to the current repository
root when those helpers are loaded from this checkout.
For custom layouts:
export INVDES_ROOT=/path/to/invDesMobility
source 00_project/paths.shLarge inputs expected by the scripts include:
03_datasets/01_source_cif/
03_datasets/02_diffcsp_dataset/
03_datasets/03_alignn_mobility_dataset/
04_models/01_diffcsp_generator/
04_models/02_alignn_bandgap_nonmetal/
04_models/03_megnet_formation_energy/
04_models/04_alignn_mobility/
These directories are not populated in the public code repository.
The orchestrated route is:
- Build or update the seed/feedback dataset.
- Fine-tune the DiffCSP generator.
- Generate a candidate structure pool.
- Deduplicate generated structures and remove known reference structures.
- Filter by target structure constraints.
- Apply electronic and stability screening.
- Rank surviving candidates with the ALIGNN mobility acquisition model.
- Export a top-k validation queue for first-principles mobility calculations.
A small smoke-style run can be launched with:
source 00_project/paths.sh
STAGE1_RUN_ID=demo_stage1_generate_1000 \
PIPELINE_RUN_ID=demo_full_pipeline \
TOTAL_SAMPLES=1000 \
RUN_FINETUNE=0 \
bash 05_steps/08_orchestration/run_full_pipeline.shFull campaigns increase TOTAL_SAMPLES and use trained generator/model
artifacts supplied outside this repository.
The feedback scripts in 05_steps/09_closed_loop_feedback/ extract trusted
first-principles validation results, build feedback-augmented DiffCSP and
ALIGNN datasets and prepare the next generation round.
Typical entry point:
bash 05_steps/09_closed_loop_feedback/run_closed_loop_round.shThe companion invdesmobility_loop repository provides a higher-level
orchestration bridge for running these steps together with downstream
2d-mobility batches.
python -m pytest -q testsThe tests cover the lightweight feedback and orchestration helpers. Full generation, screening and ranking runs require the external scientific environments and model/data artifacts described above.
This repository intentionally excludes large or licensed artifacts:
- trained DiffCSP generator checkpoints;
- trained ALIGNN and MEGNet screening/ranking weights;
- generated
10^5to5*10^5candidate pools; - full
06_runs/,07_logs/and archival run folders; - VASP
POTCARfiles and raw VASP calculation directories; - large OUTCAR, CHGCAR and WAVECAR files;
- private environment files, API keys, local paths or machine-specific secrets.
Processed source-data tables, retained feedback records, audit manifests and
released model checkpoints are distributed through the Zenodo and Hugging Face
artifacts listed above. See REPRODUCIBILITY.md for an additional checklist.
This repository is released under the MIT License. See LICENSE.