anindya64 commited on
Commit
fe0d1d0
·
verified ·
1 Parent(s): 1ce8a68

Add files using upload-large-folder tool

Browse files
Files changed (7) hide show
  1. .gitattributes +1 -0
  2. README.md +190 -0
  3. _MANIFEST.json +111 -0
  4. metadata.csv +3 -0
  5. parts.csv +1 -0
  6. shards.csv +2 -0
  7. shards/shard-00000.tar +3 -0
.gitattributes CHANGED
@@ -58,3 +58,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ metadata.csv filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: Evo-DPLM Data
3
+ size_categories:
4
+ - 100K<n<1M
5
+ task_categories:
6
+ - other
7
+ tags:
8
+ - biology
9
+ - protein
10
+ - rna
11
+ - structure-prediction
12
+ - tar
13
+ - datasets
14
+ configs:
15
+ - config_name: files
16
+ default: true
17
+ data_files:
18
+ - split: train
19
+ path: metadata.csv
20
+ - config_name: shards
21
+ data_files:
22
+ - split: train
23
+ path: shards.csv
24
+ - config_name: parts
25
+ data_files:
26
+ - split: train
27
+ path: parts.csv
28
+ ---
29
+
30
+ # Evo-DPLM Data
31
+
32
+ This dataset preserves the source folder as tar shards plus split part files for any source file larger than one shard. `metadata.csv` has one row per original file and is configured as the default Dataset Viewer table.
33
+
34
+ ## Summary
35
+
36
+ | | |
37
+ |---|---:|
38
+ | Original files | 134,906 |
39
+ | Original payload | 19.49 GiB (20,930,421,331 bytes) |
40
+ | Tar shards | 1 |
41
+ | Large-file parts | 0 |
42
+ | Archive size | 19.72 GiB (21,172,090,880 bytes) |
43
+ | Max shard payload | 20.00 GiB |
44
+ | Max large-file part | 20.00 GiB |
45
+ | Metadata generated | 2026-05-25T06:39:53Z |
46
+
47
+ ## Source Layout
48
+
49
+ | Directory | Files | Size |
50
+ | --- | --- | --- |
51
+ | . | 4 | 41.99 MiB |
52
+ | mmseqs30 | 4 | 82.32 MiB |
53
+ | msa_cache | 134,898 | 19.37 GiB |
54
+
55
+ ## Common File Types
56
+
57
+ | Extension | Files | Size |
58
+ | --- | --- | --- |
59
+ | .npz | 134,898 | 19.37 GiB |
60
+ | .fasta | 3 | 80.71 MiB |
61
+ | .parquet | 1 | 34.33 MiB |
62
+ | .json | 1 | 7.65 MiB |
63
+ | .tsv | 1 | 1.61 MiB |
64
+ | .sh | 1 | 806 B |
65
+ | .md | 1 | 543 B |
66
+
67
+ ## Shards
68
+
69
+ | Shard | Files | Payload | Archive |
70
+ | --- | --- | --- | --- |
71
+ | shards/shard-00000.tar | 134,906 | 19.49 GiB | 19.72 GiB |
72
+
73
+ ## Metadata
74
+
75
+ `metadata.csv` columns:
76
+
77
+ | Column | Description |
78
+ |---|---|
79
+ | `path` | Original relative path in the source folder. |
80
+ | `storage_type` | `tar` for files inside tar shards, or `parts` for oversized files split into byte parts. |
81
+ | `shard_path` | Tar shard containing the file when `storage_type` is `tar`. |
82
+ | `member_path` | Path of the file inside the tar shard. |
83
+ | `parts_count` | Number of part files when `storage_type` is `parts`. |
84
+ | `part_paths` | Semicolon-separated part paths when `storage_type` is `parts`. |
85
+ | `top_level` | First directory under the source folder. |
86
+ | `directory` | Parent directory of the file. |
87
+ | `filename` | File basename. |
88
+ | `extension` | File extension, preserving compound suffixes such as `.csv.gz`. |
89
+ | `size_bytes` | Original file size in bytes. |
90
+ | `size_human` | Human-readable original file size. |
91
+ | `modified_utc` | Local file modification timestamp captured during packaging. |
92
+
93
+ `shards.csv` lists one row per tar shard. `parts.csv` lists one row per split large-file part. `_MANIFEST.json` contains the aggregate build summary.
94
+
95
+ ## Download Everything
96
+
97
+ ```bash
98
+ pip install -U huggingface_hub
99
+ hf download LiteFold/evo-dplm-data --repo-type dataset --local-dir ./evo-dplm-data
100
+ ```
101
+
102
+ Extract all shards:
103
+
104
+ ```bash
105
+ mkdir -p ./data
106
+ for shard in ./evo-dplm-data/shards/*.tar; do
107
+ tar -xf "$shard" -C ./data
108
+ done
109
+ ```
110
+
111
+ Reassemble any split large files:
112
+
113
+ ```bash
114
+ python - <<'PY'
115
+ import csv
116
+ from pathlib import Path
117
+
118
+ root = Path("./evo-dplm-data")
119
+ out = Path("./data")
120
+ with (root / "metadata.csv").open(newline="") as handle:
121
+ for row in csv.DictReader(handle):
122
+ if row["storage_type"] != "parts":
123
+ continue
124
+ target = out / row["path"]
125
+ target.parent.mkdir(parents=True, exist_ok=True)
126
+ with target.open("wb") as dst:
127
+ for part in row["part_paths"].split(";"):
128
+ with (root / part).open("rb") as src:
129
+ while True:
130
+ chunk = src.read(8 * 1024 * 1024)
131
+ if not chunk:
132
+ break
133
+ dst.write(chunk)
134
+ PY
135
+ ```
136
+
137
+ ## Use With `datasets`
138
+
139
+ Use the `datasets` API to query file metadata, then use `huggingface_hub` to download the shard that contains the file.
140
+
141
+ ```python
142
+ from datasets import load_dataset
143
+ from huggingface_hub import hf_hub_download
144
+ import tarfile
145
+
146
+ files = load_dataset("LiteFold/evo-dplm-data", "files", split="train")
147
+ row = files[0]
148
+
149
+ if row["storage_type"] == "tar":
150
+ shard = hf_hub_download(
151
+ repo_id="LiteFold/evo-dplm-data",
152
+ repo_type="dataset",
153
+ filename=row["shard_path"],
154
+ )
155
+ with tarfile.open(shard) as archive:
156
+ archive.extract(row["member_path"], path="./data")
157
+ else:
158
+ from pathlib import Path
159
+
160
+ target = Path("./data") / row["path"]
161
+ target.parent.mkdir(parents=True, exist_ok=True)
162
+ with target.open("wb") as dst:
163
+ for part_path in row["part_paths"].split(";"):
164
+ part = hf_hub_download(
165
+ repo_id="LiteFold/evo-dplm-data",
166
+ repo_type="dataset",
167
+ filename=part_path,
168
+ )
169
+ with Path(part).open("rb") as src:
170
+ while True:
171
+ chunk = src.read(8 * 1024 * 1024)
172
+ if not chunk:
173
+ break
174
+ dst.write(chunk)
175
+ ```
176
+
177
+ For streaming metadata:
178
+
179
+ ```python
180
+ from datasets import load_dataset
181
+
182
+ files = load_dataset("LiteFold/evo-dplm-data", "files", split="train", streaming=True)
183
+ for row in files:
184
+ print(row["path"], row["shard_path"])
185
+ break
186
+ ```
187
+
188
+ ## Notes
189
+
190
+ The tar shards are uncompressed by design. This keeps packaging and random extraction simple and avoids spending CPU compressing data that is often already compressed.
_MANIFEST.json ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "repo_id": "LiteFold/evo-dplm-data",
3
+ "pretty_name": "Evo-DPLM Data",
4
+ "source_data_dir": "/lambda/nfs/research/evo_dplm/data",
5
+ "generated_at_utc": "2026-05-25T06:39:53Z",
6
+ "format": "tar shards plus metadata.csv",
7
+ "file_count": 134906,
8
+ "total_payload_bytes": 20930421331,
9
+ "total_payload_size": "19.49 GiB",
10
+ "max_shard_payload_bytes": 21474836480,
11
+ "max_shard_payload_size": "20.00 GiB",
12
+ "shard_count": 1,
13
+ "large_file_part_count": 0,
14
+ "large_file_part_bytes": 0,
15
+ "large_file_part_size": "0 B",
16
+ "large_file_part_max_bytes": 21474836480,
17
+ "large_file_part_max_size": "20.00 GiB",
18
+ "total_archive_bytes": 21172090880,
19
+ "total_archive_size": "19.72 GiB",
20
+ "metadata_columns": [
21
+ "path",
22
+ "storage_type",
23
+ "shard_path",
24
+ "member_path",
25
+ "parts_count",
26
+ "part_paths",
27
+ "top_level",
28
+ "directory",
29
+ "filename",
30
+ "extension",
31
+ "size_bytes",
32
+ "size_human",
33
+ "modified_utc"
34
+ ],
35
+ "top_level": [
36
+ {
37
+ "name": ".",
38
+ "files": 4,
39
+ "bytes": 44030211,
40
+ "size": "41.99 MiB"
41
+ },
42
+ {
43
+ "name": "mmseqs30",
44
+ "files": 4,
45
+ "bytes": 86318144,
46
+ "size": "82.32 MiB"
47
+ },
48
+ {
49
+ "name": "msa_cache",
50
+ "files": 134898,
51
+ "bytes": 20800072976,
52
+ "size": "19.37 GiB"
53
+ }
54
+ ],
55
+ "extensions": [
56
+ {
57
+ "extension": ".npz",
58
+ "files": 134898,
59
+ "bytes": 20800072976,
60
+ "size": "19.37 GiB"
61
+ },
62
+ {
63
+ "extension": ".fasta",
64
+ "files": 3,
65
+ "bytes": 84625740,
66
+ "size": "80.71 MiB"
67
+ },
68
+ {
69
+ "extension": ".parquet",
70
+ "files": 1,
71
+ "bytes": 36002415,
72
+ "size": "34.33 MiB"
73
+ },
74
+ {
75
+ "extension": ".json",
76
+ "files": 1,
77
+ "bytes": 8026447,
78
+ "size": "7.65 MiB"
79
+ },
80
+ {
81
+ "extension": ".tsv",
82
+ "files": 1,
83
+ "bytes": 1692404,
84
+ "size": "1.61 MiB"
85
+ },
86
+ {
87
+ "extension": ".sh",
88
+ "files": 1,
89
+ "bytes": 806,
90
+ "size": "806 B"
91
+ },
92
+ {
93
+ "extension": ".md",
94
+ "files": 1,
95
+ "bytes": 543,
96
+ "size": "543 B"
97
+ }
98
+ ],
99
+ "shards": [
100
+ {
101
+ "path": "shards/shard-00000.tar",
102
+ "index": 0,
103
+ "files": 134906,
104
+ "payload_bytes": 20930421331,
105
+ "payload_size": "19.49 GiB",
106
+ "archive_bytes": 21172090880,
107
+ "archive_size": "19.72 GiB"
108
+ }
109
+ ],
110
+ "large_file_parts": []
111
+ }
metadata.csv ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d547f54315c12c035894178e2b7be5b3c62ab1e82fe02f6e9ce65bc62085f3a
3
+ size 19614930
parts.csv ADDED
@@ -0,0 +1 @@
 
 
1
+ path,part_path,part_index,part_bytes,part_size
shards.csv ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ shard_path,shard_index,files,payload_bytes,payload_size,archive_bytes,archive_size
2
+ shards/shard-00000.tar,0,134906,20930421331,19.49 GiB,21172090880,19.72 GiB
shards/shard-00000.tar ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fb491397c950096b40013557a403176cbc4964df895f8a03664e14669ffad9d
3
+ size 21172090880