ceyron commited on
Commit
a1f3d3b
·
verified ·
1 Parent(s): af5439e

Add remark on procedurally generated data

Browse files
Files changed (1) hide show
  1. README.md +72 -70
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
- ## Download
10
-
11
- Download without large files
12
-
13
- ```bash
14
- GIT_LFS_SKIP_SMUDGE=1 git clone git@hf.co:datasets/thuerey-group/apebench-scraped
15
- ```
16
-
17
- Afterwards, you can inspect the repository and download the files you need. For
18
- example, for `1d_diff_adv`:
19
-
20
- ```bash
21
- git lfs install
22
- git lfs pull -I "data/1d_diff_adv*"
23
- ```
24
-
25
- Alternatively, you can download the entire repository with large files (~30GB):
26
-
27
- ```bash
28
- git lfs install
29
- git clone git@hf.co:datasets/thuerey-group/apebench-scraped
30
- ```
31
-
32
- ## Reproduction
33
-
34
- Obtained via:
35
-
36
- ```bash
37
- conda create -n apebench python=3.12 -y
38
- conda activate apebench
39
- pip install -U "jax[cuda12]"
40
- pip install apebench==0.1.0
41
- ```
42
-
43
- Alternatively, you can use the provided `environment.yml` file:
44
-
45
- ```bash
46
- conda env create -f environment.yml
47
- conda activate apebench
48
- ```
49
-
50
- And then executed the following script (also found under `reproduce.py`):
51
-
52
- ```python
53
- import apebench
54
- from tqdm import tqdm
55
- import os
56
-
57
- DATA_PATH = "data"
58
-
59
- os.makedirs(DATA_PATH, exist_ok=True)
60
-
61
- for config in tqdm(apebench.scraper.CURATION_APEBENCH_V1):
62
- apebench.scraper.scrape_data_and_metadata(DATA_PATH, **config)
63
- ```
64
-
65
- ⚠️ Small️️er variations of the generated data can occur due to different JAX
66
- versions, backends (CPU, GPU, TPU), drivers, etc. This might be especially
67
- pronounced for the chaotic problems (like KS or Kolmogorov flow).
68
-
69
- - nvidia driver version: 535.183.01
70
- - cuda version: 12.2
 
 
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