RthItalia/NanoLLM-Qwen2.5-3B-v3.1
RthItalia/NanoLLM-Qwen2.5-3B-v3.1 is a compact, self-contained variant of the Qwen2.5-3B-Instruct model, developed by RthItalia. This 3 billion parameter model is optimized for reduced VRAM usage and disk size, achieving a peak generation VRAM of ~2.44 GB compared to the 8-bit baseline's ~3.21 GB. It employs a mixed runtime policy with QKV projections in FP16 and other components in a Nano compact format, making it suitable for memory-constrained environments while preserving quality.
Loading preview...
NanoLLM-Qwen2.5-3B-v3.1: Compact and Efficient
This model, developed by RthItalia, is a specialized, compact variant derived from Qwen/Qwen2.5-3B-Instruct. It is designed to provide a significant reduction in VRAM usage and disk size without a substantial compromise in quality, making it ideal for resource-constrained deployments.
Key Optimizations and Features
- Mixed Runtime Policy: Utilizes
fp16forq_proj,k_proj,v_projand a Nano compact format foro_projand other transformer components. This strategy balances compression with performance. - VRAM Efficiency: Achieves a peak generation VRAM of approximately
2.44 GB, a notable improvement over the8bitbaseline's~3.21 GB. - Disk Size Reduction: The model size is
2.3432 GB. - Custom Head Implementation: Features a
NanoTiedHeadthat ties output logits to the quantized embedding table, further optimizing memory. - Self-Contained: This release is an exported, self-contained folder that loads directly with the
transformerslibrary.
Quality and Limitations
The model's quality was validated against a true 8bit baseline using a small internal prompt suite. While it restored acceptable behavior on this reference set, it is not claimed to match the full original model in all tasks or outperform the base model. It should be considered a compact experimental runtime artifact, specifically tuned around Qwen/Qwen2.5-3B-Instruct, rather than a broad architectural proof.
Good for
- Deployments requiring reduced VRAM and disk footprint.
- Use cases where memory efficiency is critical, such as edge devices or environments with limited GPU resources.
- Developers seeking a compact, validated variant of Qwen2.5-3B-Instruct for specific applications.