Run this model with HF Jobs
Run abhimanyu12/cellgemma-pairing-qc 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 to fine-tune https://huggingface.co/abhimanyu12/cellgemma-pairing-qc. 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/abhimanyu12/cellgemma-pairing-qc 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/abhimanyu12/cellgemma-pairing-qc. 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/abhimanyu12/cellgemma-pairing-qc. 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.
Instructions to use abhimanyu12/cellgemma-pairing-qc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use abhimanyu12/cellgemma-pairing-qc with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("google/cellgemma-e4b") model = PeftModel.from_pretrained(base_model, "abhimanyu12/cellgemma-pairing-qc") - Notebooks
- Google Colab
- Kaggle
CellGemma pairing QC adapter (impute1600-s44-clr-filtered)
Built for the White Circle Halo Competition (track ft-gemma; partner tracks modal, white-circle). Team lead: @Abm32.
A LoRA adapter for google/cellgemma-e4b, trained with
Halo 1.3.0 SFT, that flags RNA and surface-protein records joined to the wrong
cell in a CITE-seq dataset. Given a cell's 128 filtered RNA features (housekeeping RPL/RPS/MT- removed, canonical
immune markers prioritized), it predicts the cell's 17 per-cell centered log-ratio (CLR) antibody quartiles. A reviewer
scores each existing join by the negative log-likelihood of its observed quartiles and inspects the top 1% most
suspicious rows.
Revision v2 (December 5, 2026): Upgraded root weights from
impute1600-s44(log1p, top-128; preserved in git history at commit57f261e8/ weights1aae89af) to 3-seed verifiedimpute1600-s44-clr-filtered(--gene-view filtered --protein-norm clr). Per-cell CLR removes droplet capture and antibody-cocktail dilution per cell with zero target-batch statistics and 100% row-permutation equivariance β lifting zero-adaptation cross-donor transfer on 11 held-out donors (GSE161918) by 5.4Γ catches / 7.5Γ AP (122 -> 663of 3,006), lifting Next GEM transfer from222 -> 371raw (293 -> 379ratio), lifting source test from62 -> 68of 144 (AP .431 -> .483), and reducing native perturbation KL drift below v1 (0.0102 / 0.0186nats). Companion panel-agnostic Universal AO-ARM + Amortized-Null PMI weights live inaoarm/.
Results across three cohorts (1% review budget)
1. Held-out source cells (10x PBMC 5β² donor, 1,652 cells, 9 trials, 144 planted)
The adapter, step count, and ensemble weight were chosen on 30 validation trials (separate cells, seeds 1001β1010); test cells (seeds 11, 22, 33) were scored once.
| Method | Val Caught (of 480) | Test Caught (of 144) | Test Mean AP | Clean Alerts (of 1,652) |
|---|---|---|---|---|
| Base CellGemma (same prompt & scoring) | 3 (.0127) | 3 | 0.0141 | 30 |
v1 Released log1p top (1aae89af) |
198 (.4172) | 62 | 0.4307 | 23 |
| Ridge, full RNA β CLR protein residual | 223 (.4689) | 67 | 0.4527 | 19 |
| Logistic quartile NLL on matched RNA view | 211 (.4435) | 69 | 0.4776 | 17 |
This adapter (impute1600-s44-clr-filtered) |
214 (.4608) | 68 | 0.4832 | 19 |
| This adapter + full-RNA CLR Ridge (val-weighted) | 232 (.5141) | 71 | 0.4999 | 17 |
Companion aoarm/ (Universal Any-Order + Amortized PMI) |
222 (.4661) | 67 | 0.4699 | 16 |
- 3-seed reproducibility (
s42 / s43 / s44): Val217 / 204 / 214(mean211.7, AP0.4631), Test69 / 65 / 68(mean67.3, AP0.4752),+Ridge69 / 72 / 71(mean70.7, AP0.4988). Every seed beats v1 on every cohort. - Native perturbation task (
regression.py): Tahoe KL0.0102nats (86.1%greedy token agreement vs base), K562 KL0.0186nats (89.7%greedy agreement) β even lower drift than v1 (0.0103 / 0.0196).
2. Cross-library & cross-laboratory transfer (frozen adapter, trained on source cells only)
| Held-out Cohort | v1 log1p (1aae89af) |
This adapter (clr-filtered) |
Companion aoarm/ |
Pure-CellGemma Hybrid (Gen + Bi-Encoder OT, 0 Ridge) |
|---|---|---|---|---|
| Next GEM 5β² (11,715 cells, 1,062 planted, source edges) | 222 raw / 293 ratio (.2579) | 371 raw / 379 ratio (.3537) (+ridge: 472, .4469, WCl 50) |
375 raw / 374 amortized PMI / 376 ratio (.3558) | 407 (.3794, WCl 39) |
| GSE161918 (11 new donors, 33,242 cells, 15ch, ZERO target stats) | 122 (.0229) | 593 raw / 663 ratio (.1712) (3-seed mean 653.3) |
674 raw / 688 2-order / 710 ratio (.1955) | 715 (.1844, WCl 69) |
| GSE161918 (15ch, permutation-invariant per-lane quantiles, 0 labels) | 577 raw / 688 ratio (.1920) | 609 raw / 712 ratio (.2078) (s43: 731 / .2164) |
711 raw / 732 amortized PMI / 754 ratio (.2235, WCl 81) | 773 (.2335, WCl 77) |
| GSE161918 (17ch sensitivity, per-lane quantiles) | 565 raw / 720 ratio (.2029) | 665 raw / 765 ratio (.2274) (s43: 778, WCl 90) |
β | 823 (.2510, WCl 87) |
Use & Reproduction
# Tokenless, zero-install evaluation inside public.ecr.aws/whitecircle/halo:blackwell-1.3.0 (or hopper-1.3.0):
python competition/cellgemma/assay.py /tmp/cellgemma-eval --task impute --gene-view filtered --protein-norm clr --adapter abhimanyu12/cellgemma-pairing-qc --seeds 11 22 33
# End-to-end training reproduction (1 GPU, Halo 1.3.0 SFT):
python competition/cellgemma/assay.py /tmp/cellgemma-train --task impute --train --experiment impute1600-s44-clr-filtered --train-seed 44 --steps 1600 --gene-view filtered --protein-norm clr
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = AutoModelForCausalLM.from_pretrained("google/cellgemma-e4b", revision="6212145e0131d3744171739ea5232afc6aaa7c76")
model = PeftModel.from_pretrained(base, "abhimanyu12/cellgemma-pairing-qc")
# Or load the panel-agnostic Universal AO-ARM companion adapter:
# model = PeftModel.from_pretrained(base, "abhimanyu12/cellgemma-pairing-qc", subfolder="aoarm")
tokenizer = AutoTokenizer.from_pretrained("google/cellgemma-e4b")
Training
- Halo 1.3.0 SFT (
public.ecr.aws/whitecircle/halo:blackwell-1.3.0), 1Γ Modal B200. - LoRA
r=32,Ξ±=64onq_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj; 1,600 steps; batch8 Γ 2; lr2e-4cosine, 20 warmup steps; max length2,048; seed 44;eos_token: <turn|>. Loss on answer tokens only. - Data: 4,954 training cells from
abhimanyu12/cellgemma-pairing-qc-data. CLR quartile edges are fit strictly on training cells only.
Scope & Limits
- Single-purpose CITE-seq join-auditing adapter (not a general chat model;
google/cellgemma-e4bscores 0/40 on general text probes). Stage-2 QC triage over evidence packets usesgoogle/gemma-4-E4B-italigned via Halo 1.3.0 Offline GRPO- White Circle policy rewards (
WHITECIRCLE_GRPO.md).
- White Circle policy rewards (
- Planted swaps only; no verified real-world broken join with ground-truth pairs was available.
- Within-cell-type swaps remain fundamentally limited by the mutual information between 128 RNA transcripts and 17 surface
proteins (
5/48source test,33β50/354Next GEM,69β87/1,002GSE161918). - Where intact cell barcodes survive on both sides of a join, checking barcodes directly is always first-line.
- Research use only; not for clinical decisions.
Data and licenses
Source data: 10x Genomics, PBMCs of a Healthy Donor β 5β² Gene Expression and Cell Surface Protein (Cell Ranger 3.0.0),
CC BY 4.0, filtered matrix SHA-256 6ba8d25bβ¦f00a8d2. External evaluation: 10x Next GEM 5β² PBMC (CC BY 4.0) and Liu et al.
2021 (GEO GSE161918). Base model: google/cellgemma-e4b (Apache 2.0). Adapter released under Apache 2.0.
- Downloads last month
- 65