Key Info

MiniMax M4 is now live on Vercel AI Gateway, and the company detailed how its sparse attention works at long context lengths.

Highlights

  • At 1M tokens, M4 selects 128 of 65,536 KV blocks per query for sparse attention, about 0.2% of the context.
  • This cuts the work performed per decoding step.
  • The model improves long-horizon coding over earlier MiniMax models.
  • It uses fewer visual tokens for each image.