NREL / alfabet

Machine learning predictions of bond dissociation energy
https://ml.nrel.gov/bde/
Other
56 stars 15 forks source link

Please update install info, can't replicate a working version #15

Open DocMinus opened 1 year ago

DocMinus commented 1 year ago

The installation info could be better. I didn't get it to run at all as described using pip install, because then upon import it complains that tensorflow is missing. If I use the setup.py instead, then the scikit module complains about min. py3.8. Finally, after all that (and a lot of wasted time), the tests_model.py fails due to uncompiled tensorflow model:

2023-01-04 15:48:50.354177: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: SSE4.1 SSE4.2 AVX AVX2 FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-01-04 15:48:52.097245: I tensorflow/core/platform/cpu_feature_guard.cc:193] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: SSE4.1 SSE4.2 AVX AVX2 FMA To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags. 2023-01-04 15:48:52.744007: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1616] Created device /job:localhost/replica:0/task:0/device:GPU:0 with 3849 MB memory: -> device: 0, name: NVIDIA GeForce GTX 1080 Ti, pci bus id: 0000:82:00.0, compute capability: 6.1 WARNING:tensorflow:No training configuration found in save file, so the model was not compiled. Compile it manually.

GattiMh commented 1 year ago

How did you complete the installation at the end?

DocMinus commented 1 year ago

How did you complete the installation at the end?

I didn't, that's why I wrote here. But by now, I am sorry to say, I have put this on ice.

GattiMh commented 1 year ago

How did you complete the installation at the end?

I didn't, that's why I wrote here. But by now, I am sorry to say, I have put this on ice.

I couldn't install it on an M1 mac but on a linux no problem. Hope that helps

totocotonio1 commented 1 year ago

it does not install

DocMinus commented 5 months ago

I managed a version which runs under Linux, unfortunately not with GPU (some library errors), but it works with CPU at least (tested on two entirely different machines) and works at least for regular py files (jupyter not included). create a "environment.yml" file (text to paste in the end of this post) in the alfabet folder, then run

conda env create -f environment.yml

if you want to test to see if it works at all without the jupyter stuff, here is a tiny script:

from alfabet import model

mm = model.predict(['CC', 'NCCO', "C1=CC=C(C=C1)[N+](=O)[O-]", 'CC(=O)O'])
mm.rename(columns={"bde_pred": "bde_pred(ML)", "bde": "bde(dft)"}, inplace=True)
mm.drop(columns=["bdfe_pred", "bdfe"], inplace=True)
print(mm)

in the file, paste this:

name: alfabetpy3.7 channels:

zacbcaz commented 3 months ago

For folks still waiting for a working version, it appears that the original authors have created some new/updated models while neglecting this version (including their web-based version). The paper providing updates and a link to a new repository is below. While not as easy as a pip install, I was able to get a working version going by downloading their code/models directly, following their example as provided.

https://doi.org/10.1039/D3DD00169E

https://github.com/patonlab/BDE-db2

DocMinus commented 3 months ago

For folks still waiting for a working version, it appears that the original authors have created some new/updated models while neglecting this version (including their web-based version). The paper providing updates and a link to a new repository is below. While not as easy as a pip install, I was able to get a working version going by downloading their code/models directly, following their example as provided.

https://doi.org/10.1039/D3DD00169E

https://github.com/patonlab/BDE-db2

Thanks!