Skip to main content

Synformer: Generative Model for Synthesizable Molecule Generation

Project description

synformer

This repo contaisn the main code for SynFormer model. To run the model, you need to first download the list of building blocks. We only provide a 5k building block list for test purpose.

TO-DOs

  • Clean the repo and prepare for the release
  • Make a demo on Huggingface

Instruction

  1. Start (for development)
pip install -e .
  1. Preprocess data

Download building block data to data/building_blocks/ in sdf format .

python scripts/preprocess.py --model-config configs/dev_smiles_diffusion.yml
  1. Train the model
python scripts/train.py configs/dev_smiles_diffusion.yml --debug --devices 1
# python scripts/train_ed.py configs/dev_ed.yml --debug --devices 1
  1. Model inference

Work in progress

  1. Use for molecular optimization
python scripts/molopt.py \
    --model <decoder-only-model-checkpoint> \
    --use-replay-buffer \
    --use-prior \
    --oracle <domain>:<task>  # Example: "tdc:osimertinib_mpo"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

synformer-0.1.0.tar.gz (69.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

synformer-0.1.0-py3-none-any.whl (101.7 kB view details)

Uploaded Python 3

File details

Details for the file synformer-0.1.0.tar.gz.

File metadata

  • Download URL: synformer-0.1.0.tar.gz
  • Upload date:
  • Size: 69.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.10

File hashes

Hashes for synformer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1b69e3ba22fb89e84a08bda994370f3d06d5d4d2e68707a7647393ff58d528f1
MD5 8424a0f9355f5b3e0cfc1ebd166f6894
BLAKE2b-256 09219291e031517a10c9de3b654b407ac31200fa8591d006427c6b9016727c45

See more details on using hashes here.

File details

Details for the file synformer-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: synformer-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 101.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.10

File hashes

Hashes for synformer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 03a03686e679cf601396563efb5e1a71b351b5b4532eee08b00da24f5b0fc43a
MD5 c45b0d3d66368d9ae3191bd8a5d3e012
BLAKE2b-256 3845ff8fb4975f8c7c134f2c52286ebb7fb651e2539a105657e56de8dbd501c1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page