Ross ROSS = Recommend OSS · open-source software intelligence for agents

MoonshotAI/MoBA

MoBA: Mixture of Block Attention for Long-Context LLMs observed · 2026-08-28

github.com/MoonshotAI/MoBA · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

27/100

  • Activity 14
  • Release rhythm 35
  • Longevity 40

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 562
  • days_rel: n/a
  • days_push: 517
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

2169 stars · 158 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

MoBA (Mixture of Block Attention) is a PyTorch implementation of a trainable block-sparse attention mechanism for long-context large language models, applying MoE-style top-k gating to select relevant KV blocks. It can seamlessly switch between full and sparse attention and is deployed in Kimi's long-context serving.

Use cases

  • speed up long-context llm attention with sparse block attention
  • train a transformer that switches between full and sparse attention
  • implement mixture-of-experts style gating for attention
  • reduce quadratic attention cost for long sequences
  • research efficient attention mechanisms for llms

When to choose

  • you are training or continue-training an llm for long-context workloads and want efficient sparse attention
  • you need a flexible attention layer that can toggle between full and sparse modes
  • you want a production-proven approach (used by Kimi) with FlashAttention integration

When to avoid

  • you need a drop-in speedup for an existing pretrained model without retraining
  • you only run inference and cannot continue-train the model
  • your sequences are short enough that full attention cost is acceptable

Facets

library · maturity active

llm-training llm-inference machine-learning deep-learning large-language-models deep-learning machine-learning python sparse-attention mixture-of-experts flash-attention long-context transformer pytorch gpu linux

1 source

Member repositories

RepositoryRoleHealth v2
MoonshotAI/MoBAmain27

For agents

markdown · JSON · MCP: product_card(name="MoonshotAI/MoBA")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem