{"slug": "how-to-run-google-cellgemma-locally-for-cancer-cell-simulation", "title": "How to Run Google CellGemma Locally for Cancer Cell Simulation", "summary": "Google DeepMind released CellGemma, an open single-cell model fine-tuned from Gemma 4E4B and published on Hugging Face as `google/cellgemma-e4b` under an Apache 2.0 license, which predicts how a human cell's gene expression shifts in response to a drug, gene edit, or immune signal. According to Google's technical report, the model was trained on 564 million cells, scored 426 overall on its benchmark suite versus 250 for the next-best approach, and ran over a million virtual simulations to shortlist drug candidates; one shortlisted drug helped CAR-T therapy clear treatment-resistant thyroid cancer cells in a real lab test. In a test run the model loaded into roughly 16GB of VRAM on a 48GB GPU, putting inference within reach of a single workstation card.", "body_md": "# How to Run Google CellGemma Locally for Cancer Cell Simulation\n\nGoogle's open CellGemma model predicts how cells react to drugs and gene edits. Here's how it works and how to run it locally on one GPU.\n\n## What is CellGemma?\n\nCellGemma is an open model from Google DeepMind, built on Gemma 4E4B and released under an Apache 2.0 license on Hugging Face as `google/cellgemma-e4b`. It predicts how a human cell’s gene expression shifts in response to a drug, a gene edit, or an immune signal. Instead of running a physical experiment in a lab dish, researchers describe a cell and a treatment in text, and the model outputs which genes go up and which go down relative to how cells typically respond to that class of perturbation.\n\nThe model was trained on 564 million cells, according to Google’s technical report, and is small enough to run inference on a single workstation GPU rather than a data center cluster. That combination of open weights and modest hardware needs is what makes it interesting to anyone outside a dedicated genomics lab, including hobbyist ML builders who want to see what a biology-specific foundation model actually looks like under the hood.\n\n## TL;DR\n\n- **CellGemma** is Google DeepMind’s open single-cell model, fine-tuned from Gemma 4E4B, that predicts gene expression changes caused by drugs, gene knockdowns, or immune signals.\n- It ships on Hugging Face under an **Apache 2.0 license** , meaning no gating and no special access request, just a direct download.\n- The model loaded into roughly **16GB of VRAM** during a real test run on a 48GB GPU, putting it within reach of a single high-end workstation card rather than a multi-GPU server.\n- Outputs are gene lists, not images or paragraphs: each predicted gene is tagged with a plus or minus sign showing whether it rises or falls compared to the **average response** for that type of perturbation.\n- Google reports the model scored **426 overall** on its benchmark suite, ahead of the next-best approach at 250, and says it ran over**a million virtual simulations** to shortlist drug candidates.\n- One of those shortlisted drugs was tested in a real lab and helped **CAR-T therapy clear treatment-resistant thyroid cancer cells** that had survived CAR-T alone.\n- The model comes bundled with **multiple specialized decoders** (for cell lines like K562, Jurkat, HepG2, and datasets like Norman, Tahoe, and VCC), each translating the model’s gene-rank predictions into concrete numeric expression changes.\n\nBuild an onboarding app for 4,000 new hires.\n\nBuild ↵\n**Self-hosted**\n\n**SOC 2**\n\n**Role-based access**\n\n**Audit log**\n\n## How does CellGemma actually work?\n\nCellGemma treats a cell’s gene activity as a kind of language. You feed it a description of the cell’s current, untreated state, written as a ranked list of its most active genes, along with the perturbation you want to simulate: adding a drug like panobinostat, suppressing a gene like MYC, or exposing the cell to an immune signal.\n\nInternally, the model separates two things: the generic response that almost any perturbation of that type tends to cause, and the specific response unique to this exact treatment. By subtracting out the generic average, CellGemma can focus its prediction on what’s actually distinctive about the drug or edit in question. The output is a ranked list of genes with plus or minus signs, meaning “goes up relative to baseline” or “goes down relative to baseline.” A separate small decoder network then converts that ranked gene list into actual numeric expression values, and different decoders exist for different cell lines and datasets (K562, Jurkat, HepG2, RPE1, and others ship with the model).\n\nGoogle’s own diagram describes this as a flight simulator for cells: you specify the cell type and the intervention on one side, and get a predicted pattern of gene changes on the other, with a chart comparing predictions against real lab measurements to show how closely the model’s guesses track reality.\n\n## What hardware do you need to run CellGemma locally?\n\nBased on a hands-on install and test run, CellGemma loaded fully onto a GPU with 48GB of VRAM but only consumed just under 16GB in full precision during inference. That means a single modern workstation GPU, something in the 24GB class or above, should comfortably handle it without needing model sharding across multiple cards. This is a meaningfully lower bar than most large language models with real scientific utility, and it’s consistent with Google’s stated goal of making the model practical for individual labs rather than only hyperscale infrastructure.\n\nThe basic setup pattern looks like this:\n\n1. Create an isolated Python environment (a `uv` environment works well for this).\n2. Install prerequisites, including `transformers` and the standard scientific Python stack.\n3. Download the model weights from Hugging Face (`google/cellgemma-e4b` ), which total three safetensors shards plus per-decoder weight files.\n4. Run an inference script that loads the base cell state, applies one or more virtual perturbations, and prints out the top genes predicted to rise or fall, along with GPU memory usage.\n\nA full run (loading the model, running two perturbation scenarios, and decoding results) took roughly ten minutes in testing. Google’s model card on Hugging Face includes reference code that most working scripts are adapted from.\n\n## What results does CellGemma actually produce?\n\nIn one test, a lung cancer cell was virtually treated with panobinostat, a cancer drug. The model predicted that stress-response genes like HSP90A1 would rise, while genes tied to cell signaling and movement, including SMAD3, would fall.\n\n*mission-critical*enterprise applications.\n\n**911 Dispatch Console** Harbor County Emergency Services\n\nIn a second test, the MYC gene (a major growth-control switch in leukemia and red blood cell lines) was virtually suppressed. CellGemma predicted genes like HBZ would go up while genes involved in building the cell’s protein-synthesis machinery would go down, a pattern consistent with a cell slowing its growth and shifting toward a red-blood-cell-like state.\n\nThese are not images or diagnoses. They’re ranked gene lists with directional signs, meant to be interpreted by someone who already understands the underlying biology. That’s the intended audience: researchers deciding which of thousands of candidate drugs or gene edits are worth actually testing on real cells, not clinicians or patients.\n\n## Is CellGemma actually useful, or just a research toy?\n\nThe strongest evidence that CellGemma produces usable predictions, not just plausible-looking text, comes from a wet-lab follow-up Google describes in its materials. Thyroid cancer cells treated with CAR-T immune therapy alone remained largely intact after 48 hours. The same cancer cells, pretreated first with a drug that CellGemma had flagged as promising, were almost entirely eliminated by the same CAR-T therapy. Google says the model ran over a million simulated drug-and-edit scenarios to arrive at candidates like this one, which were then validated experimentally.\n\nOn benchmark comparisons that Google published, CellGemma scored 426 overall against a next-best score of 250, though as with any single-source benchmark claim, independent replication by outside labs will be the real test of how well that generalizes across cell types and perturbation classes not already in its training data.\n\nFor teams doing drug discovery or functional genomics work, the practical value isn’t that the model replaces lab experiments. It’s that it narrows an enormous search space (thousands of drugs, countless gene combinations) down to a shortlist worth the time and cost of actually testing. That’s a meaningfully different use case than consumer-facing AI tools, but it’s a real one, and an open, single-GPU-runnable model lowers the barrier for smaller academic labs that can’t afford proprietary biology platforms.\n\n## Frequently Asked Questions\n\n### What base model is CellGemma built on?\n\nCellGemma is a fine-tune of Google’s Gemma 4E4B model, adapted specifically for single-cell transcriptomics and perturbation prediction tasks.\n\n### How much VRAM does CellGemma need?\n\nIn testing, the model consumed just under 16GB of VRAM running in full precision, meaning a single high-end consumer or workstation GPU is sufficient, no multi-GPU cluster required.\n\n### Where can I download CellGemma?\n\nIt’s hosted on Hugging Face under `google/cellgemma-e4b`, released under an Apache 2.0 license with no gating, so it can be downloaded and used without special permission requests.\n\n### Can CellGemma be used for medical diagnosis or treatment decisions?\n\nNo. It’s explicitly a research tool for exploring drug and gene-edit hypotheses at the lab-bench level. It should never be used for diagnosis or treatment; those decisions belong with qualified, licensed physicians.\n\n### What kind of output does CellGemma give you?\n\nIt outputs ranked lists of genes marked with plus or minus signs, indicating predicted increases or decreases in expression relative to the average response for that type of perturbation. Companion decoder networks convert these rankings into numeric expression estimates for specific cell lines.", "url": "https://wpnews.pro/news/how-to-run-google-cellgemma-locally-for-cancer-cell-simulation", "canonical_source": "https://www.mindstudio.ai/blog/google-cellgemma-local-cancer-research/", "published_at": "2026-12-03 00:00:00+00:00", "updated_at": "2026-12-03 12:15:36.180669+00:00", "lang": "en", "topics": ["artificial-intelligence", "machine-learning", "ai-research", "generative-ai"], "entities": ["Google DeepMind", "CellGemma", "Gemma 4E4B", "Hugging Face", "Google", "K562", "Jurkat", "HepG2"], "also_reported_by": [], "takeaway": "CellGemma ships as `google/cellgemma-e4b` under Apache 2.0 with no gating, loads into roughly 16GB of VRAM on a single 48GB GPU, and returns ranked gene lists with plus/minus signs that bundled decoders (K562, Jurkat, HepG2, Norman, Tahoe, VCC) convert into numeric expression changes.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/how-to-run-google-cellgemma-locally-for-cancer-cell-simulation", "markdown": "https://wpnews.pro/news/how-to-run-google-cellgemma-locally-for-cancer-cell-simulation.md", "text": "https://wpnews.pro/news/how-to-run-google-cellgemma-locally-for-cancer-cell-simulation.txt", "jsonld": "https://wpnews.pro/news/how-to-run-google-cellgemma-locally-for-cancer-cell-simulation.jsonld"}}