breakoutmodels.dev Version v0.12.5+4412b97

New and rising models on the Hub, measured where we can

growth 2.78K downloads a day, observed
local history143snapshots
size bucketsmall
freshness0%
Back to the list

google

cellgemma-e4b

text-generation transformers Open on huggingface.co (opens in a new tab)

Part of the gemma-4-E4B family: 8 models this site has captured, all built from google/gemma-4-E4B.

7.73B parameters, read from safetensors
2.78Kdownloads a day observed
171.4likes a day
413likes
6.11Kdownloads in 30d
6.18Kdownloads, all time
313Hub trending score
14.5GBrepo size
2.3moage
7Spaces using it

Change over time

Every capture this machine has made of the repo. Counters hold their value until the capture that saw them change, so the lines are steps. Times in UTC.

Downloads, 30-day count 6.11K +6.07K in 2d
Likes 413 +375 in 2d
Hub trending score 313 +279 in 2d
Show the captures as a table 143 distinct measurements
Captured (UTC)LikesDownloadsTrendingTracked rank
2026-12-03 23:384136.11K 3139
2026-12-03 23:234126.11K 3139
2026-12-03 21:374106.11K 3139
2026-12-03 20:374096.11K 3129
2026-12-03 20:224086.11K 3119
2026-12-03 20:074046.11K 3119
2026-12-03 19:523906.11K 3119
2026-12-03 19:373846.11K 3119
2026-12-03 19:223836.11K 3119
2026-12-03 19:073816.11K 30910
2026-12-03 18:253796.11K 30710
2026-12-03 18:093786.11K 30611
2026-12-03 17:543776.11K 30510
2026-12-03 16:083766.11K 30511
2026-12-03 15:323756.11K 30411
2026-12-03 15:173736.11K 30211
2026-12-03 14:473726.11K 30111
2026-12-03 14:013696.11K 29811
2026-12-03 13:463676.11K 29611
2026-12-03 13:303666.11K 29511
2026-12-03 12:453656.11K 29510
2026-12-03 12:303636.11K 29311
2026-12-03 12:143626.11K 29211
2026-12-03 11:283616.11K 29110
2026-12-03 10:583596.11K 29010
2026-12-03 10:433566.11K 28910
2026-12-03 10:273531.54K 28711
2026-12-03 10:123511.54K 28611
2026-12-03 09:423501.54K 28511
2026-12-03 09:263461.54K 28311
2026-12-03 09:113431.54K 28111
2026-12-03 08:413421.54K 28011
2026-12-03 08:253411.54K 27911
2026-12-03 08:103391.54K 27811
2026-12-03 07:403381.54K 27811
2026-12-03 07:243341.54K 27511
2026-12-03 06:543321.54K 27311
2026-12-03 05:593311.54K 27311
2026-12-03 05:443301.54K 27211
2026-12-03 05:373291.54K 27111
2026-12-03 05:063271.54K 26911
2026-12-03 04:003251.54K 26811
2026-12-03 03:293231.54K 26711
2026-12-03 02:443221.54K 26611
2026-12-03 01:583211.54K 26611
2026-12-03 01:123201.54K 26511
2026-12-03 00:263191.54K 26411
2026-12-03 00:113161.54K 26112
2026-12-02 23:563141.54K 25913
2026-12-02 23:253131.54K 25913
2026-12-02 22:093111.54K 25713
2026-12-02 21:543091.54K 25613
2026-12-02 21:243081.54K 25513
2026-12-02 21:093051.54K 25213
2026-12-02 20:533041.54K 25113
2026-12-02 20:383021.54K 24913
2026-12-02 20:233011.54K 24813
2026-12-02 20:083001.54K 24713
2026-12-02 19:592991.54K 24613
2026-12-02 19:532981.54K 24513
2026-12-02 19:362871.54K 24413
2026-12-02 19:202761.54K 24313
2026-12-02 19:052661.54K 24313
2026-12-02 18:522641.54K 24213
2026-12-02 18:372631.54K 24114
2026-12-02 18:222611.54K 23914
2026-12-02 18:072591.54K 23714
2026-12-02 17:522571.54K 23514
2026-12-02 17:412561.54K 23514
2026-12-02 17:222551.54K 23414
2026-12-02 17:072531.54K 23214
2026-12-02 16:522511.54K 23114
2026-12-02 16:372501.54K 23014
2026-12-02 16:222491.54K 23014
2026-12-02 16:072481.54K 22915
2026-12-02 15:522461.54K 22715
2026-12-02 15:372411.54K 22315
2026-12-02 15:222401.54K 22215
2026-12-02 15:072371.54K 21915
2026-12-02 14:522351.54K 21715
2026-12-02 14:372311.54K 21315
2026-12-02 14:222281.54K 21116
2026-12-02 14:072241.54K 20816
2026-12-02 13:522211.54K 20516
2026-12-02 13:372211.54K 20416
2026-12-02 13:222181.54K 20116
2026-12-02 13:072171.54K 20016
2026-12-02 12:522331.54K 19612
2026-12-02 12:372321.54K 19513
2026-12-02 12:262441.54K 19410
2026-12-02 12:112421.54K 19210
2026-12-02 11:562361.54K 18611
2026-12-02 11:412331.54K 18312
2026-12-02 11:262301.54K 18012
2026-12-02 11:102261.54K 17713
2026-12-02 10:522251.54K 17613
2026-12-02 10:232241.54K 17513
2026-12-02 10:0822236 17413
2026-12-02 09:3821936 17113
2026-12-02 09:0821736 16913
2026-12-02 08:5321636 16813
2026-12-02 08:3821436 16614
2026-12-02 08:2321236 16414
2026-12-02 08:0821136 16314
2026-12-02 07:5320736 16114
2026-12-02 07:3820536 15914
2026-12-02 07:2320336 15714
2026-12-02 07:0820236 15614
2026-12-02 06:5319936 15314
2026-12-02 06:3819736 15214
2026-12-02 06:2319436 15114
2026-12-02 06:0819136 14814
2026-12-02 05:5319036 14714
2026-12-02 05:3818736 14414
2026-12-02 05:2218336 14014
2026-12-02 05:0718136 13814
2026-12-02 04:3717936 13714
2026-12-02 04:2217636 13414
2026-12-02 04:0717136 12915
2026-12-02 03:5217036 12815
2026-12-02 03:3716636 12415
2026-12-02 03:2216336 12216
2026-12-02 03:0715936 11817
2026-12-02 02:5215736 11617
2026-12-02 02:3715536 11417
2026-12-02 02:2215236 11118
2026-12-02 02:0715036 10918
2026-12-02 01:5214636 10519
2026-12-02 01:3714136 10120
2026-12-02 01:2213736 9720
2026-12-02 01:0713636 9620
2026-12-02 00:5213436 9420
2026-12-02 00:3713136 9120
2026-12-02 00:2212836 8821
2026-12-02 00:0712636 8621
2026-12-01 23:5212436 8422
2026-12-01 23:3712136 8123
2026-12-01 23:2212036 8023
2026-12-01 23:0711736 38.560
2026-12-01 22:0711136 35.564
2026-12-01 21:089936 30.577
2026-12-01 20:078436 25124
2026-12-01 19:073836 3478

