On-Premises LLM Deployment and Public Health Domain Fine-Tuning: A Practical Architecture for Disease Control Centers
This article presents a practical approach to deploying large language models (LLMs) on-premises within a disease control center's intranet and fine-tuning them for public health workloads. It covers the overall technical architecture spanning infrastructure, model runtime, data resources, application services, and security operations; public health–specific fine-tuning strategies, including instruction data construction, parameter-efficient fine-tuning, and retrieval-augmented generation; data security and compliance measures such as network isolation, role-based access control, data masking, and output safety; and a five-phase implementation process with continuous evaluation and operations. The guidance is applicable to other data-sensitive, resource-constrained domains such as government, healthcare, research, and emergency response.
1. Project Background and Objectives
As artificial intelligence is increasingly applied to disease surveillance, epidemiological analysis, health knowledge services, and emergency command, public health institutions have moved beyond general-purpose question answering. Their needs now extend to specialized domain understanding, report drafting assistance, data analysis and interpretation, and business process coordination.
Compared with typical enterprises, building LLM systems for a disease control center presents distinct challenges. First, these institutions hold large volumes of sensitive information, including personal health data, infectious disease surveillance records, laboratory test results, immunization data, and public health emergency records. Such data carries a high sensitivity classification and must comply with strict requirements for data classification and grading, access authorization, least privilege, and audit trails. Second, professional-grade models are often large, and both inference and training demand significant compute resources. Relying solely on high-end GPUs means not only high upfront procurement costs but also ongoing pressure on energy consumption, operations, and scheduling.
The core objective of this project is to build an independently operated LLM infrastructure inside the institution’s intranet, keeping model inference, domain fine-tuning, knowledge base retrieval, and business application deployment in a controlled environment, while reducing dependence on a single type of high-end accelerator by combining general-purpose GPUs with dedicated AI accelerator cards.
The project’s outcomes can be summarized in four goals:
- Data stays on premises: model services, training data, retrieval knowledge bases, and business logs all run within the intranet.
- Reusable compute: heterogeneous accelerator coordination improves utilization of limited hardware.
- Specialized models: instruction fine-tuning or parameter-efficient fine-tuning adapts models to public health terminology and workflows.
- Governable systems: security mechanisms cover data, models, interfaces, users, and runtime state.
2. Overall Technical Architecture
A private, on-premises deployment can generally be divided into an infrastructure layer, model runtime layer, data resource layer, application service layer, and security operations layer.
2.1 Infrastructure Layer
The infrastructure layer consists of servers, GPUs, dedicated AI accelerator cards, storage, and networking. This project uses a limited number of GPUs combined with dedicated AI accelerator cards, with middleware providing unified resource scheduling and task adaptation.
GPUs handle model training, complex inference, and some high-concurrency tasks, while the dedicated accelerator cards support inference acceleration, operator execution, or model-specific tasks. The two types of hardware are not simply stacked: stable, coordinated compute capability requires runtime adaptation, operator mapping, memory management, and task orchestration.
Key infrastructure design considerations include:
- Whether accelerator memory capacity satisfies model loading requirements;
- Whether data transfer between compute devices becomes a bottleneck;
- Whether training and inference workloads need isolation;
- Whether storage can sustain continuous reads and writes for model files, training corpora, and logs;
- Whether failed devices can be replaced through backup nodes or task migration.
2.2 Model Runtime Layer
The model runtime layer includes model loading, inference services, fine-tuning task management, batch processing, and resource scheduling. To adapt to the local environment, the model scale should be selected based on available hardware, and techniques such as quantization, sharded loading, or parameter-efficient adaptation are typically applied.
In production, business systems should not directly access underlying model processes. Instead, expose standardized interfaces through a unified service layer. At minimum, this layer should provide:
- Request authentication;
- Concurrency control;
- Timeout handling;
- Context length limits;
- Sensitive content filtering;
- Invocation logging;
- Health checks;
- Failure retry or degradation strategies.
This decouples business systems from model implementation details and makes it easier to replace models or add inference nodes later.
2.3 Data Resource Layer
The data resource layer includes public health regulations, operational standards, historical reports, technical guidelines, disease prevention and control knowledge, laboratory testing documentation, and emergency response plans.
It is important to emphasize that building a knowledge base is not simply uploading documents. Source materials often have inconsistent formats, duplicate versions, complex section structures, and unmasked sensitive information. A complete data processing pipeline is therefore required:
- Data collection and registration;
- File format parsing;
- Content cleaning and deduplication;
- Sensitive field identification and masking;
- Document chunking;
- Semantic vectorization;
- Index construction;
- Permission label binding;
- Version management and periodic updates.
For materials with different access permissions, the knowledge base should retain the owning department, classification level, validity period, and authorized scope, preventing the model from returning data beyond a user’s permissions during retrieval.
3. Fine-Tuning Methods for Public Health
General-purpose LLMs have strong language understanding but may not accurately interpret disease surveillance indicators, case definitions, laboratory terminology, or emergency response procedures. Domain fine-tuning is therefore essential to practical usefulness.
3.1 Building Fine-Tuning Data
Fine-tuning data should be designed around real business tasks rather than pursuing raw sample volume. Common tasks include:
- Public health question answering;
- Surveillance report summarization;
- Structured extraction of outbreak information;
- Summarizing key points of prevention and control plans;
- Explaining disease-related terminology;
- Converting statistical results into natural-language descriptions;
- Generating emergency response procedure steps;
- Converting formal documents between formats.
Each sample should include a clear question, necessary background, a reference answer consistent with business norms, and applicable conditions. For tasks with multiple valid answers, evaluation criteria should be defined explicitly to avoid the model learning contradictory expressions.
3.2 Parameter-Efficient Fine-Tuning
With limited compute, full-parameter training is not always necessary. Parameter-efficient fine-tuning (PEFT) updates only a small number of additional parameters, reducing memory requirements and training time, and making it easy to maintain multiple specialized adapter versions for different departments.
For example, separate adapter modules can be built for infectious disease surveillance, immunization planning, laboratory testing, and health education. At runtime, the appropriate module is loaded according to the user’s department or business scenario, reducing repeated training and model maintenance costs.
3.3 Combining Retrieval Augmentation with Fine-Tuning
For frequently changing policy documents, operational guidelines, and statistical definitions, relying on model parameters to memorize everything is impractical. A better approach is a division of labor: fine-tuning provides capability; retrieval provides facts.
Fine-tuning improves the model’s grasp of task formats, domain language, and reasoning patterns. Retrieval-augmented generation (RAG) queries the latest authoritative sources before answering and supplies the retrieved content as context. This reduces the risk of the model generating outdated information and makes it easier for business staff to trace answer sources.
4. Data Security and Compliance Design
Security requirements must be integrated into the architecture design phase, not patched in after the system is complete.
4.1 Network Isolation
Model services and data storage should be deployed in the intranet, partitioned into management, model, data, and application zones. Access control policies restrict communication between zones, and unnecessary external access is prohibited.
If model files or patches must be imported, use controlled media, an approval process, and malware scanning, maintaining a complete import record.
4.2 Identity and Permissions
The system should support role-based access control (RBAC), with authorization based on department, position, data classification, and business scenario. Ordinary users should only access models and knowledge relevant to their work, and administrators should follow separation-of-duties principles so no single account holds all privileges.
All important operations — model release, data import, permission changes, knowledge base updates, and bulk exports — must log the operator, time, target object, and result.
4.3 Data Masking
Before training and testing, identify sensitive fields such as names, identity numbers, contact information, addresses, and case numbers, then apply deletion, masking, generalization, or replacement according to business needs. Masked data should still be manually sampled and reviewed, because combinations of fields can inadvertently enable re-identification.
4.4 Output Safety
LLMs can produce factual errors, overgeneralizations, or inappropriate recommendations. Model output must therefore not be used directly as a diagnosis, decision, or administrative conclusion. For high-risk scenarios, add human review, source citations, confidence indicators, and result confirmation steps.
5. Implementation Process
Implementation proceeds in five phases:
- Requirements analysis: identify user groups, business scenarios, data scope, concurrency requirements, and security boundaries.
- Infrastructure preparation: provision servers, compute devices, storage, networks, and system environments; verify device drivers, runtimes, and model compatibility.
- Model service deployment: complete model loading, inference APIs, resource scheduling, logging, auditing, and monitoring/alerting configuration.
- Data governance and domain fine-tuning: establish data processing standards; create training, validation, and test sets; run small-scale experiments to verify model effectiveness.
- Trial operation and acceptance: conduct gray-release validation with representative business scenarios, focusing on answer accuracy, response speed, resource utilization, failure recovery, and security compliance.
6. Effect Evaluation and Continuous Operations
After launch, establish continuous evaluation rather than a one-time acceptance. Metrics fall into four categories:
- Accuracy: terminology explanation correctness, key information extraction accuracy, and report summary completeness;
- Performance: time to first token, average response time, concurrency capacity, and resource utilization;
- Security: unauthorized access interception rate, sensitive information leakage, and audit log completeness;
- Operations: service availability, failure recovery time, model update cadence, and knowledge base update timeliness.
For identified errors, establish a closed loop: record problematic samples, analyze root causes, revise data or prompt templates, retest, and decide whether further fine-tuning is needed. Only through continuous accumulation of high-quality business samples can the model steadily approach real-world performance.
7. Project Value and Broader Applicability
In data-sensitive, resource-constrained public health settings, on-premises deployment is not merely installing a model inside the intranet — it means building a complete system spanning compute, data, models, applications, and security. Heterogeneous compute coordination meets baseline inference and domain fine-tuning needs while controlling hardware investment; combining the knowledge base with parameter-efficient fine-tuning balances domain specialization and knowledge freshness; and permissions, auditing, and human review reduce the risks of applying LLMs in critical business processes.
This approach is also relevant to other government, healthcare, research, and emergency response organizations. Its core lessons do not depend on any specific vendor or device, but on keeping data local and controllable, provisioning compute on demand, keeping model capabilities measurable, keeping business results traceable, and keeping the system governable.
