Spaces:
Running
on
Zero
Running
on
Zero
A newer version of the Gradio SDK is available:
5.49.1
ether0.remotes
Server code for ether0 reward functions.
Molecular Transformer (MolTrans) Model
To run the /translate endpoint, you need a pre-trained MolTrans PyTorch model.
This can be acquired from Future House's Google Drive via the following command:
curl --location --output src/ether0/USPTO480k_model_step_400000.pt \
"https://drive.usercontent.google.com/download?id=1Rjd3wXg2oLeCpNUofFRvVvQoOcgWd6vf&export=download&confirm=t"
Or more manually:
- Go to this notebook
- Download the
USPTO480k_model_step_400000.ptlinked in thetrained_model_urlvariable's linked Google Drive file: https://drive.google.com/uc?id=1ywJCJHunoPTB5wr6KdZ8aLv7tMFMBHNy - Set the environment variable
ETHER0_REMOTES_MOLTRANS_MODEL_PATHto the downloaded PyTorch model's location, or place the model in the default checkedether0source code folder (src/ether0).
Serving
To run the server:
pip installwith theserveextra:pip install ether0.remotes[serve]- Then run the following command:
ETHER0_REMOTES_API_TOKEN="abc123" \
ETHER0_REMOTES_MOLTRANS_MODEL_PATH="/path/to/USPTO480k_model_step_400000.pt" \
ether0-serve