tgm dlm
1.0.0

Dies ist der Code für das AAAI 2024-Papier: textgesteuerte Moleküle-Erzeugung mit Diffusionsprachenmodell.
cd TGMDLMCODE; pip install -e improved-diffusion/; pip install -e transformers/ .scibert ein.cd improved-diffusion; cd scriptspython process_text.py -i train_val_256; python process_text.py -i testpython train.pypython train_correct_withmask.pyDie folgenden Details sind wichtig, damit Sie dieses Modell tatsächlich selbst trainieren!
python text_sample.py; python post_sample.py Die endgültige Datei OURMODEL_OUTPUT.txt ist unsere Ausgabe. Sie können alle Metriken mit Ausnahme von text2Mol bewerten, indem Sie ev.py betreiben. Für text2Mol finden Sie weitere Informationen zu Molt5.
Bitte zitieren Sie unser Papier, wenn Sie den Code verwenden:
@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}
}
Dieser Code basiert auf https://github.com/xiangli1999/diffusion-lm und https://github.com/blender-nlp/molt5