MiniMax M4 上线 Vercel AI Gateway,1M 上下文采用稀疏注意力
MiniMax 的 M4 接入 Vercel AI Gateway 了,1M token 上下文每次只算 0.2% 的注意力块,解码成本明显更低。做长文档或代码分析的前端开发者可以直接在 Vercel 生态里调用,省去单独接 API 的麻烦。
MiniMax 宣布 M4 模型正式接入 Vercel AI Gateway。该模型支持 1M token 上下文,采用稀疏注意力机制:每次查询从 65,536 个 KV 块中仅选取 128 个参与计算,约占总上下文的 0.2%,从而大幅削减每一步解码的计算量。
技术上,稀疏注意力的做法是把长上下文切分成 KV 块,推理时按查询动态检索相关块,而不是对所有 token 做完整注意力计算。在 1M token 规模下,这意味着解码阶段的工作量降到传统全量注意力的极小部分,长上下文推理的延迟和成本随之下降。
通过 Vercel AI Gateway 分发,前端开发者可以直接调用 M4 处理超长文档或代码库级上下文,与直接从 MiniMax 官方 API 调用相比多了网关层的路由和计费管理。对需要长上下文但预算敏感的团队,0.2% 的有效注意力比例是一个值得对比的成本参数。
M4 is live on @vercel AI Gateway.
At 1M tokens, M4 selects 128 of 65,536 KV blocks per query for sparse attention. That’s about 0.2% of the context, cutting the work per decoding step. https://t.co/TcPwDePGno
This report is categorized under AITOP's "Models" desk, focusing on China's AI industry and domestic foundation model ecosystem. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and US-China foundation model benchmarks and commercialization comparison. Key entities and technical topics under continuous tracking include MiniMax, Vercel, M4, sparse attention.
Source attribution: curated from MiniMax_AI (@MiniMax_AI).