okunator commited on
Commit
d000c28
·
verified ·
1 Parent(s): 46f9146

Publish 2/11695 BPNet WGSL folds without parity gating

Browse files
BPNET-LITE-SOFTWARE-LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Jacob Schreiber
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
BPNET-SOFTWARE-LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Kundaje Lab
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Kundaje Lab
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
NOTICE ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ Original BPNet models: Kundaje Lab and the original ENCODE contributors.
2
+ Weight license: MIT; exact source repositories/revisions/hashes in source-inventory.json.
3
+ Original per-repository config.json, model-info.json and README files are preserved
4
+ unchanged in original-metadata.tar.gz, including original attribution and metrics.
5
+ The pinned ONNX exports are an intermediate source of exact learned fp32 tensors.
6
+ No training, quantization, inference, backward graph or parity test is performed
7
+ by this repack. ChromBPNet convolution chunks are concatenated without arithmetic.
8
+ This weight/data release supplies no shader source or public standalone JS runtime.
README.md ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pipeline_tag: other
4
+ tags:
5
+ - genomics
6
+ - dna
7
+ - webgpu
8
+ - wgsl
9
+ - genome-spy
10
+ - bpnet
11
+ ---
12
+
13
+ # BPNet browser WebGPU weight packs
14
+
15
+ **Upload in progress: 2 / 11,695 folds published**, across 2,339
16
+ original experiment repositories. The complete atlas is being published without
17
+ numerical parity exclusions. These are prediction-only `GSCNNv1` weight containers
18
+ for the matching `bpnet-wgsl@1` browser engine; **they are not ONNX files**.
19
+
20
+ ## Inputs and outputs
21
+
22
+ Full input width is 2,114 bp, fp32 ACGT `[1,4,2114]`. Raw profile logits are
23
+ `[1,2,1000]` and raw log counts `[1,1]`. Outputs correspond
24
+ to central input `[557,1557)` (zero-based, half-open). Count features span 1,074
25
+ positions starting at input offset 520. All native learned heads are retained.
26
+
27
+ BPNet retains separate matched profile controls `[1,2,1000]` and log-count controls
28
+ `[1,2]`, including both learned mixing heads. The app uses explicit zeros;
29
+ logsumexp of two zero log-count controls is `log(2)`, not zero. Both strand profiles
30
+ share one softmax over all 2,000 positions and one `exp(log_count)` total. These
31
+ ChIP-seq models are control-aware; zero controls do not establish an unbiased assay.
32
+
33
+ ## Conversion and validation status
34
+
35
+ **No per-fold numerical parity tests or inference runs are performed for this
36
+ publication**, as explicitly requested. Publication is not a claim of numerical
37
+ or biological validation. Existing prototype/runtime comparisons remain separate.
38
+
39
+ Source tensors come from the existing pinned [BPNet ONNX release](https://huggingface.co/genome-spy/BPNet-ONNX).
40
+ Every intermediate file is checked against its exact recorded size and SHA-256.
41
+ Its fp32 initializers are copied without quantization or arithmetic; split
42
+ ChromBPNet convolution weights are reassembled by exact channel concatenation.
43
+ The native repository/revision/path/hash, intermediate artifact identity and tensor
44
+ hashes remain recorded. All source identities are preserved, including distinct
45
+ repositories that happen to contain identical learned weights.
46
+
47
+ Packing verifies fixed tensor shapes, finite weights, container bounds and hashes.
48
+ All uploaded weight files are downloaded and size/SHA-256 checked at their pinned
49
+ publication commits before local staging files are evicted. During upload this
50
+ verification may still be in progress. `manifest.json` distinguishes upload status.
51
+
52
+ ## Runtime and use
53
+
54
+ This repository contains weights and metadata, **not a public standalone JavaScript
55
+ library or shader source**. Execution requires the matching `bpnet-wgsl@1` engine in
56
+ GenomeSpy Sequence Designer. This does not qualify ensembles, backward graphs,
57
+ Ledidi, attribution or PISA. The existing ONNX repositories remain unchanged.
58
+ No new app backend or visible preview is deployed by this publication.
59
+
60
+ ```python
61
+ import hashlib, json
62
+ from pathlib import Path
63
+ from huggingface_hub import HfApi, hf_hub_download
64
+ repo = "genome-spy/BPNet-WebGPU"
65
+ revision = HfApi().model_info(repo).sha # Pin the exact revision.
66
+ manifest = json.loads(Path(hf_hub_download(repo, "manifest.json", revision=revision)).read_text())
67
+ model = manifest["models"][0]
68
+ a = model["artifact"]
69
+ p = Path(hf_hub_download(repo, a["path"], revision=revision))
70
+ assert p.stat().st_size == a["bytes"]
71
+ assert hashlib.sha256(p.read_bytes()).hexdigest() == a["sha256"]
72
+ ```
73
+
74
+ ## License, original metadata and integrity
75
+
76
+ Native weights and this repack are MIT; see `LICENSE` and `NOTICE`. The original
77
+ per-repository configs, model-info, cards and scientific metrics are archived
78
+ unchanged in `original-metadata.tar.gz`, with per-file hashes in its index.
79
+ Software license notices are retained separately. The original ONNX model card
80
+ in that archive is historical, not validation evidence for these WGSL packs.
81
+
82
+ Each container embeds its complete native identity and individual tensor shapes,
83
+ layouts, byte ranges and SHA-256 values. `SHA256SUMS` covers all published weight
84
+ files and declared release metadata except itself. Downloads and browser memory
85
+ costs vary: approximately 0.47 MB per fold.
SHA256SUMS ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ec83645e2f2e35186e21e71a838470ae29e109098ff8fea9016a0ae943b18b55 BPNET-LITE-SOFTWARE-LICENSE
2
+ 07cc7fd1890c0f369dfc2d35bfd5fc5bc8bde189401c35ae0f4e4ef63f088a96 BPNET-SOFTWARE-LICENSE
3
+ 07cc7fd1890c0f369dfc2d35bfd5fc5bc8bde189401c35ae0f4e4ef63f088a96 LICENSE
4
+ e4784a32b65d9ac7f0caa0c03be50d64c8e4b6c2510fb01215a43397568130fe NOTICE
5
+ 81940614d6ffd04e09c4cbad1d1b2aa361ec90e1f96a657e7e36721a930bed1f README.md
6
+ 60c91bc571fc7a01059846119c00113d4b5decaf53e2ee175b2b712d94e6d1dd conversion-summary.json
7
+ 2b7c77959c9c8e52728a7c98487a5c7cda67178a9cb656a261d95b75ad764530 intermediate-inventory.json
8
+ b06ff8c877e1db35aaf5e0c4c0979b2f272b05486ae4f063ef2f20b6af454a08 manifest.json
9
+ d5baa6165b332396b0894382976ba8488743ee1286e7d438a5c6fc967808a9d3 models/encode-bpnet-ADNP-ChIP-seq-HepG2-ENCSR981BHT-ENCSR554XIW/fold_0/d5baa6165b332396b0894382976ba8488743ee1286e7d438a5c6fc967808a9d3.bin
10
+ 260e0395c821c616df3242d16db563e31fa6507d9c4f09e2c8ae54254b166ba5 models/encode-bpnet-ADNP-ChIP-seq-HepG2-ENCSR981BHT-ENCSR554XIW/fold_1/260e0395c821c616df3242d16db563e31fa6507d9c4f09e2c8ae54254b166ba5.bin
11
+ 91c2d3c3973c75284154781a38020c8ac25e7513ac57f9cb202e0d2163ce0bc2 original-metadata-index.json
12
+ 4f49ad8136b941e014627493c485908878226bd7e956207035565e8d7da228af original-metadata.tar.gz
13
+ 617c3cb2822cd8906ff95161e6d3c7725eb62736191ff6df3aeda27f705a3f0b provenance.json
14
+ 1b6931033fbdc823c956a5f42c5b4b8e425458cd885d93ac53a5694162b4783f source-inventory.json
conversion-summary.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "published_checkpoint_count": 2,
3
+ "source_checkpoint_count": 11695,
4
+ "publication_complete": false,
5
+ "parity_tests_run": 0,
6
+ "native_inference_run": false,
7
+ "browser_inference_run": false,
8
+ "conversion": "Exact fp32 initializer repack from size/SHA-256-verified pinned ONNX files; original native identities retained",
9
+ "chunk_reconstruction": "Concatenate original input-channel slices without arithmetic",
10
+ "source_identities_collapsed": false,
11
+ "cooling": "10 seconds after approximately 20 active seconds",
12
+ "coverage_note": "Earlier representative runtime prototypes are separate evidence and do not qualify the full atlas"
13
+ }
intermediate-inventory.json ADDED
The diff for this file is too large to render. See raw diff
 
