Private Deployment and Domain Adaptation of Large Language Models for Disease Control Centers

    This article presents a practical framework for deploying and adapting large language models within disease control centers. It covers data governance, model and service boundaries, architecture, heterogeneous computing, storage planning, retrieval-augmented generation, parameter-efficient fine-tuning, training data quality, security controls, evaluation, and phased implementation. The central principle is to build a verifiable and maintainable public health support capability without allowing fluent model output to replace professional judgment.

    1. Project Goals: Building Verifiable Business Capabilities Within a Controlled Security Boundary

    For a disease control center, introducing a large language model is not simply about running a model with as many parameters as possible. The real objective is to provide public health professionals with reliable, traceable, and maintainable assistance within clearly defined data-use boundaries.

    Suitable initial use cases include public health knowledge retrieval, technical guideline question answering, investigation material structuring, report draft generation, and surveillance information summarization. These tasks are document-intensive, terminology-heavy, and subject to explicit formatting requirements. They can demonstrate the value of language models while allowing risks to be controlled through source citations, field validation, and human review.

    A large language model should not directly replace epidemiological investigations, risk assessment, or professional decision-making. Recommendations for outbreak response, interpretation of individual health information, and externally published content should remain subject to explicit human approval. Fluency must never be mistaken for factual accuracy.

    The project goals can be summarized in three areas:

    • Controllable data boundaries: The storage, access, training, and inference of sensitive information must be governed by clear authorization rules.
    • Explainable resource investment: Hardware specifications must correspond to defined model requirements, workloads, and service objectives.
    • Verifiable business value: System value should be assessed through independent test sets, professional review, and operational records rather than demonstrations alone.

    2. Define Three Critical Boundaries Before Deployment

    2.1 Data Boundary: On-Premises Deployment Is Not Sufficient for Compliance

    Public health data may include personal information, sensitive personal information, and other categories requiring enhanced protection. The applicable handling requirements should be determined according to relevant laws and regulations, data classification, authorization scope, and supervisory requirements. It is not appropriate to assume that all such data must always be prohibited from cloud environments.

    For data that must be processed within the institution, on-premises deployment can reduce the scope of data transfers, but it does not automatically ensure compliance. Unauthorized queries, internal misuse, exposed logs, poorly managed backups, and inappropriate operations access can also cause security incidents.

    At the beginning of the project, the organization should create a data inventory that records the source, purpose, authorized users, retention period, and eligibility for training use of each data category. De-identified data should not automatically be treated as risk-free. The possibility of re-identification after combining it with other information must also be assessed.

    2.2 Model Boundary: Parameter Count Must Follow Task Requirements

    A larger model does not necessarily deliver better business results. Professional question answering may depend primarily on retrieval quality. Structured extraction may depend more on training examples and field definitions. Fixed-format report generation often benefits more from templates and rule-based validation.

    Model selection should consider Chinese-language understanding, professional terminology recognition, long-document processing, structured output, deployment licensing, and operational complexity. Organizations with limited resources can begin with a smaller model and complete an end-to-end task workflow. The need for a larger model should then be determined from observed error patterns.

    2.3 Service Boundary: Distinguish Assisted Generation from Automated Execution

    Generating a draft investigation report and automatically modifying an investigation record in a business system have very different risk profiles. The former can be controlled through human review. The latter also requires transaction validation, operation authorization, failure rollback, and complete auditing.

    Early implementations should favor read-only and assistance-oriented services. Constrained business operations should be introduced only after task quality, access controls, and exception handling have been thoroughly validated.

    3. Overall Architecture: Decouple the Model, Data, and Governance

    A maintainable local deployment system can be divided into six layers:

    1. Data ingestion layer: Receives policy documents, technical guidelines, historical reports, and business data while recording their sources and versions.
    2. Data governance layer: Performs cleaning, deduplication, de-identification, authorization tagging, and quality checks.
    3. Knowledge and training data layer: Maintains the searchable knowledge base, training samples, and independent evaluation sets separately.
    4. Computing resource layer: Centrally manages GPUs, compatible accelerator devices, host memory, and local storage.
    5. Model serving layer: Provides inference, retrieval augmentation, task orchestration, and output validation.
    6. Security and operations layer: Handles identity authentication, access control, monitoring, alerting, auditing, and version rollback.

    The key design principle is not to ask the model to solve every problem. Questions requiring up-to-date evidence should be handled by retrieval systems. Precise calculations should be delegated to validated computation modules. Business-format requirements should be enforced through validation rules. The model should focus on understanding, organizing, and generating content.

    4. Heterogeneous Computing and Storage Expansion: Understand the Bottleneck Before Optimizing Costs

    4.1 GPU Memory Usage Includes More Than Model Parameters

    Resource planning should account for model weights, intermediate inference states, attention caches, runtime workspace, and, during training, gradients and optimizer states.

    For model weights alone, the theoretical storage requirement can be approximated as:

    Weight storage ≈ Number of parameters × Bits per parameter ÷ 8

    For example, a model with approximately ten billion parameters using 16-bit storage requires roughly twenty billion bytes for the weights alone. Actual execution also involves additional overhead, so this calculation cannot by itself determine whether a device can support the model.

    Inference concurrency, input length, and output length also have a significant effect on resource requirements. “The model can be loaded” and “the model can provide stable service” must therefore be validated separately.

    4.2 Tiered Storage Is Not the Same as Adding High-Speed GPU Memory

    When supported by the relevant hardware and software stack, some parameters or runtime states can be placed in host memory or local high-speed storage. Prefetching, caching, and asynchronous transfer can then be used to reduce waiting time.

    However, this approach does not eliminate the bandwidth and latency differences between storage media. Even when flash storage is included in a unified addressing or scheduling system, it is not equivalent to physical GPU memory. Computing devices cannot access all data randomly and at no cost.

    The benefits of tiered storage depend on data locality, cache hit rate, transfer paths, the degree of overlap between computation and data movement, and actual framework and driver support. Training workloads also require attention to storage endurance and failure recovery caused by sustained read and write activity.

    4.3 Validate the Workload When Combining a Small Number of Devices

    Combining a small number of GPUs with other accelerator devices may be a candidate approach for resource-constrained environments. However, the number of devices alone cannot demonstrate that the configuration can replace a higher-end cluster.

    Validation should cover the intended model, precision, context length, fine-tuning method, and target concurrency. It should measure response time, throughput, device utilization, and resource peaks under sustained load. If an additional accelerator lacks support for required operators, or if inter-device transfers become the bottleneck, adding hardware may not produce the expected benefit.

    5. Domain Adaptation: Add Knowledge Before Training Behavior

    5.1 Retrieval Augmentation Is Suitable for Frequently Changing Knowledge

    Public health regulations, workflows, and technical documents are continually updated. For tasks such as answering questions based on a specific document, building a retrieval-augmented mechanism is usually easier to maintain than frequent retraining.

    Document processing should preserve the issuing organization, publication date, scope of application, validity status, and version relationships. Text chunks should retain the integrity of definitions, conditions, exceptions, and table explanations. Related content that constrains one another should not be separated unnecessarily.

    Answers should provide not only a conclusion but also the supporting passages and their sources. When retrieval results are insufficient or documents conflict, the system should state this explicitly rather than automatically producing a seemingly definitive answer.

    5.2 Parameter-Efficient Fine-Tuning Is Suitable for Adjusting Expression and Task Behavior

    When a model must consistently produce a prescribed structure, recognize specialized terminology, or follow an institution’s internal writing conventions, parameter-efficient fine-tuning may be appropriate. These methods typically train only a small number of added or selected parameters, reducing the number of trainable parameters and associated state requirements.

    They do not guarantee that the entire model will fit into a very small amount of GPU memory. Loading the base model, storing activations, and performing computation still consume resources. Whether to use quantization, gradient checkpointing, or state offloading should be determined by framework support and measured results.

    Fine-tuning should not be treated as a factual database. Knowledge that changes frequently or requires precise citations should continue to be maintained in a controlled knowledge base.

    6. Training Data Governance: Do Not Bake Historical Problems into the Model

    Training samples should be built around real tasks, such as extracting key information from investigation materials, converting guideline clauses into question-and-answer examples, or generating report drafts from confirmed fields.

    Data governance should cover at least the following areas:

    • Authorization checks: Confirm that data is permitted for model training, not merely for business queries.
    • Sensitive information handling: Remove direct identifiers and assess indirect identification risks involving rare events or combinations of time and location.
    • Quality review: Remove incorrect conclusions, outdated terminology or interpretations, duplicate text, and content that cannot be verified.
    • Sample design: Include examples with insufficient information, conflicting conditions, and cases where the model should refuse to answer.
    • Data isolation: Divide training and test sets appropriately by document source, event, or time period to prevent source leakage and inflated evaluation results.

    Historical reports are not automatically high-quality training data. If they contain outdated terminology, nonstandard language, or unconfirmed judgments, direct training may cause the model to reproduce these problems consistently. Professional review should therefore be part of the data production workflow rather than a one-time activity before launch.

    7. Security Architecture: Protect the Full Chain from Input to Retention

    Security controls should cover the entire workflow, not just the network boundary.

    During access, the system should enforce identity authentication and least-privilege access. During retrieval, it should first filter documents according to the user’s permissions before passing content to the model. This prevents the model from accessing information that the user is not authorized to read.

    Retrieved documents and user-uploaded materials should be treated as untrusted inputs. They may contain text that attempts to make the model ignore rules, disclose information, or perform additional actions. The fact that such text appears in a knowledge base does not grant it instruction authority.

    At the output stage, the system should check for sensitive fields, unsupported conclusions, and content that does not meet business requirements. Logs should follow the principle of minimum necessary collection. Complete medical records, identity information, and full prompt content should not be retained indefinitely in ordinary operations logs.

    Access to training artifacts, model checkpoints, knowledge indexes, and backup files must also be controlled. Before an update package enters the internal environment, its source, integrity, and compatibility should be verified. The update process itself must not become a new security entry point.

    8. Evaluation and Production Acceptance: Business and Engineering Requirements Must Both Be Met

    Business evaluation should use task-specific metrics. For knowledge question answering, relevant measures include evidentiary support, citation accuracy, and refusal behavior when information is insufficient. For information extraction, evaluation should cover field accuracy, omission rate, and format compliance. For report generation, reviewers should check factual consistency, completeness of required content, and the amount of manual editing required.

    High-risk errors should be counted separately. A large number of easy correct answers must not conceal a small number of serious failures. Test sets should also include abbreviations, ambiguous dates, conflicting records, missing fields, and adversarial or leading questions.

    Engineering acceptance should cover response time, sustained throughput, concurrency limits, resource peaks, restart recovery, storage failures, and version rollback. Performance results must include the model version, precision, input and output lengths, concurrency conditions, and hardware configuration. Without this context, performance figures cannot be compared reliably.

    Cost evaluation should include more than hardware procurement. Storage, networking, power, operations, data labeling, security governance, and upgrade or migration costs should also be considered. Cost comparisons are meaningful only when business quality and service requirements are equivalent.

    9. Implementation Roadmap: Reduce Risk Through a Small-Scale Closed Loop

    A practical rollout sequence is:

    Use-case selection → Baseline establishment → Knowledge enhancement → Fine-tuning when necessary → Security acceptance → Continuous operations

    First, select tasks with clear boundaries, manageable risks, and measurable value. Next, establish a baseline with a model that has not undergone domain fine-tuning, and record its actual errors. Then use knowledge retrieval, template constraints, and rule-based validation to address problems that can be solved in an interpretable way. Fine-tuning should be introduced only when evidence shows that the remaining errors are caused by task behavior or insufficient domain-specific expression.

    After deployment, the model, knowledge base, prompt templates, and business rules should be versioned separately. Every change must be traceable, testable, and reversible. User feedback should also be reviewed before entering the training workflow, preventing unverified corrections from contaminating later versions.

    Conclusion

    The priority in building a large language model system for a disease control center is not to run the largest possible model on the smallest possible amount of hardware. It is to establish a reliable business workflow within appropriate compliance and security boundaries.

    Heterogeneous computing and tiered storage can support resource optimization experiments. Retrieval augmentation and domain fine-tuning can improve performance on specialized tasks. However, each technology has clear applicability conditions and limitations.

    Resource configurations should be validated against real workloads. Business value should be verified through independent evaluation. Permissions, auditing, and human review should be used to control risk. Only through this combination can local deployment evolve from a technical demonstration into a maintainable and traceable public health support capability.