Model reference · open weights
HiLS-Attention is an open-weight language model from tencent, listed in the AxForge catalogue. AxForge can bring it up on EU-owned hardware for you on request — with the licence handled where one is required.
About
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 (retrieva
Summarised from the published model card. Read the full card on the HuggingFace links below.
Specifications
| Maker | tencent |
|---|---|
| Type | Language models |
| Parameters (lead) | 7.3B |
| Variants | 1 |
| Runs with | transformers |
| Based on | allenai/Olmo-3-1025-7B |
| Released | 2026-07-09 |
| Popularity | 369 downloads / month |
| Likes | 24 |
| Licence | Open weights |
How it works
Variants
Open weights ship in several sizes and precisions. One page, all the variants — pick the one that fits your GPU. VRAM figures are estimates from model size.
| Variant | Params | Precision | VRAM | Fits 16 GB | Weights |
|---|---|---|---|---|---|
| HiLS-Attention-7B | 7.3B | BF16 | ~16.8 GB | ✓ | Weights ↗ |
Using it via the API
Once AxForge deploys hils-attention for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (hils-attention below is illustrative; you get the exact model name on deployment.)
$ curl -sS https://api.axforge.ai/v1/chat/completions \
-H "Authorization: Bearer $AXFORGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"hils-attention","messages":[{"role":"user","content":"Hello"}]}'
Licence
Open weights under apache-2.0 — commercial use is permitted. Deploy it on AxForge EU hardware on request. Read the licence ↗