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.

Sign up or log in to comment