EDT-Former aligns molecular graphs with a frozen LLM backbone (Llama-3.1-8B-Instruct) via an entropy-guided dynamic token connector. Key properties:
This Stage 2 checkpoint (~16 GB) is the final instruction-tuned model ready for downstream molecular QA tasks.
1# 1. Clone the repo and set up the environment
2git clone https://github.com/selmiss/DQ-Former.git
3cd DQ-Former
4conda env create -f environment.yml
5conda activate edtformer
6
7# 2. Configure paths in local.env.sh
8cp env.sh local.env.sh
9# Edit local.env.sh: set BASE_DIR, DATA_DIR, CHECKPOINT_DIR
10source local.env.sh
11
12# 3. Download the model
13from huggingface_hub import snapshot_download
14snapshot_download("zihaojing/EDT-Former-model", local_dir="checkpoints/edt_former_s2_large/final_model")
15
16# 4. Run inference (example: forward reaction prediction)
17bash scripts/qa/mol_forward.sh
1@inproceedings{jing2026edtformer,
2 title={Entropy-Guided Dynamic Tokens for Graph-LLM Alignment in Molecular Understanding},
3 author={Jing, Zihao and Zeng, Qiuhao and Fang, Ruiyi and Sun, Yan and Wang, Boyu and Hu, Pingzhao},
4 booktitle={International Conference on Learning Representations (ICLR)},
5 year={2026}
6}