Stage CellGemma E4B Q4_0 for browser release
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- .gitattributes+3
- LICENSEAdded+195
- README.mdAdded+18
- config.jsonAdded+121
- controls_sample.jsonAdded+3
- decoders/dong/config.jsonAdded+8
- decoders/dong/mean_delta_global.jsonAdded
- decoders/dong/model.safetensorsAdded+3
- decoders/emeraldbay/config.jsonAdded+8
- decoders/emeraldbay/mean_delta_global.jsonAdded
- decoders/emeraldbay/model.safetensorsAdded+3
- decoders/hepg2/config.jsonAdded+8
- decoders/hepg2/mean_delta_global.jsonAdded
- decoders/hepg2/model.safetensorsAdded+3
- decoders/jurkat/config.jsonAdded+8
- decoders/jurkat/mean_delta_global.jsonAdded
- decoders/jurkat/model.safetensorsAdded+3
- decoders/k562/config.jsonAdded+8
- decoders/k562/mean_delta_global.jsonAdded
- decoders/k562/model.safetensorsAdded+3
- decoders/l1000/config.jsonAdded+8
- decoders/l1000/mean_delta_global.jsonAdded
- decoders/l1000/model.safetensorsAdded+3
- decoders/norman/config.jsonAdded+8
- decoders/norman/mean_delta_global.jsonAdded
- decoders/norman/model.safetensorsAdded+3
- decoders/parse/config.jsonAdded+8
- decoders/parse/mean_delta_global.jsonAdded
- decoders/parse/model.safetensorsAdded+3
- decoders/rpe1/config.jsonAdded+8
- decoders/rpe1/mean_delta_global.jsonAdded
- decoders/rpe1/model.safetensorsAdded+3
- decoders/sciplex/config.jsonAdded+8
- decoders/sciplex/mean_delta_global.jsonAdded
- decoders/sciplex/model.safetensorsAdded+3
- decoders/tahoe/config.jsonAdded+8
- decoders/tahoe/mean_delta_global.jsonAdded
- decoders/tahoe/model.safetensorsAdded+3
- decoders/tisch/config.jsonAdded+8
- decoders/tisch/mean_delta_global.jsonAdded
- decoders/tisch/model.safetensorsAdded+3
- decoders/vcc/config.jsonAdded+8
- decoders/vcc/mean_delta_global.jsonAdded
- decoders/vcc/model.safetensorsAdded+3
- kg_sentences.jsonAdded+3
- manifest.jsonAdded
- shard-000.binAdded+3
- shard-001.binAdded+3
- shard-002.binAdded+3
- shard-003.binAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines33343536373832 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textcontrols_sample.json filter=lfs diff=lfs merge=lfs -textkg_sentences.json filter=lfs diff=lfs merge=lfs -texttokenizer.json filter=lfs diff=lfs merge=lfs -text
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the Licensor as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated into the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, Prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright notices, patent notices, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Work; and
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Work, in at least one of the following places: within a NOTICE text file distributed as part of the Work; within the Source form or documentation binary form, if provided along with the Work; or within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text file from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the terms "Google" or "CellGemma" except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of merchantability, fitness for a particular purpose, title, or non-infringement. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any kind arising out of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, or indemnity obligations and/or other liability obligations consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your own responsibility, and not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, each Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice as an editorial notice.
Copyright 2026 CellGemma WebGPU Contributors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.123456789101112131415161718---license: apache-2.0base_model: google/cellgemma-e4bpipeline_tag: text-generationtags:- cellgemma- webgpu- single-cell- quantized---
# CellGemma E4B Q4_0 for WebGPU
Community quantization of [Google DeepMind's CellGemma E4B](https://huggingface.co/google/cellgemma-e4b), not an official Google release. The primary model weights were converted to 4-bit Q4_0 and split into 36 files (4.05 GiB). This project uses its own manifest and binary weight format, not GGUF or a Transformers checkpoint. Tokenizer, control profiles, gene annotations and dataset decoders are unchanged from the upstream assets.
Intended for computational research and education only. The model predicts changes in gene expression under experimental conditions, not treatment efficacy, safety, or patient outcomes. Do not use it for diagnosis, patient care or medical decisions. Predictions are hypotheses that need independent validation. This quantization has not been shown to match the original model's accuracy.
Runtime and browser UI: [CellGemma WebGPU](https://github.com/lhemerly/cellgemma-webgpu). See the [upstream model card](https://huggingface.co/google/cellgemma-e4b) for intended use, limitations, and citations. Licensed under Apache 2.0; see LICENSE.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121{ "architectures": [ "Gemma4ForCausalLM" ], "attention_bias": false, "attention_dropout": 0.0, "attention_k_eq_v": false, "audio_token_id": null, "boa_token_id": null, "boi_token_id": null, "bos_token_id": 2, "dtype": "bfloat16", "enable_moe_block": false, "eoa_token_id": null, "eoi_token_id": null, "eos_token_id": 1, "final_logit_softcapping": 30.0, "head_dim": 256, "hidden_activation": "gelu_pytorch_tanh", "hidden_size": 2560, "hidden_size_per_layer_input": 256, "image_token_id": null, "initializer_range": 0.02, "intermediate_size": 10240, "layer_types": [ "sliding_attention", "sliding_attention", "sliding_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "sliding_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "sliding_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "sliding_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "sliding_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "sliding_attention", "sliding_attention", "sliding_attention", "full_attention", "sliding_attention", "sliding_attention", "sliding_attention", "sliding_attention", "sliding_attention", "full_attention" ], "max_position_embeddings": 131072, "model_type": "gemma4_text", "moe_intermediate_size": null, "num_attention_heads": 8, "num_hidden_layers": 42, "num_key_value_heads": 2, "num_kv_shared_layers": 18, "pad_token_id": 0, "per_layer_config": { "05": { "head_dim": 512 }, "11": { "head_dim": 512 }, "17": { "head_dim": 512 }, "23": { "head_dim": 512 }, "29": { "head_dim": 512 }, "35": { "head_dim": 512 }, "41": { "head_dim": 512 } }, "rms_norm_eps": 1e-06, "rope_parameters": { "full_attention": { "partial_rotary_factor": 0.25, "rope_theta": 1000000.0, "rope_type": "proportional" }, "sliding_attention": { "rope_theta": 10000.0, "rope_type": "default" } }, "sliding_window": 512, "tie_word_embeddings": true, "top_k_experts": null, "transformers_version": "5.18.0.dev0", "use_bidirectional_attention": null, "use_cache": true, "use_double_wide_mlp": false, "vocab_size": 282240, "vocab_size_per_layer_input": 282240}123version https://git-lfs.github.com/spec/v1oid sha256:3b8508d709bff931693c7b917a8bee043f42a37cd3e4fe1d0d99ded6516dd935size 6518588312345678{ "input_dim": 12, "hidden_dims": [ 32, 32, 32 ]}123version https://git-lfs.github.com/spec/v1oid sha256:40ea2ae7fd5a2598386fe935b124a4d0326098c98738c62978d5898bf5de81dbsize 1210012345678{ "input_dim": 12, "hidden_dims": [ 32, 32, 32 ]}123version https://git-lfs.github.com/spec/v1oid sha256:a0b673936327e943931473394024264aff1897c113602ed591d37bd54bd058a3size 1210012345678{ "input_dim": 12, "hidden_dims": [ 32, 32, 32 ]}123version https://git-lfs.github.com/spec/v1oid sha256:7ff107be9436426fe3ccd0c30aa08a8964ae292b5043cb00d63ac17e8426a7aesize 1210012345678{ "input_dim": 12, "hidden_dims": [ 32, 32, 32 ]}123version https://git-lfs.github.com/spec/v1oid sha256:864dcab3d313cba95322fcf98a1f3f08b1e661ffdb894a7770edfc2ec74034aesize 1210012345678{ "input_dim": 12, "hidden_dims": [ 32, 32, 32 ]}123version https://git-lfs.github.com/spec/v1oid sha256:1e1b1eb065444018a47fad38250bac63d53dce702c07e5893fd8bd10d2791b67size 1210012345678{ "input_dim": 12, "hidden_dims": [ 32, 32, 32 ]}123version https://git-lfs.github.com/spec/v1oid sha256:994b4c6140f1e324636dfee0023c3025ae4508652c7a858e4791df81cf0e8043size 1210012345678{ "input_dim": 12, "hidden_dims": [ 32, 32, 32 ]}123version https://git-lfs.github.com/spec/v1oid sha256:62db24f80bdbce448273bd8d7bde81b95b4b26db0e37c8e40189379bb253146csize 1210012345678{ "input_dim": 12, "hidden_dims": [ 32, 32, 32 ]}123version https://git-lfs.github.com/spec/v1oid sha256:21a9658494ba5dc48093015bfd5d9c074d3f593dc20f2e4d4559370f8a27b038size 1210012345678{ "input_dim": 12, "hidden_dims": [ 32, 32, 32 ]}123version https://git-lfs.github.com/spec/v1oid sha256:6c04c412989662fe90b385107e3dc8e949a7f21e42d9c7f8be5abb7d51686061size 1210012345678{ "input_dim": 12, "hidden_dims": [ 32, 32, 32 ]}123version https://git-lfs.github.com/spec/v1oid sha256:ee744bc76720881152a96589cf89534bb09563c1ce48a9dc6b66e046dbf50397size 1210012345678{ "input_dim": 12, "hidden_dims": [ 32, 32, 32 ]}123version https://git-lfs.github.com/spec/v1oid sha256:69715e94f9bb6b8f730ead78c64cd1236086784f7f8572ce6aa0fa6e0f6754a0size 1210012345678{ "input_dim": 12, "hidden_dims": [ 32, 32, 32 ]}123version https://git-lfs.github.com/spec/v1oid sha256:7a4424015b8121f428ba449e96d7f794dbc72f0499b848c67d25c76df7d4e3aesize 1210012345678{ "input_dim": 12, "hidden_dims": [ 32, 32, 32 ]}123version https://git-lfs.github.com/spec/v1oid sha256:932aa16f3afadb9a5498d41fb8b4b87f398cfa9750488df62916e4657bfc4036size 12100123version https://git-lfs.github.com/spec/v1oid sha256:789851c4a58e60f2affce93b10bcafddb6b30000aeba1f62714a02afd1e697d3size 30786275123version https://git-lfs.github.com/spec/v1oid sha256:3d224789425990e2ef03628d25ca4a5fbb859583f7c7b918c4f67b6e7ac53d61size 101606400123version https://git-lfs.github.com/spec/v1oid sha256:f456bdeda2cd4c777536741a2a7913e018e40fcc5f63f97059cb542ff066c045size 101606400123version https://git-lfs.github.com/spec/v1oid sha256:a3a194892157c9d0114b40266cbf3176a252b07cd52b53a51dd18d9c22bedc26size 101606400123version https://git-lfs.github.com/spec/v1oid sha256:ebd5873ac1c96dd1227440924cd2cc47a6aa893c4f3135a281676309d5582b7fsize 101606400.gitattributes+3
LICENSEAdded+195
README.mdAdded+18
config.jsonAdded+121
controls_sample.jsonAdded+3
decoders/dong/config.jsonAdded+8
decoders/dong/mean_delta_global.jsonAdded
decoders/dong/model.safetensorsAdded+3
decoders/emeraldbay/config.jsonAdded+8
decoders/emeraldbay/mean_delta_global.jsonAdded
decoders/emeraldbay/model.safetensorsAdded+3
decoders/hepg2/config.jsonAdded+8
decoders/hepg2/mean_delta_global.jsonAdded
decoders/hepg2/model.safetensorsAdded+3
decoders/jurkat/config.jsonAdded+8
decoders/jurkat/mean_delta_global.jsonAdded
decoders/jurkat/model.safetensorsAdded+3
decoders/k562/config.jsonAdded+8
decoders/k562/mean_delta_global.jsonAdded
decoders/k562/model.safetensorsAdded+3
decoders/l1000/config.jsonAdded+8
decoders/l1000/mean_delta_global.jsonAdded
decoders/l1000/model.safetensorsAdded+3
decoders/norman/config.jsonAdded+8
decoders/norman/mean_delta_global.jsonAdded
decoders/norman/model.safetensorsAdded+3
decoders/parse/config.jsonAdded+8
decoders/parse/mean_delta_global.jsonAdded
decoders/parse/model.safetensorsAdded+3
decoders/rpe1/config.jsonAdded+8
decoders/rpe1/mean_delta_global.jsonAdded
decoders/rpe1/model.safetensorsAdded+3
decoders/sciplex/config.jsonAdded+8
decoders/sciplex/mean_delta_global.jsonAdded
decoders/sciplex/model.safetensorsAdded+3
decoders/tahoe/config.jsonAdded+8
decoders/tahoe/mean_delta_global.jsonAdded
decoders/tahoe/model.safetensorsAdded+3
decoders/tisch/config.jsonAdded+8
decoders/tisch/mean_delta_global.jsonAdded
decoders/tisch/model.safetensorsAdded+3
decoders/vcc/config.jsonAdded+8
decoders/vcc/mean_delta_global.jsonAdded
decoders/vcc/model.safetensorsAdded+3
kg_sentences.jsonAdded+3
manifest.jsonAdded
shard-000.binAdded+3
shard-001.binAdded+3
shard-002.binAdded+3
shard-003.binAdded+3