Bolt-3.3 Llama-3.2-3B: Architectural Retrofit for Inference Acceleration
2 min readupdated
The Bolt-3.3 model is a modification of the popular language model meta-llama/Llama-3.2-3B-Instruct featuring a redesigned attention architecture. It uses a combination of Bolt3Attn fixed-state layers and sparse layers recovered via knowledge distillation on 8 million tokens. The main difference from the original base is a significant reduction in memory consumption and increased generation speed on long contexts while maintaining nearly identical response quality. The model is useful for developers and researchers who need fast local execution of efficient LLMs (language models) with minimal hardware requirements.
Key features
- High speed: 1.4x faster decoding on a 64k long context compared to the donor.
- Memory savings: 83.2% reduction in required RAM for the 64k context state (down to 1.2 GB).
- Quality preservation: The average score across 7 main benchmarks remained at the level of the base model (61.07% vs 61.16%).
- CPU support: Built-in
Q4_0andQ8_0quantization engines for efficient execution on a processor.
What you can do
- Local server: Deploy a fast API server for text generation on GPU with support for context submodeling.
- CPU execution: Use quantized versions to run on a standard processor with AVX-512F instructions.
- Integration: Embed the model into local chatbots and applications where VRAM and system memory savings are critical.
Example
git clone -b bolt3 [https://github.com/Rikka3/bolt_attention.git](https://github.com/Rikka3/bolt_attention.git)
cd bolt_attention
python -m bolt3 serve --ckpt bolt33_llama32_3b_latest.pth --donor meta-llama/Llama-3.2-3B-Instruct --tier2 --port 8000Read more
DetailsMMLU metrics: 54.50% (donor 56.00%)
Decoding speed at 64k: 55.5 tok/s (donor 39.6 tok/s)
State memory at 64k: 1,202.36 MB (donor 7,168 MB)
Training: frozen MLP/projections, 8.0M tokens










Comments