MiniMax M2.7: The First Model to Evolve Itself β Self-Improving Agent Harnesses, 56.2% SWE-Pro, and $0.30/M Pricing
MiniMax launches M2.7 on July 16, 2026 β the first model to participate in its own evolution through self-improving agent harnesses. Achieves 56.22% on SWE-Pro, 55.6% on VIBE-Pro, and 66.6% medal rate on MLE Bench Lite, all at $0.30/$1.20 per million tokens with open weights available on Hugging Face.
Executive Summary
On July 16, 2026, Shanghai-based MiniMax announced M2.7, a model with an ambitious claim: it is the first model to deeply participate in its own evolution. Unlike previous model iterations that were built entirely by human researchers, M2.7 was developed using agent harnesses that the model itself helped construct, optimize, and iterate β creating a feedback loop where the model improves the tools that improve it.
The results are impressive for an open-weight model. On SWE-Pro, M2.7 scored 56.22%, matching GPT-5.3-Codex and approaching the level of Claude Opus 4.6. On VIBE-Pro (end-to-end full project delivery), it achieved 55.6%, nearly on par with Opus 4.6. On MLE Bench Lite β 22 machine learning competitions run on a single A30 GPU β M2.7 achieved a 66.6% medal rate, second only to Opus-4.6 (75.7%) and GPT-5.4 (71.2%).
What makes M2.7 strategically significant is not just its benchmark scores but its self-evolution methodology. MiniMax demonstrated that M2.7 can autonomously optimize its own programming scaffold over 100+ iterative rounds β analyzing failure trajectories, planning changes, modifying code, running evaluations, and deciding whether to keep or revert modifications β achieving a 30% performance improvement on internal evaluation sets. This represents a concrete step toward the long-discussed concept of recursive self-improvement in AI systems.
The model is available immediately through the MiniMax API (with both standard and highspeed variants), MiniMax Agent, and as open weights on Hugging Face. Pricing remains at $0.30 per million input tokens and $1.20 per million output tokens β the same as M2 β making it one of the most cost-effective frontier-adjacent models available.
1. The Self-Evolution Breakthrough
1.1 What "Model Self-Evolution" Means in Practice
MiniMax's claim that M2.7 is "the first model deeply participating in its own evolution" is not marketing hyperbole β it describes a specific, documented workflow:
"During development, we let the model update its own memory, build dozens of complex skills for RL experiments, and improve its own learning process based on experiment results."
The process works as follows:
- Harness construction: An internal version of M2.7 builds a research agent harness that interacts with different research project groups, supporting data pipelines, training environments, infrastructure, cross-team collaboration, and persistent memory.
- Experiment execution: The agent monitors experiments, automatically triggers log reading, debugging, metric analysis, code fixes, merge requests, and smoke tests.
- Self-optimization: Based on experiment results, the model improves its own learning process and harness architecture.
- Iteration: The improved harness produces better models, which in turn build better harnesses.
1.2 The 100-Round Scaffold Optimization
The most concrete demonstration of self-evolution is MiniMax's internal scaffold optimization experiment:
"We had M2.7 optimize a model's programming performance on an internal scaffold. M2.7 ran entirely autonomously, executing an iterative loop of 'analyze failure trajectories β plan changes β modify scaffold code β run evaluations β compare results β decide to keep or revert changes' for over 100 rounds."
During this process, M2.7 discovered effective optimizations including:
- Systematically searching for optimal combinations of sampling parameters (temperature, frequency penalty, presence penalty)
- Designing more specific workflow guidelines (e.g., automatically searching for the same bug patterns in other files after a fix)
- Adding loop detection and other optimizations to the scaffold's agent loop
Result: A 30% performance improvement on internal evaluation sets, achieved entirely autonomously by the model.
1.3 MLE Bench Lite: Autonomous Machine Learning
MiniMax tested M2.7's self-evolution capabilities on MLE Bench Lite β 22 machine learning competitions open-sourced by OpenAI that can run on a single A30 GPU but cover virtually all stages of the ML workflow:
| Metric | M2.7 | Opus-4.6 | GPT-5.4 | Gemini-3.1 |
|---|---|---|---|---|
| Medal rate | 66.6% | 75.7% | 71.2% | 66.6% |
| Gold medals | 9 (best run) | β | β | β |
| Silver medals | 5 (best run) | β | β | β |
| Bronze medals | 1 (best run) | β | β | β |
The agent's core modules included short-term memory, self-feedback, and self-optimization. After each iteration round, the agent generated a short-term memory markdown file and performed self-criticism on the current round's results, providing optimization directions for the next round.
1.4 The RL Team Workflow
MiniMax provides a detailed account of how M2.7 operates in their daily RL team workflow:
"A researcher starts by discussing an experimental idea with the agent, who helps with literature review, tracks a pre-set experiment spec, pipelines data and other artifacts, and launches experiments. During the experiments, the agent monitors and profiles the experiment's progress and automatically triggers log reading, debugging, metric analysis, code fixes, merge requests, and smoke tests."
MiniMax reports that M2.7 handles 30%-50% of the workflow in this scenario β tasks that "could have required the collaboration of multiple human researchers from different teams before."
2. Architecture & Technical Specifications
2.1 Model Lineage
M2.7 sits in MiniMax's M-series lineage:
| Model | Total Parameters | Active Parameters | Context Window | Release Date |
|---|---|---|---|---|
| M2 | ~230B (MoE) | ~10B | 204,800 | Early 2026 |
| M2.5 | ~230B (MoE) | ~10B | 204,800 | March 2026 |
| M2.7 | ~230B (MoE) | ~10B | 204,800 | July 16, 2026 |
| M3 | ~428B (MoE) | ~23B | 1,000,000 | June 1, 2026 |
M2.7 is an evolution of the M2 architecture rather than a new foundation model like M3. It retains the ~230B total parameter count with ~10B active parameters per token, but incorporates significant improvements in agentic capabilities, self-evolution training, and professional domain expertise.
2.2 Key Technical Features
- Mixture-of-Experts (MoE): Activates ~10B of ~230B parameters per token, enabling efficient inference
- 204,800 token context window: Sufficient for most coding and agentic workflows
- Native Agent Teams: Multi-agent collaboration with stable role identity, adversarial reasoning, and protocol adherence
- Complex Skills support: Maintains 97% skill adherence across 40+ complex skills (each exceeding 2,000 tokens)
- Dynamic tool search: Autonomous tool discovery and invocation
- Persistent memory: Long-term memory mechanisms for multi-session workflows
2.3 Inference Parameters
MiniMax recommends the following parameters for best performance:
# Recommended inference parameters for M2.7
temperature = 1.0
top_p = 0.95
top_k = 40
# Default system prompt
system_prompt = "You are a helpful assistant. Your name is MiniMax-M2.7 and is built by MiniMax."
3. Benchmark Performance
3.1 Software Engineering Benchmarks
M2.7's software engineering performance places it in the upper tier of open-weight models and competitive with several closed-source frontier models:
| Benchmark | M2.7 | GPT-5.3-Codex | Opus 4.6 | Sonnet 4.6 | GPT-5.4 |
|---|---|---|---|---|---|
| SWE-Pro | 56.22% | ~56% (matched) | ~58% | ~50% | ~55% |
| SWE Multilingual | 76.5% | β | β | β | β |
| Multi SWE Bench | 52.7% | β | β | β | β |
| VIBE-Pro (repo-level code gen) | 55.6% | β | ~56% | β | β |
| Terminal Bench 2 | 57.0% | β | β | β | β |
| NL2Repo | 39.8% | β | β | β | β |
Key observations:
- M2.7 matches GPT-5.3-Codex on SWE-Pro and approaches Opus 4.6's level
- Strong performance on real-world engineering benchmarks (SWE Multilingual, Multi SWE Bench) suggests practical capability beyond synthetic benchmarks
- VIBE-Pro score of 55.6% indicates strong end-to-end project delivery capability across Web, Android, iOS, and simulation tasks
3.2 Professional Work Benchmarks
Beyond coding, M2.7 demonstrates strong performance in professional office tasks:
| Benchmark | M2.7 | Opus 4.6 | Sonnet 4.6 | GPT-5.4 | GPT-5.3 |
|---|---|---|---|---|---|
| GDPval-AA (ELO) | 1495 | ~1520 | ~1500 | ~1490 | ~1480 |
| Toolathon | 46.3% | β | β | β | β |
| MM Claw (end-to-end) | 62.7% | β | ~63% | β | β |
| Skill adherence (40+ complex skills) | 97% | β | β | β | β |
The GDPval-AA ELO score of 1495 is the highest among open-weight models, surpassing GPT-5.3 and approaching Sonnet 4.6.
3.3 Machine Learning Competitions
On MLE Bench Lite (22 ML competitions):
| Model | Medal Rate | Gold | Silver | Bronze |
|---|---|---|---|---|
| Opus-4.6 | 75.7% | β | β | β |
| GPT-5.4 | 71.2% | β | β | β |
| M2.7 | 66.6% | 9 | 5 | 1 |
| Gemini-3.1 | 66.6% | β | β | β |
M2.7 ties with Gemini-3.1 and trails only Opus-4.6 and GPT-5.4, despite running on a single A30 GPU.
4. Pricing Analysis
4.1 M2.7 Pricing Structure
| Variant | Input (per 1M tokens) | Output (per 1M tokens) | Output Speed |
|---|---|---|---|
| M2.7 (standard) | $0.30 | $1.20 | ~60 tps |
| M2.7-highspeed | $0.30 | $1.20 | ~100 tps |
The pricing is unchanged from M2 β MiniMax explicitly states: "The price remains unchanged, while performance has significantly improved."
4.2 Competitive Pricing Context
| Model | Input (per 1M) | Output (per 1M) | Provider |
|---|---|---|---|
| DeepSeek V4-Flash | $0.14 | $0.28 | DeepSeek |
| DeepSeek V4-Pro | $0.435 | $0.87 | DeepSeek |
| MiniMax M2.7 | $0.30 | $1.20 | MiniMax |
| Gemini 3.5 Flash | $1.50 | $9.00 | |
| Grok 4.5 | $2.00 | $6.00 | xAI |
| Claude Sonnet 5 (intro) | $2.00 | $10.00 | Anthropic |
| GPT-5.6 Terra | $2.50 | $15.00 | OpenAI |
| Claude Opus 4.8 | $5.00 | $25.00 | Anthropic |
4.3 Cost-Performance Analysis
M2.7 occupies a unique position: frontier-adjacent capability at near-commodity pricing. At $0.30/$1.20, it costs approximately:
- 21Γ less than Opus 4.8 ($5/$25)
- 12.5Γ less than GPT-5.6 Terra ($2.50/$15)
- 8.3Γ less than Claude Sonnet 5 intro ($2/$10)
- 5Γ less than Grok 4.5 ($2/$6)
While its SWE-Pro score (56.22%) trails Opus 4.8 (69.2%) and Fable 5 (80.4%), the cost-per-task ratio is dramatically favorable. For workloads where "good enough" is acceptable, M2.7 offers exceptional value.
5. Deployment Guidance
5.1 API Access
M2.7 is available through multiple channels:
# Anthropic-compatible API (recommended)
import anthropic
client = anthropic.Anthropic(
base_url="https://api.minimax.io/anthropic",
api_key="<MINIMAX_API_KEY>",
)
message = client.messages.create(
model="MiniMax-M2.7",
max_tokens=1000,
messages=[{"role": "user", "content": "Debug this production issue..."}],
)
# OpenAI-compatible API
from openai import OpenAI
client = OpenAI(
base_url="https://api.minimax.io/v1",
api_key="<MINIMAX_API_KEY>",
)
response = client.chat.completions.create(
model="MiniMax-M2.7",
messages=[{"role": "user", "content": "Debug this production issue..."}],
)
5.2 Local Deployment
Open weights are available on Hugging Face and ModelScope. MiniMax recommends three inference frameworks:
# Download from Hugging Face
git clone https://huggingface.co/MiniMaxAI/MiniMax-M2.7
# Or from ModelScope (China)
# https://modelscope.cn/models/MiniMax/MiniMax-M2.7
Supported inference frameworks:
- SGLang β Recommended for high-throughput serving
- vLLM β Recommended for production deployment
- Transformers β Recommended for development and experimentation
- NVIDIA NIM β Available on NVIDIA NIM Endpoint
GGUF quantization is available through Unsloth, with options ranging from 1-bit (60.7 GB) to 4-bit (108+ GB), enabling deployment on consumer hardware with sufficient VRAM.
5.3 Platform Availability
| Platform | Availability | Notes |
|---|---|---|
| MiniMax API | Available | Standard and highspeed variants |
| MiniMax Agent | Available | Full agent platform based on M2.7 |
| Hugging Face | Available | Open weights for self-hosting |
| ModelScope | Available | China-based model hub |
| NVIDIA NIM | Available | Enterprise deployment |
| OpenRouter | Available | Via model gateway |
| Together AI | Available | $0.30/$1.20 pricing |
5.4 Agent Teams Setup
M2.7 supports native Agent Teams for multi-agent collaboration:
# Example: Multi-agent product prototype team
agent_config = {
"team": [
{"role": "product_manager", "identity": "Defines requirements and priorities"},
{"role": "architect", "identity": "Designs system architecture"},
{"role": "developer", "identity": "Implements code and features"},
{"role": "qa_engineer", "identity": "Tests and validates output"},
],
"protocol": "adversarial_review", # Agents challenge each other's blind spots
"state_machine": "autonomous", # Agents make independent decisions
}
6. Integration with Prior Research
The M2.7 launch connects to several ongoing research threads:
-
Minimax M3 Open Weight Challenger Analysis 2026 06 03: Our June analysis of MiniMax M3 covered the MSA architecture, 1M context window, and $0.60/$2.40 pricing. M2.7 represents a different strategic direction: rather than scaling parameters (M3 is 428B vs. M2.7's ~230B), MiniMax focused on improving agentic capabilities and self-evolution training. M2.7's $0.30/$1.20 pricing is half of M3's, making it more accessible for high-volume workloads.
-
Grok 4 5 Cursor Trained Moe Coding Agentic Knowledge Work 2026 07 15: Grok 4.5's Cursor training data creates a moat in coding-specific tasks. M2.7 takes a different approach: self-evolution through autonomous scaffold optimization. Both models achieve ~56% on SWE-Pro, but Grok 4.5's 4.2Γ token efficiency and M2.7's self-improving training methodology represent different paths to similar performance.
-
Claude Sonnet 5 Most Agentic Sonnet 1m Context Adaptive Thinking 2026 07 14: Sonnet 5's 85.2% SWE-bench Verified score remains the benchmark for agentic coding. M2.7's 56.22% on SWE-Pro (a different but related benchmark) places it roughly in Sonnet 4.6 territory β a significant achievement for an open-weight model at $0.30/$1.20 pricing.
-
Deepseek V4 Flash Pro Api Migration July 24 Deadline Architecture Pricing 2026 07 10: DeepSeek V4-Flash at $0.14/$0.28 remains the cost floor, but M2.7's 56.22% SWE-Pro vs. DeepSeek V4-Pro's 8% on DeepSWE demonstrates the capability gap. M2.7 occupies the "affordable frontier" space between DeepSeek's commodity pricing and Anthropic/OpenAI's premium tiers.
-
Gemini 3 5 Pro Rebuilt Frontier 2m Context Deep Think July 17 Showdown 2026 07 13: Gemini 3.5 Pro targets July 17 with 2M context and Deep Think reasoning. M2.7's 204K context is smaller, but its self-evolution methodology and $0.30/$1.20 pricing make it a practical choice for workloads where context window size is less critical than cost efficiency.
7. Key Takeaways
-
Self-evolution is real, not theoretical: M2.7's 100-round autonomous scaffold optimization β achieving 30% performance improvement β is the most concrete demonstration of recursive self-improvement in a production model to date. This is not a research demo; it was used to build the model itself.
-
Open-weight frontier-adjacent at commodity pricing: At $0.30/$1.20, M2.7 offers SWE-Pro performance (56.22%) that matches GPT-5.3-Codex at a fraction of the cost. For teams that need "good enough" coding capability at scale, this is hard to beat.
-
The M2.7 vs. M3 strategic split: MiniMax now offers two distinct paths: M3 (428B, 1M context, multimodal, $0.60/$2.40) for complex, long-context workloads, and M2.7 (230B, 204K context, agentic, $0.30/$1.20) for high-volume, cost-sensitive workloads. This mirrors OpenAI's Sol/Terra/Luna strategy but at a fraction of the price.
-
Agent Teams are a native capability, not a prompt trick: M2.7's multi-agent collaboration with stable role identity, adversarial reasoning, and protocol adherence is built into the model, not achieved through complex prompting. This is a fundamental architectural advantage for multi-agent workflows.
-
The MLE Bench Lite result is significant: Achieving 66.6% medal rate on 22 ML competitions β second only to Opus-4.6 and GPT-5.4 β demonstrates that M2.7 can handle the full ML workflow autonomously, from data pipeline to model training to evaluation.
-
Open weights with caveats: The model is available on Hugging Face, but users should be aware of China's National Intelligence Law, which means all API processing falls under Chinese government jurisdiction. Self-hosting mitigates this risk but requires significant infrastructure.
-
The highspeed variant fills a specific need: At ~100 tps vs. ~60 tps for standard, the highspeed variant offers 67% faster output at the same price. This is relevant for interactive coding sessions where latency matters.
8. Future Directions
8.1 Immediate (July-August 2026)
- Independent benchmarks: The vendor-reported scores need independent replication. Watch for evaluations from yage.ai, BenchLM, and Scale AI's SEAL leaderboard.
- GGUF ecosystem maturity: Unsloth has already released GGUF quantizations. Watch for optimized implementations in llama.cpp, Ollama, and other local inference frameworks.
- Gemini 3.5 Pro comparison: The July 17 launch creates a direct comparison opportunity between M2.7's self-evolution methodology and Gemini 3.5 Pro's Deep Think reasoning.
- Enterprise adoption: Will M2.7's cost efficiency drive enterprise migration from more expensive models for coding and agentic workloads?
8.2 Medium-Term (Q3-Q4 2026)
- Self-evolution iteration: If M2.7 can improve its own scaffold by 30%, what does M2.8 look like? The self-evolution loop suggests rapid iterative improvement.
- Multi-agent ecosystem: M2.7's native Agent Teams capability could spark a wave of new multi-agent frameworks built on open-weight models.
- Open-weight frontier convergence: With M2.7 (MiniMax), Qwen 3.5 (Alibaba), and DeepSeek V4 all offering frontier-adjacent capability at low cost, the gap between open and closed models continues to narrow.
8.3 The Bigger Picture
M2.7 represents a strategic shift in how models are built: from human-driven iteration to model-participated evolution. If this approach scales, the implications are profound:
- Faster model iteration: If a model can handle 30%-50% of the RL workflow, development cycles could shrink dramatically.
- Democratized frontier capability: Open-weight models at $0.30/M pricing make frontier-adjacent capability accessible to teams that couldn't afford Opus or GPT-5.6.
- Recursive improvement: If M2.7 can improve its own scaffold, and the improved scaffold produces better models, the trajectory could be exponential rather than linear.
The combination of self-evolution training, native Agent Teams, open weights, and aggressive pricing creates a scenario where M2.7 may become the default choice for cost-sensitive agentic workloads, even if it doesn't lead on absolute benchmark scores.
References & Resources
Official Sources
- MiniMax. (2026). MiniMax M2.7: Early Echoes of Self-Evolution. https://www.minimax.io/news/minimax-m27-en
- MiniMax. (2026). MiniMax M2.7 Model Page. https://www.minimax.io/models/text/m27
- MiniMax. (2026). Model Invocation Documentation. https://platform.minimax.io/docs/guides/text-generation
- MiniMax. (2026). Token Plan Subscription. https://platform.minimax.io/subscribe/token-plan
- MiniMax. (2026). MiniMax Agent Platform. https://agent.minimax.io
- MiniMaxAI. (2026). MiniMax-M2.7 on Hugging Face. https://huggingface.co/MiniMaxAI/MiniMax-M2.7
- Unsloth. (2026). MiniMax-M2.7-GGUF on Hugging Face. https://huggingface.co/unsloth/MiniMax-M2.7-GGUF
- MiniMax. (2026). OpenRoom β Interactive Demo. https://github.com/MiniMax-AI/OpenRoom
- NVIDIA. (2026). MiniMax M2.7 on NVIDIA NIM. https://build.nvidia.com/minimaxai/minimax-m2.7
- MiniMax. (2026). Tool Calling Guide. https://huggingface.co/MiniMaxAI/MiniMax-M2.7/blob/main/docs/tool_calling_guide.md
Related Research
- Minimax M3 Open Weight Challenger Analysis 2026 06 03
- Grok 4 5 Cursor Trained Moe Coding Agentic Knowledge Work 2026 07 15
- Claude Sonnet 5 Most Agentic Sonnet 1m Context Adaptive Thinking 2026 07 14
- Deepseek V4 Flash Pro Api Migration July 24 Deadline Architecture Pricing 2026 07 10
- Gemini 3 5 Pro Rebuilt Frontier 2m Context Deep Think July 17 Showdown 2026 07 13
- Ai News Week 2026 07 06 2026 07 13
This article was researched and written on July 16, 2026, based on official MiniMax announcements, the M2.7 blog post, MiniMax API documentation, Hugging Face model cards, and NVIDIA NIM listings. All benchmark figures are sourced from MiniMax's official launch announcement (https://www.minimax.io/news/minimax-m27-en).
π Referenced by
- π¬Thinking Machines Lab Inkling: 975B Open-Weights Multimodal MoE with Self-Improvement, Controllable Effort, and Apache 2.0 Freedom2026-07-21T00:00:00.000Z
- π¬Kimi K3: The First Open 3T-Class Model β 2.8T Parameters, Frontier Coding, and $3/$15 Pricing2026-07-20T00:00:00.000Z
- π¬Gemini 3.5 Flash: Frontier-Level Agents & Coding at Flash-Tier Cost β The Model That Delivered While Pro Rebuilt2026-07-17T00:00:00.000Z
- π July 16: MiniMax M2.7 β The First Model to Evolve Itself2026-07-16T00:00:00.000Z
- πWiki Index2026-06-17T00:00:00.000Z
- πWiki Log2026-06-17T00:00:00.000Z