Skip to content
The Daily Repo

Tencent-Hunyuan / FlashTopK

Fast, exact fused top-k selection for learned sparse attention training and inference, from HyScale (Tencent Hy & University of Edinburgh).

Why this job: matched by what the repo talks about: inference, fast, train, exact

What it does

  • Fast. the fastest open-source implementation.
  • Robust. stays fast on trained and untrained indexers. Adaptive key pruning decides per call whether to skip keys by a score bound.
  • Exact. the true top-k. Rows the sampled threshold misses are rescored on the GPU.
  • Deterministic. the same bits on every run. Ties at the k-th score keep the smallest key indices.
  • CP-compatible. each row's threshold comes from a strided sample of its own window, so context parallelism needs no selection from another rank.

Get started

pip install -e .
# torch >= 2.6, triton >= 3.3, nvidia-cutlass-dsl >= 4.5, apache-tvm-ffi
pip install -e .[test]
# pytest for the test suite
Maintenance
Active
Last commit 3 days ago
Stars
16
+16 this week
Licence
Apache-2.0
Allows business use
Downloads for
None listed
No release files
Latest version
None yet
No releases
Built with
Python
98% of the code

Is it looked after?

Contributors
4
Last 90 days
Issues
None
No issues filed
Pull requests
3 merged
1 waiting
Releases
None
Never published
  • No contributing guide
  • No security policy
  • No code of conduct

Similar repos

Repos similar to this one
RepoStarsLast commitLicenceDownloads for
liguodongiot / llm-action25,27429 days agoApache-2.0No downloads
little51 / llm-dev2388 months agoMITNo downloads
More: languages, topics and project record

Languages

  • Python 98%
  • Shell 2%

Topics

  • cuda
  • cute-dsl
  • lightning-indexer
  • llm-inference
  • llm-training
  • long-context
  • pytorch
  • sparse-attention
  • tencent-hunyuan
  • top-k
  • deepseek-sparse-attention
  • hyscale

Project record

  • JobLocal LLMs
  • StatusNew to our list
  • Commits7
  • Forks2
  • Watching0
  • CreatedNov 5, 2026
  • First seen by usNov 7, 2026
  • CheckedNov 12, 2026

Type to search.

Try