Skip to content

ml-postech/gflownet-composition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Routing by Reaching: Composition of Pre-trained GFlowNets for Multi-Objective Generation

Code for Routing by Reaching: Composition of Pre-trained GFlowNets for Multi-Objective Generation.

Two independent codebases:

  • mols/ — fragment/atom-based GFN (SEH, QM9), built on upstream gflownet @ v0.2.0
  • grid/ — synthetic HyperGrid, built on torchgfn 2.4.1

Neither installs as a package; run scripts from inside each folder so the local source is picked up via the current working directory.

Setup

  • mols
conda create -n mol python=3.10 -y && conda activate mol
pip install torch==2.1.2
PYG_LINKS=https://data.pyg.org/whl/torch-2.1.2+cu121.html

git clone https://github.com/recursionpharma/gflownet.git ~/.cache/gflownet_v0.2.0
cd ~/.cache/gflownet_v0.2.0 && git checkout v0.2.0
pip install -r requirements/main-3.10.txt --find-links $PYG_LINKS
pip install -e . --find-links $PYG_LINKS

pip install botorch rdkit
  • grid
conda create -n grid_final python=3.10 -y && conda activate grid_final
pip install torch==2.1.2 torchgfn==2.4.1

Usage

See mols/scripts/ and grid/scripts/ for the train/eval entry points.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors