Article

MedGemma 2 hardware and licence checks for a local trial

Healthcare developers can compare MedGemma 2 memory requirements, download conditions and commercial-use limits before planning a local trial.

Editorial illustration for MedGemma 2 hardware and licence checks for a local trial: a document represents the research briefing. Not documentary evidence.

Google announced MedGemma 2 on December 3, 2026, giving healthcare software teams a medical-content model that can request actions from developer-defined tools. For a local development trial, Google recommends an 80 GB+ GPU for the larger model, 24 GB+ hardware for uncompressed E4B, or 12 GB+ shared device memory for the smaller mixed-precision E4B build. Its roughly 4–5 GB inference footprint is not a recommendation to buy a 4 GB phone.

Commercial product development is permitted under the HAI-DEF licence, but that is not clearance for patient care. Google’s model card says outputs are preliminary and not intended to directly inform diagnosis, treatment, patient management or clinical calculations without appropriate development and validation.

Which MedGemma 2 build fits your hardware?

MedGemma 2 has three distinct memory budgets for server, workstation and on-device trials. The figures below are Google’s deployment estimates, not guaranteed minimums or measurements of your application. BF16 means 16-bit bfloat16; the mixed-precision build stores different parts of the model at different precision levels to reduce its footprint.

Build

Approximate inference memory

Recommended hardware memory

Trial to consider

26B mixture-of-experts, BF16

58 GB

80 GB+ GPU

Multi-step tool workflows, batch work or multiple users

E4B, BF16

18 GB

24 GB+ GPU, or a 24 GB+ Mac workstation

An unquantized reference for evaluation and adaptation

E4B, mixed precision, LiteRT-LM

4–5 GB

12 GB+ shared device RAM; the edge guide also lists 8 GB+ dedicated GPU memory

Offline mobile or desktop prototypes

For the last row, the LiteRT-LM guide distinguishes dedicated graphics memory from RAM shared with the operating system and app. Do not treat 8 GB of ordinary laptop RAM as equivalent to an 8 GB graphics card. The downloadable bundle is 4.69 GB, which is a storage figure—not the whole application’s running-memory requirement.

Choose the unquantized E4B build if your first question is how the reference model behaves. Choose the converted build if your question is whether an on-device application is feasible, then evaluate that exact build: Google warns that quantized and converted versions can behave differently. The inference estimates above do not establish a fine-tuning memory budget.

If your intended task is predicting cellular responses to interventions rather than working with medical documents and images, see CellGemma’s separate lab-trial requirements. It is a different model and research task, not another MedGemma deployment option.

Check the device runtime, not just the model name

LiteRT-LM is Google’s software runtime for running the converted model on devices. Its MedGemma 2 documentation recommends an 8,192-token context—the material handled within an interaction—and allows configuration up to 32,768 tokens. The dedicated Pixel TPU bundle is limited to 8,192. Do not assume the foundation model’s 128K context is available in every device bundle.

The same guide requires LiteRT-LM 0.20.1 or newer for its examples and says tool calling needs thinking mode enabled. Thinking, supplied reference passages and generated responses all need room in the configuration. LiteRT-LM support for the larger 26B model remains under evaluation; its availability elsewhere does not make it an available LiteRT deployment.

For a purchasing decision, specify the checkpoint, precision, runtime, hardware backend and intended workload together. A device that can load the weights has not thereby demonstrated acceptable response times, battery life or capacity for several users.

Are the weights free, and how do you get access?

Google describes HAI-DEF as free open-weight models with open-source companion tools. That does not make the whole project free. A trial budget still needs hardware or rental, storage, power, integration work, evaluation data and specialist review; there is no defensible all-in price without a workload and deployment setting.

The Google E4B page on Hugging Face requires login and acceptance of access conditions, including agreement to share Hugging Face information. For the converted build, Google’s local setup instructions direct users to accept the HAI-DEF terms on the LiteRT model page, authenticate with hf auth login, and use the pre-converted checkpoint from litert-community/medgemma-2-e4b-it-litert-lm. Offline inference still requires an initial download and setup.

Can you build a commercial healthcare app?

Yes, subject to the conditions: Google’s FAQ explicitly permits commercial product development. It also distinguishes open-weight models from open-source models. Do not apply the companion code’s Apache 2.0 licence to the model weights.

The HAI-DEF agreement has consequences beyond downloading a file:

  • Someone accepting it for an organization must have authority to bind that organization.

  • Providing model functionality to third parties through an API or web service counts as distribution, even when you keep the weights on your own servers.

  • Distribution requires providing the agreement and enforceable use restrictions to recipients. Modified files need notices; distributions other than hosted services also require a Notice file.

  • Applicable health regulatory authorization must be sought. Uses that would make Google a medical-device manufacturer are prohibited.

These are selected obligations, not a complete legal checklist. The separate prohibited-use policy also bars unauthorized processing of sensitive personal information, unlicensed professional practice and automated decisions affecting rights or well-being, including healthcare. Keeping processing local does not waive those restrictions or establish regulatory compliance.

What should a first trial prove?

Start with a bounded development question, such as whether the chosen build can retrieve and accurately cite a permitted set of reference documents. Google’s model card warns that answers can still contain material unsupported by the supplied sources and makes developers responsible for sandboxing and validating generated code and database queries.

For such a trial, use lawfully available, appropriately representative non-production examples; record the exact configuration; inspect source citations and outputs; and measure peak memory and response time on the target device. Those are proposed evaluation steps, not reported results. Keep exploratory tool integrations isolated from live clinical write operations.

If you collect public web references for a local library, check the collection tool’s network behavior separately. Our guide to collecting documentation without Firecrawl Cloud fallback explains why local collection still contacts source websites. It is not a validated medical integration.

Proceed with a development trial when the hardware, access terms and narrow evaluation task are clear. Defer patient-facing use until the actual application has the required validation and qualified clinical, privacy and regulatory review. Fitting a model on a device answers a compute question—not a patient-safety question.