hyx21 commited on
Commit
93cc7af
·
verified ·
1 Parent(s): 8de321b

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +62 -0
README.md ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ datasets:
4
+ - openbmb/InfLLM-V2-data-5B
5
+ language:
6
+ - en
7
+ - zh
8
+ ---
9
+ <div align="center">
10
+
11
+ <h1>NOSA: Native and Offloadable Sparse Attention</h1>
12
+
13
+
14
+ **Boost Decoding Efficiency via High-Locality Offloading**
15
+ </div>
16
+
17
+ <div align="center" style="line-height: 1;">
18
+ <a href="https://github.com/thunlp/NOSA" style="margin: 2px;">
19
+ <img alt="Code" src="https://img.shields.io/badge/GitHub-100000?style=for-the-badge&logo=github&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
20
+ </a>
21
+ <a href="TODO" style="margin: 2px;">
22
+ <img alt="Hugging Face" src="https://img.shields.io/badge/NOSA-fcd022?style=for-the-badge&logo=huggingface&logoColor=000&labelColor" style="display: inline-block; vertical-align: middle;"/>
23
+ </a>
24
+ <a href="https://arxiv.org/abs/2510.13602" style="margin: 2px;">
25
+ <img alt="Paper" src="https://img.shields.io/badge/Paper-2510.13602-b31b1b.svg" style="display: inline-block; vertical-align: middle;"/>
26
+ </a>
27
+ <a href="https://huangyuxiang03.github.io/blogs_nosa" style="margin: 2px;">
28
+ <img alt="Blog" src="https://img.shields.io/badge/Blog-000000?style=for-the-badge&logo=googlechrome&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
29
+ </a>
30
+ </div>
31
+
32
+ ## Overview
33
+
34
+ **NOSA** is a trainable sparse attention mechanism designed for KV-cache offloading with an explicit locality constraint, paired with an inference system (**NOSI**) to realize its efficiency. It improves long-context/long-generation quality over prior offloading baselines while boosting decoding throughput by up to **5.04×** vs **FullAttn**, **1.92×** vs **InfLLMv2**, and **1.83×** vs **ShadowKV** on **1B/3B/8B** LLMs.
35
+
36
+
37
+
38
+ ## Models
39
+
40
+ We train 1B, 3B, and 8B models FullAttn, InfLLMv2, DMA, and NOSA, resulting in a total of 12 models. The following models have been released on Hugging Face.
41
+
42
+ |Model|Link|
43
+ |:-:|:-:|
44
+ |NOSA-1B | [NOSA-1B](huggingface.co/openbmb/NOSA-1B) |
45
+ |NOSA-3B | [NOSA-3B](huggingface.co/openbmb/NOSA-3B) |
46
+ |NOSA-8B | [NOSA-8B](huggingface.co/openbmb/NOSA-8B) |
47
+
48
+ Please reach out to us if additional baseline models (FullAttn, InfLLMv2, or DMA) are needed. You may open an issue or contact us directly via email (our email addresses are provided in the paper).
49
+
50
+
51
+
52
+
53
+ ## Citation
54
+
55
+ ```
56
+ @article{huang2025nosa,
57
+ title={NOSA: Native and Offloadable Sparse Attention},
58
+ author={Huang, Yuxiang and Wang, Pengjie and Han, Jicheng and Zhao, Weilin and Su, Zhou and Sun, Ao and Lyu, Hongya and Zhao, Hengyu and Wang, Yudong and Xiao, Chaojun and Han, Xu and Liu, Zhiyuan},
59
+ journal={arXiv preprint arXiv:2510.13602},
60
+ year={2025}
61
+ }
62
+ ```