8000 GitHub - waitma/MatLLMSearch
[go: up one dir, main page]

Skip to content

waitma/MatLLMSearch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MatLLMSearch: Large Language Models Are Innate Crystal Structure Generators

This is the implementation for MatLLMSearch: Large Language Models Are Innate Crystal Structure Generators. This code implements an evolutionary search pipeline for crystal structure generation (CSG) and crystal structure prediction (CSP) with Large Language Models (LLMs) without fine-tuning.

Pipeline Overview

main_pipeline

How Pareto Frontiers are pushed during Iterations under Varied Optimization Objectives

pareto_evolution

Crystal Structure Prediction Examples

Ag6O2_csp_examples Bi2F8_csp_examples Co4B2_csp_examples
KZnF3_csp_examples Sr2O4_csp_examples YMg3_csp_examples

Prerequisites

Required Python Packages

install key packages in requirements.txt

conda create -n matllmsearch python=3.10
conda activate matllmsearch
conda install -c conda-forge mamba
mamba install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
pip install -r requirements.txt

External Dependencies

  1. Meta-Llama 3.1

  2. MatBench Dataset matbench_v0.1 matbench_expt_gap

    Download known stable structures with decomposition energy: Seed Structures

  3. mp_patched_phase_diagram: PatchedPhaseDiagram constructed from all MP pymatgen ComputedStructureEntries.

    Download oracle/resouorces/2023-02-07-ppd-mp.pkl.gz.

  4. CHGNet model

Usage

CSG

python main.py --task csg --opt_goal e_hull_distance --max_iter 10

CSP

For crystal structure prediction of Na3AlCl6:

python main.py --task csp --opt_goal e_hull_distance --max_iter 10

For crystal structure prediction of Ag6O2:

python main.py --task csp --opt_goal e_hull_distance --max_iter 10 --csp_compound "Ag6O2"

Citation

If you use MatLLMSearch, please cite our paper:

@article{gan2025matllmsearch,
  title={Large Language Models Are Innate Crystal Structure Generators},
  author={Gan, Jingru and Zhong, Peichen and Du, Yuanqi and Zhu, Yanqiao and 
          Duan, Chenru and Wang, Haorui and Gomes, Carla P. and Persson, Kristin and 
          Schwalbe-Koda, Daniel and Wang, Wei},
  journal={arXiv preprint arXiv:},
  year={2025}
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0