Skip to content

AdapTQ v0.2.1

Choose a tag to compare

@l3tchupkt l3tchupkt released this 23 Jul 17:10
· 271 commits to master since this release

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 transformers and llama-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 .aqss files 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.
  • ReplayEngine and SessionSnapshot APIs via the new adaptq.replay module.
  • High-performance native CLI adapTQ_demo (accessible via PyPI or source builds) providing automated strategy benchmarking.
  • A fully overhauled README.md and 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.toml and .gitignore logic 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.