RESOURCES

Running AI Models on Your Own Computer

Technical guidance for running medical AI models locally—for privacy, offline access, and understanding how these systems work under the hood.

~45 min read Technical guide
Important Disclaimer

The developer checkpoints listed here do not establish validation for your clinical use case. This guide is for educational and development purposes. Nothing here constitutes medical, legal, or compliance advice. Consult appropriate professionals before deploying AI systems in clinical settings.

November 2026 Check: GLM-5.3-Flash Weights Are Available

Z.ai released GLM-5.3-Flash on August 26, and its publisher-hosted repository contains weights and an MIT license. This supersedes the impression that GLM-5.2 is the only locally available 5.x option. The full GLM-5.3 and GLM-5.3-Flash are distinct releases; do not transfer a promised weights date from one to the other. Flash is still a 320B-parameter model, not an ordinary laptop download. A shipped license establishes availability, not clinical validation or a HIPAA-compliant deployment. [Release] [Weights and license]

Why Local Models Matter for Healthcare

Cloud-based AI services like ChatGPT and Claude offer powerful capabilities, but they present challenges for healthcare applications. Data sent to these services may be retained for training, lacks guaranteed HIPAA compliance without specific enterprise agreements, and requires constant internet connectivity.

Local models flip this equation. When you run an AI model on your own hardware, patient data never leaves your machine. There's no network transmission, no third-party storage, no Business Associate Agreement required for internal experimentation. One catch: the same apps now sell cloud models too. Ollama's :cloud models and LM Studio Bionic's Secure Cloud models run on the vendor's servers, so “local” depends on which model you pick, not which app you opened. Choose a downloaded model, or turn cloud features off (Ollama, LM Studio Bionic).

The 2026 landscape is also bifurcating. Meta's Muse Spark (April 2026) is its first proprietary, cloud-only frontier model. Meta still publishes open weights: Muse Glimmer (August 10, 2026) is a 30B-parameter, Apache 2.0 model built to run on a single consumer GPU or Mac. The older Llama 4 models date from April 2025. When you read announcements about a vendor's "frontier" model, check whether it's a hosted product or downloadable weights; that distinction determines whether local deployment is even an option.

Ideal Use Cases for Local Models

Prototyping

Test clinical applications before investing in HIPAA-compliant cloud infrastructure.

Education

Understand how these systems behave without compliance overhead.

Offline Access

Work in settings with unreliable connectivity.

Research

Full control over model parameters and outputs.

Cost Management

High-volume experimentation without API fees.

Privacy

With a downloaded model, data stays on your machine. Cloud-tagged models don't.

The Tradeoff

Local models running on consumer hardware are smaller and less capable than the frontier models behind ChatGPT, Claude, and Gemini. A 7B parameter model on your laptop won't match a model many times its size running in a data center. But for many tasks—answering medical questions, summarizing notes, generating draft content—smaller models can be surprisingly effective.


Medical-Specific Models

Several open-source models have been specifically trained or fine-tuned for healthcare applications. These offer better baseline performance on medical tasks than general-purpose models of similar size. However, "better baseline performance" doesn't mean "ready for clinical use"—all require validation for any specific application.

MedGemma

Google’s MedGemma family is a set of open medical developer checkpoints, not a clinically validated finished application. The May 2025 release was followed by MedGemma 1.5 4B on January 13, 2026, with expanded support for volumetric CT/MRI, whole-slide pathology, longitudinal imaging, and medical-document understanding. Google also provides MedASR for medical dictation. Match the checkpoint and evaluation to your task instead of inferring clinical readiness from a family name. [Model card] [Release]

Variant Parameters Modalities Key Training Data
MedGemma 1.5 4B Multimodal 4 billion Text + Images Radiology, dermatology, ophthalmology, histopathology
MedGemma 27B Text 27 billion Text only Medical literature, clinical text
MedGemma 27B Multimodal 27 billion Text + Images + EHR All above plus FHIR-based EHR data

Performance Claims:

Image Capabilities: The multimodal variants can process medical images including chest X-rays, dermatology photographs, fundus images, and histopathology slides.

