# Tencent Hunyuan — RiRoPE training and inference code released for sparse-attention position reindexing

- Company: Tencent
- Type: Research
- Importance: Low
- Evidence: confirmed
- Announced: December 1, 2026 · 05:41 CET
- Published: December 1, 2026 · 08:07 CET

## What changed

Tencent Hunyuan published code to train and run sparse attention with native position reindexing (RiRoPE).

Previously: Before this, the RiRoPE training and inference code was not public.

## Action

Check impact

If you train long-context models, review the RiRoPE repository and paper.

## Why it matters

- **Technical:** Teams training long-context models with sparse attention can reproduce the reindexing method instead of relying on inference-only context eviction.

_AI-drafted from official sources._

## Claims

- RiRoPE makes position reindexing native to both training and inference for sparse attention. _(official)_
  > co-designs positional encoding with sparse attention by making position reindexing \*\*native\*\* to both training and inference
- Relative positional distances are bounded by the attention budget rather than sequence length. _(official)_
  > This bounds relative positional distances by the attention budget rather than the full sequence length

## Affected

- Roles: Technical
- What to watch:
  - Adoption in released Hunyuan models

## Sources

- [GitHub: Tencent-Hunyuan/RiRoPE](https://github.com/Tencent-Hunyuan/RiRoPE) — official
- [GitHub commit: Release RiRoPE training, inference](https://github.com/Tencent-Hunyuan/RiRoPE/commit/b5acfcad31a22a5466c82349a437dedaffbac15f) — official

## History

- December 1, 2026 · 08:07 CET — Published (v1)

---

Event page: https://ai24updates.com/events/tencent-hunyuan-rirope-code-release-2026-12-01
Issue: https://ai24updates.com/updates/2026-12-01-0800
JSON: https://ai24updates.com/api/v1/events/tencent-hunyuan-rirope-code-release-2026-12-01
