CellGemma, hands-on: run your first virtual drug screen on a cancer cell
Google DeepMind's CellGemma predicts how a cancer cell reacts to a drug before you touch a pipette. This tutorial runs its first drug screen and gene knockdown end to end — from loading the open weights to reading the predicted gene shifts — on one GPU, or free in Colab.
google/cellgemma-e4b from Hugging Face, runs a Panobinostat drug screen and a MYC knockdown, and reads the predicted log-fold changes — on a local GPU, or free in Colab with the 4-bit path.- Model:
google/cellgemma-e4bon Hugging Face — Gemma 4 E4B, 8B total / 4.5B effective parameters, 42 layers, 16K context, Apache 2.0, not gated (no token or approval needed to download). - Hardware: about 18 GB of VRAM in full bfloat16; a 4-bit path is documented for a 16 GB T4, which is what Colab's free tier typically provides.
- Two stages: CellGemma generates a ranked list of genes that move up (
+GENE) or down (-GENE); a small dataset-specific ExpressionDecoder turns that list into continuous expression and log-fold-change values. - Verified in a sandbox: the prompt builder, the decoder load, and the reconstruction ran against the real repo files (torch 2.15.0, transformers 5.25.0). The drug prompt for the worked example is 4,119 tokens; the knockdown prompt is 4,475. The
generate()call itself needs a GPU and runs in Colab. - Honest limit: a research tool, not a clinical one. Predictions need lab validation, and the decoder you use must match your assay.

Yesterday, Google DeepMind released a model that answers a question drug researchers ask thousands of times a year: if I give this cell this drug, what changes? CellGemma is an open, 8-billion-parameter model that predicts how a human cell's gene activity shifts after a drug, an immune signal, or a gene edit — before anyone touches a pipette. It is free to download under Apache 2.0, it runs on a single workstation GPU, and it comes with the code to run your first prediction in an afternoon.
This tutorial runs that first prediction end to end. You will load the open weights, build a drug prompt from a real control cell, generate a ranked list of genes the drug moves up and down, convert that list into numbers with the model's second stage, and then repeat the whole loop for a CRISPR knockdown. Every helper function below comes from Google's own documentation and was executed in a sandbox against the real repository files — the control cells, the knowledge-graph sentences, the decoder weights — before this article shipped. The one step that needs a GPU is the model call itself, and that step runs on Colab's free tier.
What you'll need#
- Python 3.11 or later, plus
pip. - A GPU with about 18 GB of VRAM for the full-precision path (an RTX 3090/4090, an A10, or a cloud GPU), or a free Google Colab notebook, which is where the 4-bit path runs.
- A Hugging Face account is useful but not required — the repository is not gated, so the weights download without a token.
- No biology background required for this tutorial: the worked examples use control cells Google ships in the repository, so you never need your own single-cell data. A rough sense of what a gene is — a stretch of DNA whose activity can go up or down — is enough.
- About an hour, most of it the weights download.
A note on cost: the model, the weights, the decoder files, and the sample control cells are all free. The only thing that can cost money is GPU time, and Colab's free tier covers the worked examples in this tutorial.
How CellGemma works, in sixty seconds#
A cell's state can be written down as a list of its active genes, most active first. CellGemma treats that list as a sentence. Each of the roughly 20,000 human protein-coding genes gets its own token — GPNMB is a single token (id 279833 in the tokenizer), not split into subwords the way a chat model would chop it — so a whole cell fits into a prompt as an ordered "cell sentence" of its top 1,000 expressed genes.
The prediction itself runs in two stages, because most of a cell's response to any treatment is generic: thousands of genes shift the same way no matter what drug you apply. Predicting all of that from scratch wastes the model's effort, so CellGemma predicts only the residual — the part of the response that is specific to your perturbation, measured against the dataset-wide average response (the "mean shift"). Stage 1 is the language model: it reads the baseline cell, the perturbation, and the mean-shift baseline, and generates a ranked list of residual genes, +GENE for upregulated and -GENE for downregulated, most-changed first. Stage 2 is a small neural network, the ExpressionDecoder, specific to your dataset: it takes that ranked list plus the baseline expression and reconstructs continuous post-treatment expression and log-fold-change values for every gene.
One checkpoint covers all perturbation types — small-molecule drugs, cytokines, single and combinatorial CRISPR edits, and clinical treatments from patient tumor data — because the perturbation is described in the prompt, not baked into separate weights. What changes between experiments is the decoder: Google ships pretrained decoders for the Tahoe, L1000, EmeraldBay and SciPlex drug screens, the Nadig/Replogle, VCC and Norman CRISPR screens, and the Parse, Dong and TISCH cytokine and clinical cohorts. Pick the decoder whose dataset matches your assay, and the rest of the pipeline is identical.

DeepMind trained the model on more than 564 million cell states, then fine-tuned it on ten public perturbation datasets. On its own benchmarks it beat the population-average baseline on all 32 held-out test splits, and the lab reports it captures nearly 50% more true biological signal than a simple statistical average. Those are the lab's own numbers, and the "reading the results honestly" section below puts them in context before you trust any single prediction.
1. Try it in your browser first#
Before you install anything, spend five minutes with the interactive demo Google links from its documentation: the CellGemma Hugging Face Space. It runs drug and genetic-knockdown predictions in the browser, no code and no GPU on your side. Pick a drug, pick a cell context, and watch the ranked gene list come back. The point of this step is not the result — it is to learn what the output looks like, so that when your own script prints a wall of +GENE -GENE tokens in Step 5, you recognize it immediately.
If the Space is busy or slow, skip it: everything it does, the Python path below does with more control. Google also lists a no-code Perturbation Studio in Google AI Studio, which accepts your own single-cell files if you have them. For this tutorial, the Python path is the one that teaches you how the model actually works.
2. Set up Python and pick your GPU#
Create a fresh environment and install the dependencies from the model card. Google's install line is:
pip install -U transformers torch accelerate safetensors huggingface_hub
That pulls the CUDA build of PyTorch, which is what you want on a machine with an Nvidia GPU. If you are following along on a laptop without a GPU — as the sandbox for this tutorial did for the helper code — install the CPU build instead, knowing the model call itself will still need a GPU later:
pip install -U --index-url https://download.pytorch.org/whl/cpu torch
pip install -U transformers accelerate safetensors huggingface_hub
The sandbox for this article ran the full helper pipeline on torch 2.15.0 (CPU) and transformers 5.25.0. You do not need to match those versions exactly; anything recent that loads a Gemma 4 model works, and the config confirms the architecture as Gemma4ForCausalLM with a 282,240-token vocabulary.
Now the GPU decision, because it determines everything downstream:
- Local GPU with ~18 GB or more of VRAM: load the weights in full bfloat16, exactly as the model card shows. An RTX 3090 (24 GB) or 4090 (24 GB) is comfortable; a 16 GB card is not enough for the full-precision path.
- Colab's free tier: you typically get a T4 with 16 GB. Google documents a 4-bit path for exactly that card: install
bitsandbytesand load withBitsAndBytesConfig(load_in_4bit=True, bnb_4bit_compute_dtype=torch.bfloat16). Google is explicit that 4-bit is intended for lightweight demos and its accuracy has not been formally benchmarked — use it to learn the workflow, not to publish a screen. - No GPU at all: do Steps 3–4 and 6–7 on CPU with the helper files (they run fine — the sandbox did exactly this), and run Step 5, the generation, in Colab.
Whichever route you take, the weights download is multi-gigabyte, so start it early and let it run while you read the next step. The repository is not gated: no token, no approval form, no wait. You can confirm that yourself — the Hugging Face API reports the repo as ungated, and the downloads in this tutorial ran with no credentials at all.

3. Load the model and the decoders#
CellGemma loads like any Hugging Face causal language model. This is Google's own loading code from the model card:
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()
Two details matter here and both are easy to get wrong. First, dtype=torch.bfloat16: the weights are bfloat16, and loading them in float32 doubles the memory for no benefit. Second, device_map="auto": on a single-GPU machine this puts the whole model on that GPU; on a multi-GPU machine it shards automatically. If you are on the Colab 4-bit path, add the quantization config from Step 2 to this same call instead of dtype.
Next, the ExpressionDecoder. It is a small MLP — input dimension 12, three hidden layers of 32 — defined in the model card and the docs, with weights shipped per dataset in the same repository. The helper files you need are controls_sample.json (sample unperturbed control cells for the Tahoe and K562 datasets), kg_sentences.json (knowledge-graph descriptions for 19,881 genes, used to describe knockdowns and cytokines), and one decoders/<dataset>/ folder per experiment. Load them like this:
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."""
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
The decoder's forward deserves one line of attention because it explains a guarantee you will rely on later: negative deltas pass through an exponential soft-clamp scaled by the control expression, so the predicted expression (baseline + delta) can never go below zero. Gene expression cannot be negative, and the decoder enforces that by construction.
Load the two decoders this tutorial uses, plus the two helper files:
controls_all = load_hf_json("controls_sample.json")
kg_sentences = load_hf_json("kg_sentences.json")
tahoe_decoder, tahoe_mean_deltas = load_decoder("tahoe")
k562_decoder, k562_mean_deltas = load_decoder("k562")
Expected output: nothing dramatic — the calls return silently. What you should verify is the shapes: controls_sample.json holds two datasets, Tahoe with 19,720 genes and K562 with 18,238 genes, 100 sample control cells each; each decoder config reads {'input_dim': 12, 'hidden_dims': [32, 32, 32]}; the Tahoe mean-delta file has one entry per gene (19,720 keys). If any of those numbers differ on your machine, stop — you have a different revision of the repository than this tutorial was written against.
4. Build your first drug prompt#
CellGemma was trained on a fixed prompt template, and Google's docs are blunt about it: changing the template can degrade predictions. The sections always run in the same order — a fixed preamble, the perturbation description, the baseline cell as Source:, the dataset mean-shift baseline as Mean Global prediction:, and finally Target:. Keep the preamble word for word, add no system prompt, and do not add a thinking token: CellGemma is non-conversational and does not support thinking mode.
The helpers below are Google's, from the inference docs. They take one control cell, rank its top 1,000 expressed genes, and assemble the prompt:
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."
)
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: "
)
Two things in load_control_cell are worth understanding rather than copying blindly. First, the baseline is max(0, control + mean_delta_global): the mean shift is the dataset-wide average response, added to your control cell and clipped at zero. Second, the Source: sentence lists only the top 1,000 genes with expression above zero, highest first — that is the "cell sentence," and it is why the prompt stays compact.
Now describe the drug. Small molecules use three fields with explicit units — name, SMILES structure, and concentration:
genes, ctrl_expr, baseline = load_control_cell(
"tahoe", cell_idx=0, mean_deltas=tahoe_mean_deltas
)
drug_text = (
"Drug name: Panobinostat\n"
"Drug SMILES: Cc1[nH]c2ccccc2c1CCNCc1ccc(/C=C/C(=O)NO)cc1\n"
"Concentration: 0.5 uM"
)
prompt = build_prompt(drug_text, genes, ctrl_expr, baseline)
print(prompt[:500])
Panobinostat is the drug in Google's own worked example — a histone deacetylase inhibitor used in the Tahoe screen — so it is the safest first choice: the model has seen this drug class in training, and the Tahoe decoder matches the assay. The first 500 characters of the prompt print the preamble and the drug block; the rest is the two gene sentences. In the sandbox this exact prompt measured 12,900 characters and 4,119 tokens with the real tokenizer — comfortably inside the 16K context window, with room to spare for the generated answer. The control cell's top genes start SERPINE1 FNDC3B NDRG1 …; yours will match if you use cell 0 from the same repository revision.
If you want a different drug, keep the format and change only the values: the drug name, its SMILES string (PubChem lists one for every compound), and a concentration with units, for example 1.0 uM. Do not reword the field labels — the model was trained on Drug name:, Drug SMILES:, and Concentration: exactly as written.
5. Run the prediction#
This is the step that needs the GPU. Wrap the prompt in Gemma 4's turn format and generate with the sampling settings from the model card's evaluation setup:
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()
drug_response = generate(prompt)
print(drug_response)
Three settings deserve an explanation. add_special_tokens=False matters because the prompt already starts with <bos> — letting the tokenizer add another one would corrupt the format the model was trained on. temperature=0.7 with sampling on matches the evaluation setup, and it means your gene list will vary slightly between runs; that is expected, not a bug. And max_new_tokens=8192 gives the model room to finish its full ranked list. Google's quickstart uses 50 tokens so the walkthrough finishes fast — fine for seeing the format, but a 50-token answer is a truncated prediction, not a result. Use 8192 for any real screen.
What comes back is a single space-separated string of gene tokens, each prefixed + for upregulated or - for downregulated, in rank order — most-changed first. In form, it looks like this:
+CDKN1A +GPNMB +HSPA1A +ATF3 ... -MYC -CCND1 -TOP2A ...
That line is illustrative of the format, not a recorded run: with sampling on, no two runs return the identical list, and this tutorial does not invent a model output it did not observe. What you should check in your own run is the shape, not the specific genes: a long list (hundreds of tokens at full length), every token a real gene symbol with a + or - prefix, and the strongest movers at the front. If the output is empty, short, or full of non-gene text, the prompt format is wrong — recheck the preamble wording and the turn tokens before anything else.
A note on honesty about verification: everything in this tutorial except this one call ran in a sandbox against the real repository files. The generate() call itself needs the 16 GB weights and a GPU, which the sandbox does not have, so it is presented exactly as Google documents it — the same function, the same sampling settings, the same turn format — and the place to run it is Colab or your own GPU. The helper code around it, which is where most first attempts actually break, was executed and verified.
6. Turn gene lists into numbers#
A ranked list of gene symbols is useful for a human to read, but a screen needs numbers: how much does each gene move, and in which direction? That is Stage 2. Parse the generated text into up and down lists — discarding any token that is not in your dataset's gene list, while keeping the rank order — then feed each gene's direction, rank, list lengths, and baseline expression through the Tahoe decoder:
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
predicted_expr, predicted_lfc = reconstruct(
drug_response, genes, ctrl_expr, baseline, tahoe_decoder
)
print(f"Predicted expression shape: {predicted_expr.shape}")
print(f"Predicted LFC shape: {predicted_lfc.shape}")
The feature vector the decoder receives is small but deliberate: direction (up or down), the gene's rank in the list, the lengths of both lists, and an 8-element one-hot marking this as the mean-global residual task — plus the baseline expression for that gene. Rank carries meaning: genes listed earlier are predicted to have larger residual changes, which is why the parser preserves order and why you should never sort the model's output alphabetically before this step.
Both outputs are vectors with one entry per gene in the dataset — 19,720 numbers for Tahoe. The predicted expression is the baseline plus the decoder's delta; the predicted log-fold change (LFC) is the predicted expression minus the control expression, and it is the number you actually rank on. Pull out the strongest movers:
def top_movers(lfc, genes, k=10):
up_idx = np.argsort(lfc)[::-1][:k]
down_idx = np.argsort(lfc)[:k]
up = [(genes[i], round(float(lfc[i]), 3)) for i in up_idx]
down = [(genes[i], round(float(lfc[i]), 3)) for i in down_idx]
return up, down
up, down = top_movers(predicted_lfc, genes)
print("Top predicted increases:", up)
print("Top predicted decreases:", down)
This snippet ran in the sandbox against the real Tahoe gene list and the real decoder weights (with a stand-in gene list, since the generation step needs a GPU). Two invariants held exactly: the predicted expression is never negative, and the LFC vector equals predicted minus control expression to numerical precision. If either fails on your run, the decoder and the control cell are mismatched — the most common cause is loading the Tahoe decoder against a K562 cell, or vice versa.
What you have at the end of this step is the deliverable of the whole tutorial: for one drug, at one concentration, in one cell context, a ranked list of predicted gene movements with magnitudes. Save it. A screen is dozens of these runs, one per candidate, and the comparison across candidates is where the value lives — which brings us to the second experiment.
7. Run a gene knockdown#
The same checkpoint handles CRISPR perturbations with no weight changes. Only two pieces swap out: the perturbation description and the decoder. A knockdown is described with the target gene's knowledge-graph sentence from kg_sentences.json, not the bare gene symbol — the sentence gives the model the biological context of what the gene does and what it interacts with. And the decoder must match the assay: K562 CRISPR interference data, not the Tahoe drug screen.
kg = load_hf_json("kg_sentences.json")
k562_genes, k562_ctrl_expr, k562_baseline = load_control_cell(
"k562", cell_idx=0, mean_deltas=k562_mean_deltas
)
myc_kg = kg["MYC"].strip()
ko_text = f"Gene knockdown: {myc_kg}"
ko_prompt = build_prompt(
ko_text, k562_genes, k562_ctrl_expr, k562_baseline
)
ko_response = generate(ko_prompt)
ko_expr, ko_lfc = reconstruct(
ko_response, k562_genes, k562_ctrl_expr, k562_baseline, k562_decoder
)
In the sandbox this knockdown prompt measured 14,384 characters and 4,475 tokens — larger than the drug prompt, because the knowledge-graph sentence for MYC runs long (it names MYC's functional partners: EP300, BIN1, MAX, TRRAP, and others). That length is normal. What matters is that the sentence comes from the file, verbatim: do not summarize it, and do not replace it with the bare symbol. A bare Gene knockdown: MYC is not the format the model was trained on.
The same pattern covers the other perturbation types. For a cytokine, write the cytokine as its gene name plus that gene's knowledge-graph sentence — interferon-gamma becomes IFNG plus its sentence. For a clinical treatment, write the treatment as a plain-text name. For a dual knockdown, write two Gene knockdown: entries in a row, each with its own sentence. The model was trained on combinations, so a pair of edits is a legitimate experiment, not a hack.
Which approach should you use?#
There are four ways to run CellGemma, and the right one depends on what you have and what you need to prove:
| Approach | Best for | Cost | Watch out for |
|---|---|---|---|
| Hugging Face Space | Learning the output format; one-off curiosity | Free | No scripting, no batch screens, no custom cells |
| Colab, 4-bit | Following this tutorial; first screens | Free tier | Accuracy not formally benchmarked at 4-bit; session limits |
| Local GPU, bfloat16 | Real screens; private data; repeat runs | Hardware you own | ~18 GB VRAM minimum; multi-GB download |
| Google AI Studio | No-code exploration with your own cells | Free tier | Least control over prompts and decoders |
The honest default is Colab in 4-bit for learning, local bfloat16 for anything you intend to act on. The 4-bit path exists so the tutorial is runnable on a free T4; it is not the configuration the benchmarks were run in, and Google says so plainly. If a 4-bit screen surfaces a candidate worth lab time, re-run that candidate in bfloat16 before you spend anything on cells and reagents.
Reading the results honestly#
A prediction is only as good as its error bars, and CellGemma's are published, so read them before you believe a screen. The headline benchmark is Pearson Δ — how well the predicted change in gene activity correlates with the measured change, beyond what the dataset average already explains. On the Tahoe drug screen, the model's strongest split (unseen perturbation and cell line) scores 0.76 against 0.56 for the mean-shift baseline; on the hardest split (unseen drug mechanism) it scores 0.56 against 0.30. On the Norman combinatorial CRISPR screen, both-genes-seen scores 0.74 against 0.53. The pattern is consistent: CellGemma beats the average everywhere, by a lot on familiar ground and by less on genuinely new chemistry.
Three limits should shape how you use it. First, the model is for research only — DeepMind states this in the model card, and the predictions are statistical patterns learned from high-throughput screens, not measurements. Every candidate a screen surfaces needs independent lab validation. Second, decoders do not transfer across assays: a decoder trained on one normalization and sequencing technology will mislead on another, and for a new assay the right move is retraining a decoder on a small set of matched data, not forcing the closest pretrained one. Third, the lab validation DeepMind reports is a proof-of-concept in thyroid cancer cell lines, not patients: the model screened roughly 20,000 genes and 15,000 drugs to find ways to raise GPNMB, a surface protein, on tumor cells; pretreating those cells with the prioritized drugs let engineered CAR T cells eliminate them, where CAR T alone could not. Promising, specific, and confined to a dish — exactly as the lab describes it.
None of that diminishes the tool. A screen that ranks 15,000 drugs before you buy a single vial changes which experiments get run, and that is the whole point: CellGemma is a triage instrument. Use it to decide what deserves the bench, not to replace the bench.
The takeaway#
You now have the complete loop: a baseline cell written as a sentence of its top 1,000 genes, a perturbation described in the exact format the model was trained on, a generation step that returns a ranked list of moving genes, and a decoder that turns that list into expression values and log-fold changes you can rank, save, and compare. The same loop covers drugs, cytokines, single and dual knockdowns, and clinical treatments — only the description and the decoder change.
Start with the worked examples: Panobinostat at 0.5 µM on the Tahoe control cell, then the MYC knockdown on K562. Compare the two LFC vectors and notice how different the answers are — that difference is the model doing its job. Then substitute your own question: a drug you care about, a gene you suspect, a combination the literature has not tried. Run it in 4-bit to learn, re-run the winners in bfloat16, and take only the survivors to the bench. The model was released yesterday; the screens it enables have not been run yet, and the first good ones will come from people who treat the predictions as hypotheses, not answers.