Important Limitations

Google explicitly states MedGemma is not clinical-grade. From their documentation: "MedGemma is not intended to be used without appropriate validation, adaptation and/or making meaningful modification by developers for their specific use case."

Early testing has revealed significant gaps. One clinician found MedGemma generated a "normal" interpretation for a chest X-ray with clear tuberculosis findings.

Hardware Requirements:

Access: Available on Hugging Face. For MedGemma 1.5, use google/medgemma-1.5-4b-it (1.5 comes only as a 4B model); google/medgemma-4b-it is the original 4B release, and the 27B variants remain on MedGemma 1. Requires agreeing to Google's terms of use.

Meditron

Developed by researchers at EPFL and Yale School of Medicine, Meditron adapts Meta's Llama 2 architecture through continued pretraining on curated medical data. The project emphasizes open access and low-resource settings.

Training Corpus (GAP-Replay, 48.1 billion tokens):

Model Variants:

Access: GitHub (epfLLM/meditron), Hugging Face. Available in Ollama as meditron:7b.

BioMistral

Built on the Mistral architecture and pre-trained on PubMed Central, BioMistral offers strong biomedical question-answering performance in a 7B parameter package. Its standout feature is multilingual evaluation—the team tested performance across eight languages.

Best Use Cases:

Access: Hugging Face (BioMistral/BioMistral-7B), available in some Ollama model repositories.

Other Notable Models

Llama 4 Scout / Maverick

Meta's April 2025 open-weight models. Mixture-of-experts architecture (17B active params), with Scout offering a 10M-token context window. Scout is a 67GB download even at 4-bit, so it needs a 96GB+ machine.

Muse Glimmer (Meta)

Meta's August 10, 2026 open-weight release: 30B parameters, Apache 2.0. Meta says the 4-bit model is under 20GB and fits a 24-32GB machine with room to run. Built for local agents and tool use; no medical evaluation published. [Hugging Face]

DeepSeek V4 Pro / V4 Flash

DeepSeek's April 2026 preview line, MIT-licensed, 1M-token context. Both are server-scale: V4 Pro is 1.6 trillion parameters and V4 Flash is 284 billion (roughly 800GB and 140GB at 4-bit). Open weights, but not a desktop model.

Qwen3.8-27B

Alibaba's August 2026 dense model: 27B parameters, Apache 2.0, with image and video input. At 4-bit it sits in the “27B at Q4” row of the hardware table below. Successor to Qwen 3.6 27B. [Hugging Face]

Qwen 3.6 27B

Alibaba's May 2026 release. Scores 77.2% on SWE-bench—competitive with much larger models for code-adjacent medical tasks (clinical pipeline scripts, EHR data wrangling). Strong tool-use and JSON-mode support.

Kimi K3

Moonshot AI's July 16, 2026 flagship; open weights published July 27. Roughly 2.8 trillion parameters (mixture-of-experts, ~104B active per token) with a 1M-token context. Independent indices place it just behind the closed frontier—but at this scale the weights are datacenter infrastructure, not something you run locally. See the callout below. Its predecessor, Kimi K2.6, is not a local option either: it is about 1 trillion parameters. For coding-adjacent local work, look at Qwen3.8-27B above.

GLM-5.2

Zhipu AI's June 13, 2026 release—the standout open-weight model of the cycle: a 744B-parameter mixture-of-experts (~40B active), 1M-token context, two thinking modes, and an MIT license. Independent ranking (Artificial Analysis) placed it first among open weights as of June 2026, at roughly one-sixth the cost of the closed frontier—and strong on long-horizon coding (62.1 on SWE-bench Pro). Kimi K3’s July 27 weights release has since passed it (57 against GLM-5.2’s 51 on the Artificial Analysis Intelligence Index), which is the usual shelf life for an open-weight ranking. Server-room hardware, not laptop.

OpenBioLLM-70B

Claims to outperform GPT-4 on several biomedical benchmarks. Originally built on Llama 3 with medical fine-tuning; newer releases are migrating to Llama 4.

MedAlpaca-7B

Fine-tuned for medical dialogue and question-answering. Good for conversational medical education. Not in the Ollama library; download it from Hugging Face.

Meerkat-7B/8B

First 7B models to exceed USMLE passing threshold. Strong diagnostic reasoning on NEJM Case Challenges.

ClinicalBERT

Smaller encoder model trained on MIMIC-III clinical notes. Excellent for classification and entity recognition.

June 2026 Update: No MedGemma 2 — the Open-Weight Action Is Elsewhere

The original 2025 family is no longer the whole story: MedGemma 1.5 4B shipped in January 2026. Its model card still requires use-case-specific validation and does not establish safe autonomous clinical use. The historical benchmark figures above refer to the original variants; they are not an evaluation of a deployed local application.

The open-weight headline came from China. GLM-5.2 (Zhipu AI, June 13) was the first open model to genuinely close the gap on frontier closed-source performance: MIT-licensed, a 1-million-token context, and—by independent ranking (Artificial Analysis)—the top open-weight model in the world as of June 2026, at roughly one-sixth the cost of the closed frontier. That standing lasted about six weeks: Kimi K3 published its weights on July 27 and scores 57 on the Artificial Analysis Intelligence Index against GLM-5.2’s 51. MiniMax M3 (June 1) rounds out the cycle, adding native multimodality (image, video, and desktop computer control) to a comparable 1M-token open-weight base.

Neither is a medical model—but for health systems weighing on-prem deployment against closed APIs, they’re the strongest evidence yet that the open-weight frontier keeps pace. Hardware caveat: models in this class need serious GPU memory; this is server-room territory, not laptop territory.

July 2026 Update: Kimi K3, and Why “Open Weights” Doesn’t Mean You Can Run It

Moonshot AI released Kimi K3 on July 16, 2026 and published its full open weights on July 27. Independent aggregate indices rank it near the top of all models, open or closed—the closest an open-weight release has come to the frontier. Most of the coverage that followed amounted to some version of “the best model in the world is now a free download.” That framing is wrong in three specific ways, and all three generalize well past this one model.

First, you cannot run it. K3 is roughly 2.8 trillion parameters. Even quantized down to 4 bits, the weights alone come to on the order of 1.4 TB—before any context or activation memory. This is a multi-node datacenter model. It will not run on a MacBook, on a workstation with a good GPU, or on a single server. “Open weights” describes a license and a download, not a hardware requirement, and the gap between the two has widened fast: the models in this section you can genuinely run at home are three orders of magnitude smaller.

Second, it is not MIT-licensed, despite a great deal of reporting that says it is. Moonshot pre-announced a “Modified MIT” license and many outlets repeated that. What actually shipped is a bespoke Kimi K3 License (tagged license: other on Hugging Face) carrying a revenue-triggered separate-agreement clause and a user-interface attribution mandate. That is open-weight with commercial strings attached, not OSI-approved open source. If you are evaluating a model for anything your compliance office will eventually read, read the license that shipped rather than the one that was announced. GLM-5.2 above is genuinely MIT; this one is not.

Third, and the one that matters most here: the hosted API is not an option for PHI. Using Kimi through Moonshot’s API sends your data to a Chinese company. There is no BAA and no HIPAA pathway. There is also no published medical evaluation of K3—none of its headline benchmarks are clinical. The real significance of this release is structural rather than practical: the open-weight frontier now sits roughly one tier behind the closed frontier, which over the next year or two pressures pricing and makes self-hosted clinical models more plausible. That is a trend worth watching, not a tool to adopt. [Analysis]

August 2026 Update: GLM-5.3 — Announced Open, Not Yet Open

Z.ai launched GLM-5.3 on August 14, 2026—same 743B base as GLM-5.2, with all gains from post-training and the strongest open-weight coding claims yet—but API-only. The weights were promised roughly two weeks after launch while the company completes what it describes as safety evaluation and hardening of the model’s cybersecurity capability, and as of August 23 they have not been published. The rule from the Kimi item above applies in a new form: read the license that shipped, and count only the weights that shipped. Until they land, GLM-5.3 is a hosted Chinese API with no BAA—the same PHI posture as Kimi’s hosted API—and GLM-5.2 was the available full-size release at that August checkpoint. See the November note above for the separately released GLM-5.3-Flash; the original promise alone does not establish full GLM-5.3 weight availability. [Source]

November 2026: the full GLM-5.3 weights are now published (753B parameters, still server-room hardware). They did not ship under MIT. The GLM-5.3 License is permissive but adds a clause: a Model-as-a-Service operator with more than $10 billion in annual revenue must pass Z.AI’s security review before commercial use. That won’t touch a clinic, but it is exactly the “read the license that shipped” lesson. GLM-5.3-Flash remains MIT.

Choosing a Model

Hardware Recommended Models
Limited (8-16GB RAM) Phi-4-mini or Meditron-7B at Q4 (both in the Ollama library)
Medical QA focus BioMistral-7B or Meditron-7B
Image + text tasks MedGemma 4B (if hardware allows)
Research/academic BioMistral for literature, Meditron for guidelines
Maximum capability MedGemma 27B, OpenBioLLM-70B, Qwen3.8-27B, or Muse Glimmer (DeepSeek V4 and Kimi need server hardware)

Hardware Requirements and Performance

Running local models requires understanding the relationship between model size, quantization, and your available hardware. The bottleneck is almost always memory—either system RAM or GPU VRAM.

Memory Math

A model's parameters are stored as floating-point numbers. In full precision (FP16), each parameter requires 2 bytes. So a 7B parameter model needs roughly 14GB just for the weights. Add overhead for inference and you're looking at 16-20GB for comfortable operation.

Most consumer hardware can't handle this, which is where quantization comes in.

Understanding Quantization

Quantization reduces precision from 16-bit floating point to smaller representations—8-bit, 4-bit, even 2-bit. This trades some accuracy for dramatically reduced memory requirements.

Quantization Bits/Parameter 7B Model Size Quality Impact
FP16 16 ~14GB Baseline
Q8_0 8 ~7GB Minimal loss
Q6_K 6 ~5.4GB Very slight loss
Q5_K_M 5 ~4.7GB Slight loss
Q4_K_M 4 ~3.8GB Small but acceptable
Q3_K_M 3 ~3.0GB Noticeable loss
Q2_K 2 ~2.7GB Significant loss

For most users, Q4_K_M is the sweet spot—good quality, reasonable size. The "_K_" notation indicates "K-quant" methods that intelligently quantize different parts of the model to preserve quality.

Practical Hardware Guidelines

8

8GB RAM (Minimum)

3B-4B parameter models at Q4. Slow inference, limited context. Examples: Phi-4-mini (3.8B, about a 2.5GB download), TinyLlama.

16

16GB RAM (Comfortable)

7B models at Q4-Q5. Reasonable speed, 2K-4K context. Examples: MedGemma 4B, BioMistral 7B.

32

32GB RAM (Development)

7B at Q8 or 13B at Q4-Q5. Good inference speed, larger context windows.

64

64GB+ RAM (Serious)

27B+ models at Q4-Q5. Multiple models loaded simultaneously.

Apple Silicon Performance

M-series Macs deserve special mention. Their unified memory architecture—where CPU and GPU share the same RAM pool—eliminates the VRAM bottleneck that limits Windows/Linux GPU usage. A 16GB M1 Mac can effectively use all 16GB for model weights.

Mac Configuration Comfortable Model Size
M1/M2 8GB 3B-4B at Q4
M1/M2 16GB 7B at Q4-Q5
M1/M2/M3/M4 24GB 7B at Q8 or 13B at Q4
M1/M2/M3/M4 Pro / Max 32–64GB 13B at Q5-Q8, 27B at Q4 (for example Qwen3.8-27B or Muse Glimmer). Llama 4 Scout at Q4 is a 67GB download and won't fit.
M-series Ultra / Mac Studio 96GB+ 27B-70B models; Llama 4 Scout at Q4 is a 67GB download, so it's tight at 96GB. DeepSeek V4 Pro (1.6T parameters) needs server hardware.

GPU Acceleration

