Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Successful environment #63

Open
hoon-ock opened this issue Jun 1, 2024 · 5 comments
Open

Successful environment #63

hoon-ock opened this issue Jun 1, 2024 · 5 comments

Comments

@hoon-ock
Copy link

hoon-ock commented Jun 1, 2024

This works for me.

name: cdvae
channels:
  - pytorch 
  - conda-forge
  - defaults
dependencies:
  - python=3.8
  - cudatoolkit=10.2.89
  - pip
  - numpy=1.24.4
  - pandas=2.0.3
  - matplotlib-base=3.7.3
  - seaborn=0.13.2
  - scikit-learn=1.3.2
  - scipy=1.10.1
  - pytorch-lightning=1.3.8
  - ruamel.yaml=0.16.6
  - matminer=0.7.3
  - pip:
      - -f https://data.pyg.org/whl/torch-1.9.0+cu102.html
      - torch==1.9.0
      - torch-scatter==2.0.7
      - torch-sparse==0.6.10
      - torch-cluster==1.5.9
      - torch-spline-conv==1.2.1
      - torch_geometric==2.5.3
      - higher==0.2.1
      - hydra-core==1.1.0
      - hydra-joblib-launcher==1.1.5
      - p-tqdm==1.3.3
      - pymatgen==2023.8.10
      - pytest==8.2.1
      - python-dotenv==1.0.1
      - smact==2.2.1
      - streamlit==0.79.0
      - torchmetrics==0.5.0
      - wandb==0.10.33
@GurjotDhaliwal
Copy link

AttributeError: module 'distutils' has no attribute 'version'

@mit-lbrey
Copy link

mit-lbrey commented Jul 5, 2024

@GurjotDhaliwal

AttributeError: module 'distutils' has no attribute 'version'

Try to downgrade setuptools==59.5.0

@mit-lbrey
Copy link

mit-lbrey commented Jul 5, 2024

This works for me with an RTX A5000

name: cdvae
channels:
  - pytorch
  - conda-forge
  - defaults
dependencies:
  - python=3.8
  - cudatoolkit=11.1
  - pip
  - numpy=1.24.4
  - pandas=2.0.3
  - matplotlib-base=3.7.3
  - seaborn=0.13.2
  - scikit-learn=1.3.2
  - scipy=1.10.1
  - pytorch-lightning=1.3.8
  - ruamel.yaml=0.16.6
  - matminer=0.7.3
  - pip:
      - -f https://data.pyg.org/whl/torch-1.9.0%2Bcu111.html
      - torch==1.9.0
      - torch-scatter==2.0.7
      - torch-sparse==0.6.10
      - torch-cluster==1.5.9
      - torch-spline-conv==1.2.1
      - torch_geometric==2.5.3
      - higher==0.2.1
      - hydra-core==1.1.0
      - hydra-joblib-launcher==1.1.5
      - p-tqdm==1.3.3
      - pymatgen==2023.8.10
      - pytest==8.2.1
      - python-dotenv==1.0.1
      - smact==2.2.1
      - streamlit==0.79.0
      - torchmetrics==0.5.0
      - wandb==0.10.33

then

pip install setuptools==59.5.0
pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html

export LD_LIBRARY_PATH="<path_to_your_miniconda_env>/lib:$LD_LIBRARY_PATH"

@lixc21
Copy link

lixc21 commented Jul 12, 2024

This works for me in July 2024. (Ubuntu 22.04, RTX 4090, cuda 12.5)

0.1 install conda 2024.06
0.2 install nvidia driver: nvidia-driver-545
0.3 install cuda: cuda_12.5.1_555.42.06

  1. conda env create -f env.yml
  2. pip uninstall torchmetrics==0.9.0.dev0
  3. pip install torchmetrics==0.5
  4. pip install -e .
  5. pip install --upgrade pymatgen
  6. pip uninstall monty
  7. pip install monty
  8. python cdvae/run.py data=perov expname=perov

@TPD100706
Copy link

pip install setuptools==59.5.0

Hello, I have the same problem, can you please solve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants