Summarize this article with:
- MiMo v2.5 is a 310B-parameter sparse MoE model (Mixture of Experts, where only a subset of parameters activates per token) with only 15B active parameters per token, trained on 48 trillion tokens.
- Its Hybrid SWA (Sliding Window Attention, where the model only looks at a local window of tokens instead of the full context) reduces KV-cache storage to roughly one-seventh of what full attention requires.
- The architecture uses a 5:1 ratio of sliding window layers to global attention layers, with a 128-token window size.
- MiMo v2.5 achieves over 1,000 tokens per second output speed for its 1T-parameter variant, a first for models of this size.
- For production teams, more efficient open-weight models like MiMo mean lower per-token costs when self-hosting and better routing options through multi-provider gateways like Eden AI.
| Specification | MiMo v2.5 | MiMo v2.5 Pro |
|---|---|---|
| Total parameters | 310B | 310B |
| Active parameters per token | 15B | 15B |
| Training tokens | 48T | 48T |
| Attention architecture | Hybrid SWA (5:1) | Hybrid SWA (5:1) |
| Sliding window size | 128 tokens | 128 tokens |
| KV-cache reduction | ~6x vs full attention | ~6x vs full attention |
| MoE type | Sparse (activated experts per token) | Sparse |
Xiaomi's MiMo v2.5 is a 310-billion parameter sparse Mixture of Experts model that uses Hybrid Sliding Window Attention to compress KV-cache storage by roughly 6x. Alternating local sliding window layers with global attention layers at a 5:1 ratio keeps long-context performance while cutting memory and inference cost sharply.
What Is Hybrid Sliding Window Attention?
Standard Transformer models use full attention. Every token looks at every other token in the context. This works well for quality but creates a problem: memory and compute scale as the square of context length. A 128K-token context needs 16 billion attention computations.
Sliding Window Attention (SWA) solves this by limiting each token's view to a local window. Instead of seeing all 128K tokens, each token only sees the nearest W tokens (where W is the window size). This reduces compute from O(n squared) to O(n times w), where n is context length and w is window size.
But pure SWA has a weakness: the model cannot see information outside its window. For long documents, this means losing track of details from earlier in the text.
The Hybrid Approach
Hybrid SWA combines the best of both worlds. Most layers use sliding window attention (fast, cheap). A few key layers use full attention (preserves long-range information). MiMo v2.5 uses a 5:1 ratio: for every 5 sliding window layers, there is 1 full attention layer.
The sliding window size is 128 tokens. This is small enough to keep memory low but large enough to capture local patterns in text and code.
MiMo v2.5 Architecture Details
Here are the key specifications of the MiMo v2.5 model family:
Sparse MoE: Fewer Active Parameters
MiMo v2.5 is a sparse Mixture of Experts (MoE, a model design where each token only activates a small subset of the total parameters). Out of 310 billion total parameters, only 15 billion activate per token. This means each forward pass only computes 15B parameters worth of math, even though the model has learned 310B parameters of knowledge.
The combination of sparse MoE and hybrid SWA gives MiMo v2.5 two layers of efficiency:
- Sparse MoE reduces per-token compute (fewer parameters active).
- Hybrid SWA reduces attention memory (smaller KV-cache).
How the KV-Cache Reduction Works
The KV-cache (Key-Value cache, the memory that stores previous tokens' attention data so the model does not recompute them) is the main bottleneck for serving LLMs at scale. Every token in the context window needs a KV entry. For a 128K context, that is 128,000 entries per layer, per attention head.
With full attention, every layer stores KV entries for the entire context. With sliding window attention, each layer only stores KV entries for the last 128 tokens. The 5:1 hybrid ratio means:
- 5 out of 6 layers store 128 KV entries (tiny).
- 1 out of 6 layers stores the full context KV entries.
The math: if a model has 60 layers, 50 use SWA (128 entries each) and 10 use full attention (128K entries each). Total KV storage drops to roughly one-seventh of a full-attention model with the same number of layers.
Learnable Attention Sink Bias
MiMo v2.5 adds a technique called learnable attention sink bias. The first few tokens in any context (often called "attention sinks") receive disproportionate attention weight in Transformer models. MiMo v2.5 learns to preserve these sink tokens even in sliding window layers, which helps maintain long-context quality despite the small window.
Inference Speed Results
Xiaomi published a full-pipeline inference optimization blog on May 30, 2026, detailing how they pushed hybrid SWA efficiency to its limit. The key results:
- Over 1,000 tokens per second output speed for the 1T-parameter variant (in partnership with TileRT). This is the first time a model of this size has broken the 1,000 tokens/s barrier.
- Reduced memory footprint means more concurrent users per GPU. A server that could serve 10 users with a full-attention model can serve roughly 50-60 with MiMo v2.5's hybrid SWA.
- Lower time-to-first-token (TTFT) because the prefill phase processes less KV data.
What This Means for LLM API Costs
More efficient inference has direct cost implications for teams running or consuming LLM APIs:
Self-Hosting Becomes Viable
When KV-cache is 6x smaller, you need 6x less GPU memory to serve the same model. A model that required 4 A100 GPUs with full attention might fit on 1 A100 with hybrid SWA. This makes self-hosting large open-weight models practical for more teams.
Lower Per-Token Costs
API providers that serve efficient models can charge less per token because their infrastructure costs are lower. When open-weight models like MiMo v2.5 become available through API gateways, they create price competition that pushes down costs across the board.
Better Routing Options
A multi-provider gateway like Eden AI can route queries to the most cost-effective model for each task. Efficient models like MiMo v2.5 are ideal targets for simple-to-moderate queries where you do not need the full power of a frontier model. Reserve expensive models for the hardest problems.
Here is how to call an open-weight model through Eden AI:
import requests
import os
headers = {
"Authorization": "Bearer " + os.environ["EDENAI_API_KEY"],
"Content-Type": "application/json"
}
response = requests.post(
"https://api.edenai.run/v3/chat/completions",
headers=headers,
json={
"model": "cloudflare/@cf/meta/llama-4-scout-17b-16e-instruct",
"messages": [
{"role": "user", "content": "Summarize this research paper abstract."}
],
"max_tokens": 200
}
)
print(response.json())
Eden AI connects to many open-weight models through a single endpoint. You get the efficiency benefits without managing the infrastructure yourself.
Hybrid SWA vs Other Efficiency Techniques
Hybrid SWA is one of several techniques for making LLM inference cheaper. Here is how it compares:
These techniques are not mutually exclusive. MiMo v2.5 uses both sparse MoE and hybrid SWA together. You could also apply quantization on top of hybrid SWA for even greater savings.
Production Implications for Engineering Teams
If you are building applications that consume LLM APIs, the rise of efficient models like MiMo v2.5 changes your strategy:
Tier Your Model Selection
Not every query needs a frontier model. Use efficient open-weight models for:
- Summarization and formatting tasks.
- Simple Q&A on known topics.
- Classification and entity extraction.
- Translation of short texts.
Reserve expensive frontier models for:
- Complex reasoning and math.
- Code generation with intricate logic.
- Long-context analysis requiring deep understanding.
- Creative writing that needs nuance.
Use a Multi-Provider Gateway
Managing multiple model providers means multiple API keys, billing accounts, and request formats. Eden AI simplifies this with one endpoint that connects to 500+ models. You can route each query to the right model based on complexity, cost, or latency requirements.
The fallback system ensures reliability: if one provider is down, your request automatically routes to a backup.
Monitor Token Efficiency
When choosing between models, look beyond price per million tokens. Consider:
- Tokens per successful task: a model that completes the task in fewer tokens may be cheaper even at a higher per-token price.
- Context window utilization: efficient models let you send more context without hitting cost cliffs.
- Latency: faster models reduce user wait time and server costs for real-time applications.
Conclusion
Xiaomi's MiMo v2.5 demonstrates that inference efficiency is a solvable engineering problem. Hybrid Sliding Window Attention, combined with sparse MoE, cuts KV-cache storage by 6x and enables over 1,000 tokens per second output for massive models. These optimizations make large open-weight models practical for production use.
For teams consuming LLM APIs, the trend toward efficient models means lower costs and more options. Use a multi-provider gateway like Eden AI to access both efficient open-weight models and frontier models through a single endpoint. Route each query to the model that gives you the best balance of quality, speed, and cost.
You can find them at Eden AI.
Login to the platform to test it yourself.



