Manuscript Offprint

arXiv:2610.17551

Capacity over TFLOPS: Memory-Centric Deployment of Large Clinical Language Models on Consumer CPUs

Eli Yune, Umer Majeed, Mahesh Balan

Eli Yune

Balkeum Labs

Seongnam, South Korea

eli.yune@balkeumlabs.ai

Umer Majeed

Balkeum Labs

Seongnam, South Korea

umer.majeed@balkeumlabs.ai

Mahesh Balan

Claremont Graduate University

Claremont, CA, USA

balan.mahesh@cgu.edu

Abstract—The dominant barrier to running large clinical language models at the point of care is not arithmetic throughput but graphics memory: consumer GPUs cap at 4–16 GB, while the working set of a 27-billion-parameter model in 4-bit precision is 17–25 GB. We argue that the edge node should be treated as capacity-enabled (system RAM) rather than compute-limited (GPU VRAM), and we test this on commodity hardware. Using an INT4 build of a 27B open model as an architecture-faithful stand-in for a 27B medical model, we measure the memory footprint, inference latency, energy, and federated communication cost of a fully CPU-based pipeline driven by synthetic Fast Healthcare Interoperability Resources (FHIR) prompts. On two independent consumer machines—a desktop-class machine with 67 GB of RAM and a 6 GB GPU, and a mobile workstation with 34 GB of RAM and a 4 GB GPU—the model loads entirely into system RAM (37% and 60% utilization, respectively) while both GPUs are out-of-memory before the first step. Inference runs at overnight-batch speed (0.6–2.4 tokens/s for the 27B model), and federated fine-tuning would transmit only a 22.6 MB low-rank adapter, a 99.96% reduction over full weights. The capacity result is independent of CPU microarchitecture, RAM size, operating system, and GPU. We further identify an open, CPU- and NPU-optimized inference runtime as the natural production path for this approach, indicating a privacy-preserving and broadly deployable route for on-premises clinical AI. All data is synthetic; this is a research artifact and not a medical device.

Index Terms—edge AI, large language models, CPU inference, quantization, low-rank adaptation, federated learning, clinical natural language processing, memory hierarchy

I. INTRODUCTION

Deploying large language models (LLMs) inside a hospital or clinic is attractive for privacy: patient records governed by HIPAA and GDPR never leave the premises, and no protected health information is sent to a cloud provider. The practical obstacle is hardware. The community reflex is to reach for a GPU, but the relevant constraint for a high-parameter model is not floating-point throughput—it is memory capacity. A consumer GPU offers 4–16 GB of VRAM, whereas the resident working set of a 27B model, even compressed to 4-bit weights, is 17–25 GB once the key-value cache and runtime buffers are included. The model simply does not fit, and the GPU reports an out-of-memory (OOM) error before a single token is produced.

System RAM, by contrast, is cheap and abundant: 32–64 GB is unremarkable on a commodity desktop or workstation. We therefore reframe the edge node as capacity-enabled rather than compute-limited, and ask a direct question: can a consumer CPU host a 27B clinical LLM in system RAM, and what is the cost in latency, energy, and—for federated learning—network bandwidth?

This paper makes three contributions. (1) We show, on two independent commodity machines, that an INT4 27B model loads and serves entirely from system RAM while the on-board GPU cannot hold it; the result is robust to CPU microarchitecture, RAM size, operating system, and GPU class. (2) We characterize the honest cost of the CPU-only path—inference latency, throughput, and an energy proxy—using a synthetic FHIR clinical workload. (3) We quantify the communication efficiency of sharing only low-rank adapters in a federated setting. We are deliberate about the boundary between measured and modeled quantities, and we make no claim of any hardware-specific accelerator.

References (19)

  • Communication-efficient learning of deep networks from decentralized data
  • LoRA: Low-rank adaptation of large language models
  • QLoRA: Efficient finetuning of quantized LLMs
  • GPTQ: Accurate post-training quantization for generative pre-trained transformers
  • AWQ: Activation-aware weight quantization for on-device LLM compression and acceleration
  • SmoothQuant: Accurate and efficient post-training quantization for large language models
  • Efficient memory management for large language model serving with PagedAttention
  • FlexGen: High-throughput generative inference of large language models with a single GPU
  • Practical secure aggregation for privacy-preserving machine learning
  • Towards building the federated GPT: Federated instruction tuning
  • FLAI protocol: Decentralized federated learning with on-chain rewards and sPEG-based contribution scoring
  • Gemma 2: Improving Open Language Models at a Practical Size
  • MedGemma: Open medical foundation models built on Gemma
  • Large language models encode clinical knowledge
  • MEDITRON-70B: Scaling medical pretraining for large language models (opens arXiv in a new tab)
  • llama.cpp: LLM inference in C/C++
  • OpenVINO toolkit: Open-source toolkit for optimizing and deploying deep learning inference
  • MIMIC-IV, a freely accessible electronic health record dataset
  • Fast Healthcare Interoperability Resources (FHIR), release 4