DungxND/ZhinaoBERT-32K-14L-healed
A compressed and accelerated BERT model
2 min readupdated
This model is the result of deep compression and distillation (training a compact AI model under the guidance of a larger one) of the ZhinaoBERT architecture. The authors reduced the active layers from 22 to 14, trimmed the vocabulary size, and applied KD Pre-Heal to recover generation quality. The output is a lightweight language model of just 363.8 MB that delivers roughly 1.57x faster processing compared to the original teacher model. It is ideal for developers and researchers who need high-speed text processing on constrained hardware without a critical drop in accuracy.
Key features
- Layer reduction: The model uses 14 active layers out of the 22 available in the original teacher.
- Parameter compression: Parameter count is reduced to 95.38M (down 29.61%), with a weight size of 363.8 MB.
- Improved distillation: The KD Pre-Heal procedure boosted token match quality and reduced KL-divergence loss.
- Performance boost: Delivers a processing speed of around 410 thousand tokens per second with a 1.57x speedup.
What you can do
- Pipeline integration: Use the compressed encoder for feature extraction and text processing tasks.
- Inference optimization: Deploy the model in applications with strict latency and compute constraints.
- Project testing: Apply it for text tasks in Chinese, English, and Vietnamese.
Example
The model loads standardly from the Hugging Face repository for feature extraction and text encoding tasks in natural language processing pipelines.
Read more
DetailsBenchmarks and parameters:
• Speed: 25.88 ms / batch, 1.57x speedup
• Top-1 token match: 65.08%
• Peak activation VRAM: 432.0 MB
• License: CC BY-NC 4.0










Comments