Model reference · open weights
cellgemma-e4b is an open-weight language model from Google. cellgemma-e4b (BF16) weighs 15.5 GB; the smallest configuration that runs it is 2× RTX 3060 12 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the google/cellgemma-e4b model card, 2026-12-02
What it is
| Released by | |
|---|---|
| Released | 2026-09-27 |
| Parameters | 7.7B |
| VRAM | 15.5 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB … RTX 4060 Ti 16 GB 2 smaller cards | ||||
| RTX 3090 24 GB | 15 | 8 | all 128K | 23.4 GB |
| RTX 4090 24 GB | 15 | 8 | all 128K | 23.4 GB |
| RTX 5090 32 GB | 32 | 18 | all 128K | 31.0 GB |
| L40S 48 GB | 61 | 34 | all 128K | 44.0 GB |
| A100 80 GB | 138 | 77 | all 128K | 78.2 GB |
| H100 80 GB | 79 | 33 | all 128K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 101 | 42 | all 128K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 121 | 50 | all 128K | 107 GB |
| H200 141 GB | 164 | 69 | all 128K | 138 GB |
| B200 180 GB | 218 | 54 | all 128K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel | 13 | 7 | all 128K | 11.6 GB a card |
| 2× RTX 4060 Ti 16 GB tensor parallel | 30 | 17 | all 128K | 15.4 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 16.8 GB | 17.1 GB |
| 5 | 18.5 GB | 20.3 GB |
| 8 | 19.9 GB | 22.7 GB |
| 16 | 23.5 GB | 29.1 GB |
| 32 | 30.6 GB | 41.9 GB |
| 64 | 45.0 GB | 67.5 GB |
One card, with vLLM's small-card settings.
From the model card
CellGemma is a lightweight, open model built by Google DeepMind on the Gemma 4 E4B architecture, fine-tuned for predicting cellular responses to perturbations. CellGemma is designed to process baseline gene expression together with perturbational information.
CellGemma is a non-conversational model. It uses the Gemma 4 E4B architecture and extends the base tokenizer vocabulary with human protein-coding gene symbols. It was pre-trained on non-perturbation single-cell RNA-seq data from scBaseCount, HCA, and CellxGene on tasks such as cell type annotation, then fine-tuned on 10 public perturbation datasets spanning small-molecule treatments, single and combinatorial CRISPR perturbations, cytokines, and clinical studies.
Rather than predicting the full response, CellGemma predicts the residual from a mean-shift baseline. The mean shift captures responses shared across perturbations, so CellGemma only needs to predict the perturbation-specific responses that are not shared. A single CellGemma checkpoint covers all datasets and perturbation types, while the ExpressionDecoders are dataset-specific. CellGemma operates as a two-stage system:
CellGemma): A decoder-only language model with an extended gene-native vocabulary that predicts ranked residual differentially expressed genes (+GENE for upregulated, -GENE for downregulated).ExpressionDecoder): Lightweight dataset-specific MLP decoders (decoders//) that map Stage 1 ranked gene outputs and baseline expression into continuous post-perturbation gene expression and log-fold change (LFC) vectors. This repository includes pretrained decoders for:
tahoe, l1000, emeraldbay, sciplexnadig/replogle, vcc, normanparse, dong, tischSource:)Mean Global prediction:).+GENE for upregulated, -GENE for downregulated).CellGemma is built on Gemma 4 E4B and extends the base tokenizer with 20K human protein-coding gene symbols. Each gene is encoded as a single token instead of being split into subword pieces.
The "E" in E4B stands for effective parameters. E4B uses Per-Layer Embeddings (PLE), which gives each decoder layer its own small embedding for every token. These tables are large but are only used for fast lookups, so the effective parameter count is much smaller than the total. CellGemma also inherits E4B's hybrid attention, which interleaves local sliding window attention with global attention to keep inference fast and memory-efficient. To optimize memory for long contexts, global layers feature unified Keys and Values, and apply Proportional RoPE (p-RoPE).
| Property | Value |
|---|---|
| Base Architecture | Gemma 4 E4B (Dense) |
| Total Parameters | 8B with embeddings |
| Effective Parameters | 4.5B |
| Layers | 42 |
| Sliding Window | 512 tokens |
| Context Length | 16K tokens |
| Vocabulary Size | 282K |
| Supported Modalities | Text |
| Output | Ranked residual DEGs (+GENE / -GENE) |
During inference, CellGemma generates a ranked list of genes (+GENE / -GENE) relative to the mean-shift baseline. A lightweight, dataset-specific ExpressionDecoder then converts this list into continuous expression and log-fold change (LFC) vectors.
CellGemma's performance has been validated across 10 perturbation benchmarks spanning 32 held-out generalization splits (including unseen perturbations, unseen drug mechanisms of action, unseen donors, unseen cell lines, and unseen combinations). In the table below, the metric is Pearson Δ. See Model Data section for the details on benchmark datasets.
| Dataset | Split | CellGemma | Mean Shift Baseline |
|---|---|---|---|
| Tahoe | Unseen Pert./Cell | 0.76 ± 0.01 | 0.56 ± 0.02 |
| Tahoe | Unseen Perturbation | 0.56 ± 0.02 | 0.26 ± 0.02 |
| Tahoe | Unseen Mechanism | 0.56 ± 0.01 | 0.30 ± 0.02 |
| Tahoe | Unseen Cell Line | 0.73 ± 0.01 | 0.59 ± 0.02 |
| EmeraldBay | Unseen Pert./Cell | 0.48 ± 0.02 | 0.30 ± 0.02 |
| EmeraldBay | Unseen Perturbation | 0.25 ± 0.01 | 0.05 ± 0.01 |
| EmeraldBay | Unseen Mechanism | 0.34 ± 0.02 | 0.08 ± 0.01 |
| EmeraldBay | Unseen Cell Line | 0.43 ± 0.02 | 0.25 ± 0.02 |
| SciPlex | Unseen Pert./Cell | 0.23 ± 0.02 | 0.09 ± 0.02 |
| SciPlex | Unseen Perturbation | 0.28 ± 0.02 | 0.10 ± 0.01 |
| SciPlex | Unseen Mechanism | 0.24 ± 0.04 | 0.11 ± 0.03 |
| L1000 | Unseen Pert./Cell | 0.38 ± 0.01 | 0.28 ± 0.01 |
| L1000 | Unseen Perturbation | 0.34 ± 0.01 | 0.18 ± 0.01 |
| L1000 | Unseen Cell Line | 0.15 ± 0.01 | 0.13 ± 0.01 |
| Parse | Unseen Pert./Cell | 0.30 ± 0.01 | 0.20 ± 0.01 |
| Parse | Unseen Perturbation | 0.16 ± 0.01 | 0.06 ± 0.01 |
| Parse | Unseen Donor | 0.20 ± 0.02 | 0.16 ± 0.01 |
| Parse | Unseen Cell Type | 0.29 ± 0.02 | 0.21 ± 0.02 |
| Dong | Unseen Pert./Cell | 0.56 ± 0.10 | 0.39 ± 0.11 |
| Dong | Unseen Perturbation | 0.47 ± 0.06 | 0.36 ± 0.06 |
| Dong | Unseen Donor | 0.58 ± 0.05 | 0.47 ± 0.06 |
| Dong | Unseen Cell Type | 0.53 ± 0.06 | 0.50 ± 0.06 |
| Nadig/Replogle HepG2 | Unseen Perturbation | 0.57 ± 0.01 | 0.44 ± 0.01 |
| Nadig/Replogle Jurkat | Unseen Perturbation | 0.45 ± 0.02 | 0.35 ± 0.01 |
| Nadig/Replogle K562 | Unseen Perturbation | 0.45 ± 0.02 | 0.34 ± 0.01 |
| Nadig/Replogle RPE1 | Unseen Perturbation | 0.61 ± 0.02 | 0.54 ± 0.02 |
| VCC | Unseen Perturbation | 0.16 ± 0.02 | 0.11 ± 0.01 |
| Norman |
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.