Run this model with HF Jobs

Run google/cellgemma-e4b on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/google/cellgemma-e4b. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/google/cellgemma-e4b on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/google/cellgemma-e4b. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/google/cellgemma-e4b. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Fine-tuning on human brain Perturb-seq gives no gene-specific skill on held-out studies

#19
by rhsr - opened

Thank you for releasing CellGemma. I tested whether fine-tuning it on public human brain CRISPR screens teaches it to predict the effect of silencing a specific gene in brain cells. I'm sharing the result in case it is useful to the team and to other users.

I fine-tuned cellgemma-e4b with rank-16 LoRA adapters for 96 updates on 24 Perturb-seq cohorts of microglia, astrocytes, neurons and neural progenitors. I also trained a brain-specific expression decoder on lists generated for data the model had not seen. I tested on held-out studies of each cell type and on an independent microglia study from another lab, under pass criteria fixed before training. The main score was the Spearman correlation between predicted and observed effects, after subtracting the mean effect of the other targets in the same cohort.

No fine-tuned variant beat a baseline that predicts the average response of other perturbations. The zero-shot model did not beat it either. Predictions scored as well when I reassigned them to the wrong target. Non-targeting control prompts still produced hundreds of predicted genes in three of the four main held-out cohorts. The interferon-gamma microglia response stayed near its original level after fine-tuning, so the adapters did not erase existing behavior. The run failed 30 of 64 pre-registered checks, and an independent audit of the result files confirmed the verdict.

The result applies to this procedure and to the public brain data available today. Only 151 of the 513 target genes had a strong measured response. Code, the locked design, the results and the audit are here: https://github.com/raphaelhauser/cellgemma-brain

I would welcome your view on one question. Would you expect more training updates, a different adaptation method or a larger perturbation atlas to help on targets the model has not seen?

Thanks for sharing a careful negative result, and for fixing the pass criteria before training. The controls carry the weight here: predictions scoring as well when reassigned to the wrong target, and non-targeting prompts still producing hundreds of predicted genes in three of the four held-out cohorts, make the no-gene-specific-skill reading hard to argue with. The detail that the interferon-gamma microglia response stayed near its original level after fine-tuning is also useful, since the adapters did not simply erase prior behaviour. Linked code, a locked design and an independent audit make the result checkable, which is exactly what a field report should be.

Thank you for sharing this — our pre-registered 8-decoder audit of google/cellgemma-e4b on primary human vitiligo cohorts (GSE272551, GSE231794, GSE203262; 515 runs) independently landed on the exact same pattern regarding assay/lineage transfer failure vs. preserved cytokine biology, and confirms how indispensable negative controls are:

  1. Cross-lineage CRISPRi (decoders/jurkat/ → primary human CD8⁺ T cells): Pos vs. skin-only negative control AUROC was 0.479. Including unexpressed epidermal negative controls (KRT14 0 counts, EDNRB 2 counts, MITF 40 counts in CD8⁺ T cells) caught the exact confounder: even knocking down unexpressed skin genes downregulated PRF1/NKG7/GZMB, showing baseline regression from primary CD8⁺ toward the CD4⁺ Jurkat training distribution rather than target-specific CRISPRi skill.
  2. Small molecules (0 of 4 decoders transfer to primary pigmented human skin): Testing all four pretrained small-molecule decoders (tahoe, l1000, emeraldbay, sciplex) on held-out 3D human skin + melanocytes (GSE272551, PDE4i Crisaborole and PF-07038124 vs. negative-control Haloperidol) gave uniformly near-zero correlations (r = -0.096 to +0.085), with 0/12 runs beating mean_delta_global (while the official A549 Panobinostat sanity check passed 7/8 markers). Similarly, decoders/tisch/ gave 0/16 IFN/JAK hits on healthy peripheral CD8⁺ T cells.
  3. Echoing your IFNG observation — in-distribution human PBMC cytokines genuinely work: On primary human PBMCs (GSE231794, 135,256 cells), both parse and dong achieved independent AUROC 1.000 (p = 0.0286), agreed across 6 isolated immune lineages at r = +0.751 (p = 1.92e-16, 95.2% sign agreement), and parse even picked up real IL7R vs. IL2RB receptor abundance between CD8+ (IL7R = 498 CPM) and NK (39.5 CPM) purely from top-1,000 expressed genes with no cell-type label in the prompt.

Everything (locked pre-registrations, code, negative gates, and all 515 scored runs) is archived at re-cep/vitiligo-cellgemma-benchmark and re-cep/vitiligo-curative-discovery#combinations-cytokines.

Sign up or log in to comment