Model reference · open weights

cellgemma-e4b

LLMs google Text gen 1 build Open weights 36 dl/mo

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.

  • CellGemma is a text-generation model by Google DeepMind designed to predict cellular responses to perturbations.
  • It uses the Gemma 4 E4B architecture with 7.7B parameters and a 131072 token context length.
  • The model is released under the apache-2.0 license.

Summary of the google/cellgemma-e4b model card, 2026-12-02

What it is

Released byGoogle
Released2026-09-27
Parameters7.7B
VRAM15.5 GB for the weights

What it runs on

Memory and cards for cellgemma-e4b (BF16)

15.5 GBweights, file size
14 MBcache per 1K tokens
330 MBwindow cache per request
844 MBruntime overhead, at least
131,072 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB … RTX 4060 Ti 16 GB
2 smaller cards
RTX 3090 24 GB158all 128K23.4 GB
RTX 4090 24 GB158all 128K23.4 GB
RTX 5090 32 GB3218all 128K31.0 GB
L40S 48 GB6134all 128K44.0 GB
A100 80 GB13877all 128K78.2 GB
H100 80 GB7933all 128K78.1 GB
RTX PRO 6000 Blackwell 96 GB10142all 128K93.8 GB
DGX Spark (GB10) 128 GB unified12150all 128K107 GB
H200 141 GB16469all 128K138 GB
B200 180 GB21854all 128K176 GB
2× RTX 3060 12 GB
tensor parallel
137all 128K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
3017all 128K15.4 GB a card
Memory needed at each load
Requests at once8K tokens each32K tokens each
116.8 GB17.1 GB
518.5 GB20.3 GB
819.9 GB22.7 GB
1623.5 GB29.1 GB
3230.6 GB41.9 GB
6445.0 GB67.5 GB

One card, with vLLM's small-card settings.

From the model card

What Google says about cellgemma-e4b

Read the model card

Description

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:

  • Stage 1 (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).
  • Stage 2 (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:
    • Small Molecules: tahoe, l1000, emeraldbay, sciplex
    • CRISPR Genetic Perturbations: nadig/replogle, vcc, norman
    • Cytokines & Clinical: parse, dong, tisch

Inputs and Outputs

  • Input: A text prompt containing:
    • a preamble instruction describing the prediction task;
    • the perturbation and experimental conditions (for example drug name, SMILES and concentration for small molecules);
    • the baseline cell, as a ranked list of its top 1,000 expressed genes (Source:)
    • a dataset-wide mean-shift prediction, as a ranked gene list (Mean Global prediction:).
  • Output: A ranked list of residual differentially expressed genes relative to the mean-shift prediction (+GENE for upregulated, -GENE for downregulated).

Model Overview

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).

PropertyValue
Base ArchitectureGemma 4 E4B (Dense)
Total Parameters8B with embeddings
Effective Parameters4.5B
Layers42
Sliding Window512 tokens
Context Length16K tokens
Vocabulary Size282K
Supported ModalitiesText
OutputRanked 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.

Benchmark Results

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.

DatasetSplitCellGemmaMean Shift Baseline
TahoeUnseen Pert./Cell0.76 ± 0.010.56 ± 0.02
TahoeUnseen Perturbation0.56 ± 0.020.26 ± 0.02
TahoeUnseen Mechanism0.56 ± 0.010.30 ± 0.02
TahoeUnseen Cell Line0.73 ± 0.010.59 ± 0.02
EmeraldBayUnseen Pert./Cell0.48 ± 0.020.30 ± 0.02
EmeraldBayUnseen Perturbation0.25 ± 0.010.05 ± 0.01
EmeraldBayUnseen Mechanism0.34 ± 0.020.08 ± 0.01
EmeraldBayUnseen Cell Line0.43 ± 0.020.25 ± 0.02
SciPlexUnseen Pert./Cell0.23 ± 0.020.09 ± 0.02
SciPlexUnseen Perturbation0.28 ± 0.020.10 ± 0.01
SciPlexUnseen Mechanism0.24 ± 0.040.11 ± 0.03
L1000Unseen Pert./Cell0.38 ± 0.010.28 ± 0.01
L1000Unseen Perturbation0.34 ± 0.010.18 ± 0.01
L1000Unseen Cell Line0.15 ± 0.010.13 ± 0.01
ParseUnseen Pert./Cell0.30 ± 0.010.20 ± 0.01
ParseUnseen Perturbation0.16 ± 0.010.06 ± 0.01
ParseUnseen Donor0.20 ± 0.020.16 ± 0.01
ParseUnseen Cell Type0.29 ± 0.020.21 ± 0.02
DongUnseen Pert./Cell0.56 ± 0.100.39 ± 0.11
DongUnseen Perturbation0.47 ± 0.060.36 ± 0.06
DongUnseen Donor0.58 ± 0.050.47 ± 0.06
DongUnseen Cell Type0.53 ± 0.060.50 ± 0.06
Nadig/Replogle HepG2Unseen Perturbation0.57 ± 0.010.44 ± 0.01
Nadig/Replogle JurkatUnseen Perturbation0.45 ± 0.020.35 ± 0.01
Nadig/Replogle K562Unseen Perturbation0.45 ± 0.020.34 ± 0.01
Nadig/Replogle RPE1Unseen Perturbation0.61 ± 0.020.54 ± 0.02
VCCUnseen Perturbation0.16 ± 0.020.11 ± 0.01
Norman

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms