How to Try Google's Free CellGemma AI: Predict How Cancer Cells React to Drugs
On 1 December 2026, Google DeepMind gave away something no drug lab has ever had for free: an AI that predicts how a human cell will react to a medicine, before anyone touches a pipette. It is called CellGemma, and it is an open model under the Apache 2.0 licence, which means the weights are free to download, free to modify, and free to build into commercial products. Give it a cell and a drug, and it predicts which genes the drug will switch up and which it will switch down. In the lab, DeepMind and its academic partners used it to find drugs that made resistant thyroid cancer cells vulnerable to CAR T therapy, then verified the result in living cells.
Before the tutorial, the honest catches. First, CellGemma is not a chatbot and it is not conversational. You cannot ask it questions, and it cannot be made conversational by clever prompting. It takes one specific input, a ranked list of a cell's top 1,000 expressed genes plus a treatment, and it answers with ranked gene names, +GENE for up and -GENE for down. Second, it is research only, not a medical device: the model card says it must not be used for clinical diagnosis, patient care, or medical decision-making. Third, the free routes have honest limits: the browser demo can be busy, the free Colab GPU needs a 4-bit shortcut because the full model does not fit, and the AI Studio app needs a Google sign-in. Fourth, the benchmarks and the lab story are DeepMind's own runs, flagged as unverified maker claims throughout.
What is CellGemma, in plain English?
CellGemma is Google DeepMind's open biological foundation model for predicting cellular responses to candidate treatments. It is a screening assistant for drug research. Testing a drug normally means growing cells, dosing them, waiting, and measuring what changed, one experiment at a time. That is slow and expensive, so only a tiny fraction of possible treatments ever gets tested. CellGemma does the first pass on a computer: it predicts how a cell's gene activity will shift, so the lab can test the most promising candidates first and skip the dead ends.
The model is built on Gemma 4 E4B, one of Google's open language models. It has 8 billion parameters in total and 4.5 billion effective parameters, with 42 layers and a 16,000 token context window. The "E" in E4B stands for effective parameters: each layer has its own small embedding table, which makes the total parameter count larger than the effective count. What makes it a biology model rather than a chat model is the vocabulary. DeepMind extended the tokenizer with about 20,000 human protein-coding gene symbols, so each gene is treated as a single token instead of being chopped into pieces. A cell becomes a "cell sentence", an ordered list of its active genes.
It was trained on more than 564 million cell states: first on unperturbed single-cell data from scBaseCount, the Human Cell Atlas and CellxGene, then fine-tuned on 10 public perturbation datasets covering four kinds of intervention. Small-molecule drugs come from the Tahoe, L1000, EmeraldBay and SciPlex screens. CRISPR gene edits come from the Nadig and Replogle, VCC and Norman screens. Cytokines and clinical treatments come from the Parse, Dong and TISCH cohorts. One checkpoint covers all ten datasets, because the treatment is described in the prompt rather than baked into separate weights.
How does CellGemma actually work?
Here is the idea in one paragraph, and it is the cleverest part of the whole design. When you dose a cell with a drug, a large part of the response is the same no matter which drug you used: a generic stress response shared across treatments. DeepMind calls the average of that shared response the mean shift. CellGemma does not waste effort re-predicting it. It predicts only the residual, the part of the response that is specific to this drug in this cell.
The prediction runs in two stages. Stage 1 is CellGemma itself, which reads the baseline cell and the treatment and generates the ranked list of residual genes, +GENE for upregulated and -GENE for downregulated. Stage 2 is a small dataset-specific decoder, an ExpressionDecoder, which turns that ranked list back into continuous numbers: the predicted post-treatment gene expression and the log-fold change for each gene. The repo ships a pretrained decoder for each dataset, so you pick the one that matches your experiment.
The input has a fixed format: a fixed preamble, the perturbation, the baseline cell as its top 1,000 expressed genes under "Source:", and the mean-shift prediction under "Mean Global prediction:". DeepMind warns that rewording the preamble, adding a system prompt, or adding a thinking token can degrade predictions. You do not need your own single-cell data to start: the repo ships sample control cells in controls_sample.json.
Route 1: try it in five minutes, in your browser, no code
The fastest way to meet CellGemma is the interactive demo Google links from its own documentation: the CellGemma Hugging Face Space. It runs drug and genetic knockdown predictions in the browser, with no code and no GPU on your side. You pick a drug, pick a cell context, and the ranked gene list comes back. Spend five minutes here before you install anything, because the point is learning what the output looks like, so that when your own script later prints a wall of +GENE and -GENE tokens, you recognise it immediately.
Two honest notes. First, I could not load the Space page directly while preparing this post: the fetch came back with an HTTP 429 rate-limit error. The Space is linked from Google's own gemma.ai documentation and confirmed by multiple independent reports, so it exists, but it can be busy or slow, and if it is, skip it. Everything it does, the Python routes below do with more control. Second, the demo is a preview, not a workbench. You cannot script it, run batch screens, or feed it your own cells. For that, you need Routes 2 to 4.
Route 2: run it free on a Colab GPU
This is the route most readers should actually take, and it comes with one correction to the launch coverage. The DeepMind blog lists Google Colab as a way to try CellGemma, but the blog's Colab link does not open a notebook file. It opens Google's inference guide on gemma.ai, a full worked tutorial with copy-paste code. No official Colab notebook file was found in the model card or the repository. So the honest version of this route is: open the inference guide, paste its code into a fresh Colab notebook yourself, and run it on Colab's free GPU.
Here is how that works, step by step. First, open a new notebook at colab.research.google.com and switch the runtime to a T4 GPU: Runtime, then Change runtime type, then T4 GPU. The free tier gives you a T4 with 16 GB of memory. Second, install the packages in the first cell. The model card's install line is short:
pip install -U transformers torch accelerate safetensors huggingface_hub
Third, load the model. The full bf16 model needs roughly 18 GB of VRAM, according to Google's own inference docs, which is more than a free T4 has. So on Colab you use the 4-bit path: install bitsandbytes and load the weights in 4-bit precision. Google's docs say 4-bit is intended for lightweight demos and its accuracy has not been formally benchmarked. Fourth, copy the helper code from the inference guide: the decoder loader, the control-cell loader, and the prompt builder. Fifth, run the worked example below. A Colab session has time limits and can disconnect, so save anything you care about to Drive as you go.
Route 3: try it with no code in Google AI Studio
If you would rather not write code at all but want more than the browser demo, Google lists a bundled CellGemma Studio app in Google AI Studio. The blog's link goes to aistudio.google.com/apps/bundled/cellgemma-studio, and it needs a Google sign-in before you can see anything inside, so I could not verify the app's screens or features while preparing this post. One independent report describes it as a Perturbation Studio that accepts your own single-cell files in .h5ad format and caches a roughly 4.8 GB model in the browser on first run using WebGPU. Treat that detail as secondary reporting, not a verified fact. The idea is simple: no install, no GPU of your own, and you can bring your own cells instead of using Google's samples. The price is control: you get less say over prompts and decoders than the Python routes give you.
Route 4: run it locally on your own GPU
This is the route the word "open" actually means. The weights are free under Apache 2.0, the repository is not gated, so no token is needed, and the model is designed to run on a single modern workstation GPU, in DeepMind's own words. The hardware bar is real but reachable: full bf16 needs roughly 18 GB of VRAM, so a 24 GB card such as an RTX 3090 or 4090 fits it, and the download is about 16 GB, which is 8 billion parameters at two bytes each.
The setup is the model card's own code. Install the packages, then load the model and a decoder:
import json
from huggingface_hub import hf_hub_download
import torch
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()
That is the entire model load. The rest is helpers the card ships with you: load_hf_json to fetch files from the repo, an ExpressionDecoder class, and load_decoder to pull a dataset's decoder weights and its mean_delta_global.json. The card's worked example predicts a drug perturbation on the Tahoe dataset and a genetic knockdown on K562, using the sample control cells from controls_sample.json. Here is the drug half, condensed from the card:
# Drug perturbation: Panobinostat at 0.5 uM, on a Tahoe sample cell.
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",
)
print(drug_text[:200]) # ranked +GENE / -GENE tokens
print(drug_expr.shape) # predicted expression, same shape as the input
The predict helper does the whole loop: it loads the sample control cell, builds the fixed prompt, generates the ranked gene list at temperature 0.7, and reconstructs the expression numbers with the Tahoe decoder. The genetic half works the same way, except the perturbation is a gene knockdown written with the target gene's knowledge-graph sentence from kg_sentences.json, for example MYC on K562. Two details to copy exactly. First, use the card's sampling settings, temperature 0.7 with sampling on and up to 8,192 new tokens, because the quickstart's 50 tokens only shows the first few genes. Second, match the decoder to your data: use tahoe for single-cell drug screens in cancer lines and k562 for K562 CRISPR work, because a decoder does not transfer to an assay with different normalisation.
Reading the output: what a prediction actually looks like
The output is not a sentence and not a score. It is a ranked list of gene symbols, each with a + or a - in front. A token like +GPNMB means the model predicts that gene goes up relative to the average response; -TP53 means it goes down. The order carries meaning: genes listed earlier are predicted to shift more. The decoder then converts that list into numbers, a predicted expression value and a log-fold change for each gene. That is also why the first thing to do with any prediction is to check it against something real. A ranked list is a hypothesis, not a result, and the model card says it directly: all biological hypotheses and candidate targets should be independently validated in laboratory settings.
The lab story: how CellGemma helped CAR T cells kill resistant cancer
The problem is one of the hardest in cancer immunotherapy. CAR T therapy engineers a patient's immune cells to recognise and attack cancer cells carrying a specific surface target, an antigen. It has transformed blood cancer treatment, but it struggles in solid tumours, partly because some cancer cells do not display enough of the target antigen for the CAR T cells to see them.
DeepMind and its academic partners gave CellGemma a concrete challenge: find a way to raise the level of an antigen called GPNMB on tumour cells that barely display it. The team ran over a million virtual simulations: a genome-wide screen of nearly 20,000 human genes and a chemical screen of 15,000 drugs, looking for candidates predicted to boost GPNMB. Then they tested the prioritised drugs in the lab on three thyroid cancer cell lines, B-CPAP, IHH-4 and TPC-1, with low or undetectable GPNMB. Several raised GPNMB protein levels. The decisive step came next: pretreating the tumour cells with these drugs and then adding human GPNMB CAR T cells eliminated them, while the CAR T cells alone could not clear them.
Keep the scale of that result honest. This is a laboratory proof of concept in cell lines, not a treatment and not a cure. The preprint reports that only five compounds were tested in the lab, and three of them raised GPNMB while two did nothing. The preprint names the University of Pennsylvania and the University of Michigan as partners. What the experiment proves is the workflow: a million cheap virtual screens, a short list, a lab test, and a result the CAR T cells alone could not produce.
The numbers, honestly
CellGemma was tested on 10 perturbation datasets across 32 held-out splits, including unseen perturbations, unseen drug mechanisms, unseen donors, unseen cell lines, and unseen combinations. The metric is Pearson delta, which measures how well the predicted change in gene activity matches the real change. Every number below is DeepMind's own run, unverified, so read it as the maker's claim, not a measurement.
The headline result is that CellGemma beats a simple mean-shift baseline on all 32 splits, the only model in DeepMind's study to do so. On Tahoe, unseen perturbation on an unseen cell line, it scores 0.76 against the baseline's 0.56. On unseen perturbations alone it scores 0.56 against 0.26, and on unseen mechanisms 0.56 against 0.30. The gap is smaller elsewhere: EmeraldBay 0.48 against 0.30, SciPlex 0.23 against 0.09, L1000 0.38 against 0.28. On the Norman combinatorial CRISPR screen, where both genes were seen in training, it scores 0.74 against 0.53. On the TISCH clinical cohorts, within-study, it scores 0.53 against 0.22.
Two things to notice. First, the baseline matters: a mean shift is a deliberately simple average, so beating it everywhere is a real achievement, but it is not the same as beating a strong rival model, and DeepMind's table has no rival model column. Second, the scores vary a lot by dataset. Tahoe looks strong at 0.76, SciPlex looks weak at 0.23, and the blog's headline, nearly 50 percent more true biological signal than a simple average at one-sixth the size of DeepMind's 27 billion parameter model from last year, is an average across the study, not a promise for your dataset.
The catches, in full
The licence is the easy part: Apache 2.0, genuinely open, commercial use included. The catches are about what the model cannot do. It is non-conversational, and the card is blunt about it: it cannot be made conversational through prompt engineering, because its outputs are gene symbols only. Do not ask it questions, do not give it a system prompt, and do not add a thinking token.
The prompt template is fixed. Keep the sections in the order the card shows, preamble, perturbation, Source, Mean Global prediction, Target, and use the preamble word for word. For Source, list the top 1,000 genes with expression above zero, ranked highest first, in uppercase gene symbols. For the mean-shift prediction, compute the baseline from the decoder's own mean_delta_global.json file, then rank its top 1,000 the same way. Getting this wrong produces no error message, only a worse prediction.
The decoder has to match the data. Pick the decoder whose dataset best matches your assay, cell context and normalisation. A decoder trained on one assay does not transfer to another with different normalisation, and for a new assay you need to retrain a decoder on matched data.
The output varies run to run, because the card's sampling setup uses temperature 0.7. Two runs of the same prompt will give slightly different gene lists. For a demo that is fine; for a screen you should run repeats and look at what is stable across them. And the 4-bit Colab path is unbenchmarked by Google's own admission, so treat its numbers as a demo until you can run bf16.
What it replaces, and what it does not
What CellGemma replaces is months of blind bench work. A lab that once had to guess which drugs to test can now screen thousands of candidates on a computer, rank them, and spend bench time on the few that look promising. That is the GPNMB story in one line: a million virtual simulations narrowed to a handful of drugs worth testing in real cells. It also replaces training a separate model per dataset, since one checkpoint covers all ten perturbation types and only the small decoder changes.
What it does not replace is the lab, the doctor, or the chatbot. It does not prove a drug works, it only predicts a gene expression shift, and the lab still has to confirm it. It does not diagnose or treat anyone, and it must not be used that way. And it does not chat, explain, or reason in words, so if you want an AI that talks about biology, this is the wrong model entirely. Its value is narrow and specific: a ranked shortlist of genes, for researchers, before the real experiment begins. CellGemma is strictly for research, and if you are not a researcher, the honest way to enjoy this release is as a window into how drug discovery is changing, not as a tool to make health decisions.
FAQ
Is CellGemma really free to use?
Yes, in the ways that matter. The weights are free under Apache 2.0, the browser demo costs nothing, the Colab route runs on Google's free GPU tier, and the AI Studio app is listed as a free try route. The costs are around the edges: your own GPU hardware, your time, and Colab's free-tier session limits.
Can I ask CellGemma questions about cancer or my treatment?
No. It is not a chatbot, it does not answer questions, and it is strictly for research. It must not be used for diagnosis, patient care, or medical decisions. Its output is a list of gene symbols, not medical advice.
Do I need my own single-cell data to try it?
No. The repository ships sample control cells in controls_sample.json, and the worked examples use them. You only need your own data when you want to screen your own cells or drugs.
Will it run on my laptop?
Not in full precision. The bf16 model needs roughly 18 GB of VRAM, a workstation GPU, not a laptop. On a laptop, use the browser demo, the AI Studio app, or Colab's free T4 GPU with the 4-bit path, which Google's docs say is for lightweight demos and is unbenchmarked.
What do I need to describe a drug to CellGemma?
The drug's name, its SMILES string, which is a text description of its chemical structure, and a concentration with explicit units, for example 0.5 uM. For a gene knockdown, describe the target gene with its knowledge-graph sentence from kg_sentences.json, not just the bare gene symbol.
How good are its predictions, really?
On DeepMind's own benchmarks it beats a simple mean-shift baseline on all 32 held-out splits, with the strongest headline number 0.76 Pearson delta on Tahoe, against 0.56 for the baseline. Those are DeepMind's own runs and unverified, the baseline is deliberately simple, and scores vary a lot by dataset, from 0.76 on Tahoe to 0.23 on SciPlex. Treat the numbers as a promising claim, then test on your own data.
Sources
DeepMind blog, CellGemma: Predicting cell responses to help accelerate cancer research (https://blog.google/innovation-and-ai/models-and-research/google-deepmind/cellgemma/)
Hugging Face model card, google/cellgemma-e4b (https://huggingface.co/google/cellgemma-e4b)
Gemma docs, Predict cellular perturbations with CellGemma (https://gemma.ai/models/cellgemma/inference/)
Google AI Studio, CellGemma Studio app (https://aistudio.google.com/apps/bundled/cellgemma-studio)
CellGemma Hugging Face Space, interactive demo (https://huggingface.co/spaces/google/cellgemma)
TechTimes, preprint reporting on the GPNMB lab test (https://www.techtimes.com/articles/332008/20261202/google-deepmind-releases-cellgemma-three-five-ranked-drugs-raised-gpnmb-protein-thyroid-cells.htm)
Keep reading on RiseMe
LingSante-3.1-flash: The 560B Open Medical AI That Answers 20 Million Health Questions a Day (https://riseme34.blogspot.com/2026/11/lingsante-31-flash-560b-open-medical-ai-explained.html)
How to Run a 98-on-MATH-500 AI on Your Laptop for Free With TwIL-8B (https://riseme34.blogspot.com/2026/11/how-to-run-98-math-500-ai-laptop-free-twil-8b.html)
How to Search Your Photos and Videos With a Sentence for Free With Mistral Clipstral (https://riseme34.blogspot.com/2026/12/search-photos-videos-free-mistral-clipstral.html)
How to Use Amazon Ergo Free: The 1.1T Open Coding Model (https://riseme34.blogspot.com/2026/12/how-to-use-amazon-ergo-free-1-1t-open-model.html)
Kimi K3.1 Pro: The 2.8-Trillion-Parameter AI Anyone Can Download, But Almost Nobody Can Run (https://riseme34.blogspot.com/2026/11/kimi-k31-pro-open-source-ai-model097864109.html)


