---
title: "Qwen4 on a 12 GB GPU, MedGemma 2 on a Phone: Who Approves Clinical AI?"
slug: "qwen4-medgemma-2-on-device-healthcare-ai-who-approves"
author: "Jaione Amigot"
date: "2026-12-06 12:00:00"
category: "Premium"
sector: "healthcare"
topics: "on-device clinical AI, MedGemma 2, Qwen4-35B-A3B, local LLM healthcare, HIPAA on-device AI, FDA clinical decision support software, hospital AI governance, offline healthcare AI, open-weight medical models, self-hosted healthcare AI"
summary: "Qwen4-35B-A3B reportedly runs at 44-47 tok/s at 262K context on a 12 GB RTX 3060 (about 33 tok/s at 1M), and MedGemma 2 E4B runs offline in about 4-5 GB of RAM. Running locally, with no PHI leaving the device, removes the inference vendor as a HIPAA business associate but leaves the FDA and clinical-validation questions, so approval is now the bottleneck."
banner: ""
thumbnail: ""
linkedin: |
  Two December 2026 releases moved healthcare AI's bottleneck.

  → Qwen4-35B-A3B (Apache-2.0, 1M-token native context). One developer reports 44-47 tok/s at 262K context on a 12 GB RTX 3060, a card that launched at $329, and about 33 tok/s at the full 1M.

  → MedGemma 2 E4B from Google, built for phones, tablets and laptops: about 4-5 GB of active RAM in its mixed INT4/INT8 build, offline at the point of care.

  The viral version mixed those numbers up. 46 tok/s was not measured at 1M tokens.

  The real shift: "can the model do it?" is no longer the hard question. "Who approves the deployment?" is.

  When no patient data leaves the device, running on it takes the inference vendor out of the HIPAA business-associate chain. It does not change FDA's clinical decision support analysis, which turns on what the software does, not where it runs. And Google's own model card says MedGemma outputs are not intended to directly inform diagnosis.

  With ibl.ai you own all the code and the data, run it model-agnostic, and deploy anywhere, so the approval record lives inside the hospital.

  Full post: https://ibl.ai/blog/qwen4-medgemma-2-on-device-healthcare-ai-who-approves

  #iblai #HealthcareAI #ClinicalAI #OnDeviceAI #OpenWeight #HIPAA
---

## The Short Answer

**Capable open models now run on hardware a clinic can buy: one developer reports Qwen4-35B-A3B at 44 to 47 tokens per second at 262K context on a 12 GB RTX 3060, and Google built MedGemma 2 E4B to run offline on phones. The hard question is now who approves the deployment. With ibl.ai you own all the code and the data, so that approval record stays inside the hospital.**

The brief behind this post said "46 tok/s on a $300 GPU with 1M token context." Those three numbers were never measured together.

Below we separate what was measured from what was claimed, then walk through the approval questions that running locally changes, and the ones it does not.

## How fast does Qwen4 actually run on a 12 GB consumer GPU?

