Skip to content

Commit

Permalink
Preeliminar env setup
Browse files Browse the repository at this point in the history
  • Loading branch information
gbg141 committed May 20, 2024
1 parent ac85988 commit 2351fb7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
2 changes: 1 addition & 1 deletion configs/train.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# order of defaults determines the order in which configs override each other
defaults:
- _self_
- dataset: ZINC # us_country_demos
- dataset: MUTAG # us_country_demos
- model: cell/can #hypergraph/unignn2 #allsettransformer
- evaluator: default
- callbacks: default
Expand Down
21 changes: 11 additions & 10 deletions env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@
pip install --upgrade pip
pip install -e '.[all]'

pip install git+https://github.com/pyt-team/TopoNetX.git
pip install git+https://github.com/pyt-team/TopoModelX.git
pip install git+https://github.com/pyt-team/TopoEmbedX.git

CUDA="cu121" # if available, select the CUDA version suitable for your system
# e.g. cpu, cu102, cu111, cu113, cu115
pip install fsspec==2024.5.0
pip install torch==2.0.1 --extra-index-url https://download.pytorch.org/whl/${CUDA}
pip install torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.0.1+${CUDA}.html
pip install torch-cluster -f https://data.pyg.org/whl/torch-2.0.0+${CUDA}.html
pip install --no-dependencies git+https://github.com/pyt-team/TopoNetX.git
pip install --no-dependencies git+https://github.com/pyt-team/TopoModelX.git
pip install --no-dependencies git+https://github.com/pyt-team/TopoEmbedX.git

# Note that not all combinations of torch and CUDA are available
# See https://github.com/pyg-team/pyg-lib to check the configuration that works for you
TORCH="2.3.0" # available options: 1.12.0, 1.13.0, 2.0.0, 2.1.0, 2.2.0, or 2.3.0
CUDA="cu121" # if available, select the CUDA version suitable for your system
# available options: cpu, cu102, cu113, cu116, cu117, cu118, or cu121
pip install torch==${TORCH} --extra-index-url https://download.pytorch.org/whl/${CUDA}
pip install lightning torch_geometric==2.4.0
pip install pyg-lib torch-scatter torch-sparse torch-cluster -f https://data.pyg.org/whl/torch-${TORCH}+${CUDA}.html
pytest

pre-commit install
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,15 @@ dependencies=[
"networkx",
"pandas",
"gudhi",
"pyg-nightly",
"decorator",
"hypernetx < 2.0.0",
"trimesh",
"spharapy",
"hydra-core==1.3.2",
"hydra-colorlog==1.2.0",
"hydra-optuna-sweeper==1.2.0",
"lightning==2.2.1",
"einops==0.7.0",
"wandb==0.16.4",
"einops==0.7.0",
"tabulate",
"ipykernel",
"notebook",
Expand Down

0 comments on commit 2351fb7

Please sign in to comment.