Repository navigation
AdapTQ v0.2.1
Release Notes: AdapTQ v0.2.1
We are thrilled to announce AdapTQ v0.2.1, the first production-ready release of the Adaptive Streaming Vector Quantization engine for LLM inference on edge devices!
AdapTQ allows you to achieve 4–8× smaller KV cache footprints by dynamically scaling compression down to 2, 3, or 4 bits per weight, seamlessly executing entirely on the CPU with zero model changes required.
🚀 Highlights
- Multi-Backend Support (V2.1): We now provide drop-in wrappers for Hugging Face
transformersandllama-cpp-python. You can initialize our C++ KV-cache completely opaquely to the generation loop. - Deterministic Replay & Branching (V2): You can now snapshot exact KV states into binary
.aqssfiles and instantly branch or replay conversations from any specific token without any context-recomputation overhead. - Hybrid Execution & Seamless SIMD: AdapTQ handles everything under the hood. Short sequences stay in FP32; large contexts are routed through an ultra-fast quad-unrolled AVX2 SIMD rotation and quantization pipeline.
- Tested & Benchmarked: Zero heap allocations in the hot path. 100% C++ tests passing. Successfully measured 1,139 tokens/sec and 8x memory footprint reductions on 4-bit configurations.
🆕 New Features
- Drop-in Python Adapter (
adaptq.create_adapter()) for seamless Hugging Face and Llama.cpp integrations. ReplayEngineandSessionSnapshotAPIs via the newadaptq.replaymodule.- High-performance native CLI
adapTQ_demo(accessible via PyPI or source builds) providing automated strategy benchmarking. - A fully overhauled
README.mdand documentation suite to help you start hacking instantly!
🛠️ Improvements & Fixes
- Resolved severe installation-blocking bugs related to duplicated docstrings on
__init__.py. - Streamlined the
pyproject.tomland.gitignorelogic to support safe native source distributions. - Cleaned up the repository significantly, removing duplicate examples and legacy testing shell scripts.
- Fixed snapshot sizing logic that overestimated sizes when capturing state.
📦 Upgrade Notes
This marks the first true beta release of AdapTQ V2. If you used the v0.1.0 engine directly via the C-API, note that you should now integrate via RuntimeContext to properly utilize the snapshotting and unified strategy logic. See docs/v2.1_integration.md for migration examples.