ibl.ai Agentic AI Blog

Insights on building and deploying agentic AI systems. Our blog covers AI agent architectures, LLM infrastructure, MCP servers, enterprise deployment strategies, and real-world implementation guides. Whether you are a developer building AI agents, a CTO evaluating agentic platforms, or a technical leader driving AI adoption, you will find practical guidance here.

Topics We Cover

Featured Research and Reports

We analyze key research from leading institutions and labs including Google DeepMind, Anthropic, OpenAI, Meta AI, McKinsey, and the World Economic Forum. Our content includes detailed analysis of reports on AI agents, foundation models, and enterprise AI strategy.

For Technical Leaders

CTOs, engineering leads, and AI architects turn to our blog for guidance on agent orchestration, model evaluation, infrastructure planning, and building production-ready AI systems. We provide frameworks for responsible AI deployment that balance capability with safety and reliability.

Back to Blog

Qwen4 on a 12 GB GPU, MedGemma 2 on a Phone: Who Approves Clinical AI?

Jaione AmigotDecember 6, 2026
Premium

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.

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.

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.

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 on the same card and RAM.

Claim in the briefWhat the sources sayWho measured it
46 tok/s44 to 47 tok/s decode at 262K context, quantized build, 12 GB RTX 3060 plus 16 GB RAMOne developer's self-report on X; not independently reproduced
1M token context1,048,576 tokens is the model's native window; at 1M the same developer reports about 33 tok/sWindow: Qwen / Hugging Face. Speed: same self-report
$300 GPUThe RTX 3060 12 GB launched at $329 in February 2021; street prices varyNVIDIA launch announcement
Runs at full speed at 1MGoogle's LiteRT-LM team says "full-speed 1M context requires 32 GB+ VRAM" on Windows or Linux GPUsLiteRT Community, Hugging Face, December 4, 2026

The price comes from NVIDIA's RTX 3060 announcement, 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.

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.

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: 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 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.

MedGemma 2 E4B, on the deviceFigureSource
Active memory, compressed buildAbout 4-5 GB (mixed INT4/INT8)Google LiteRT-LM page
Recommended device RAM12 GB+ shared memory, or 8 GB+ dedicated VRAMGoogle LiteRT-LM page
Recommended context on device8,192 tokens (up to 32,768; 128K architectural)Google LiteRT-LM page
MedAgentBench success rate53.3 (MedGemma 2 4B) vs 48.7 (Gemma 4 E4B)Hugging Face model card, BF16 weights
Decode speed on a phone18.2 tok/s Pixel 11 Pro (TPU); 21.7 tok/s iPhone 17 Pro (GPU)LiteRT-LM model card
Accuracy scores for the phone buildNone published; the main card says quantized versions "may perform differently"Hugging Face model cards

The device speeds come from the MedGemma 2 E4B LiteRT-LM model card, 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.

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.

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, 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, 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.

Approval questionCloud inferenceOn-device inference
Business associate agreement with the inference vendorRequired (HHS cloud guidance)No inference vendor receives PHI
Security Rule risk analysisCovers the vendor link and data flowsCovers every device: encryption, loss, updates
FDA intended-use analysis (CDS guidance)Turns on function and userUnchanged: same function, same analysis
Clinical validationOf the hosted model versionOf the exact quantized build on the device
Model updatesVendor pushes themThe hospital decides when, and re-validates

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 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.

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, and for a hospital-scale on-premise test, Samsung Medical Center's on-premise AI scribe proof of concept. Sector details are on ibl.ai for medical and healthcare organizations.

Sources: Qwen4 specifications from Hugging Face, December 4, 2026 and Unsloth; RTX 3060 speeds are one developer's self-reports on X, not an independent benchmark; MedGemma 2 from Google, Google LiteRT-LM and the model card; 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.

Related Articles

Clinician Shadow AI Is Product Feedback, Not Just a Compliance Problem

A Johns Hopkins Bayview worker uploaded a spreadsheet covering 3,182 patients to an unapproved AI tool, and in a Wolters Kluwer survey 1 in 3 shadow-AI users pointed to missing or underpowered approved tools. Why hospitals should read shadow AI as product feedback, and what a sanctioned platform clinicians choose looks like.

Mikel AmigotNovember 8, 2026

Mercor Pays $120 to $200 for Apple Health Records. Hospitals, Note.

Mercor is paying US iPhone users $120 to $200 per accepted upload of Apple Health data and connected medical records for an unnamed AI research client, which shows what clinical records are worth to model builders and why hospitals should put that value to work inside their own perimeter.

Mikel AmigotNovember 28, 2026

Hospital-bench: AI Agents Pass 17 of 48 Hospital Tasks at Best

Zavo's Hospital-bench ran 23 AI models through 48 hospital administrative tasks across 13 simulated apps and 131 tools. The best mean score was 62.4%, no model passed more than 17 tasks, and 13 tasks defeated every model. What failed, and the approval gates a hospital should put around agents now.

Jaione AmigotNovember 25, 2026

athenahealth Let Patients Connect Records to Claude. Who Holds the Data?

On November 2, 2026 athenahealth launched athenaPatient MCP, a beta connector that lets U.S. Claude Pro and Max subscribers link their athenahealth records to Claude. athenahealth says HIPAA does not apply, which is why practices should decide where their own patient AI runs.

Mikel AmigotNovember 24, 2026

See the ibl.ai AI Operating System in Action

Discover how leading universities and organizations are transforming education with the ibl.ai AI Operating System. Explore real-world implementations from Harvard, MIT, Stanford, and users from 400+ institutions worldwide.

View Case Studies
Work with our team

Pilots, deployment, and full ownership

Every engagement is scoped to the work: you integrate ibl.ai with your own data, deploy it on your own infrastructure, and the engineering hours scale with the scope — so the price tracks the scope, not your headcount. Most customers keep us on afterwards for platform updates, new agents and integrations, and ongoing services.

Start here

Pilot

from $15K

fixed scope · fixed timeline

A time-boxed proof of value on your real data — not a slide deck.

Best for: Teams that want to see ibl.ai working before committing.

  • Deployed on your infrastructure or our cloud
  • 1–2 production agents wired to a slice of your data
  • One integration (LMS / SIS / SSO / data source)
  • Weekly working sessions with our engineers
  • Pilot fee credits toward a full engagement
Scope a pilot
Most common

Integration & Deployment

$25K – $80K

one-time fee · scoped to the work

Full deployment integrated with your data and systems. Engineering hours scale with scope.

Best for: Organizations rolling ibl.ai out across a department, campus, or business unit.

  • Platform deployed in your VPC, on-prem, or air-gapped
  • Integrated with your data + identity (SSO / SAML)
  • Multiple custom agents built to your workflows
  • Engineering hours proportional to scope
  • You own the data · run any LLM you choose
Plan a deployment
Full ownership

Codebase Transfer + Custom AI Engineering

Custom quote

perpetual license · you own the stack

We transfer the full source code. You own and self-host the entire platform — outright.

Best for: Organizations and enterprises that benefit from perpetual ownership and sovereignty.

  • Complete source-code transfer + perpetual license
  • Dedicated AI engineering team on your roadmap
  • Custom agents, models, and integrations to spec
  • Air-gapped capable · zero vendor lock-in
  • Family-owned, New York–based long-term partner
Talk about ownership
You own the code and data Run any LLM — Claude, GPT, Gemini, Llama Family-owned & operated from New York, NY