Back to directory

OSCAR

OSCAR is a quantization method that compresses the key/value cache used during LLM inference down to 2 bits, cutting KV-cache memory by about 8x compared with BF16 while speeding up decoding and throughput.

Visit website (opens in a new tab)oscar-quantize.github.io
OSCAR

OSCAR (Offline Spectral Covariance-Aware Rotation) quantizes the key/value cache in large language model inference to 2 bits. It captures Q/K/V activations on a calibration set, estimates attention-aware covariance structures for K and V offline, and derives per-layer rotations and clipping thresholds so quantization aligns with the directions attention actually uses. Only a small BF16 sink and a recent window stay at higher precision; the rest of the cache is stored in INT2.

The project reports about 8x less KV-cache memory than BF16, along with higher decoding throughput at large batch sizes and faster batch-size-1 decoding through an accompanying attention kernel. OSCAR is integrated into the SGLang and llama.cpp inference engines, and it ships a rotation zoo of precomputed calibration rotations so users do not have to recompute them for supported models.

More in Inference

See all 770
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • Lifeboat

    iterate.ai

    A local inference server that puts an OpenAI- and Anthropic-compatible API in front of open-weight language models running on hardware you control, from a laptop to a GPU cluster.

  • Claude S40

    github.com

    An unofficial Claude chat client for 2007-era Nokia Series 40 phones, built as a Java ME app plus a small Go relay server, with web search, reading mode and saved chats.