For NVIDIA GPUs, the key metric is VRAM:

VRAM Typical Cards Model Capacity
4GB GTX 1650, RTX 3050 3B-4B models only
8GB RTX 3060, RTX 4060 7B at Q4-Q5 comfortably
12GB RTX 3060 12GB, RTX 4070 7B at Q8, 13B at Q4
24GB RTX 4090, A5000 13B at Q8, 27B at Q4

Partial offloading: You don't need to fit the entire model in VRAM. Both Ollama and LM Studio support loading some layers on GPU and others in system RAM. Even 50% GPU offloading provides meaningful speedup.


Security Setup for HIPAA-Compliant Work

Even though local models don't transmit data externally, proper security hygiene matters. This section covers practical steps rather than comprehensive compliance frameworks.

What Local Models Solve

Local deployment addresses data transmission to third parties. When you prompt ChatGPT with patient information, that data travels to external servers. Local models eliminate this—data stays on your machine, as long as the model you selected is a downloaded one and not one of the cloud models Ollama and LM Studio Bionic now offer. But local deployment doesn't automatically create a HIPAA-compliant system. For any work involving actual patient information, full organizational compliance infrastructure is required.

Full Disk Encryption

Non-negotiable for any machine that might touch patient data. If your laptop is stolen, encryption prevents data access without the decryption key.

macOS (FileVault)

  1. Open System Settings → Privacy & Security → FileVault
  2. Click "Turn On FileVault"
  3. Choose recovery key option (store securely, not on the same machine)
  4. Encryption proceeds in background; may take several hours

Windows (BitLocker)

  1. Open Control Panel → System and Security → BitLocker Drive Encryption
  2. Click "Turn on BitLocker" for your OS drive
  3. Choose how to unlock (PIN or USB key for stronger security)
  4. Save recovery key to secure location
  5. Choose encryption scope (entire drive recommended)

Network Isolation

Local models don't need internet access once downloaded:

Data Handling Practices


Installation: Ollama

Ollama is the simplest path to running local models. It handles model downloading, quantization management, and provides both a command-line interface and local API. Think of it like Docker for language models.

macOS Installation

Option 1: Direct download (recommended)

  1. Visit ollama.com/download
  2. Download the macOS installer (.dmg file, roughly 230MB as of November 2026)
  3. Open the .dmg and drag Ollama to Applications
  4. Launch Ollama from Applications folder
  5. A llama icon appears in your menu bar when running

Option 2: Install script (the same one Linux uses; it is the command shown on ollama.com/download/mac)

curl -fsSL https://ollama.com/install.sh | sh

Option 3: Homebrew

brew install ollama
brew services start ollama

Windows Installation

  1. Download the Windows installer from ollama.com/download
  2. Run the .exe installer
  3. Follow prompts; Ollama installs as a background service
  4. The llama icon appears in system tray when running

GPU Setup for NVIDIA: Before installing Ollama, ensure you have recent NVIDIA drivers from nvidia.com/drivers. Ollama will automatically detect and use your GPU.

Linux Installation

curl -fsSL https://ollama.com/install.sh | sh

Verifying Installation

ollama --version
ollama list

Downloading Models

Browse available models at ollama.com/library.

# Small, fast model for testing setup
ollama pull phi4-mini

# Medical-focused model
ollama pull meditron:7b

# Specific quantization variant (tag names are listed on each model's Tags page)
ollama pull meditron:7b-q4_K_M

Running Models

# Interactive chat
ollama run phi4-mini

# Single prompt (no interactive session)
ollama run phi4-mini "What are the most common causes of pediatric fever?"

Type /bye to exit interactive mode.

Model Parameters

ollama run has no flags for these. Set them inside an interactive session (or with PARAMETER lines in a Modelfile):

ollama run phi4-mini

# Then, at the >>> prompt:
# Set temperature (0.0 = deterministic, 1.0 = creative)
/set parameter temperature 0.7

# Set context window size
/set parameter num_ctx 4096

# Cap the number of tokens to generate
/set parameter num_predict 500

Useful Ollama Commands

