{"slug": "minimax-m4-hands-on-can-a-2-74t-model-really-fix-your-bugs", "title": "MiniMax M4 Hands-On: Can a 2.74T Model Really Fix Your Bugs?", "summary": "MiniMax released M4, a sparse mixture-of-experts model with roughly 2.74 trillion total parameters that activates about 66 billion per token and supports a one-million-token context window, and hands-on testing found it correctly diagnosed and fixed a double-booking concurrency bug in a capsule hotel booking app while introducing a minor database locking inefficiency. The model failed a generative coding test to simulate the Rafflesia flower life cycle in a single HTML file, but passed a vision-based expense report task that caught duplicate receipts, excluded personal items, applied a meal cap and converted currency, and correctly identified braking, accelerating and steady tanker trucks in a physics reasoning test. MiniMax's MiniMax Sparse Attention 2 mechanism and M Flash KV system cut memory overhead roughly fourfold and let context data live on SSD storage, and MiniMax says open weights are expected on Hugging Face and ModelScope within weeks pending safety review.", "body_md": "# MiniMax M4 Hands-On: Can a 2.74T Model Really Fix Your Bugs?\n\nHands-on tests of MiniMax M4, a 2.74T parameter MoE model with 1M context, on concurrency bugs, vision tasks, and physics reasoning.\n\n## What is MiniMax M4?\n\nMiniMax M4 is a new flagship large language model from Chinese AI lab MiniMax, built as a sparse mixture-of-experts (MoE) system with roughly 2.74 trillion total parameters, though only about 66 billion are active per token. It supports a context window of up to one million tokens, handles both text and images, and is designed specifically for long, messy coding tasks that require sustained reasoning across large codebases. MiniMax says the model runs efficiently on Huawei’s Ascend chips, and open weights are expected on Hugging Face and ModelScope within weeks, pending safety review.\n\n## TL;DR\n\n- **MiniMax M4 is a 2.74 trillion parameter MoE model** that activates only around 66 billion parameters per token, keeping inference costs manageable despite its massive total size.\n- **The model supports a one million token context window** , aimed at long-horizon coding work rather than short chat-style exchanges.\n- In hands-on testing, M4 **correctly diagnosed and fixed a concurrency bug** in a capsule hotel booking app, stopping two users from double-booking the same pod, though it introduced a minor database locking inefficiency along the way.\n- The model **failed a generative coding test** that asked it to simulate the life cycle of the Rafflesia flower in a single HTML file, producing a polished UI shell but weak, mostly static animation.\n- M4 **nailed a vision-based expense report task** , correctly catching duplicate receipts, excluding personal items, applying a meal cap, and converting currency, then generating an accurate summary PDF.\n- On a physics reasoning test using tanker truck liquid shapes, M4 **correctly identified which trucks were braking, accelerating, or steady** , reasoning through inertia with only a minor factual slip.\n- MiniMax’s new **MiniMax Sparse Attention 2 mechanism and M Flash KV system** reduce memory overhead roughly fourfold and allow context data to live on SSD storage instead of expensive chip memory, which is how the model manages a million-token context without impractical hardware demands.\n\n*Enterprises have Remy.*\n\n**⌂** Self-hosted\n\n**✓** SOC 2\n\n**✚** HIPAA\n\n**☰** Audit log\n\n## How big is MiniMax M4, really?\n\nThe headline number, 2.74 trillion total parameters, sounds enormous, but it’s misleading if read the way people read dense model sizes. M4 is a mixture-of-experts model, meaning it doesn’t activate its full parameter count for every token. Instead, a routing mechanism sends each token to a small subset of “expert” subnetworks, plus one expert that is always active. In practice, that means only about 66 billion parameters are doing work on any given token. This is the same general design philosophy behind other large MoE models: keep a huge pool of specialized knowledge available, but only pay the compute cost for a sliver of it at inference time.\n\nFor multimodal input, MiniMax applies the same logic to images. Rather than routing an entire image through one fixed expert, the model lets different experts pick which image pieces they handle, which in theory should make visual processing more flexible than a single-path approach.\n\n## What is MiniMax Sparse Attention 2?\n\nThe more interesting engineering story is how M4 manages a one-million-token context window without the memory costs exploding. MiniMax’s answer is a new mechanism called MiniMax Sparse Attention 2. Instead of re-scanning the entire context every time, a lightweight “scout” component identifies the most relevant chunks of prior context two layers ahead of when they’re needed, so the right data is staged and ready rather than fetched on demand.\n\nOn top of that, M4 uses a shared memory design where multiple attention “readers” reference the same cached notes rather than each keeping its own copy. MiniMax says this cuts the memory footprint by roughly four times compared to its previous architecture. Paired with a system called M Flash KV, this compressed key-value cache can be stored on ordinary SSD storage instead of requiring scarce, expensive accelerator memory, which MiniMax claims comes without a meaningful slowdown.\n\nThis matters because long-context models are usually memory-bound, not compute-bound. A model that can hold a million tokens of context but needs a rack of high-end GPU memory to do it isn’t practical for most teams. If MiniMax’s claims hold up under independent testing, this architecture would make long-context inference considerably cheaper to run.\n\n## Does MiniMax M4 actually fix real coding bugs?\n\nIn one hands-on test, M4 was given a full-stack Docker-based demo app (a fictional “last train rescue” service for Tokyo commuters) with a real concurrency bug: two users could grab the same capsule hotel pod at the same time, both getting charged and issued the same door code, while the system’s inventory count went negative. The model was given no hints and asked to find and fix the issue itself.\n\n### Stop stitching scripts.Ship one system.\n\nOne spec produces the whole app, with security and compliance included.\n\nM4 identified the race condition, preserved the app’s existing services while patching it, and tested the payment failure path afterward. It wasn’t perfect. The fix held a database lock in place while a card payment was being processed, which is a legitimate but questionable pattern that can cause performance issues under real load. Still, when the fixed app was tested by triggering two simultaneous bookings, it correctly rejected one and confirmed the other, resolving the original bug. For a real-world concurrency issue handled with zero hand-holding, that’s a solid result, even with the rough edge around locking behavior.\n\n## Is MiniMax M4 good at generative coding tasks?\n\nNot reliably, at least not yet. One test asked the model to build a single-file HTML simulation of Rafflesia, the world’s largest flower, animating its entire life cycle from bud to decay using only code, no external images or libraries. The prompt was deliberately broad, testing biological accuracy, visual design, animation, and interactivity all at once.\n\nM4 produced a visually polished opening screen with a title card and working controls, which suggested it understood the UI layer well. But the actual simulation fell flat. The vine rendered as a flat line instead of climbing a trunk, there were no visible filaments, and interactive controls like playback speed (10x, 100x) and sex toggles (male, female) didn’t meaningfully change what was rendered on screen. The model could describe biological detail in text labels but couldn’t translate that into working animation. This test was marked a clear fail, and it’s consistent with a broader pattern across many models: generative, open-ended visual simulation in a single code file remains a hard problem even for very large systems.\n\n## How well does M4 handle vision and real-world tasks?\n\nMuch better. In a test combining vision and office-style reasoning, M4 was given a photo of six messy receipts along with a handwritten sticky note listing expense rules, and asked to produce a finished PDF expense claim. This required reading handwriting and printed text from an image, applying several rules simultaneously, and producing clean, correct output.\n\nM4 caught a duplicate cafe receipt and excluded it, removed a personal item (a comic book) from the claimable total, caught an arithmetic error where a noodle dinner’s total didn’t match its line items, applied a per-person meal cap correctly, and converted a coworking day pass from US dollars to Australian dollars. The final PDF listed every receipt with its original amount, the claimable amount, and a plain-language reason for any adjustment, ending in a summary showing the total submitted versus the amount removed. Every number checked out. The model also generated the underlying Python script used to produce the PDF, making the output reproducible rather than a one-off.\n\nA separate physics reasoning test asked M4 to look at an image of three tankers and infer, based only on the shape of the liquid inside each tank, which truck was braking, which was accelerating, and which was steady or stopped. M4 got the core physics right, correctly using inertia to explain the liquid’s behavior in each case, and correctly handled a follow-up twist about reversing one of the trucks. It made one minor factual misstep describing a detail about a driver in the cab, but the central reasoning held up.\n\n## Is MiniMax M4 worth paying attention to?\n\n**›** Build a loan-approval app for 2,000 bankers.\n\n*already included:*✓ SOC 2✓ role-based access✓ audit log✓ self-hosted\n\nFor teams doing long-context coding work or document-heavy vision tasks, yes, cautiously. The bug-fixing and expense-report tests suggest the model is genuinely strong at structured, rule-following tasks that mix reading, reasoning, and precise output. The failed flower simulation test is a reminder that open-ended generative coding, especially visual and biological simulation in a single file, is still a weak spot industry-wide, not just for M4.\n\nThe bigger open question is independent verification once weights are released. MiniMax’s own benchmark comparisons show M4 leading other open models across six tasks spanning coding, finance, and web design, while trailing the strongest closed models, which tracks with expectations for an open-weight release. The claim that M4 performs competitively on Huawei’s Ascend 950DT chips, despite that hardware having roughly half the memory and significantly less raw compute than Nvidia’s GB300, is notable but comes from MiniMax’s own reporting and hasn’t yet been tested by outside parties at scale.\n\n## Frequently Asked Questions\n\n### How many parameters does MiniMax M4 have?\n\nMiniMax M4 has approximately 2.74 trillion total parameters, but as a mixture-of-experts model it only activates around 66 billion parameters per token during inference.\n\n### What is MiniMax M4’s context window?\n\nM4 supports up to one million tokens of context, intended for long, complex coding tasks and document-heavy workloads rather than short conversational use.\n\n### When will MiniMax M4’s weights be released?\n\nMiniMax has indicated the open weights will be released on Hugging Face and ModelScope within weeks of the model’s announcement, pending internal safety checks.\n\n### What hardware does MiniMax M4 run on?\n\nMiniMax says M4 is optimized to run efficiently on Huawei’s Ascend 950DT chips, which the company claims can keep pace with higher-spec Nvidia hardware like the GB300 despite having less memory and raw compute on paper.\n\n### What is MiniMax Sparse Attention 2?\n\nIt’s a new attention mechanism in M4 that selectively retrieves only the most relevant chunks of prior context ahead of time, combined with a shared memory cache (M Flash KV) that can be stored on SSD rather than expensive chip memory, cutting memory overhead roughly fourfold.", "url": "https://wpnews.pro/news/minimax-m4-hands-on-can-a-2-74t-model-really-fix-your-bugs", "canonical_source": "https://www.mindstudio.ai/blog/minimax-m4-hands-on/", "published_at": "2026-12-04 00:00:00+00:00", "updated_at": "2026-12-04 09:46:31.906564+00:00", "lang": "en", "topics": ["large-language-models", "artificial-intelligence", "ai-research", "ai-agents", "computer-vision"], "entities": ["MiniMax", "MiniMax M4", "MiniMax Sparse Attention 2", "M Flash KV", "Hugging Face", "ModelScope", "Huawei"], "also_reported_by": [], "takeaway": "MiniMax M4's sparse MoE design activates only about 66 billion of its 2.74 trillion parameters per token, and its MiniMax Sparse Attention 2 plus M Flash KV cut memory overhead roughly fourfold by staging context on SSD, though in testing it fixed a concurrency bug but produced weak animation in a g", "recommendation": {"advice": "For million-token context, offload context data to SSD and use a scout mechanism to pre-stage relevant chunks two layers ahead, as MiniMax's Sparse Attention 2 does, to cut memory overhead roughly fourfold.", "playbook": "inference-serving", "playbook_url": "https://wpnews.pro/playbooks/inference-serving"}, "alternates": {"html": "https://wpnews.pro/news/minimax-m4-hands-on-can-a-2-74t-model-really-fix-your-bugs", "markdown": "https://wpnews.pro/news/minimax-m4-hands-on-can-a-2-74t-model-really-fix-your-bugs.md", "text": "https://wpnews.pro/news/minimax-m4-hands-on-can-a-2-74t-model-really-fix-your-bugs.txt", "jsonld": "https://wpnews.pro/news/minimax-m4-hands-on-can-a-2-74t-model-really-fix-your-bugs.jsonld"}}