<!-- # hard line break macro for HTML -->

<a id="model-zoo-google-medgemma-4b-it"></a>

# google/medgemma-4b-it

<a href="../../plugins/plugins_ecosystem/medgemma.html" target="_blank">
    <img src="https://img.shields.io/badge/Plugin-medgemma-orange" alt="From Plugin">
</a>

#### NOTE
This is a [remotely-sourced model](../remote.md#model-zoo-remote) from the
[medgemma](../../plugins/plugins_ecosystem/medgemma.html) plugin, maintained by the community.
It is not part of FiftyOne core and may have special installation requirements.
Please review the plugin documentation and license before use.

MedGemma is a collection of Gemma 3 variants that are trained for performance on medical text and image comprehension.

**Details**

- Model name: `google/medgemma-4b-it`
- Model source: [https://huggingface.co/google/medgemma-4b-it](https://huggingface.co/google/medgemma-4b-it)
- Model author: Google DeepMind
- Model license: health-ai-developer-foundations ([https://developers.google.com/health-ai-developer-foundations/terms](https://developers.google.com/health-ai-developer-foundations/terms))
- Exposes embeddings? no
- Tags: `VLM, zero-shot`

**Requirements**

- Packages: `huggingface-hub, transformers, torch, torchvision, accelerate, bitsandbytes`
- CPU support
  - yes
- GPU support
  - yes

**Example usage**

```python
import fiftyone as fo
import fiftyone.zoo as foz

foz.register_zoo_model_source("https://github.com/harpreetsahota204/medgemma")

dataset = foz.load_zoo_dataset(
    "coco-2017",
    split="validation",
    dataset_name=fo.get_default_dataset_name(),
    max_samples=50,
    shuffle=True,
)

model = foz.load_zoo_model("google/medgemma-4b-it")

dataset.apply_model(model, label_field="predictions")

session = fo.launch_app(dataset)
```
