You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* create pyproject.toml from setup and requirements
* exclude python >3.10
* update readme
* pin specific jax version
* add python 3.9 * 3.10 variant to datagen extra
* pin torch versions for datagen extra (for compatibility reasons with JAX)
The minimum required packages to train and run the baseline ML models are listed in [requirements.txt](./requirements.txt).
40
+
From PyPI:
41
+
```bash
42
+
pip install pdebench
43
+
```
44
+
45
+
To include dependencies for data generation:
46
+
```bash
47
+
pip install "pdebench[datagen310]"
48
+
pip install ".[datagen310]"# locally
49
+
```
50
+
or
51
+
```bash
52
+
pip install "pdebench[datagen39]"
53
+
pip install ".[datagen39]"# locally
54
+
```
45
55
46
-
To run the data generation scripts, the complete package requirements are listed in [requirements_datagen.txt](./requirements_datagen.txt)
56
+
### GPU Support
47
57
48
58
For GPU support there are additional platform-specific instructions:
49
59
50
60
For PyTorch, [see here](https://pytorch.org/get-started/locally/).
51
61
52
62
For JAX, which is approximately 6 times faster for simulations than PyTorch in our tests, [see here](https://github.com/google/jax#installation)
53
63
54
-
### Using conda:
64
+
65
+
## Installation using conda:
55
66
56
67
If you like you can also install dependencies using anaconda. We suggest using [miniforge](https://github.com/conda-forge/miniforge) (and possibly mamba) as distribution. Otherwise you may have to __enable the conda-forge__ channel for the following commands.
57
68
@@ -79,11 +90,6 @@ Optional dependencies for data generation:
79
90
conda install clawpack jax jaxlib python-dotenv
80
91
```
81
92
82
-
Optional dependencies for data downloading:
83
-
```
84
-
pip install pyDarus~=1.0.5
85
-
```
86
-
87
93
## Configuring DeepXDE
88
94
In our tests we used PyTorch as backend for DeepXDE. Please [follow the documentation](https://deepxde.readthedocs.io/en/latest/user/installation.html#working-with-different-backends) to enable this.
0 commit comments