Model reference · open weights
HiLS-Attention is an open-weight language model from tencent. HiLS-Attention-7B (BF16) weighs 14.6 GB; the smallest configuration that runs it is 2× RTX 3060 12 GB.
Summary of the tencent/HiLS-Attention-7B model card, 2026-10-01
What it is
| Released by | tencent |
|---|---|
| Released | 2026-07-09 |
| Parameters | 7.3B |
| VRAM | 14.6 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB | — | — | — | 11.6 GB |
| RTX 4060 Ti 16 GB | — | — | 173 | 15.4 GB |
| RTX 3090 24 GB | 1 | — | 15K | 23.4 GB |
| RTX 4090 24 GB | 1 | — | 14K | 23.4 GB |
| RTX 5090 32 GB | 3 | — | 29K | 31.0 GB |
| L40S 48 GB | 6 | 1 | 53K | 44.0 GB |
| A100 80 GB | 14 | 3 | 117K | 78.2 GB |
| H100 80 GB | 13 | 3 | 110K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 17 | 4 | all 128K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 20 | 5 | all 128K | 107 GB |
| H200 141 GB | 27 | 6 | all 128K | 138 GB |
| B200 180 GB | 36 | 9 | all 128K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel | 1 | — | 13K | 11.6 GB a card |
| 2× RTX 4060 Ti 16 GB tensor parallel | 3 | — | 27K | 15.4 GB a card |
| 2× RTX 5090 32 GB tensor parallel | 10 | 2 | 85K | 31.0 GB a card |
| 2× L40S 48 GB tensor parallel | 16 | 4 | all 128K | 44.0 GB a card |
| 4× RTX 4090 24 GB tensor parallel | 17 | 4 | all 128K | 23.4 GB a card |
| 4× RTX 3090 24 GB tensor parallel | 17 | 4 | all 128K | 23.4 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 19.6 GB | 32.5 GB |
| 5 | 36.8 GB | 101 GB |
| 8 | 49.7 GB | 153 GB |
| 16 | 84.0 GB | 290 GB |
| 32 | 153 GB | 565 GB |
| 64 | 290 GB | 1115 GB |
One card, with vLLM's small-card settings.
From the model card
HiLS-Attention is a chunk-wise sparse attention mechanism that learns chunk selection end-to-end under the language-modeling loss, enabling native sparse training for efficient long-context modeling. This repository hosts the 7B checkpoint continued-trained on top of an OLMo3-style backbone.
Model introduced in the paper Hierarchical Sparse Attention Done Right: Toward Infinite Context Modeling.
Naive block sparse attention selects top-k chunks by their exact chunk mass, but computing all chunk masses requires full QK computation. HiLS-Attention instead uses compressed chunk keys to estimate a chunk-mass surrogate and factorizes attention into inter-chunk and intra-chunk softmax, enabling end-to-end learning from the next-token prediction loss.
Overview of HiLS-Attention. Naive block sparse attention selects top-k chunks by their exact chunk mass, but computing all chunk masses requires full QK computation. HiLS-Attention instead uses compressed chunk keys to estimate a chunk-mass surrogate and factorizes attention into inter-chunk and intra-chunk softmax, enabling end-to-end learning from the next-token prediction loss.
After only 50B continued-training tokens, HiLS-Attention inherits the capability of full attention while bringing two key advantages:
Meanwhile, it preserves comparable performance for short- and medium-context tasks, within both the original training length and the YaRN-extrapolated range.
After only 50B continued-training tokens, HiLS-Attention inherits the capability of full attention while bringing two key advantages: strong ultra-long context extrapolation beyond the YaRN-extended 4× length (a) and faster inference (b). Meanwhile, it preserves comparable performance for short- and medium-context tasks, within both the original training length and the YaRN-extrapolated range (c & d).
Not aligned/instruction-tuned for safety-critical deployment. Outputs may be inaccurate or biased; validate before production use.
HiLS-Attention cannot be loaded directly via the standard transformers AutoModel API — the custom hierarchical sparse attention must be registered through the HiLS-Attention codebase. Please set up the environment and run the model following the GitHub repository, in particular the Evaluation section (see eval/ and scripts/eval/), which shows how to load the checkpoint with the corresponding HiLS config and run generation / evaluation.
For efficient long-context serving, SGLang inference support is on the roadmap — see the GitHub repo for updates.
The model is evaluated across short-, medium-, and long-context benchmarks. Full scripts are available in the GitHub repository.
| Benchmark | Description |
|---|---|
| LongBench v1 | Long-context QA (21 tasks, up to 64K input) |
| RULER | Synthetic probing at 8K / 16K / 32K / 128K |
| PPL | Perplexity across 64 … 256K sequence lengths |
| Benchmark | Type |
|---|---|
| MMLU, GPQA, HellaSwag, ARC-c, BoolQ, RACE | Few-shot PPL |
| GSM8K, CMath | Math generation (CoT) |
| HumanEval+, MBPP+, CRUXEval-O | Code generation |
Training and continue-pre-training scripts are documented in the GitHub repository.
This is a pretrained base model without alignment or safety tuning. It may reflect biases present in the training corpus and can produce inaccurate or unsafe content. Users are responsible for evaluating suitability for their use case.
@misc{hu2026hierarchicalsparseattentionright,
title={Hierarchical Sparse Attention Done Right: Toward Infinite Context Modeling},
author={Xiang Hu and Xinyu Wei and Hao Gu and Minshen Zhang and Tian Liang and Huayang Li and Lei Zhu and Yan Wang and Sirui Han and Yushi Bai and Kewei Tu and Haitao Mi and Leo Liang},
year={2026},
eprint={2607.02980},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2607.02980},
}
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.