The ranking switches a repo from proxy to observed growth as soon as two snapshots exist.

Model card

The authors' README from huggingface.co. Benchmarks and claims in it are theirs, not breakoutmodels measurements.

Hugging Face | GitHub | Launch Blog | Documentation
License: Apache 2.0 | Authors: Google DeepMind

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

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.

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.

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 Both Genes Seen 0.74 ± 0.02 0.53 ± 0.05
Norman One Gene Seen 0.49 ± 0.02 0.46 ± 0.02
Norman Both Genes Unseen 0.55 ± 0.03 0.48 ± 0.05
TISCH Within-Study 0.53 ± 0.01 0.22 ± 0.01
TISCH Cross-Study 0.28 ± 0.02 0.05 ± 0.01

Getting Started

Below is an example showing how to load both CellGemma and an ExpressionDecoder to predict transcriptional changes for a drug perturbation and a genetic knockdown.

To get started, install the necessary dependencies in your environment:

pip install -U transformers torch accelerate safetensors huggingface_hub
1. Load CellGemma and ExpressionDecoder
import json
from huggingface_hub import hf_hub_download
import numpy as np
import safetensors.torch
import torch
from torch import nn
from transformers import AutoModelForCausalLM, AutoTokenizer


MODEL_ID = "google/cellgemma-e4b"
tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
model = AutoModelForCausalLM.from_pretrained(
    MODEL_ID, device_map="auto", dtype=torch.bfloat16
).eval()