manifest.json ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "family": "BPNet",
4
+ "format": "gscnn-v1",
5
+ "runtime": "bpnet-wgsl@1",
6
+ "license": "mit",
7
+ "source_checkpoint_count": 11695,
8
+ "source_experiment_count": 2339,
9
+ "published_checkpoint_count": 2,
10
+ "publication_complete": false,
11
+ "parity_status": "not_tested",
12
+ "publication_policy": "Numerical parity is not a publication gate; per-fold parity tests skipped by user request",
13
+ "contract": {
14
+ "input_shape": [
15
+ 1,
16
+ 4,
17
+ 2114
18
+ ],
19
+ "input_layout": "NCL",
20
+ "encoding": "ACGT",
21
+ "output_shape": [
22
+ 1,
23
+ 2,
24
+ 1000
25
+ ],
26
+ "output_offset": 557,
27
+ "raw_count_shape": [
28
+ 1,
29
+ 1
30
+ ],
31
+ "count_transform": "log",
32
+ "controls": {
33
+ "profile_shape": [
34
+ 1,
35
+ 2,
36
+ 1000
37
+ ],
38
+ "count_shape": [
39
+ 1,
40
+ 2
41
+ ],
42
+ "count_encoding": "natural log inputs, combined by native logsumexp",
43
+ "app_policy": "explicit zero controls; count control total is log(2)"
44
+ },
45
+ "profile_normalization": "one joint softmax over all positions and strands"
46
+ },
47
+ "models": [
48
+ {
49
+ "source": {
50
+ "repository": "kundajelab/encode-bpnet-ADNP-ChIP-seq-HepG2-ENCSR981BHT-ENCSR554XIW",
51
+ "revision": "c83ec2a3286bb9e5fb8b87358d2a9c75a5c18a28",
52
+ "path": "fold_0/model.h5",
53
+ "sha256": "28e1051e0cc610d0c711505f3abb0acbe2ece06bd8143deecae1d2326aee36df",
54
+ "bytes": 561784,
55
+ "destination": "models/encode-bpnet-ADNP-ChIP-seq-HepG2-ENCSR981BHT-ENCSR554XIW/fold_0/model.onnx",
56
+ "license": "mit",
57
+ "url": "https://huggingface.co/kundajelab/encode-bpnet-ADNP-ChIP-seq-HepG2-ENCSR981BHT-ENCSR554XIW/resolve/c83ec2a3286bb9e5fb8b87358d2a9c75a5c18a28/fold_0/model.h5"
58
+ },
59
+ "experiment": {
60
+ "id": "encode:ENCSR981BHT:hg38",
61
+ "accession": "ENCSR981BHT",
62
+ "biosample": "HepG2",
63
+ "assay": "ChIP-seq",
64
+ "target": "ADNP",
65
+ "assembly": "hg38",
66
+ "species": "Homo sapiens",
67
+ "conditions": "genetically modified (insertion) using CRISPR targeting H. sapiens ADNP",
68
+ "evidence": "https://huggingface.co/programmable-genomics/BATv1/resolve/c631ebd86b46d78c2e239ee06f3fce5ff15f4ad9/BATv1-metadata.tsv"
69
+ },
70
+ "fold": 0,
71
+ "runtime": "bpnet-wgsl@1",
72
+ "artifact": {
73
+ "path": "models/encode-bpnet-ADNP-ChIP-seq-HepG2-ENCSR981BHT-ENCSR554XIW/fold_0/d5baa6165b332396b0894382976ba8488743ee1286e7d438a5c6fc967808a9d3.bin",
74
+ "sha256": "d5baa6165b332396b0894382976ba8488743ee1286e7d438a5c6fc967808a9d3",
75
+ "bytes": 461176
76
+ },
77
+ "intermediate_onnx": {
78
+ "path": "models/encode-bpnet-ADNP-ChIP-seq-HepG2-ENCSR981BHT-ENCSR554XIW/fold_0/model.onnx",
79
+ "sha256": "b275df5cd4544447710e99f93119dc8ccd43ff2fc987e487790cf4cff8691afc",
80
+ "bytes": 464595
81
+ },
82
+ "parity_status": "not_tested"
83
+ },
84
+ {
85
+ "source": {
86
+ "repository": "kundajelab/encode-bpnet-ADNP-ChIP-seq-HepG2-ENCSR981BHT-ENCSR554XIW",
87
+ "revision": "c83ec2a3286bb9e5fb8b87358d2a9c75a5c18a28",
88
+ "path": "fold_1/model.h5",
89
+ "sha256": "6aae63ae7c20ae5533337a664aaf72c6a960c0fda5fed430b16c516f4f0a7ad0",
90
+ "bytes": 561784,
91
+ "destination": "models/encode-bpnet-ADNP-ChIP-seq-HepG2-ENCSR981BHT-ENCSR554XIW/fold_1/model.onnx",
92
+ "license": "mit",
93
+ "url": "https://huggingface.co/kundajelab/encode-bpnet-ADNP-ChIP-seq-HepG2-ENCSR981BHT-ENCSR554XIW/resolve/c83ec2a3286bb9e5fb8b87358d2a9c75a5c18a28/fold_1/model.h5"
94
+ },
95
+ "experiment": {
96
+ "id": "encode:ENCSR981BHT:hg38",
97
+ "accession": "ENCSR981BHT",
98
+ "biosample": "HepG2",
99
+ "assay": "ChIP-seq",
100
+ "target": "ADNP",
101
+ "assembly": "hg38",
102
+ "species": "Homo sapiens",
103
+ "conditions": "genetically modified (insertion) using CRISPR targeting H. sapiens ADNP",
104
+ "evidence": "https://huggingface.co/programmable-genomics/BATv1/resolve/c631ebd86b46d78c2e239ee06f3fce5ff15f4ad9/BATv1-metadata.tsv"
105
+ },
106
+ "fold": 1,
107
+ "runtime": "bpnet-wgsl@1",
108
+ "artifact": {
109
+ "path": "models/encode-bpnet-ADNP-ChIP-seq-HepG2-ENCSR981BHT-ENCSR554XIW/fold_1/260e0395c821c616df3242d16db563e31fa6507d9c4f09e2c8ae54254b166ba5.bin",
110
+ "sha256": "260e0395c821c616df3242d16db563e31fa6507d9c4f09e2c8ae54254b166ba5",
111
+ "bytes": 461176
112
+ },
113
+ "intermediate_onnx": {
114
+ "path": "models/encode-bpnet-ADNP-ChIP-seq-HepG2-ENCSR981BHT-ENCSR554XIW/fold_1/model.onnx",
115
+ "sha256": "bca40038aea54d105c233c57e9804d403587e5c63c2b09ac9334bab4bba6539e",
116
+ "bytes": 464595
117
+ },
118
+ "parity_status": "not_tested"
119
+ }
120
+ ]
121
+ }
models/encode-bpnet-ADNP-ChIP-seq-HepG2-ENCSR981BHT-ENCSR554XIW/fold_0/d5baa6165b332396b0894382976ba8488743ee1286e7d438a5c6fc967808a9d3.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5baa6165b332396b0894382976ba8488743ee1286e7d438a5c6fc967808a9d3
3
+ size 461176
models/encode-bpnet-ADNP-ChIP-seq-HepG2-ENCSR981BHT-ENCSR554XIW/fold_1/260e0395c821c616df3242d16db563e31fa6507d9c4f09e2c8ae54254b166ba5.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:260e0395c821c616df3242d16db563e31fa6507d9c4f09e2c8ae54254b166ba5
3
+ size 461176
original-metadata-index.json ADDED
The diff for this file is too large to render. See raw diff
 
original-metadata.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f49ad8136b941e014627493c485908878226bd7e956207035565e8d7da228af
3
+ size 3857837
provenance.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "native_sources": "source-inventory.json",
3
+ "intermediate_sources": "intermediate-inventory.json",
4
+ "original_metadata_archive": "original-metadata.tar.gz",
5
+ "original_metadata_index": "original-metadata-index.json",
6
+ "container_reference": "GSCNNv1 little-endian fp32; 8-byte magic, uint32 JSON header length, header padded to 4-byte boundary, tensors",
7
+ "private_implementation_commit": "3d784542",
8
+ "conversion_script_sha256": "a311e24e7ec7302588dba0a2ddda5f73d0dbd3fb3f68e303b31dae7a136ea518",
9
+ "weights_unchanged": true,
10
+ "inference_tests": "Not run for this publication, by user request"
11
+ }
source-inventory.json ADDED
The diff for this file is too large to render. See raw diff