Qwen4-35B-A3B is a Mixture-of-Experts model with about 35B main parameters and about 3.8B active per token, released under Apache-2.0 with a 1,048,576-token native context window, per the [Hugging Face launch post of December 4, 2026](https://huggingface.co/blog/qwen4).

The fast-on-cheap-hardware numbers come from one developer posting on X as Doğukan (@DogukanUrker). His first report: [about 44 tok/s decode at 262K context on a single RTX 3060 with 12 GB of VRAM and 16 GB of system RAM](https://x.com/DogukanUrker/status/2128790762590531681).

His follow-up reported [about 47 tok/s at 262K, about 39 tok/s at 524K and about 33 tok/s at the full 1M context](https://x.com/DogukanUrker/status/2129542368403845427) on the same card and RAM.

<table>
<thead><tr><th>Claim in the brief</th><th>What the sources say</th><th>Who measured it</th></tr></thead>
<tbody>
<tr><td>46 tok/s</td><td>44 to 47 tok/s decode at <strong>262K</strong> context, quantized build, 12 GB RTX 3060 plus 16 GB RAM</td><td>One developer's self-report on X; not independently reproduced</td></tr>
<tr><td>1M token context</td><td>1,048,576 tokens is the model's native window; at 1M the same developer reports about <strong>33 tok/s</strong></td><td>Window: Qwen / Hugging Face. Speed: same self-report</td></tr>
<tr><td>$300 GPU</td><td>The RTX 3060 12 GB launched at <strong>$329</strong> in February 2021; street prices vary</td><td>NVIDIA launch announcement</td></tr>
<tr><td>Runs at full speed at 1M</td><td>Google's LiteRT-LM team says "full-speed 1M context requires 32 GB+ VRAM" on Windows or Linux GPUs</td><td>LiteRT Community, Hugging Face, December 4, 2026</td></tr>
</tbody>
</table>

The price comes from [NVIDIA's RTX 3060 announcement](https://nvidianews.nvidia.com/news/nvidia-introduces-geforce-rtx-3060-next-generation-of-the-worlds-most-popular-gpu), which listed the card at $329 with 12 GB of GDDR6. The 32 GB figure is from [the LiteRT-LM guide to running Qwen 4 locally](https://huggingface.co/blog/litert-community/qwen4-in-litertlm).

Unsloth's own guide recommends a 2-bit quant for 12 GB devices and 4-bit for 24 GB, per [its Qwen4 run-locally page](https://unsloth.ai/docs/models/qwen4).

A 35B model squeezed into 12 GB of VRAM and 16 GB of RAM is necessarily quantized, and 33 tok/s at 1M is impressive, but it is not the full-precision checkpoint Qwen published.

## What does "MedGemma 2 runs on a phone" actually mean?

MedGemma 2 comes in two sizes, per [Google's announcement of December 3, 2026](https://blog.google/innovation-and-ai/technology/health/medgemma-2/): a 26B Mixture-of-Experts model for servers and an E4B model "optimized for on-device deployment on phones, tablets, and laptops." Only the E4B is the phone model.

Google's [LiteRT-LM page for MedGemma 2](https://developers.google.com/edge/litert-lm/models/medgemma-2) gives the specifics. Mixed-precision INT4/INT8 quantization compresses active memory "from ~16 GB (BF16) to ~4-5 GB."

The same page recommends "12 GB+ total device RAM for full apps on shared-memory phones and laptops," or 8 GB+ of dedicated VRAM on a discrete GPU. It recommends an 8,192-token context, configurable up to 32,768 on LiteRT-LM, against a 128K architectural maximum.

<table>
<thead><tr><th>MedGemma 2 E4B, on the device</th><th>Figure</th><th>Source</th></tr></thead>
<tbody>
<tr><td>Active memory, compressed build</td><td>About 4-5 GB (mixed INT4/INT8)</td><td>Google LiteRT-LM page</td></tr>
<tr><td>Recommended device RAM</td><td>12 GB+ shared memory, or 8 GB+ dedicated VRAM</td><td>Google LiteRT-LM page</td></tr>
<tr><td>Recommended context on device</td><td>8,192 tokens (up to 32,768; 128K architectural)</td><td>Google LiteRT-LM page</td></tr>
<tr><td>MedAgentBench success rate</td><td>53.3 (MedGemma 2 4B) vs 48.7 (Gemma 4 E4B)</td><td>Hugging Face model card, BF16 weights</td></tr>
<tr><td>Decode speed on a phone</td><td>18.2 tok/s Pixel 11 Pro (TPU); 21.7 tok/s iPhone 17 Pro (GPU)</td><td>LiteRT-LM model card</td></tr>
<tr><td>Accuracy scores for the phone build</td><td>None published; the main card says quantized versions "may perform differently"</td><td>Hugging Face model cards</td></tr>
</tbody>
</table>

The device speeds come from the [MedGemma 2 E4B LiteRT-LM model card](https://huggingface.co/litert-community/medgemma-2-e4b-it-litert-lm), which reports speed and memory only.

So "runs on a phone" is true for current flagship phones, a compressed build, and a short context. The published benchmark scores belong to the full-precision weights, per the [MedGemma 2 E4B model card](https://huggingface.co/google/medgemma-2-E4B-it).

## Does running clinical AI on the device change a hospital's HIPAA obligations?

Running on the device changes one HIPAA question and leaves the rest.

HHS has said since 2016 that a cloud provider storing electronic protected health information for a covered entity is a business associate even if it holds only encrypted data and no key, in its [guidance on HIPAA and cloud computing](https://www.hhs.gov/hipaa/for-professionals/special-topics/health-information-technology/cloud-computing/index.html).

When the model runs on a hospital-managed phone or laptop and no prompt leaves it, there is no inference vendor receiving PHI, so there is no inference business associate agreement to negotiate. That is the part of the framework built for cloud that simply drops away.

What stays is the [HIPAA Security Rule](https://www.hhs.gov/hipaa/for-professionals/security/laws-regulations/index.html), which covers ePHI a covered entity creates, receives, maintains or transmits, on any device. The phone becomes part of the risk analysis: encryption at rest, a lost-device plan, who can install a model update.

Moving the model local does not remove the paperwork. It moves it from an inference-vendor contract to device management, which the hospital controls; any other vendor that still receives PHI, such as a cloud backup or logging service, still needs a business associate agreement.

## Does an on-device clinical model still need FDA review?

Where a model runs does not decide whether it is regulated. FDA's [Clinical Decision Support Software guidance](https://www.fda.gov/regulatory-information/search-fda-guidance-documents/clinical-decision-support-software), final and re-issued January 29, 2026, interprets section 520(o)(1)(E) of the FD&C Act by what the software does and for whom.

A triage or diagnostic tool built on MedGemma 2 E4B faces the same intended-use analysis on a phone as on a server. Offline operation does not appear among the criteria.

Google's own terms point the same way. The MedGemma 2 model card states that outputs "are not intended to directly inform clinical diagnosis" and should be "considered preliminary," and use is governed by the Health AI Developer Foundations terms of use.

## Who approves an on-device clinical AI deployment inside a hospital?

The approval chain is where a 4-5 GB model now waits. Each row below is a question someone in the hospital has to sign, and running locally changes only some of them.

<table>
<thead><tr><th>Approval question</th><th>Cloud inference</th><th>On-device inference</th></tr></thead>
<tbody>
<tr><td>Business associate agreement with the inference vendor</td><td>Required (HHS cloud guidance)</td><td>No inference vendor receives PHI</td></tr>
<tr><td>Security Rule risk analysis</td><td>Covers the vendor link and data flows</td><td>Covers every device: encryption, loss, updates</td></tr>
<tr><td>FDA intended-use analysis (CDS guidance)</td><td>Turns on function and user</td><td>Unchanged: same function, same analysis</td></tr>
<tr><td>Clinical validation</td><td>Of the hosted model version</td><td>Of the exact quantized build on the device</td></tr>
<tr><td>Model updates</td><td>Vendor pushes them</td><td>The hospital decides when, and re-validates</td></tr>
</tbody>
</table>

Under the Security Rule every covered entity must name a security official, so the device rows have an owner by law. The validation rows need a clinical governance committee that signs off on a specific model file, not on a model family name.

That last point is the one most often missed. The MedGemma 2 card's benchmarks are for BF16 weights; a hospital approving the 4-5 GB phone build is approving something Google has published speed and memory figures for, but no accuracy scores.

## What should a health system validate before an on-device model touches patient care?

Start with the gap between the headline and the build. The Qwen4 speed figures came from a quantized build on a 12 GB card; MedGemma 2's scores came from full-precision weights. Validate the file you will actually deploy, at the context length you will actually use.

Three checks follow from the sources above:

- **Context length.** Google recommends 8,192 tokens on device for MedGemma 2 E4B, not 128K. A chart summary that needs more than that needs a server, or a retrieval step.
- **Version pinning.** Record the exact model file, quantization and runtime version, so a re-validation is triggered by a change, not discovered after one.
- **Fallback.** Decide what the clinician sees offline when the model is unsure, and log it on the device for later review.

We saw the same pattern in field screening, where [offline TB screening AI in a backpack X-ray](/blog/backpack-x-ray-tb-screening-offline-ai-at-the-edge) rests on an explicit approval: a conditional 2021 WHO recommendation that software may replace a human reader for screening, with a confirmatory test after.

## How does ibl.ai help a hospital govern local and on-premise clinical AI?

ibl.ai is an agentic AI platform a health system deploys on its own infrastructure, and you own all the code and the data.

It is model-agnostic, so the same agents can call Qwen4 on a local GPU, MedGemma 2 on a hospital server, or a frontier model where policy allows, and switch without being rebuilt.

That matters for the approval chain above. The audit trail, the record of which model version answered and the access rules live on servers the hospital controls, whether that is its own cloud, its data center or an [air-gapped network](/service/air-gapped-ai).

ibl.ai is not a medical device and does not replace FDA or clinical validation. More than 1.6 million users across 400+ organizations run the platform, with no per-seat pricing. ibl.ai is family-owned and operated from New York, NY.

For the boundary-review side, see [why an air-gapped clinical AI platform survives a HIPAA review](/blog/air-gapped-clinical-ai-platform), and for a hospital-scale on-premise test, [Samsung Medical Center's on-premise AI scribe proof of concept](/blog/samsung-medical-center-heidi-on-premise-clinical-ai-scribe). Sector details are on [ibl.ai for medical and healthcare organizations](/solutions/medical-healthcare).

*Sources: Qwen4 specifications from [Hugging Face, December 4, 2026](https://huggingface.co/blog/qwen4) and [Unsloth](https://unsloth.ai/docs/models/qwen4); RTX 3060 speeds are one developer's self-reports on X, not an independent benchmark; MedGemma 2 from [Google](https://blog.google/innovation-and-ai/technology/health/medgemma-2/), [Google LiteRT-LM](https://developers.google.com/edge/litert-lm/models/medgemma-2) and the [model card](https://huggingface.co/google/medgemma-2-E4B-it); regulatory framing from HHS and FDA as linked above.*

## Why does owning the AI stack matter?

**ibl.ai is the agentic AI platform where you own all the code and the data: the platform's full source code, not only your models and results. You self-host the entire stack inside your own perimeter, run it model-agnostic across any LLM and switch anytime, and pay by usage with no per-seat pricing — so you can deploy anywhere: your cloud, on-premise, GovCloud, or fully air-gapped.**

- **You own all the code and the data.** Full source code under a perpetual license, running on your infrastructure. Not API access to someone else's platform — the stack itself is yours.
- **Model-agnostic.** Run any LLM — Claude, GPT, Gemini, Llama, Command, or your own fine-tune — and switch providers without rewriting the platform.
- **No per-seat pricing.** Usage-based billing against a budget cap you set. Cost tracks what your organization actually uses, not how many people you employ.
- **Deploy anywhere.** Your cloud, your VPC, on-premise, GovCloud, or a fully air-gapped network with no outbound connectivity.

1.6M+ users across 400+ organizations run the platform this way, including NVIDIA, MIT, and Syracuse University.

ibl.ai is family-owned and operated from New York, NY — a U.S.-headquartered, domestically-owned long-term partner, not a vendor that sells licenses and moves on.

[Explore sovereignhealthcare.ai](https://sovereignhealthcare.ai/)
