Add remark on procedurally generated data
Browse files
README.md
CHANGED
|
@@ -1,71 +1,73 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: mit
|
| 3 |
-
---
|
| 4 |
-
|
| 5 |
-
# APEBench Scraped
|
| 6 |
-
|
| 7 |
-
A representative subset of datasets created using the [APEBench benchmark suite](https://github.com/tum-pbs/apebench) using version `0.1.0`
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
```
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
``
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
``
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
``
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
import
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
|
|
|
|
|
|
| 71 |
- GPU: RTX 3060
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
# APEBench Scraped
|
| 6 |
+
|
| 7 |
+
A representative subset of datasets created using the [APEBench benchmark suite](https://github.com/tum-pbs/apebench) using version `0.1.0`.
|
| 8 |
+
|
| 9 |
+
⚠️ Note that [APEBench](https://github.com/tum-pbs/apebench) is designed to procedurally generate all its training and test data. This allows for advanced features like benchmarking approaches with differentiable physics. Hence, there is no need to download this dataset as it can be easily re-generated using APEBench which can be installed via `pip install apebench`. See also [here](https://tum-pbs.github.io/apebench/examples/scrape_datasets/) for how to scrape datasets.
|
| 10 |
+
|
| 11 |
+
## Download
|
| 12 |
+
|
| 13 |
+
Download without large files
|
| 14 |
+
|
| 15 |
+
```bash
|
| 16 |
+
GIT_LFS_SKIP_SMUDGE=1 git clone git@hf.co:datasets/thuerey-group/apebench-scraped
|
| 17 |
+
```
|
| 18 |
+
|
| 19 |
+
Afterwards, you can inspect the repository and download the files you need. For
|
| 20 |
+
example, for `1d_diff_adv`:
|
| 21 |
+
|
| 22 |
+
```bash
|
| 23 |
+
git lfs install
|
| 24 |
+
git lfs pull -I "data/1d_diff_adv*"
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
Alternatively, you can download the entire repository with large files (~30GB):
|
| 28 |
+
|
| 29 |
+
```bash
|
| 30 |
+
git lfs install
|
| 31 |
+
git clone git@hf.co:datasets/thuerey-group/apebench-scraped
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
## Reproduction
|
| 35 |
+
|
| 36 |
+
Obtained via:
|
| 37 |
+
|
| 38 |
+
```bash
|
| 39 |
+
conda create -n apebench python=3.12 -y
|
| 40 |
+
conda activate apebench
|
| 41 |
+
pip install -U "jax[cuda12]"
|
| 42 |
+
pip install apebench==0.1.0
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
Alternatively, you can use the provided `environment.yml` file:
|
| 46 |
+
|
| 47 |
+
```bash
|
| 48 |
+
conda env create -f environment.yml
|
| 49 |
+
conda activate apebench
|
| 50 |
+
```
|
| 51 |
+
|
| 52 |
+
And then executed the following script (also found under `reproduce.py`):
|
| 53 |
+
|
| 54 |
+
```python
|
| 55 |
+
import apebench
|
| 56 |
+
from tqdm import tqdm
|
| 57 |
+
import os
|
| 58 |
+
|
| 59 |
+
DATA_PATH = "data"
|
| 60 |
+
|
| 61 |
+
os.makedirs(DATA_PATH, exist_ok=True)
|
| 62 |
+
|
| 63 |
+
for config in tqdm(apebench.scraper.CURATION_APEBENCH_V1):
|
| 64 |
+
apebench.scraper.scrape_data_and_metadata(DATA_PATH, **config)
|
| 65 |
+
```
|
| 66 |
+
|
| 67 |
+
⚠️ Small️️er variations of the generated data can occur due to different JAX
|
| 68 |
+
versions, backends (CPU, GPU, TPU), drivers, etc. This might be especially
|
| 69 |
+
pronounced for the chaotic problems (like KS or Kolmogorov flow).
|
| 70 |
+
|
| 71 |
+
- nvidia driver version: 535.183.01
|
| 72 |
+
- cuda version: 12.2
|
| 73 |
- GPU: RTX 3060
|