ribesstefano commited on
Commit
29a8345
·
verified ·
1 Parent(s): a649a94

Update fusion context embeddings

Browse files
README.md ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ailab-bio/TACK-Context-Encoding
2
+
3
+ PCA-reduced context embedding tables for the `tackai` fusion surrogates (`tackai.fusion`):
4
+ one lookup table plus a PCA side-file per block (assay (8-d), cell (47-d), e3 (7-d), poi (51-d)), and `manifest.json` recording
5
+ each file's sha256, byte size and dimensions. Published from a `protein_space="combined"` encoder; `from_pretrained` reproduces that by default.
6
+
7
+ These tables are **inputs** to every fusion model, never the output of one — a fitted
8
+ ensemble is only meaningful against the exact tables it was built with, so this repo is
9
+ versioned by commit rather than by file content.
10
+
11
+ ## Loading
12
+
13
+ ```python
14
+ from tackai.fusion.data import FusionData
15
+
16
+ data = FusionData.from_pretrained("ailab-bio/TACK-Context-Encoding")
17
+ context = data.encode_context({"poi_seq": ..., "e3_seq": ..., "cell_id": ..., "assay": ...})
18
+ ```
19
+
20
+ `from_pretrained` installs these files into `TACKAI_CACHE` and verifies them against this
21
+ repo's `manifest.json` before use.
22
+
23
+ Generated by `tackai.fusion.context.stage_context_tables` (tackai version
24
+ 1.0.0) — do not hand-edit; re-stage and re-upload instead.
assay_embeddings_vocab=open20_model=all-mpnet-base-v1_pooling=mean_pca8.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f8e0b23be2ab77c796ca46e3bc8842138f151edf7d82c163f6e649c8d8ea43f
3
+ size 5966
assay_pca_vocab=open20_model=all-mpnet-base-v1_pooling=mean_pca8.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6350cec77e1487fd286d7c87ee965e1c1e45ac9a567b1c50180cc9faedaf38b1
3
+ size 28480
cell_embeddings_model=sentence-transformer_pooling=mean_pca47.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cfa457dbf422d6aae5e5f04fc8501b67041e4eac1462244e785efb01cf20cf2f
3
+ size 88078
cell_embeddings_model=sentence-transformer_pooling=mean_pca47_model.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f840755c2bf2d3af55dd0b969d1ba48d689117c9cde81246733e02b990005d0c
3
+ size 148444
manifest.json ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format": "tack-fusion-context/v1",
3
+ "tackai_version": "1.0.0",
4
+ "protein_space": "combined",
5
+ "block_dims": {
6
+ "assay_time": 1,
7
+ "cell": 47,
8
+ "poi": 51,
9
+ "e3": 7,
10
+ "assay": 8
11
+ },
12
+ "combined_dim": 52,
13
+ "models": {
14
+ "cell": "sentence-transformers/all-mpnet-base-v1",
15
+ "assay": "sentence-transformers/all-mpnet-base-v1",
16
+ "poi": "facebook/esm2_t30_150M_UR50D",
17
+ "e3": "facebook/esm2_t30_150M_UR50D"
18
+ },
19
+ "files": {
20
+ "cell_embeddings_model=sentence-transformer_pooling=mean_pca47.npz": {
21
+ "block": "cell",
22
+ "role": "table",
23
+ "sha256": "cfa457dbf422d6aae5e5f04fc8501b67041e4eac1462244e785efb01cf20cf2f",
24
+ "bytes": 88078,
25
+ "dim": 47,
26
+ "n_keys": 201
27
+ },
28
+ "cell_embeddings_model=sentence-transformer_pooling=mean_pca47_model.npz": {
29
+ "block": "cell",
30
+ "role": "pca_model",
31
+ "sha256": "f840755c2bf2d3af55dd0b969d1ba48d689117c9cde81246733e02b990005d0c",
32
+ "bytes": 148444,
33
+ "full_dim": 768,
34
+ "reduced_dim": 47
35
+ },
36
+ "protein_embeddings_esm_model=facebook-esm2_t30_150M_UR50D_layer=18_pooling=lse_window=1022_block=poi_pca51.npz": {
37
+ "block": "poi",
38
+ "role": "table",
39
+ "sha256": "a280b37449ddaff2be20ea27d2d402c70b0e8241a67eb349552a25639f899c7f",
40
+ "bytes": 395772,
41
+ "dim": 51,
42
+ "n_keys": 204
43
+ },
44
+ "protein_embeddings_esm_model=facebook-esm2_t30_150M_UR50D_layer=18_pooling=lse_window=1022_block=poi_pca51_model.npz": {
45
+ "block": "poi",
46
+ "role": "pca_model",
47
+ "sha256": "eac1aa186537241c131d938828015625a861e99b965ea2619f27c9c8cb11e46f",
48
+ "bytes": 134124,
49
+ "full_dim": 640,
50
+ "reduced_dim": 51
51
+ },
52
+ "protein_embeddings_esm_model=facebook-esm2_t30_150M_UR50D_layer=30_pooling=mean_rm_pc2_window=1022_block=e3_pca7.npz": {
53
+ "block": "e3",
54
+ "role": "table",
55
+ "sha256": "97d5e2d12ad868ae754b15ed7cfef563dc269647368f5ac4326cd973c9c83462",
56
+ "bytes": 24608,
57
+ "dim": 7,
58
+ "n_keys": 17
59
+ },
60
+ "protein_embeddings_esm_model=facebook-esm2_t30_150M_UR50D_layer=30_pooling=mean_rm_pc2_window=1022_block=e3_pca7_model.npz": {
61
+ "block": "e3",
62
+ "role": "pca_model",
63
+ "sha256": "35a531ea55728d386f5aa56f2ba805f0bcefe7d045dfdd9f2853452aeef4533e",
64
+ "bytes": 21308,
65
+ "full_dim": 640,
66
+ "reduced_dim": 7
67
+ },
68
+ "protein_embeddings_esm_model=facebook-esm2_t30_150M_UR50D_layer=18_pooling=lse_window=1022_block=combined_pca52.npz": {
69
+ "block": "combined",
70
+ "role": "table",
71
+ "sha256": "0d55039f786a33a45fd159bb620d3602c00e8842d5ce13c3b36acb777fb0b3ab",
72
+ "bytes": 415824,
73
+ "dim": 52,
74
+ "n_keys": 215
75
+ },
76
+ "protein_embeddings_esm_model=facebook-esm2_t30_150M_UR50D_layer=18_pooling=lse_window=1022_block=combined_pca52_model.npz": {
77
+ "block": "combined",
78
+ "role": "pca_model",
79
+ "sha256": "b43fe23b55e0c7296e25aa3696dc4984a40021dbf58c9cac37ab816a8549e0d2",
80
+ "bytes": 136688,
81
+ "full_dim": 640,
82
+ "reduced_dim": 52
83
+ },
84
+ "assay_embeddings_vocab=open20_model=all-mpnet-base-v1_pooling=mean_pca8.npz": {
85
+ "block": "assay",
86
+ "role": "table",
87
+ "sha256": "0f8e0b23be2ab77c796ca46e3bc8842138f151edf7d82c163f6e649c8d8ea43f",
88
+ "bytes": 5966,
89
+ "dim": 8,
90
+ "n_keys": 20
91
+ },
92
+ "assay_pca_vocab=open20_model=all-mpnet-base-v1_pooling=mean_pca8.npz": {
93
+ "block": "assay",
94
+ "role": "pca_model",
95
+ "sha256": "6350cec77e1487fd286d7c87ee965e1c1e45ac9a567b1c50180cc9faedaf38b1",
96
+ "bytes": 28480,
97
+ "full_dim": 768,
98
+ "reduced_dim": 8
99
+ }
100
+ }
101
+ }
protein_embeddings_esm_model=facebook-esm2_t30_150M_UR50D_layer=18_pooling=lse_window=1022_block=combined_pca52.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d55039f786a33a45fd159bb620d3602c00e8842d5ce13c3b36acb777fb0b3ab
3
+ size 415824
protein_embeddings_esm_model=facebook-esm2_t30_150M_UR50D_layer=18_pooling=lse_window=1022_block=combined_pca52_model.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b43fe23b55e0c7296e25aa3696dc4984a40021dbf58c9cac37ab816a8549e0d2
3
+ size 136688
protein_embeddings_esm_model=facebook-esm2_t30_150M_UR50D_layer=18_pooling=lse_window=1022_block=poi_pca51.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a280b37449ddaff2be20ea27d2d402c70b0e8241a67eb349552a25639f899c7f
3
+ size 395772
protein_embeddings_esm_model=facebook-esm2_t30_150M_UR50D_layer=18_pooling=lse_window=1022_block=poi_pca51_model.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eac1aa186537241c131d938828015625a861e99b965ea2619f27c9c8cb11e46f
3
+ size 134124
protein_embeddings_esm_model=facebook-esm2_t30_150M_UR50D_layer=30_pooling=mean_rm_pc2_window=1022_block=e3_pca7.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97d5e2d12ad868ae754b15ed7cfef563dc269647368f5ac4326cd973c9c83462
3
+ size 24608
protein_embeddings_esm_model=facebook-esm2_t30_150M_UR50D_layer=30_pooling=mean_rm_pc2_window=1022_block=e3_pca7_model.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35a531ea55728d386f5aa56f2ba805f0bcefe7d045dfdd9f2853452aeef4533e
3
+ size 21308