Open-Source LLM Selection, Deployment, and Fine-Tuning: A Pre-Launch Checklist
This article provides a practical checklist for selecting, deploying, and fine-tuning open-source large language models. It covers how to verify download-count claims, estimate weight storage and GPU memory, review licenses and version consistency, compare single-machine, clustered, and managed cloud deployment, optimize inference in a controlled order, and run fine-tuning regression and content-safety checks before launch.
1. First, Verify the Download-Count Methodology
Media and industry reports often cite figures such as “cumulative downloads exceeding 10 billion.” This article cannot independently verify such absolute numbers, so the main text does not use them. Before citing any such figure, confirm the following four dimensions.
| Dimension | Question to confirm | Why it affects judgment |
|---|---|---|
| Statistical source | Which platform or repository does the data come from? | Counting rules and user bases differ significantly across platforms. |
| Time period | What is the start and end date of the cumulative count? | Cumulative figures grow over time and cannot be compared directly across different points in time. |
| Deduplication rules | Are repeated downloads by the same user or machine merged? | Automated scripts and mirror sites may inflate counts. |
| Model scope | Does the count include derivative models, quantized versions, and fine-tuned versions? | Derivative versions of the same base model may be counted multiple times. |
If only second-hand reposts are available, trace back to the original statistics page. When citing, you can use the following template:
- Data source: platform name and URL of the original statistics page
- Statistics cutoff date: YYYY-MM-DD
- Deduplication rules: whether repeated downloads by the same user or machine are merged, and whether mirror sites and automated scripts are excluded
- Model scope: whether derivative models, quantized versions, and fine-tuned versions are included
- Wording example: “According to statistics published by [platform] on [date], the base model had [number] downloads; the statistics were not deduplicated.”
If the original page cannot be found, write only “according to a publicly available statistical methodology” and note the cutoff date; do not present it as established fact. Download counts reflect attention and distribution scale, not model quality directly.
2. Model Selection and Licensing
2.1 Estimating Weight Size
Open weights mean users must store and distribute files themselves. A rough estimate formula is:
Size ≈ number of parameters × bytes per parameter
Common precisions use the following bytes: FP16 uses 2 bytes, INT8 uses 1 byte, and INT4 uses 0.5 bytes. For a 70B (70 billion) parameter model, FP16 requires about 140 GB, INT8 about 70 GB, and INT4 about 35 GB.
This formula estimates weight files only. Actual files are usually larger because embedding layers, some unquantized layers, tokenizers, and metadata also take space. Runtime GPU memory must additionally hold KV cache, activations, and intermediate data from batching; this grows with batch size and context length. When planning storage, reserve 10% to 20% headroom. For GPU memory planning, rely on stress-test results, not weight size alone.
2.2 Licenses, Versions, and the Boundaries of Openness
Open source does not mean unrestricted. Read the license line by line before use and check the following:
- Does the license allow commercial use?
- Does it allow redistribution, and can modified versions be published?
- Are there restrictions on use cases or user-scale thresholds?
- Do the weights, tokenizer, configuration files, and inference code come from the same version?
- Are hash values of all files recorded in the deployment record?
When versions are inconsistent, outputs may drift, and the issue can be hard to troubleshoot. Recording hash values lets the team later confirm whether files running in production match those used in testing.
2.3 Capability Areas: Instruction Following, Long Context, and Multi-Step Tasks
Newer open-source models have improved in several areas:
- Instruction following: After instruction tuning and preference alignment, models usually handle multi-constraint instructions more consistently.
- Long-context understanding: Techniques such as improved positional encoding and sparse attention allow models to process longer inputs. The upper limit depends on the specific model and should be tested on your own data.
- Multi-step tasks: Models can break down goals, call tools, and maintain state across steps, but errors accumulate with each step. Check intermediate results after every additional step.
- Retrieval-augmented research tasks: Combined with retrieval and self-checking, models can produce analyses with sources, but cited content must be manually verified.
When describing these capabilities externally, cite the source of the evaluation set or test data; do not write only that “performance improved significantly.”
3. Comparison of Three Deployment Approaches and Selection Guidance
Enterprises usually have three private deployment options. Before choosing, estimate peak traffic, data compliance requirements, and the team’s operations capability.
| Comparison dimension | Single-machine multi-GPU inference | Clustered inference service | Managed cloud |
|---|---|---|---|
| Applicable traffic | Low to medium, with relatively stable concurrency | Medium to high, with significant traffic fluctuations | Any scale, suitable for rapid start |
| Initial cost | High one-time hardware investment | High investment in both hardware and orchestration system | Pay-as-you-go, low initial investment |
| Operations responsibility | Team handles drivers, GPU memory, and service processes | Team handles cluster, autoscaling, and monitoring | Platform handles infrastructure; team handles model and application |
| Scalability | Limited by single-machine GPU memory and GPU count | Can scale horizontally by replicas | Depends on platform quotas and instance availability |
| Data compliance | Data remains entirely on local premises | Can be completed within a private network | Must confirm data residency and contract terms |
| Lock-in risk | Low | Medium, depending on orchestration solution | Relatively high; monitor API and migration costs |
Single-machine multi-GPU requires handling tensor parallelism and GPU memory bottlenecks; it is suitable for internal tools or small-scale business. Clustered inference requires container orchestration, load balancing, and health checks. Managed cloud suits organizations without a stable operations team, but they must check cross-border data rules and migration plans in advance.
Selection can be judged by the following conditions:
- If peak concurrency from stress testing can be handled by a single machine and data cannot leave the local network: choose single-machine multi-GPU.
- If traffic fluctuates widely, replica-based autoscaling is needed, and the team already has container orchestration and monitoring capabilities: choose clustered inference.
- If there is no stable operations team, rapid validation is needed, and data is allowed to be processed in a specified region: choose managed cloud.
Before choosing managed cloud, check the following items one by one:
- Whether data residency meets compliance requirements and whether cross-border transfer requires approval
- Whether the contract explicitly states that the platform will not use business data to train other models
- Whether the contract specifies the time limit and method for data deletion
- Whether instance availability, quota limits, and regional capacity meet peak demand
- Whether APIs are compatible with open-source inference frameworks and which code changes are required for migration
- Whether model weights can be exported and whether exported files can run directly in a self-hosted environment
- Whether billing caps and usage alerts are configured
4. Inference Optimization Checklist
Recommended optimization order: measure the baseline, then quantize, then tune batching, then optimize KV cache, and finally consider speculative decoding. Compare each step with the baseline. If gains are insignificant or quality drops, roll back to the previous step immediately.
| Technique | Applicable scenario | Key parameters | Accuracy and throughput trade-off | Validation metrics | Rollback condition |
|---|---|---|---|---|---|
| Quantization (FP16 to INT8 or INT4) | Insufficient GPU memory, small accuracy loss acceptable | Quantization method, calibration dataset (should cover real business distribution) | Lower GPU memory usage, possible accuracy loss | Domain evaluation score difference, first-token latency | Key evaluation drops beyond business-defined threshold |
| Batching (dynamic batching) | Many concurrent requests, low GPU utilization | Max batch size, waiting time window | Higher throughput, possible increase in per-request latency | Throughput, P95 and P99 latency | P99 latency exceeds SLO, or throughput does not improve |
| KV Cache optimization | Long context or high concurrency | Max sequence length, cache block size, eviction policy | When cache is insufficient, requests queue or are rejected; long-text output may degrade | Peak GPU memory, concurrency limit, long-text evaluation score | Out-of-memory errors occur, or long-text evaluation score drops |
| Speculative decoding | Long outputs and a suitable small draft model available | Draft model, draft length, acceptance rate | Low acceptance rate yields little benefit and adds overhead | Acceptance rate, output tokens per second, sampled output consistency | Acceptance rate below threshold, or output quality drops |
Thresholds should be set by the business side. The following values are examples only and must be replaced with actual business values: roll back if key evaluation scores drop by more than 2 percentage points; roll back if P99 latency exceeds the service-level objective.
Rollback steps:
- Keep the previous version’s weights, tokenizer, and inference configuration
- Switch traffic back to the previous version and confirm the switch took effect
- Record failed samples, parameter combinations, and monitoring curves
- After fixes, rerun the full regression test, then gradually increase traffic
5. Fine-Tuning Regression and Content Safety
5.1 Fine-Tuning Regression Checklist
The goal of fine-tuning is to improve performance on specific tasks without breaking the model’s existing capabilities. Before launch, complete the following checks:
Data splitting and leakage prevention:
- Deduplicate first, then split into training, validation, and test sets
- Split by sample source or user to avoid different versions of the same document appearing in both training and test sets
- Check templated data and confirm that the test set does not directly copy training samples
Hyperparameter and random seed records:
- Record hyperparameters such as learning rate, batch size, training steps, and LoRA rank
- Record random seeds to reproduce the training process
- Record the version hash of training data and the commit ID of training code
Baseline comparison metrics:
- Compare results before and after fine-tuning on the same evaluation set
- Check domain task accuracy and instruction-following pass rate
- Check refusal rate, harmful output rate, and long-text recall to confirm no regression
- Manually sample a batch of outputs covering high-frequency and edge cases
Failed rollback version:
- Keep the base version and the previous fine-tuned version
- Record the corresponding version number and evaluation report for each launch
- Regularly rehearse the rollback process and confirm that steps and permissions are available
5.2 Content Safety and Compliance
Open-source model outputs do not go through platform moderation, so teams must establish their own safeguards:
- Input filtering: block obvious violating requests and prompt injection content
- Output filtering: detect sensitive information, violating content, and obvious fabricated citations
- Sensitive data masking: phone numbers, ID numbers, keys, and internal addresses must not enter logs or training data
- Log management: define log retention periods, restrict access, and clean up regularly
- Human review: outputs in high-risk scenarios such as legal, medical, and financial must be confirmed by humans before use
- Copyright and citations: generated content that cites external sources should include attribution and must not copy large portions of copyrighted text
- Training data authorization: confirm that data used for fine-tuning has been authorized and keep authorization records
Before launch, review the citation records from Section 1, the license checklist from Section 2, the selection conclusion from Section 3, the inference rollback table from Section 4, and the compliance checklist in this section together. Each item should have an owner and completion date; features with missing items should not enter production.
