pablovp8 commited on
Commit
f345bc1
·
verified ·
1 Parent(s): 4fe28f3

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: PockLigGPT Training Data
3
+ tags:
4
+ - chemistry
5
+ - drug-discovery
6
+ - molecular-generation
7
+ - protein-ligand
8
+ - crossdocked
9
+ ---
10
+
11
+ # PockLigGPT Training Data
12
+
13
+ Preprocessed training assets for
14
+ [PockLigGPT](https://github.com/pablovaras/PockLigGPT_official).
15
+
16
+ ## Files
17
+
18
+ ```text
19
+ chembl/
20
+ ├── train_chembl.bin
21
+ └── val_chembl.bin
22
+
23
+ crossdocked/
24
+ ├── crossdocked_clean_pocket_selfies_with_tokens.parquet
25
+ ├── per_residue_index.parquet
26
+ └── per_residue_pack.npz.part-*
27
+
28
+ tokenizer/
29
+ └── meta_chembl_db_aa_2_proto4.pkl
30
+ ```
31
+
32
+ The CrossDocked training Parquet contains pocket metadata, SELFIES,
33
+ fixed-length `token_ids`, and offsets into the residue embedding stack.
34
+
35
+ The split NPZ contains `emb_stack` with shape `(8_337_780, 1024)` and dtype
36
+ `float16`. Each row is a ProtT5 residue embedding. The index Parquet maps each
37
+ pocket to its `start` and `length` values.
38
+
39
+ ## Download
40
+
41
+ ```bash
42
+ hf download pablovp8/PockLigGPT-training-data \
43
+ --repo-type dataset \
44
+ --include "chembl/*" \
45
+ --include "crossdocked/*" \
46
+ --local-dir datasets/processed
47
+
48
+ hf download pablovp8/PockLigGPT-training-data \
49
+ --repo-type dataset \
50
+ --include "tokenizer/*" \
51
+ --local-dir datasets
52
+ ```
53
+
54
+ ## Prepare CrossDocked embeddings
55
+
56
+ Reassemble the downloaded archive:
57
+
58
+ ```bash
59
+ python scripts/assemble_embedding_pack.py \
60
+ --parts-dir datasets/processed/crossdocked \
61
+ --output datasets/processed/crossdocked/per_residue_pack.npz \
62
+ --delete-parts
63
+ ```
64
+
65
+ Then convert it once to an NPY file before finetuning so NumPy can memory-map
66
+ the embedding stack:
67
+
68
+ ```bash
69
+ python scripts/convert_embedding_pack.py \
70
+ --input datasets/crossdocked/per_residue_pack.npz \
71
+ --output datasets/crossdocked/per_residue_pack.npy \
72
+ --delete-source
73
+ ```
74
+
75
+ When downloading directly into the PockLigGPT repository, place the files
76
+ under `datasets/processed/crossdocked/` or update the paths in
77
+ `config/training/finetune_2/crossdocked_sequence_add.yaml`.
78
+
79
+ ## Training stages
80
+
81
+ - ZINC20 binary files are used for pretraining.
82
+ - ChEMBL binary files are used for finetune 1. They contain 1,061,229
83
+ training sequences and 117,916 validation sequences with block size 156.
84
+ - CrossDocked Parquet and ProtT5 embeddings are used for finetune 2.
85
+
86
+ ZINC20 binaries are not distributed here because of their size. Generate them
87
+ from the source dataset with `config/tokenization/zinc20.yaml`.
88
+
89
+ ## Notes
90
+
91
+ The tokenizer metadata is a Python pickle file. Only load pickle files from
92
+ sources you trust.
93
+
94
+ Users are responsible for complying with the licenses and terms of the
95
+ upstream molecular and structural datasets.
chembl/train_chembl.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b5372074fad84a93d2a8ace5604d35747f043e513fb938357e9c7e37132040a1
3
+ size 331103448
chembl/val_chembl.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e45806fdbe20697d1005a8f4d775a45c01b115bf829de8eea948fb1c74e05e8
3
+ size 36789792
crossdocked/crossdocked_clean_pocket_selfies_with_tokens.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88518156c75561fa59a548177048db936a60d23fcff76333818b34293395999e
3
+ size 31266256
crossdocked/per_residue_index.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d946e6c11174e35319872f93bd56158436ce5817ac8a53392358f677ff8c1195
3
+ size 9600814
tokenizer/meta_chembl_db_aa_2_proto4.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d2d45b3f2bf789e5c04edae331d794706a1180134859235f65a993c9ad9782a
3
+ size 8553