|
Download README.md from ramithuh/cg2all-webgpu: direct link, hf CLI and curl.
- Browser
- Download file 3.01 kB
-
https://huggingface.co/ramithuh/cg2all-webgpu/resolve/main/README.md
- Command line
-
hf download hf://ramithuh/cg2all-webgpu/README.md
-
curl -L -o README.md https://huggingface.co/ramithuh/cg2all-webgpu/resolve/main/README.md
3.01 kB
| license: cc-by-4.0 | |
| tags: | |
| - protein | |
| - webgpu | |
| - coarse-grained | |
| - backmapping | |
| - se3-transformer | |
| # cg2all-webgpu | |
| Browser (WebGPU / WGSL) weight bundles for **cg2all** Cα-trace → all-atom backmapping | |
| (Heo & Feig, *One particle per residue is sufficient to describe all-atom protein structures*, | |
| Structure 32(1):97–111, 2024 · code: [huhlim/cg2all](https://github.com/huhlim/cg2all), Apache-2.0 · | |
| weights: [Zenodo 8393343](https://zenodo.org/records/8393343), CC-BY-4.0). | |
| Used by the `cg2all` block of [denovo.run](https://denovo.run) (runtime in `web/static/vendor/cg2all/`, tooling in `tools/cg2all/`). | |
| | Variant | Checkpoint (Zenodo 8393343) | Behaviour | | |
| | --- | --- | --- | | |
| | `ca/` | `CalphaBasedModel.ckpt` (sha256 `c00cc1cc002c9db1aeb2a62558edd9948b783568f54cb1fa12584b2bed22e00c`) | Cα positions refined by the model | | |
| | `ca-fix/` | `CalphaBasedModel-FIX.ckpt` (sha256 `785b804494c5e95349d2ee6bdaddf8859f14b09eee0601b0530b795a778a4acb`) | Input Cα kept exactly (`--fix`) | | |
| Each `<variant>/<precision>/` holds `manifest.json` (tensor table, config, SHA-256) and `weights.bin`. | |
| Tensors keep their PyTorch `state_dict` names. Only the radial-profile output layers | |
| (`*.radial_func.net.6.weight`, 3.90 M of 4.05 M parameters) are reduced precision; embeddings, | |
| LinearSE3 maps, norms and radial hidden layers stay float32. Compute is float32 in WGSL. | |
| - `fp16`: radial output layers as IEEE half. | |
| - `int8`: radial output layers as symmetric int8 with one fp16 scale per 16 consecutive weights. | |
| | File | Size | SHA-256 | | |
| | --- | --- | --- | | |
| | `ca/fp16/weights.bin` | 8.06 MiB | `7c2766b55955ecab1c68a457fbe1f78c2f0f30a083a4a50424a000368cc4caf6` | | |
| | `ca/int8/weights.bin` | 4.82 MiB | `42acffcb6751b1a3789dea2882bebd88f1bb316509e1e4df897e2b5e5de49484` | | |
| | `ca-fix/fp16/weights.bin` | 8.06 MiB | `ba6625c543bf6e1a4980fe1ec5a287f47cc8a106e282d2e92f2b5b439d2a5f94` | | |
| | `ca-fix/int8/weights.bin` | 4.82 MiB | `3743f046ce080f843e4eae3cbf3b41ae9eb0b2a9d6ced98f4257f524c618ea8a` | | |
| ## Parity vs the PyTorch FP32 reference | |
| All-atom RMSD (same frame) on a 16-aa ideal helix, the 46-aa crambin (1AB1) Cα trace with three | |
| SSBONDs, and a 42-aa two-chain trace with a 14.6 Å break; measured on SwiftShader WebGPU (headless | |
| Chromium, ARM64) and on the float64 CPU path: | |
| | Precision | `ca` | `ca-fix` | max single-atom deviation | | |
| | --- | --- | --- | --- | | |
| | fp16 | 1.2e-4 – 2.6e-4 Å | 1.5e-4 – 4.3e-4 Å | 4.6e-3 Å | | |
| | int8 | 6.0e-3 – 2.1e-2 Å | 5.5e-3 – 5.8e-2 Å | 0.544 Å | | |
| (An unquantized fp32 export reproduces PyTorch to ≤ 6e-5 Å.) | |
| ## Reproduce | |
| ```bash | |
| python -I tools/cg2all/export_weights.py --ckpt CalphaBasedModel.ckpt --variant ca --out out/ca | |
| python -I tools/cg2all/export_weights.py --ckpt CalphaBasedModel-FIX.ckpt --variant ca-fix --out out/ca-fix | |
| ``` | |
| The SE(3)-Transformer port follows [huhlim/SE3Transformer](https://github.com/huhlim/SE3Transformer) | |
| (fork of NVIDIA's SE(3)-Transformer, MIT). Weights are redistributed under the upstream Apache-2.0 license. | |