def load_hf_json(filename: str):
    """Download a JSON file from the CellGemma Hub repo."""
    with open(hf_hub_download(MODEL_ID, filename), encoding="utf-8") as f:
        return json.load(f)


class ExpressionDecoder(nn.Module):
   """MLP decoder that predicts the expression change relative to baseline.
    The raw output goes through an ELU-like activation scaled by the control
    expression. This keeps negative deltas above baseline, so the predicted
    expression (baseline + delta) is never negative.
    Args:
        input_dim: Size of the input feature vector.
        hidden_dims: Hidden layer widths.
        max_exp_arg: Clamp on the exponent to avoid overflow.
    """
    def __init__(self, input_dim, hidden_dims, max_exp_arg=88.0):
        super().__init__()
        self.input_dim = input_dim
        self.max_exp_arg = max_exp_arg
        self.bn0 = nn.BatchNorm1d(input_dim + 1)
        layers, d = [self.bn0], input_dim + 1
        for h in hidden_dims:
            layers += [nn.Linear(d, h), nn.ReLU()]
            d = h
        self.mlp = nn.Sequential(*layers, nn.Linear(d, 1))

    def forward(self, features, control_expression):
        eps, ctrl = 1e-6, control_expression.view(-1, 1)
        x = self.mlp(torch.cat([features, ctrl], dim=1))
        ctrl_safe = ctrl - torch.where(x >= 0, eps, -eps)
        exp_term = (x / ctrl_safe).clamp(max=self.max_exp_arg)
        neg_delta = ctrl_safe * (torch.exp(exp_term) - 1.0)
        return torch.where(x > 0, x, neg_delta) + eps


def load_decoder(name: str):
    """Load the named ExpressionDecoder and its global mean deltas."""
    cfg = load_hf_json(f"decoders/{name}/config.json")
    decoder = ExpressionDecoder(cfg["input_dim"], cfg["hidden_dims"])
    weights = hf_hub_download(MODEL_ID, f"decoders/{name}/model.safetensors")
    decoder.load_state_dict(safetensors.torch.load_file(weights))
    mean_deltas = load_hf_json(f"decoders/{name}/mean_delta_global.json")
    return decoder.eval(), mean_deltas
2. Run CellGemma Generation and ExpressionDecoder Reconstruction
PREAMBLE = (
    "Examine how the single-cell sample, captured in 'Source:', responds "
    "transcriptionally to the perturbation under the stated experimental "
    "conditions. You are given the dataset-wide average prediction in 'Mean "
    "Global prediction:' and you need to predict the residual from that mean "
    "to the true final expression."
)

controls_all = load_hf_json("controls_sample.json")

def load_control_cell(dataset: str, cell_idx: int, mean_deltas: dict):
    """Returns genes, control expression and mean-shift baseline."""
    controls = controls_all[dataset]
    genes = [g.upper() for g in controls["genes"]]
    cell = controls["cells"][cell_idx]
    ctrl_expr = np.array(cell["expression"], dtype=np.float32)
    mean_deltas = {k.upper(): float(v) for k, v in mean_deltas.items()}
    mean_vec = np.array([mean_deltas[g] for g in genes], dtype=np.float32)
    baseline = np.maximum(0.0, ctrl_expr + mean_vec)
    return genes, ctrl_expr, baseline

def top_genes(v: np.ndarray, genes: list[str], k: int = 1000) -> str:
    """Formats the top-k expressed genes, highest first, as a sentence."""
    ranked = [genes[i] for i in np.argsort(v)[::-1] if v[i] > 0]
    return " ".join(ranked[:k])

def build_prompt(perturbation_text, genes, ctrl_expr, baseline) -> str:
    return (
        f"{PREAMBLE}\n\n{perturbation_text}\n\n"
        f"Source: {top_genes(ctrl_expr, genes)}\n\n"
        f"Mean Global prediction: {top_genes(baseline, genes)}\n"
        "Target: "
    )

def generate(
    prompt: str, temperature: float = 0.7, max_new_tokens: int = 8192
) -> str:
    """Generates ranked residual DEGs (+GENE / -GENE) with CellGemma."""
    inputs = tokenizer(
        f"<bos><|turn>user\n{prompt}<turn|>\n<|turn>model\n",
        return_tensors="pt",
        add_special_tokens=False,
    ).to(model.device)
    eot_id = tokenizer.convert_tokens_to_ids("<turn|>")
    with torch.no_grad():
        outputs = model.generate(
            **inputs,
            max_new_tokens=max_new_tokens,
            do_sample=True,
            temperature=temperature,
            pad_token_id=tokenizer.pad_token_id,
            eos_token_id=[tokenizer.eos_token_id, eot_id],
        )
    return tokenizer.decode(
        outputs[0, inputs["input_ids"].shape[1] :], skip_special_tokens=True
    ).strip()

def parse_genes(text: str, gene_to_idx: dict) -> tuple[list, list]:
    """Splits model output into known upregulated and downregulated genes."""
    tokens = text.split()
    up = [t[1:].upper() for t in tokens if t.startswith("+")]
    down = [t[1:].upper() for t in tokens if t.startswith("-")]
    up = [g for g in up if g in gene_to_idx]
    down = [g for g in down if g in gene_to_idx]
    return up, down

def reconstruct(text, genes, ctrl_expr, baseline, decoder):
    """Returns (predicted_expr, predicted_lfc) using the ExpressionDecoder."""
    gene_to_idx = {g: i for i, g in enumerate(genes)}
    up, down = parse_genes(text, gene_to_idx)
    residual_vec = np.zeros_like(baseline)
    if up or down:
        task_oh = [0.0] * 7 + [1.0]  # mean_global residual task
        feats, ctrl_vals, idxs = [], [], []
        for is_up, g_list in ((1.0, up), (0.0, down)):
            for rank, g in enumerate(g_list):
                idx = gene_to_idx[g]
                feats.append(
                    [is_up, float(rank), float(len(up)), float(len(down))]
                    + task_oh
                )
                ctrl_vals.append(baseline[idx])
                idxs.append(idx)
        with torch.no_grad():
            deltas = decoder(torch.tensor(feats), torch.tensor(ctrl_vals))
        residual_vec[idxs] = deltas.cpu().numpy().flatten()
    predicted_expr = baseline + residual_vec
    return predicted_expr, predicted_expr - ctrl_expr

def predict(
    dataset: str,
    perturbation_text: str,
    cell_idx: int = 0,
    max_new_tokens: int = 8192,
):
    """Returns (text_output, predicted_expr, predicted_lfc) for one cell."""
    decoder, mean_deltas = load_decoder(dataset)
    genes, ctrl_expr, baseline = load_control_cell(
        dataset, cell_idx, mean_deltas
    )
    prompt = build_prompt(perturbation_text, genes, ctrl_expr, baseline)
    text = generate(prompt, max_new_tokens=max_new_tokens)
    predicted_expr, predicted_lfc = reconstruct(
        text, genes, ctrl_expr, baseline, decoder
    )
    return text, predicted_expr, predicted_lfc


# Drug perturbation (Tahoe)
drug_text, drug_expr, drug_lfc = predict(
    "tahoe",
    "Drug name: Panobinostat\n"
    "Drug SMILES: Cc1[nH]c2ccccc2c1CCNCc1ccc(/C=C/C(=O)NO)cc1\n"
    "Concentration: 0.5 uM",
)
# Genetic knockdown (K562), described with its knowledge-graph sentence
kg = load_hf_json("kg_sentences.json")
myc_kg = kg["MYC"].strip()
ko_text, ko_expr, ko_lfc = predict("k562", f"Gene knockdown: {myc_kg}")
print(f"Panobinostat text output: {drug_text[:200]}...")
print(f"Predicted expression shape: {drug_expr.shape}")
print(f"MYC knockdown text output: {ko_text[:200]}...")
print(f"Predicted expression shape: {ko_expr.shape}")

Best Practices

For the best performance, use these configurations and best practices:

1. Sampling Parameters

Use the following sampling configuration, which matches the evaluation setup:

  • do_sample=True
  • temperature=0.7
  • max_new_tokens=8192
2. Prompt Format

CellGemma was trained on a fixed prompt template, and changing it can degrade predictions.

  • Wrap the prompt in the Gemma 4 turn format: <bos><|turn>user\n{prompt}<turn|>\n<|turn>model\n. Tokenize with add_special_tokens=False so <bos> isn't added twice.
  • Keep the sections in this order, with the exact labels: preamble → perturbation description → Source: → Mean Global prediction: → Target:.
  • Use the preamble given in the Getting Started example word for word.
  • Don't add a system prompt, a <|think|> token, or free-form questions. CellGemma is non-conversational and doesn't support thinking mode.
3. Input Expression Preprocessing

Baseline expression should be processed the same way as the training data:

  • Pseudobulk the raw counts, subset to protein-coding genes, library-size normalize, and apply log1p.
  • Use uppercase HGNC gene symbols. Genes outside the extended vocabulary are tokenized using the base Gemma 4 tokenizer.
  • For Source:, list the top 1,000 genes with expression above zero, ranked from highest to lowest.
  • For Mean Global prediction:, compute max(0, control + mean_delta_global) using the mean_delta_global.json that belongs to the decoder you're using. Then rank its top 1,000 genes the same way.
4. Describing Perturbations

Use the field formats seen in training:

  • Small molecules: Drug name:, Drug SMILES:, and Concentration: with explicit units, e.g. 0.5 uM.
  • Genetic perturbations: Gene knockdown: followed by the gene's knowledge-graph sentence from kg_sentences.json, rather than the bare gene symbol.
  • Cytokines: Write the cytokine as its gene name followed by that gene's knowledge-graph sentence from kg_sentences.json. For example, write IFN-γ as IFNG plus its sentence.
  • Clinical treatments: Write the treatment as a plain-text name.
  • Combinatorial perturbations: Write each perturbation in full, one after another, in the same format you'd use for it alone. For example, a dual knockdown is two Gene knockdown: entries in a row, each with its own knowledge-graph sentence.
5. Choosing an ExpressionDecoder
  • Pick the decoder whose dataset best matches your assay, cell context and normalization. For example, use tahoe for single-cell drug screens in cancer lines and k562 for K562 CRISPRi.
  • Decoders don't transfer across assays with different normalization or sequencing technology (for example, bulk L1000 vs. single-cell). For new assays, retrain a decoder on a small set of matched data.
6. Output Handling
  • Parse tokens prefixed with + (upregulated) or - (downregulated). Discard tokens that aren't in the gene list for your dataset.
  • Ranks carry meaning: genes listed earlier are predicted to have larger residual changes. Keep the order when passing outputs to the decoder.

Model Data

Data used for model training and how the data was processed.

Training Dataset

CellGemma training datasets are divided into two categories: pre-training datasets containing unperturbed single-cell expression profiles, and fine-tuning datasets spanning small molecules, single and combinatorial CRISPR screens, immune cytokines, and clinical patient cohorts. All fine tuning perturbation datasets are publicly available. See the Benchmark Results section for CellGemma performance on each of the perturbation datasets.

  • Pre-Training Datasets
    • CZ CELLxGENE Discover & Human Cell Atlas (HCA): Curated public single-cell RNA-seq datasets spanning diverse primary human tissues, developmental stages, and disease states.
    • scBaseCount: Multi-species single-cell gene expression corpus covering human and model organism transcriptomic atlases across 24 species.
    • WikiCrow: Literature-derived functional gene summaries for human protein-coding genes, providing textual biological context, pathway descriptions, and gene functions.
  • Perturbation Fine-Tuning Datasets
    • Small-Molecule Chemical Screens
      • Tahoe-100M: High-throughput combinatorial-barcoded single-cell chemical screen profiling diverse human cancer cell lines exposed to small-molecule libraries across broad dosage ranges.
      • SciPlex 3: Single-cell chemical screen of cancer cell lines (A549, K562, MCF7) treated with small molecules across multiple concentrations with annotated mechanisms of action.
      • EmeraldBay: Single-cell cancer pharmacology screen profiling transcriptomic responses to targeted small molecules and combination therapies in cancer cell lines.
      • LINCS L1000: High-throughput bulk chemical screen profiling thousands of small molecules across a broad panel of human cancer cell lines.
    • Genetic Perturbation Screens
      • Norman Combinatorial CRISPRa: Single-cell CRISPR activation Perturb-seq in K562 cells profiling single and pairwise activations of transcription factors and signaling mediators.
      • Nadig & Replogle Perturb-seq: Genome-scale single-cell CRISPR interference screens profiling essential and non-essential gene knockdowns across four cell lines (HepG2, Jurkat, K562, and RPE1).
      • Virtual Cell Challenge (VCC): Single-cell CRISPR knockdown screens profiling gene knockdowns in human embryonic stem cells.
    • Cytokine Perturbations & Clinical Microenvironment Cohorts
      • Parse 10M PBMC: Combinatorial single-cell RNA-seq screen of peripheral blood mononuclear cells from multiple human donors stimulated with a broad panel of cytokines.
      • Dong PBMC: Single-cell profiling of peripheral blood mononuclear cell subpopulations under single and combinatorial cytokine stimulations.
      • TISCH2 Clinical Cohorts: Patient tumor microenvironment single-cell profiles from clinical cohorts treated with clinical therapies.
Data Preprocessing

Several data cleaning and filtering methods were applied to the training data:

  • Transcriptomic Formatting: Raw single-cell counts were pseudobulked, subsetted to protein-coding genes, library-size normalized, and log1p transformed.
  • CSAM Filtering: Rigorous CSAM (Child Sexual Abuse Material) filtering was applied at multiple stages in the data preparation process to ensure the exclusion of harmful and illegal content.
  • Sensitive Data Filtering: As part of making Gemma pre-trained models safe and reliable, automated techniques were used to filter out certain personal information and other sensitive data from training sets.
  • Additional Methods: Filtering based on content quality and safety in line with our policies.

Ethics and Safety

CellGemma is a specialized biological model fine-tuned for predicting cellular responses to perturbations. Unlike general-purpose language models, it does not undergo conversational alignment, instruction-following safety tuning, or dialogue-level moderation. CellGemma is strictly non-conversational and cannot be made conversational through prompt engineering, as its learned behavior and outputs are dedicated exclusively to gene symbols. Safety mitigations during development were focused on data filtering to reduce exposure to harmful content, personal information, and low-quality data, in alignment with Google's AI Principles.

