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.

Showcase: PROJECT C.U.R.E. v2.0.0 — Open-Source Local macOS Oncology Workstation for CellGemma

#21
by isaacrishi - opened

Hi everyone — sharing an open-source, local-first oncology research workstation I just shipped that integrates google/cellgemma-e4b directly on Apple Silicon:

Repository: https://github.com/isaacrishi/PROJECT-C.U.R.E-

What It Does

PROJECT C.U.R.E. v2.0.0 is an Electron + React 19 + Three.js macOS desktop application built under I.R.A.I. Corp so researchers can run CellGemma perturbation workflows privately without sending sensitive assay data to third-party clouds.

Technical Architecture

  • Local CellGemma Sidecar (scripts/cellgemma_server.py): Runs google/cellgemma-e4b offline (HF_HUB_OFFLINE=1) in bfloat16 on Apple Silicon Metal (mps) via FastAPI (http://127.0.0.1:8000), with optional cloud GPU offload.
  • Multi-Modal Oncology Modules: Connects perturbation predictions to interactive 3D Tumor Microenvironment (TME) simulations, a DeepZoom Whole Slide Imaging (WSI) viewer & tile server, a single-cell AnnData bridge, AutoDock Vina protein docking, and an automated benchmark harness.
  • Local-First Security: Encrypted local SQLite storage with electronic sign-off and audit trails.

Early Hardware Notes (16 GB M4 MacBook Pro)

Full bfloat16 (~15.5 GB) runs cleanly end-to-end on MPS, though it pushes 16 GB unified memory into swap pressure during concurrent 3D rendering. Next up, I'm benchmarking 6-bit/8-bit MLX quantization against full-precision perturbation fidelity for consumer laptops.

Would love any feedback from the CellGemma team or community on local inference optimizations and validation benchmarks!

Screenshot 2026-12-04 at 12.22.05 PM

Screenshot 2026-12-04 at 12.24.25 PM

Thanks for the detailed field report — a full local workstation around CellGemma on Apple Silicon is exactly the kind of deployment data watchers learn from. Running the full bfloat16 weights (~15.5 GB) end to end on MPS on a 16 GB M4, with swap pressure only when the 3D rendering runs alongside, gives a clear picture of where the memory ceiling sits. The offline sidecar design (HF_HUB_OFFLINE=1, local FastAPI) also keeps assay data on the machine, which matters for this kind of work. The planned 6-bit/8-bit MLX comparison against full-precision perturbation fidelity will be the interesting next read — fidelity, not just footprint, is the question that decides whether quantization helps here. We will be watching for those numbers.

Sign up or log in to comment