MiniMax M4's Architecture: How It Runs on Huawei Ascend Chips MiniMax M4 pairs a 2.74-trillion-parameter mixture-of-experts model that activates roughly 66 billion parameters per token with MiniMax Sparse Attention 2 and a shared key-value cache, letting it handle a million tokens of context on Huawei's Ascend 950 DT chips, which have roughly half the memory and substantially less raw compute than Nvidia's GB300. MiniMax says the M Flash KV system offloads that cache to ordinary SSD storage without meaningfully slowing the model, and that the shared cache cuts memory footprint by a factor of four versus its earlier architecture. M4 reportedly leads other open models on six open-model benchmarks spanning coding, finance and web design, while independent reviewers found it strong at agentic coding, image-grounded office tasks and physics reasoning but weaker at generating complex visual simulations from a single prompt. MiniMax M4's Architecture: How It Runs on Huawei Ascend Chips MiniMax M4 pairs a 2.74-trillion-parameter MoE with sparse attention and SSD-backed memory to run efficiently on Huawei's Ascend chips. What makes MiniMax M4 different from other large language models? MiniMax M4 is a mixture-of-experts MoE model with about 2.74 trillion total parameters, but it only activates roughly 66 billion of them for any given token. A router sends each piece of work to a small set of specialist sub-networks plus one expert that’s always active, rather than running the entire model every time. That’s the core trick behind most modern MoE systems, but M4 pairs it with two other design choices, a new sparse attention mechanism and a shared, SSD-offloadable memory cache, that together let it handle a million tokens of context without demanding Nvidia-class hardware. MiniMax has said the model runs efficiently on Huawei’s Ascend chips, which is notable because those chips trail Nvidia’s top parts on raw memory and compute on paper. TL;DR - MiniMax M4 is a mixture-of-experts model with about 2.74 trillion parameters total, but only around 66 billion are active per token, keeping inference costs down despite the model’s enormous size. - The model uses a new technique called MiniMax Sparse Attention 2 , where a small “scout” mechanism picks out only the most relevant chunks of prior context two layers ahead of time, instead of scanning everything the model has seen. - M4 relies on a shared key-value cache , where multiple attention heads read from the same stored notes instead of each keeping its own copy, cutting memory footprint by a factor of four compared to MiniMax’s earlier architecture. - A system called M Flash KV lets that cache sit on ordinary SSD storage rather than requiring it all to live in scarce, expensive chip memory, and MiniMax says this doesn’t meaningfully slow the model down. - MiniMax says M4 runs on Huawei’s Ascend 950 DT chips , hardware with roughly half the memory and substantially less raw compute than Nvidia’s GB300, and still keeps pace with larger rivals in some throughput comparisons. - On six open-model benchmarks spanning coding, finance, and web design, M4 reportedly leads other open models, while top closed models still hold an edge overall. - Hands-on testing by independent reviewers found M4 strong at agentic coding, image-grounded office tasks, and physics reasoning , but weaker at generating complex, accurate visual simulations from a single prompt. Build a purchase approval app for 2,000 store managers One prompt. Roles, audit trail and SSO come built in. How does the mixture-of-experts design keep M4 efficient? Mixture-of-experts architectures split a model into many smaller sub-networks “experts” and use a router to decide which experts handle which tokens. Instead of every parameter firing for every piece of input, only a fraction does. MiniMax M4 carries this to an extreme: out of 2.74 trillion total parameters, only about 66 billion get activated per token, with one expert always contributing alongside whichever specialists the router selects. This matters for anyone trying to run or serve the model because the “effective” compute cost per token looks much closer to a 66-billion-parameter dense model than a multi-trillion-parameter one, even though the full parameter set still needs to be stored somewhere. MiniMax extends the same idea to image inputs: when the model processes visual content, the experts select which image patches they need rather than the whole image being processed uniformly, which keeps multimodal inference from ballooning in cost. What is MiniMax Sparse Attention 2 and why does it matter for long context? Standard transformer attention re-reads the entire history of a conversation or document every time it generates a new token, which gets expensive fast as context grows toward a million tokens. MiniMax Sparse Attention 2 changes that by using a lightweight “scout” step that identifies only the most relevant chunks of prior context, and it does this computation two layers ahead of when the information is actually needed, so the relevant data is already staged by the time the model needs it. The practical effect is that attention cost stops scaling linearly or worse with the full context length. Instead of treating a million tokens of history as a million tokens’ worth of lookup work every step, the model narrows its focus to the parts that actually matter for the current token. That’s a big part of how M4 claims to support a million-token context window without the memory and latency costs exploding. How does the shared KV cache and SSD offload M Flash KV work? Transformers store a “key-value” cache of everything they’ve processed so attention layers can refer back to it without recomputing from scratch. In most architectures, each attention head keeps its own copy of this cache, which multiplies memory use as context grows. M4 instead uses a shared cache, where many attention heads read from the same stored notes rather than each maintaining a separate copy. MiniMax says this cuts the memory footprint of the KV cache by roughly four times compared to its previous model generation. On top of that, MiniMax built a system called M Flash KV that allows this shared cache to live on standard SSD storage rather than requiring it all to sit in high-bandwidth chip memory, which is far scarcer and more expensive. MiniMax states this offload happens without a meaningful slowdown. Combined, the shared cache and SSD offload are the mechanism that lets a model with a million-token context window stay practical to run, rather than requiring an enormous and costly memory footprint on the chip itself. Build a claims triage app for 4,000 insurance adjusters One prompt. Role-based access, audit trail and SSO come built in. Why does M4 running on Huawei Ascend chips matter? MiniMax has stated that M4 runs on Huawei’s Ascend 950 DT chips, hardware that on paper has about half the memory and significantly less raw compute than Nvidia’s GB300. That gap matters because most frontier-scale models today are built and served assuming access to Nvidia’s top-tier chips, which are expensive, export-restricted in some markets, and in constant short supply. MiniMax’s benchmark comparisons suggest M4 running on Ascend hardware can keep pace with some larger rivals running on Nvidia GB300 chips, measured in tokens per second per user, though the comparison isn’t a clean sweep: GB300 held an edge at higher throughput speeds in the data MiniMax presented, and the models being compared aren’t identical in scale or design. The headline point is directional rather than absolute: architectural choices like sparse attention, shared KV caching, and SSD offload can partially substitute for raw hardware advantage. That’s a pattern showing up across multiple Chinese AI labs right now, where the constraint of less access to top-end Nvidia chips is pushing architectural innovation aimed at doing more with less. Is MiniMax M4 actually good at real-world tasks? Independent hands-on testing rather than MiniMax’s own benchmark claims gives a mixed but largely positive picture. In one test, M4 was given a real concurrency bug in a hotel booking app, where two users could book the same room at the same time, and the model correctly diagnosed the root cause and fixed it, though it introduced a minor side issue holding a database lock during payment processing that it probably shouldn’t have . The fix did resolve the underlying bug when verified. M4 also performed well on a multimodal office task: given a photo of six messy receipts and a handwritten sticky note of expense rules, it correctly caught a duplicate receipt, excluded a personal item, caught an arithmetic error in a bill, applied a meal cap, converted currency, and generated a clean, accurate PDF expense report with a running total. On a physics reasoning test involving tanker trucks and liquid motion, it correctly identified which vehicle was braking, accelerating, or steady based on inertia, with only a very minor factual slip. Where it struggled was open-ended creative code generation: asked to build a detailed, biologically accurate HTML/CSS/JavaScript simulation of a blooming Rafflesia flower with no external libraries or images, the model produced a polished-looking interface but a visually weak and mostly static simulation that didn’t deliver on the animation and interactivity the prompt called for. Frequently Asked Questions How many parameters does MiniMax M4 have? MiniMax M4 has about 2.74 trillion total parameters, but its mixture-of-experts design only activates around 66 billion parameters per token, which keeps inference costs much lower than the full parameter count would suggest. What is MiniMax Sparse Attention 2? › Build a credit limit review app for 800 relationship managers Live URL today. Role-based access, audit trail and SSO come built in. It’s an attention mechanism that uses a small scout process to identify the most relevant chunks of prior context ahead of time, rather than scanning the model’s entire history for every token, which reduces the computational cost of handling very long context windows. Does MiniMax M4 require Nvidia chips to run? No. MiniMax has said M4 runs on Huawei’s Ascend 950 DT chips, which have less raw memory and compute than Nvidia’s top-tier GB300 chips, yet the model’s architecture is designed to keep performance competitive despite that hardware gap. Are MiniMax M4’s weights open source? MiniMax has indicated the model’s weights will be released on platforms like Hugging Face and ModelScope after safety checks, following the pattern of its earlier open releases, though exact timing depends on that review process. How does M4 compare to closed frontier models? In benchmark comparisons across coding, finance, and web design tasks, M4 reportedly leads other open-weight models, though top closed models from major labs still perform better overall on the same tasks.