Since CellGemma produces lists of genes rather than open-ended, user-facing conversational text, conventional conversational safety risks do not manifest in its direct outputs. Instead, safety and reliability considerations manifest downstream in how those biological predictions are interpreted and applied.

Developers and deployers are responsible for evaluating and implementing application-level safeguards, such as laboratory validation and verification against biological baseline controls, appropriate to their specific research use case.

Usage and Limitations

CellGemma has certain limitations that users should be aware of.

Intended Usage

CellGemma is a specialized biological prediction model and is not intended for general-purpose natural language dialogue. CellGemma generates lists of genes from input content about baseline cell expression and perturbation, which can be used for a number of downstream applications. The following list of potential uses is not comprehensive. The purpose of this list is to provide contextual information about the possible use-cases that the model creators considered as part of model training and development.

  • Preclinical Discovery and Translational Research

    • In Silico Compound Screening: Computes predicted transcriptional shifts across diverse small molecules to prioritize lead compounds prior to in vitro testing.
    • Target Prioritization: Evaluates single and combinatorial genetic knockdowns in silico to identify and rank candidate therapeutic targets.
    • Mechanism-of-Action (MoA) Exploration: Analyzes predicted residual differential expression profiles to generate hypotheses regarding drug pathways and cellular downstream responses.
  • Computational Biology and Foundation Model Research

    • Cross-Condition Generalization: Model transcriptional variation across held-out cell lines, uncharacterized compounds, and diverse donor or tissue contexts.
    • Combinatorial Perturbation Modeling: Generates preliminary hypotheses for combinatorial interventions (such as dual-gene CRISPR screens) where combinatorial laboratory data is sparse.
    • Transfer Learning and Custom Fine-Tuning: Serves as a pre-trained biological backbone for researchers to fine-tune on specialized assays, proprietary single-cell perturbation screens, or custom decoders.
Limitations
  • Not for Clinical Use: CellGemma is intended strictly for research purposes and must not be used for clinical diagnosis, patient care, or medical decision-making.
  • Experimental Validation Required: Model predictions reflect statistical patterns learned from high-throughput experimental screens. All biological hypotheses and candidate targets should be independently validated in laboratory settings.
  • Dataset Calibration: Continuous expression reconstruction depends on a baseline control profile and a dataset-appropriate ExpressionDecoder. Applying a decoder to new assays with different normalization requires retraining the decoder.
Ethical Considerations and Risks

In creating an open language model, we have carefully considered the following:

  • Bias and Fairness
    • Models trained on large-scale, real-world text and image data can reflect socio-cultural biases embedded in the training material.
    • Training data used for CellGemma underwent safety filtering to mitigate the risk of these biases.
  • Misinformation and Misuse
    • Model predictions can be misinterpreted or misused to draw conclusions in false, misleading, or harmful ways without experimental validation.
    • Guidelines are provided for responsible use with the model, see the Responsible Generative AI Toolkit.
  • Transparency and Accountability
    • This model card summarizes details on the model’s architecture, capabilities, limitations, and evaluation processes.
    • A responsibly developed open model offers the opportunity to share innovation by making biological foundation model technology accessible to developers and researchers across the AI ecosystem.
Risks Identified and Mitigations
  • Misuse for malicious purposes: Technical limitations and developer and end-user education can help mitigate against malicious applications of the model. Educational resources and reporting mechanisms for users to flag misuse are provided.
  • Privacy violations: Models were trained on data filtered for removal of certain personal information and other sensitive data. Developers are encouraged to adhere to privacy regulations with privacy-preserving techniques.
  • Perpetuation of biases: It's encouraged to perform continuous monitoring (using evaluation metrics, human review) and the exploration of de-biasing techniques during model training, fine-tuning, and other use cases.
Benefits

CellGemma is a lightweight, open model that predicts transcriptional responses to diverse perturbations. We are excited to see how developers will use and adapt this model for in silico compound screening, genetic target prioritization, and exploring novel cellular mechanisms.

The model is designed from the ground up for responsible AI development, like other Gemma-family models.