okunator commited on
Commit
c9fdcea
·
verified ·
1 Parent(s): 2052be7

Publish 2/7560 ChromBPNet 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.
CHROMBPNET-SOFTWARE-LICENSE ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT License
2
+
3
+ Copyright (c) 2019 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) 2019 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 ChromBPNet 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,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pipeline_tag: other
4
+ tags:
5
+ - genomics
6
+ - dna
7
+ - webgpu
8
+ - wgsl
9
+ - genome-spy
10
+ - chrombpnet
11
+ ---
12
+
13
+ # ChromBPNet browser WebGPU weight packs
14
+
15
+ **Upload in progress: 2 / 7,560 folds published**, across 1,512
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 `chrombpnet-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,1,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
+ These are the published bias-corrected **nobias** ChromBPNet models, with no control
28
+ input. Decode the single profile with softmax and `max(expm1(log_count),0)`. The
29
+ bias submodel is not included in this release.
30
+
31
+ ## Conversion and validation status
32
+
33
+ **No per-fold numerical parity tests or inference runs are performed for this
34
+ publication**, as explicitly requested. Publication is not a claim of numerical
35
+ or biological validation. Existing prototype/runtime comparisons remain separate.
36
+
37
+ Source tensors come from the existing pinned [ChromBPNet ONNX release](https://huggingface.co/genome-spy/ChromBPNet-ONNX).
38
+ Every intermediate file is checked against its exact recorded size and SHA-256.
39
+ Its fp32 initializers are copied without quantization or arithmetic; split
40
+ ChromBPNet convolution weights are reassembled by exact channel concatenation.
41
+ The native repository/revision/path/hash, intermediate artifact identity and tensor
42
+ hashes remain recorded. All source identities are preserved, including distinct
43
+ repositories that happen to contain identical learned weights.
44
+
45
+ Packing verifies fixed tensor shapes, finite weights, container bounds and hashes.
46
+ All uploaded weight files are downloaded and size/SHA-256 checked at their pinned
47
+ publication commits before local staging files are evicted. During upload this
48
+ verification may still be in progress. `manifest.json` distinguishes upload status.
49
+
50
+ ## Runtime and use
51
+
52
+ This repository contains weights and metadata, **not a public standalone JavaScript
53
+ library or shader source**. Execution requires the matching `chrombpnet-wgsl@1` engine in
54
+ GenomeSpy Sequence Designer. This does not qualify ensembles, backward graphs,
55
+ Ledidi, attribution or PISA. The existing ONNX repositories remain unchanged.
56
+ No new app backend or visible preview is deployed by this publication.
57
+
58
+ ```python
59
+ import hashlib, json
60
+ from pathlib import Path
61
+ from huggingface_hub import HfApi, hf_hub_download
62
+ repo = "genome-spy/ChromBPNet-WebGPU"
63
+ revision = HfApi().model_info(repo).sha # Pin the exact revision.
64
+ manifest = json.loads(Path(hf_hub_download(repo, "manifest.json", revision=revision)).read_text())
65
+ model = manifest["models"][0]
66
+ a = model["artifact"]
67
+ p = Path(hf_hub_download(repo, a["path"], revision=revision))
68
+ assert p.stat().st_size == a["bytes"]
69
+ assert hashlib.sha256(p.read_bytes()).hexdigest() == a["sha256"]
70
+ ```
71
+
72
+ ## License, original metadata and integrity
73
+
74
+ Native weights and this repack are MIT; see `LICENSE` and `NOTICE`. The original
75
+ per-repository configs, model-info, cards and scientific metrics are archived
76
+ unchanged in `original-metadata.tar.gz`, with per-file hashes in its index.
77
+ Software license notices are retained separately. The original ONNX model card
78
+ in that archive is historical, not validation evidence for these WGSL packs.
79
+
80
+ Each container embeds its complete native identity and individual tensor shapes,
81
+ layouts, byte ranges and SHA-256 values. `SHA256SUMS` covers all published weight
82
+ files and declared release metadata except itself. Downloads and browser memory
83
+ costs vary: approximately 25.54 MB per fold.
SHA256SUMS ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ec83645e2f2e35186e21e71a838470ae29e109098ff8fea9016a0ae943b18b55 BPNET-LITE-SOFTWARE-LICENSE
2
+ eee7b4d55be619630ce91024410485d25226c387e72315b83712a8dbf89188ef CHROMBPNET-SOFTWARE-LICENSE
3
+ eee7b4d55be619630ce91024410485d25226c387e72315b83712a8dbf89188ef LICENSE
4
+ 07022a969f2232e9156f16268fa05a7d06955ef5379fb1282931b5b22dc17e11 NOTICE
5
+ 781b888b4a423b463f205c5ccc99f034b45b690921ee4449858e13835ea99600 README.md
6
+ 297b776d4280a3c13b108f2d9f75fd55c729d34c0e9b6fc014392110727b171f conversion-summary.json
7
+ f7dbee5f298abcc6f312c87cabaa7d726e6350a7188c8c7cc06bc5e215f1256e intermediate-inventory.json
8
+ 7f977c1b5861839ed36128b2ed5e5599805ba65256cf1621e4fc95fc97c5eb01 manifest.json
9
+ fcd56e33fa97d2da3ca6a0799df6efefbfe36dfa1d109333b615f6ad8097e88a models/encode-chrombpnet-ATAC-A549-ENCSR032RGS-ENCSR394KFZ/fold_0/fcd56e33fa97d2da3ca6a0799df6efefbfe36dfa1d109333b615f6ad8097e88a.bin
10
+ 675e5541a295cb2bb2c354f7564eb0a60e76d7e3d97d560b4c188395204ed5b3 models/encode-chrombpnet-ATAC-A549-ENCSR032RGS-ENCSR394KFZ/fold_1/675e5541a295cb2bb2c354f7564eb0a60e76d7e3d97d560b4c188395204ed5b3.bin
11
+ f329dd749fce7348af5f099dba3bffc9f111cd5c86ab8441f7b8d4d70642a1f6 original-metadata-index.json
12
+ 09702222ae074bcfbd0ada64c17a6bd298c83caf0296169f629029ffc5c084d1 original-metadata.tar.gz
13
+ 617c3cb2822cd8906ff95161e6d3c7725eb62736191ff6df3aeda27f705a3f0b provenance.json
14
+ 80cd911800ff6dae994c2d63d3ea53c0e157402151bcce175e9dbb0bdc6151ba source-inventory.json
conversion-summary.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "published_checkpoint_count": 2,
3
+ "source_checkpoint_count": 7560,
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,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": 1,
3
+ "family": "ChromBPNet",
4
+ "format": "gscnn-v1",
5
+ "runtime": "chrombpnet-wgsl@1",
6
+ "license": "mit",
7
+ "source_checkpoint_count": 7560,
8
+ "source_experiment_count": 1512,
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
+ 1,
24
+ 1000
25
+ ],
26
+ "output_offset": 557,
27
+ "raw_count_shape": [
28
+ 1,
29
+ 1
30
+ ],
31
+ "count_transform": "log1p",
32
+ "controls": "none; nobias model",
33
+ "profile_normalization": "one joint softmax over all positions and strands"
34
+ },
35
+ "models": [
36
+ {
37
+ "source": {
38
+ "repository": "kundajelab/encode-chrombpnet-ATAC-A549-ENCSR032RGS-ENCSR394KFZ",
39
+ "revision": "077c2ef18ad02b20fe01dad2430bbecc35474bfd",
40
+ "path": "fold_0/model.chrombpnet_nobias.fold_0.ENCSR032RGS.h5",
41
+ "sha256": "44bd15d2784ce5bc95bd081eb0e6c6750b6d0debdab2b7bad75326a620fd5186",
42
+ "bytes": 25582648,
43
+ "destination": "models/encode-chrombpnet-ATAC-A549-ENCSR032RGS-ENCSR394KFZ/fold_0/model.chrombpnet_nobias.fold_0.ENCSR032RGS.onnx",
44
+ "license": "mit",
45
+ "url": "https://huggingface.co/kundajelab/encode-chrombpnet-ATAC-A549-ENCSR032RGS-ENCSR394KFZ/resolve/077c2ef18ad02b20fe01dad2430bbecc35474bfd/fold_0/model.chrombpnet_nobias.fold_0.ENCSR032RGS.h5"
46
+ },
47
+ "experiment": {
48
+ "id": "encode:ENCSR032RGS:hg38",
49
+ "accession": "ENCSR032RGS",
50
+ "biosample": "A549",
51
+ "assay": "ATAC-seq",
52
+ "target": null,
53
+ "assembly": "hg38",
54
+ "species": "Homo sapiens",
55
+ "conditions": null,
56
+ "evidence": "https://huggingface.co/programmable-genomics/CATv1/resolve/dfdd7b6b0a9b20bd59427337e4244056b128bda9/CATv1-metadata.tsv"
57
+ },
58
+ "fold": 0,
59
+ "runtime": "chrombpnet-wgsl@1",
60
+ "artifact": {
61
+ "path": "models/encode-chrombpnet-ATAC-A549-ENCSR032RGS-ENCSR394KFZ/fold_0/fcd56e33fa97d2da3ca6a0799df6efefbfe36dfa1d109333b615f6ad8097e88a.bin",
62
+ "sha256": "fcd56e33fa97d2da3ca6a0799df6efefbfe36dfa1d109333b615f6ad8097e88a",
63
+ "bytes": 25516768
64
+ },
65
+ "intermediate_onnx": {
66
+ "path": "models/encode-chrombpnet-ATAC-A549-ENCSR032RGS-ENCSR394KFZ/fold_0/model.chrombpnet_nobias.fold_0.ENCSR032RGS.onnx",
67
+ "sha256": "d8dd563845c0f03fa23d0f0867c4a03d5f80b3221dfd69fbfce43ef24a0cb398",
68
+ "bytes": 25535117
69
+ },
70
+ "parity_status": "not_tested"
71
+ },
72
+ {
73
+ "source": {
74
+ "repository": "kundajelab/encode-chrombpnet-ATAC-A549-ENCSR032RGS-ENCSR394KFZ",
75
+ "revision": "077c2ef18ad02b20fe01dad2430bbecc35474bfd",
76
+ "path": "fold_1/model.chrombpnet_nobias.fold_1.ENCSR032RGS.h5",
77
+ "sha256": "eb7599b9438c17f44e3da237be3ea235522b88be96734aa3a8c41656c7bd759d",
78
+ "bytes": 25583536,
79
+ "destination": "models/encode-chrombpnet-ATAC-A549-ENCSR032RGS-ENCSR394KFZ/fold_1/model.chrombpnet_nobias.fold_1.ENCSR032RGS.onnx",
80
+ "license": "mit",
81
+ "url": "https://huggingface.co/kundajelab/encode-chrombpnet-ATAC-A549-ENCSR032RGS-ENCSR394KFZ/resolve/077c2ef18ad02b20fe01dad2430bbecc35474bfd/fold_1/model.chrombpnet_nobias.fold_1.ENCSR032RGS.h5"
82
+ },
83
+ "experiment": {
84
+ "id": "encode:ENCSR032RGS:hg38",
85
+ "accession": "ENCSR032RGS",
86
+ "biosample": "A549",
87
+ "assay": "ATAC-seq",
88
+ "target": null,
89
+ "assembly": "hg38",
90
+ "species": "Homo sapiens",
91
+ "conditions": null,
92
+ "evidence": "https://huggingface.co/programmable-genomics/CATv1/resolve/dfdd7b6b0a9b20bd59427337e4244056b128bda9/CATv1-metadata.tsv"
93
+ },
94
+ "fold": 1,
95
+ "runtime": "chrombpnet-wgsl@1",
96
+ "artifact": {
97
+ "path": "models/encode-chrombpnet-ATAC-A549-ENCSR032RGS-ENCSR394KFZ/fold_1/675e5541a295cb2bb2c354f7564eb0a60e76d7e3d97d560b4c188395204ed5b3.bin",
98
+ "sha256": "675e5541a295cb2bb2c354f7564eb0a60e76d7e3d97d560b4c188395204ed5b3",
99
+ "bytes": 25516768
100
+ },
101
+ "intermediate_onnx": {
102
+ "path": "models/encode-chrombpnet-ATAC-A549-ENCSR032RGS-ENCSR394KFZ/fold_1/model.chrombpnet_nobias.fold_1.ENCSR032RGS.onnx",
103
+ "sha256": "d576b4e2a913d895d99eee6c9afe70cdec515a557ca36b32e56dd687b68d1964",
104
+ "bytes": 25535117
105
+ },
106
+ "parity_status": "not_tested"
107
+ }
108
+ ]
109
+ }
models/encode-chrombpnet-ATAC-A549-ENCSR032RGS-ENCSR394KFZ/fold_0/fcd56e33fa97d2da3ca6a0799df6efefbfe36dfa1d109333b615f6ad8097e88a.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fcd56e33fa97d2da3ca6a0799df6efefbfe36dfa1d109333b615f6ad8097e88a
3
+ size 25516768
models/encode-chrombpnet-ATAC-A549-ENCSR032RGS-ENCSR394KFZ/fold_1/675e5541a295cb2bb2c354f7564eb0a60e76d7e3d97d560b4c188395204ed5b3.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:675e5541a295cb2bb2c354f7564eb0a60e76d7e3d97d560b4c188395204ed5b3
3
+ size 25516768
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:09702222ae074bcfbd0ada64c17a6bd298c83caf0296169f629029ffc5c084d1
3
+ size 10290636
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