Command Description
ollama list List downloaded models with sizes
ollama show meditron:7b Show model details
ollama rm phi4-mini Remove a model
ollama pull phi4-mini Pull latest version of a model
ollama ps Show running models

Local API

Ollama automatically serves a local API at http://localhost:11434. This example uses Ollama’s own native endpoint:

curl http://localhost:11434/api/generate -d '{
  "model": "phi4-mini",
  "prompt": "What are common causes of pediatric fever?"
}'

Apps written for OpenAI’s API can point at the OpenAI-compatible endpoints under http://localhost:11434/v1/ instead (for example, /v1/chat/completions). Either way, the request stays on your machine as long as you use a local model; Ollama’s :cloud models run on Ollama’s servers.


Installation: LM Studio

LM Studio provides a graphical interface for running local models, making it more approachable for users who prefer visual tools over command lines.

Installation

  1. Visit lmstudio.ai
  2. Download for your operating system
  3. macOS: Drag to Applications folder
  4. Windows: Run the installer
  5. Linux: Make the AppImage executable and run

Downloading Models

  1. Launch LM Studio
  2. Click "Discover" in the left navigation
  3. Search for a model (try "phi-4-mini" or "meditron")
  4. Click Download on your chosen variant

Running Models

  1. Click "Chat" in left navigation
  2. Click the dropdown at top to select your downloaded model
  3. Click "Load" to load the model into memory
  4. Start typing in the chat interface

GPU Offloading

  1. Go to model settings (gear icon)
  2. Adjust "GPU Layers" slider
  3. More layers = faster but more VRAM required
  4. Start with 50% and adjust based on performance

Comparing Ollama and LM Studio

Aspect Ollama LM Studio
Interface Command line + API Graphical + API
Learning curve Steeper initially Gentler start
Resource usage Lighter Heavier
Model discovery Manual download or pull Built-in browser
Scripting/automation Excellent Limited
Best for Developers, automation Exploration, non-technical users

Many users install both: LM Studio for discovery and quick testing, Ollama for integration and automation.


Critical Limitations to Understand

These Models Are Not Clinical Grade

The listed model cards do not establish validation for your clinical use case. MedGemma's documentation explicitly states it requires "appropriate validation, adaptation and/or meaningful modification" before any clinical use. Meditron's team "recommends against using Meditron in medical applications without extensive use-case alignment."

Real-World Failure Modes

1 False Precision

A model might confidently state "the sensitivity of rapid strep testing is 86%" when the actual figure varies by test manufacturer, technique, and population. The confident delivery masks significant uncertainty.

2 Pattern Matching Errors

Presented with "12-year-old with sore throat and fever," a model may generate a reasonable differential. But it can't actually examine the patient, notice the sandpaper rash suggesting scarlet fever, or appreciate that the child looks toxic versus well-appearing.

3 Outdated Information

Training data has a cutoff date. Guidelines change, drug interactions are discovered, new variants emerge. A model has no way to know that recommendations shifted six months ago.

4 Plausible but Wrong

One early tester found MedGemma generated a "normal" interpretation for a chest X-ray with obvious tuberculosis findings. The output was grammatically perfect, appropriately formatted, and completely wrong.

Benchmark Scores Don't Equal Clinical Competence

A model scoring 87% on MedQA (multiple-choice medical questions) isn't "87% as good as a doctor." MedQA measures pattern recognition and fact recall. Success does not require:

The Hallucination Problem

All language models sometimes generate confident, fluent, and completely wrong outputs. This is an intrinsic architectural limitation, not a bug to be fixed.

In medical contexts, hallucination could mean:

What Local Models Can Reasonably Do

Appropriate Uses

  • Draft content for human review
  • Answer general medical questions (consumer health level)
  • Summarization with verification
  • Development and prototyping
  • Education and understanding AI behavior

Inappropriate Uses

  • Patient-specific diagnostic recommendations
  • Replacing clinical decision-making workflows
  • Operating autonomously in patient-facing applications
  • Handling real PHI without compliance infrastructure
  • Informing care without independent verification

Resources

Model Repositories

Technical Documentation

Medical AI Evaluation

Community