Bolt-3 Qwen3.5-4B
A hybrid model for long context and VRAM savings
2 min readupdated
The Bolt-3 Qwen3.5-4B model is a hybrid modification of the base LLM (large language model) Qwen/Qwen3.5-4B, replacing some layers with a combination of linear attention and specialized masked attractors. The result is the same 4.2B parameter text language model, but with optimized performance on long contexts. The development is designed to efficiently process large amounts of text with significantly lower GPU memory requirements. The model will be especially useful for developers and researchers who need high-speed generation of long texts on relatively affordable hardware.
Key features
- Hybrid architecture: Combines GatedDeltaNet layers and Bolt3Attn mechanisms with memory overflow control.
- VRAM savings: Up to 59% reduction in memory consumption on a 65k token context compared to the donor.
- Speedup: Generation speed increased by nearly 1.8x on short and medium contexts.
- Quality retention: Benchmark accuracy (MMLU, ARC-Challenge) remains at the level of the base model or exceeds it.
What you can do
- Run a local server: Deploy the model to generate text and answer questions via the built-in web server script.
- Process long documents: Test the model on long-context information retrieval tasks (up to 64k tokens) with minimal resource overhead.
- Run benchmarking: Execute built-in decoding and performance verification tests using repository utilities.
Example
git clone -b bolt3 [https://github.com/Rikka3/bolt_attention.git](https://github.com/Rikka3/bolt_attention.git)
cd bolt_attention
huggingface-cli download rikkathree/bolt-qwen3.5-4b bolt3_b_qwen3_5_4b_latest.pth --local-dir checkpoints
python -m bolt3 serve --ckpt checkpoints/bolt3_b_qwen3_5_4b_latest.pth --donor Qwen/Qwen3.5-4B --port 8000Read more
DetailsBenchmarks (7-Task Mean): 67.17% for Bolt-3 versus 64.63% for the base Qwen/Qwen3.5-4B model.
MMLU results (n=200): 70.00% (2.50% improvement).
Hardware requirements: Graphics accelerator (RTX PRO 6000 used in tests).
Training features: Hybrid modification of 32 layers of the base model with CUDA Graphs support.










Comments