Explore the research collection
2 entries · Follow this search
- Paper
SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Acceleration
PTQ attention: subtract the token-mean of K to smooth channel outliers so QK can be INT8, and keep PV in FP16 with an FP16 accumulator (INT8 PV is too noisy on some layers). Triton kernels on RTX4090/3090; peak ~341 TOPS at headdim 64/128 vs FlashAttention2 ~165. ~2.1× FA2 and ~2.7× xformers. Plug-and-play: Llama2-7B WikiText 5.824 vs FP 5.823, MMLU 0.46=FP; CogVideoX/Unidiffuser/UltraPixel/TIMM/Llava1.6 near-parity. ICLR 2025. Code https://github.com/thu-ml/SageAttention.
- Paper
Bi-Mamba: Towards Accurate 1-Bit State Space Models
Binarizes Mamba-2 in/out projections (~90%+ of params) with FBI-Linear (sign weights plus per-column α/β) and autoregressive distillation from LLaMA2-7B on Amber. Beats GPTQ-2/3bit and BiLLM post-training binarization on Mamba-2 780M/1.3B/2.7B zero-shot and Wiki2/PTB/C4 PPL; 2.7B avg 50.6 vs Mamba-2 FP 59.6, Wiki2 10.0 vs 9.1. Claims ~5× memory / ~3× throughput vs FP16 2.7B on M4 Pro. Accepted in TMLR 2025. Code https://github.com/Tangshengku/Bi-Mamba.