Upload CellGemma E4B Q4_0 WebGPU weights and assets
Browse files36 <=128 MiB Q4_0 shards, manifest, tokenizer, controls, kg_sentences, and 13 ExpressionDecoders.
123456789101112131415161718---license: apache-2.0base_model: google/cellgemma-e4bpipeline_tag: text-generationtags:- cellgemma- webgpu- single-cell- quantized---# CellGemma E4B Q4_0 for WebGPUCommunity 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.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960---license: apache-2.0license_link: https://ai.google.dev/gemma/apache_2base_model:- google/cellgemma-e4bpipeline_tag: text-generationtags:- cellgemma- gemma4- single-cell- perturbation- webgpu- wasm- q4_0- quantized---# CellGemma E4B — Q4_0 WebGPU / 8GB VRAM Quantized Weights (`cellgemma-q4-v1`)Pre-quantized **Q4_0** (block size 32, 18 bytes/block) weights for [`google/cellgemma-e4b`](https://huggingface.co/google/cellgemma-e4b), sharded into **36 binary files (`<= 128 MiB` each)** so every tensor fits within standard WebGPU `maxStorageBufferBindingSize` limits and runs comfortably on **8 GB GPUs** (including in-browser WebGPU via Wasm and native Vulkan via `wgpu`).- **Engine & Interactive SMILES Perturbation Lab**: [https://github.com/lhemerly/cellgemma-webgpu](https://github.com/lhemerly/cellgemma-webgpu)- **Base Model**: [`google/cellgemma-e4b`](https://huggingface.co/google/cellgemma-e4b) (`Gemma4ForCausalLM`, `gemma4_text`, 42 layers, 4.5B effective / 7.73B total params, 282,240 vocab)- **License**: Apache 2.0## Shard & VRAM Summary| Metric | Value || --- | --- || Format | `cellgemma-q4-v1` (Q4_0 block-32, 256-byte aligned, LE) || Shards | `36` files (`shard-000.bin` .. `shard-035.bin`) || Max Shard Size | `133,594,624` bytes (`127.41 MiB`, `<= 128 MiB`) || Total Weight Size | `4,350,358,804` bytes (`4.052 GiB`) || `embed_tokens` (4 row-shards) | `406,425,600` bytes (`387.60 MiB`) || PLE (`42` per-layer tables) | `1,706,987,520` bytes (`1.590 GiB`) || Transformer + Norms + PLE Proj | `2,236,945,684` bytes (`2.083 GiB`) || Total GPU VRAM (GPU PLE mode) | `~4.33 GiB` (`4,429.63 MB` measured on RX 6600 XT 8GB) || Total GPU VRAM (CPU PLE mode) | `~2.74 GiB` (`2,801.72 MB` measured on RX 6600 XT 8GB) |## Included Assets- `manifest.json` — shard & tensor index (`709` tensors)- `shard-000.bin` .. `shard-035.bin` — Q4_0 weights + F32 norms/scalars- `config.json` — original Gemma 4 text config- `tokenizer.json` — extended 282,240-token vocabulary (with ~20K HGNC gene symbols)- `controls_sample.json` — baseline control cell expression profiles- `kg_sentences.json` — knowledge-graph gene descriptions for CRISPR/cytokine prompts- `decoders/<dataset>/` — all 13 Stage 2 `ExpressionDecoder` MLPs (`dong`, `emeraldbay`, `hepg2`, `jurkat`, `k562`, `l1000`, `norman`, `parse`, `rpe1`, `sciplex`, `tahoe`, `tisch`, `vcc`)## UsageClone and run with [`cellgemma-webgpu`](https://github.com/lhemerly/cellgemma-webgpu):```bash# Serve the WebGPU Perturbation Lab locallypython3 scripts/serve.py# Or run natively via wgpu (Vulkan/Metal/DX12)cargo run --release -p cellgemma-cli -- --model-dir models/cellgemma-e4b-q4```
README.md+51-9