超越TFLOPS的容量:在消费级CPU上以内存为中心部署大型临床语言模型
Capacity over TFLOPS: Memory-Centric Deployment of Large Clinical Language Models on Consumer CPUs
AI总结:
该研究提出以系统RAM为中心部署大型临床语言模型,在消费级CPU上实现270亿参数模型推理,联邦微调仅需传输22.6MB低秩适配器,为本地临床AI提供了隐私保护的部署路径。
摘要:
在医疗护理场景中运行大型临床语言模型的主要障碍并非算术吞吐量,而是图形内存:消费级GPU的显存上限为4-16GB,而270亿参数模型以4位精度运行时的工作集大小为17-25GB。本文提出应将边缘节点视为具备容量(系统RAM)而非受计算限制(GPU显存)的设备,并在商用硬件上对该观点进行验证。我们采用270亿参数开源模型的INT4构建版本作为270亿参数医疗模型的架构忠实替代物,基于合成的快速医疗保健互操作性资源(FHIR)提示,测量完全基于CPU的推理流水线的内存占用、推理延迟、能耗及联邦通信成本。在两台独立的消费级设备上(一台配备67GB RAM和6GB GPU的台式机,以及一台配备34GB RAM和4GB GPU的移动工作站),模型可完全加载至系统RAM中,RAM利用率分别为37%和60%,而两台GPU在推理第一步前就已出现显存不足。推理以夜间批处理速度运行(270亿参数模型的生成速度为0.6-2.4 token/s),联邦微调仅需传输22.6MB的低秩适配器,相比全权重减少了99.96%。该容量结果与CPU微架构、RAM大小、操作系统及GPU无关。我们进一步确定,一款开源的、针对CPU和NPU优化的推理运行时是该方法的自然生产路径,为本地部署的临床AI提供了隐私保护且广泛可部署的途径。所有数据均为合成数据;本研究为研究产物,非医疗设备。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。