KO
|
EN
gitlite — search
Search
#typescript
#ai-agents
#ai
#dsh-plugin
#deepseek-harness
#open-source
#claude-code
#codex
#cli
#developer-tools
#react
#windows
turboquant_implementation
★ 46
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
codex-migrate
:
Cross-platform GUI and CLI for migrating, repairing, backing up, and exporting local Codex sessions.
Yomipv
:
Yomipv integrates Yomitan with MPV, letting you look up Japanese terms and create Anki cards directly from media without leaving the player.
omniAgent
:
基于 Java 构建的轻量级大模型智能体 (LLM Agent) 框架,支持工具调用、任务规划与自主决策。
skill-tongjincheng
:
童锦城 语录 提炼 skill,爱别人之前先学会爱自己
wit
:
Agent coordination protocol — declare intents, lock symbols, detect conflicts before code is written
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
turboquant_implementation
?
Download (.md)
# turboquant_implementation # 🚀 TurboQuant-PyTorch An unofficial, end-to-end PyTorch implementation of the Google Research ICLR 2026 paper: [**TurboQuant: Online Vector Quantization with Near-optimal Distortion Rate**]. ## ✨ Key Features * **Faithful QJL Implementation:** Implements the 1-bit Quantized Johnson-Lindenstrauss (QJL) transform for unbiased inner-product estimation. * **Spherical Lloyd-Max Quantization:** Includes the continuous k-means solver for generating optimal codebooks based on the Beta distribution. * **Variance-Optimized Projection:** Expands the QJL projection dimension ($m = 4d$) to heavily suppress estimator variance before the Softmax bottleneck. * **FP16 Value Passthrough (The Outlier Fix):** Compresses the Key cache to 3-bit/4-bit while leaving the Value cache in native FP16. This prevents spherical quantization from permanently destroying the massive activation outliers necessary for coherent LLM generation. The KV cache is the bottleneck for serving LLMs at scale. TurboQuant gives 6x compression with zero quality loss: - **6x more concurrent users per GPU** — direct 6x reduction in cost per query - **6x longer context windows** in the same memory budget - **No calibration step** — compress on-the-fly as tokens stream in - **8x speedup on attention** at 4-bit on H100 GPUs (less data to load from HBM) At H100 prices (~$2-3/hr), serving 6x more users per GPU translates to millions in savings at scale. Requirements: `torch`, `transformers`, `scipy`