Model reference · open weights

HiLS-Attention

LLMs tencent Text gen 1 build Open weights 369 dl/mo

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.

  • HiLS-Attention is a 7.3B parameter text-generation model developed by Tencent that uses a chunk-wise sparse attention mechanism for efficient long-context modeling.
  • The model is based on an OLMo3-7B backbone and was continued-trained on approximately 50B tokens to support ultra-long context extrapolation.
  • It is released under the Apache-2.0 license and supports the English language.

Summary of the tencent/HiLS-Attention-7B model card, 2026-10-01

What it is

Released bytencent
Released2026-07-09
Parameters7.3B
VRAM14.6 GB for the weights

What it runs on

Memory and cards for HiLS-Attention-7B (BF16)

14.6 GBweights, file size
524 MBcache per 1K tokens
689 MBruntime overhead, at least
131,072 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB———11.6 GB
RTX 4060 Ti 16 GB——17315.4 GB
RTX 3090 24 GB1—15K23.4 GB
RTX 4090 24 GB1—14K23.4 GB
RTX 5090 32 GB3—29K31.0 GB
L40S 48 GB6153K44.0 GB
A100 80 GB143117K78.2 GB
H100 80 GB133110K78.1 GB
RTX PRO 6000 Blackwell 96 GB174all 128K93.8 GB
DGX Spark (GB10) 128 GB unified205all 128K107 GB
H200 141 GB276all 128K138 GB
B200 180 GB369all 128K176 GB
2× RTX 3060 12 GB
tensor parallel
1—13K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
3—27K15.4 GB a card
2× RTX 5090 32 GB
tensor parallel
10285K31.0 GB a card
2× L40S 48 GB
tensor parallel
164all 128K44.0 GB a card
4× RTX 4090 24 GB
tensor parallel
174all 128K23.4 GB a card
4× RTX 3090 24 GB
tensor parallel
174all 128K23.4 GB a card
Memory needed at each load
Requests at once8K tokens each32K tokens each
119.6 GB32.5 GB
536.8 GB101 GB
849.7 GB153 GB
1684.0 GB290 GB
32153 GB565 GB
64290 GB1115 GB

One card, with vLLM's small-card settings.

From the model card

What tencent says about HiLS-Attention

Read 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.

Model Description

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.

  • Parameters: ~7B
  • Base architecture: OLMo3-7B
  • Paper: https://arxiv.org/abs/2607.02980
  • Code: https://github.com/Tencent-Hunyuan/HiLS-Attention

Highlights

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.
  • Faster inference for long sequences.

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).

Intended Uses

  • Long-context language modeling and inference (retrieval, QA, summarization over long documents).
  • Research on native sparse-attention training and long-context extrapolation.

Out-of-Scope

Not aligned/instruction-tuned for safety-critical deployment. Outputs may be inaccurate or biased; validate before production use.

How to 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.

Evaluation

The model is evaluated across short-, medium-, and long-context benchmarks. Full scripts are available in the GitHub repository.

Long-context

BenchmarkDescription
LongBench v1Long-context QA (21 tasks, up to 64K input)
RULERSynthetic probing at 8K / 16K / 32K / 128K
PPLPerplexity across 64 … 256K sequence lengths

Short-context (OpenCompass, 11 benchmarks)

BenchmarkType
MMLU, GPQA, HellaSwag, ARC-c, BoolQ, RACEFew-shot PPL
GSM8K, CMathMath generation (CoT)
HumanEval+, MBPP+, CRUXEval-OCode generation

Training

  • Method: Continued pre-training with native sparse-attention (HiLS-Attention) on top of an OLMo3-7B backbone.
  • Tokens: ~50B continued-training tokens.
  • Positional encoding / long-context: HoPE with YaRN-based length extrapolation.

Training and continue-pre-training scripts are documented in the GitHub repository.

Limitations and Bias

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.

Citation

@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.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms