Downloads · 30 days
0
zhilong777/csllm
csllm is a machine learning model from zhilong777. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
CSLLM (Crystal Structure Large Language Model) is a specialized framework of fine-tuned large language models designed for crystal structure synthesizability prediction. The CSLLM framework consists of three specializ…
Downloads · 30 days
0
Access
Public
Updated Sep 2, 2025
Repo size
30.2 GB
Likes
1
Public
Click a slice to open those files.
.safetensors16.2 GB · 53%
From the Hugging Face model README
CSLLM (Crystal Structure Large Language Model) is a specialized framework of fine-tuned large language models designed for crystal structure synthesizability prediction. The CSLLM framework consists of three specialized LLMs that can predict the synthesizability of arbitrary 3D crystal structures, identify possible synthetic methods, and recommend suitable precursors.
The CSLLM family includes several specialized variants:
method_llm_llama3: Specialized for crystal synthesis method predictionprecursor_llm_llama3: Focused on precursor identification and selection for crystal synthesissynthesis_llm_llama: Synthesizability prediction for crystals using LLaMA-7Bsynthesis_llm_llama3: Synthesizability prediction for crystals using LLaMA3-8BFirst, clone and install the LMFlow library:
git clone https://github.com/OptimalScale/LMFlow
cd LMFlow
pip install -e .
Create a run_evaluation.sh script in the LMFlow main directory:
#!/bin/bash
CUDA_VISIBLE_DEVICES=0 \
deepspeed examples/evaluate.py \
--answer_type math \
--model_name_or_path {model_name_or_path} \
--lora_model_path {lora_model_path} \
--dataset_path {dataset_path} \
--prompt_structure "input: {input}" \
--deepspeed examples/ds_config.json \
--metric accuracy
model_name_or_path)llama-7b-hf: LLaMA 7B base modelllama3-8bf-hf: LLaMA3 8B base modellora_model_path)method_llm_llama3: Crystal synthesis method predictionprecursor_llm_llama3: Precursor recommendationsynthesis_llm_llama: Synthesizability prediction (LLaMA-7B based)synthesis_llm_llama3: Synthesizability prediction (LLaMA3-8B based)Example test data is provided in the repository at: https://github.com/szl666/CSLLM/tree/main/data
CSLLM models were trained on curated datasets including:
The models demonstrate strong performance across various crystallographic tasks:
If you use CSLLM in your research, please cite the article:
@article{song2025accurate,
title={Accurate prediction of synthesizability and precursors of 3D crystal structures via large language models},
author={Song, Z and Lu, S and Ju, M and others},
journal={Nature Communications},
volume={16},
number={1},
pages={6530},
year={2025}
}