tgm dlm
1.0.0

这是AAAI 2024论文的代码:具有扩散语言模型的文本引导分子生成。
cd TGMDLMCODE; pip install -e improved-diffusion/; pip install -e transformers/ 。scibert中。cd improved-diffusion; cd scriptspython process_text.py -i train_val_256; python process_text.py -i testpython train.pypython train_correct_withmask.py以下细节对于您实际训练此模型之前就重要了!
python text_sample.py; python post_sample.py最终文件OURMODEL_OUTPUT.txt是我们的输出。您可以通过运行ev.py来评估除text2mol以外的所有指标。有关Text2mol,请转到Molt5以获取更多详细信息。
如果您使用代码,请引用我们的论文:
@article{gong2024text,
title={Text-Guided Molecule Generation with Diffusion Language Model},
author={Gong, Haisong and Liu, Qiang and Wu, Shu and Wang, Liang},
volume={38},
url={https://ojs.aaai.org/index.php/AAAI/article/view/27761},
DOI={10.1609/aaai.v38i1.27761},
number={1},
journal={Proceedings of the AAAI Conference on Artificial Intelligence},
year={2024},
month={Mar.},
pages={109-117}
}
此代码基于https://github.com/xiangli1999/diffusion-lm和https://github.com/blender-nlp/molt5