Breaking the Compute Bottleneck in Large Models: Compression, Distillation, and Post-Training
This article explains how teams can handle compute and data limits as large language models grow. It covers model compression (quantization, pruning, and knowledge distillation), the difference between self-distillation and knowledge distillation, post-training methods such as SFT and DPO, and how to split work between large and small models in cloud deployments. It also notes that reported parameter counts for some Chinese flagship models are unconfirmed and are not treated as fact.
Reports from unofficial industry sources claim that a leading Chinese AI vendor’s flagship model has about 2.8 trillion parameters, that a planned iteration will reach 3 trillion, that post-training data will reach a scale of 10 trillion, and that the next-generation flagship may grow to 5.4 trillion parameters. These details come from unofficial industry sources and have not been confirmed by the vendor or any official channel. This article does not treat them as established facts. Instead, it uses this topic to discuss a broader question: as parameter counts keep growing, where do compute and data come from, and how should teams respond?
1. Two Pressures from Trillion-Parameter Scale
As parameter counts grow, training faces pressure on compute and data at the same time. On the compute side, training requires large GPU clusters, high-speed interconnects, and enough memory. Both single-GPU performance and cluster size can become limits. On the data side, high-quality corpora are limited, and the engineering work for cleaning, deduplication, filtering, and data mixing grows quickly with data volume. Compute and data are often constrained together, so teams need to choose technical paths with a high return on investment.
2. Model Compression: Common Ways to Reduce Inference Cost
Model compression mainly includes quantization, pruning, and knowledge distillation. Quantization converts weights from FP16 to INT8 or INT4, which reduces memory usage. Whether it improves throughput depends on whether the hardware supports the target precision, the batch size, and the model architecture, so results must be measured in the target environment. INT4 usually causes more accuracy loss than INT8, so accuracy regression testing is required before release.
The following is a simplified example of symmetric quantization. It only illustrates the principle and should not be used directly in production:
import torchdef quantize_symmetric_int8(w: torch.Tensor, clip_ratio: float = 0.999):# Clip outliers at a quantile so a few extreme values do not inflate the scale factorsample = w.abs().flatten().float()if sample.numel() > 1_000_000:# torch.quantile has an input size limit, so large tensors must be sampled firstsample = sample[torch.randperm(sample.numel())[:1_000_000]]clip_val = torch.quantile(sample, clip_ratio)scale = clip_val / 127.0w_clipped = w.clamp(-clip_val, clip_val)q = torch.clamp(torch.round(w_clipped / scale), -128, 127).to(torch.int8)return q, scaledef dequantize(q: torch.Tensor, scale: torch.Tensor) -> torch.Tensor:return q.float() * scale
This code has no zero-point handling and only works for roughly symmetric distributions. Actual deployment also requires a calibration dataset, usually per-channel or per-group quantization, and a comparison of numerical error and business metrics before and after quantization on a validation set.
The applicable boundaries of the three common techniques are as follows:
| Technique | Typical use case | Main benefit | Main risk |
|---|---|---|---|
| Quantization | Memory is tight and the hardware supports low-precision compute | Lower memory usage, possibly higher throughput | Accuracy loss, hardware compatibility issues |
| Pruning | The model structure can be modified and the model can be retrained | Fewer parameters and less computation | Demanding structural requirements, unstable gains |
| Knowledge distillation | Capabilities need to move to a smaller model for easier on-device deployment | Small models gain some of the large model’s abilities | The student model’s capability ceiling is limited |
3. Self-Distillation and Knowledge Distillation: Know the Difference
Self-distillation usually refers to knowledge transfer within the same model, or between a teacher and student from the same source. For example, a model may train on data it generated itself, or be guided by a stronger earlier version of itself. Using a large model to guide a lightweight model is knowledge distillation, and its goal is to transfer the large model’s output distribution to the smaller model. Both approaches can ease a shortage of training data, but they rest on different premises. Self-distillation depends on the quality of the generated data, so errors and duplicate samples must be filtered out. Knowledge distillation depends on the quality of the teacher model and is also constrained by the student model’s capacity.
4. Post-Training Optimization: Improving Alignment with Limited Compute
Post-training includes stages such as supervised fine-tuning (SFT) and preference optimization. Methods such as DPO do not require a separate reward model, so the pipeline is simpler than traditional RLHF. However, DPO is sensitive to the quality of preference data. Teams can first validate gains on a small dataset and then scale up training. The compute cost of post-training is usually lower than that of pretraining from scratch, though the exact ratio depends on data volume and model size.
5. Combining Large and Small Models
Large models set the capability ceiling, while small models handle high-frequency, low-latency tasks. The table below can guide model selection. Actual numbers should be measured against your own workload.
| Model scale | Typical scenarios | Latency | Cost per call | Quality | Deployment location |
|---|---|---|---|---|---|
| Tens of billions of parameters | Customer service chatbots, intent recognition, on-device assistants | Lower; depends on hardware and batching, so measure in practice | Lower | Adequate for simple tasks | On-device or single machine |
| Hundreds of billions of parameters or more | Complex reasoning, long-document processing, code generation | Higher | Higher | Higher ceiling | Cloud clusters |
For most latency-sensitive and cost-sensitive applications, teams can send routine requests to a small model and reserve the large model for complex requests. This routing approach requires monitoring the quality and cost of each request type.
6. Engineering Essentials for Cloud Deployment
Enterprises can carry out this work on training and inference resources from major cloud providers. The key steps are:
- Manage training data in object storage and record data versions to make experiments reproducible.
- Use a monitoring system to track training convergence, memory usage, and GPU utilization.
- Roll out inference with canary releases, and keep the previous version available for fast rollback.
- After each quantization or distillation step, compare quality, latency, and cost on your business evaluation set.
Elastic scaling can handle peaks and troughs in load, but it cannot replace evaluation of model quality.
7. Conclusion
Whether parameter counts can keep growing depends on the combined effect of compute supply, data quality, and engineering capability. For developers and enterprises, a more practical approach is to define business metrics first, then choose a combination of compression, distillation, and post-training. Measured data should then decide the order of investment.
