Choose an access route
The official repository publishes model weights and inference examples. To explore without managing a local machine, begin with the Colab notebook or hosted demo linked by the project. For a controlled pipeline, follow the official Gemma inference guide and document each component used.
Prepare the environment
The documentation describes inference with Transformers and PyTorch, loading weights in bfloat16, and a requirement of about 18 GB of VRAM for the full configuration cited. A 4-bit quantized option is also described for reduced memory use. Check the current official documentation for compatible versions and hardware before deployment.
Before automating inference, record the library, model and decoder versions, GPU type, input format, normalization and generation parameters. Measure the hardware actually available in your environment; memory use can vary with sequence length and batch size.
The weights are only one part of the pipeline. Interpreting output as expression change also requires compatible inputs and a decoder suitable for the dataset and assay.
Check the input data contract
The documented inference format combines a control-cell profile, a perturbation description and a response prior. The starting profile is converted into an ordered gene sequence. Chemical perturbations can use molecular representations; genetic and cytokine inputs use target and biological-network context as described in the methods.
- Confirm the gene identifiers and ordering expected by the model.
- Record units, normalization, controls and the source of the prior.
- Check that perturbation labels and cell context match the supported format.
- Track which data contributed to the prior and how train/test separation was preserved.
Inference workflow and checkpoints
- Select a compatible control profile and experimental context.
- Encode the perturbation and retrieve or compute the documented prior.
- Generate a signed sequence of residual gene responses with CellGemma.
- Apply the ExpressionDecoder appropriate to the dataset and assay.
- Compare output with controls, replicates and baselines, then validate experimentally.
A successful model call only shows that the code produced an output. It does not validate prediction quality or biological relevance.
Integrate into a research application
If CellGemma is called from an interface or internal service, keep software orchestration separate from biological interpretation. Store a task identifier, model version, input manifest, configuration and decoder version with each result so that a run can be audited and reproduced.
A suitable interface should show the experimental context, relevant uncertainty or limitations, decoder identifier and a clear statement that experimental validation is required. Do not present model output as a treatment recommendation.
Is there an official MCP to install CellGemma?
Among the official resources reviewed for this guide, no dedicated MCP server for installing or running CellGemma is documented. Hugging Face offers general MCP capabilities for some compatible Spaces, but that is not the same as an official CellGemma installation or inference server.
The published starting points remain the Colab notebook, hosted demo and inference documentation. A custom MCP could call a service that runs CellGemma, but the inference service and its data, model, decoder, resource and access controls would need to be built and maintained first.
Check the official model repository ↗ and the current inference guide ↗ for updates.
Integration resources
Continue with methods, datasets and coverage, scientific limitations or the researcher guide.
Primary technical resources: Hugging Face model card ↗ · Gemma inference documentation ↗.