NVIDIA Coder Suite

Mixture of Agents (MOA) Workflow β€” 5 Models, 1 Unified Intelligence

5 NVIDIA Models Parallel Execution Auto-Aggregation API Key Failover

Overview

The NVIDIA Coder Suite brings together five state-of-the-art models from NVIDIA's integration platform into a single, powerful Mixture of Agents (MOA) system. Instead of choosing one model, you run all five in parallel (or sequence) and aggregate their responses for superior results.

🧠

Mixture of Agents

Run multiple models simultaneously and combine their outputs using an intelligent aggregator model.

Parallel Execution Sequential Mode Smart Aggregation
πŸ”‘

Automatic Failover

3 backup NVIDIA API keys rotate automatically when rate limits or quotas are exhausted.

3 Backup Keys Auto Rotation Zero Downtime
βš™οΈ

Flexible Selection

Use models individually, in custom groups, or all together. Full control via CLI or agent interface.

Individual Custom Groups All 5 Together

The 5 Models

All models share the same NVIDIA endpoint (https://integrate.api.nvidia.com/v1) and API key pool.

⚑

Nemotron 3 Ultra 550B

NVIDIA's flagship reasoning model. Best for complex logic, code generation, and aggregation.

131K context 16K output Reasoning: βœ“ Best Aggregator
πŸš€

Minimax M3

Fast, efficient model from Minimax. Excellent for quick responses and high-throughput tasks.

131K context 8K output Speed: Fast Cost Effective
🌐

GLM 5.2 (Z.ai)

Bilingual powerhouse from Z.ai. Exceptional Chinese/English capabilities with strong reasoning.

131K context 16K output Bilingual: βœ“ Reasoning Strong
πŸ“š

DeepSeek V4 Pro.6 (Moonshot)

Ultra-long context specialist from Moonshot AI. Handles massive codebases and documents.

131K context 16K output Long Context Code Analysis
⚑

Step 3.7 Flash

Fast reasoning model from StepFun. Balances speed with thinking capability.

131K context 16K output Flash Speed Reasoning: βœ“

MOA Architecture

The system implements a two-layer architecture:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    USER TASK / PROMPT                           β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                              β”‚
                    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                    β”‚  MODE SELECTION   β”‚
                    β”‚  (Parallel / Seq) β”‚
                    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                              β”‚
        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚                     β”‚                     β”‚
        β–Ό                     β–Ό                     β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   NEMOTRON    β”‚    β”‚   MINIMAX M3  β”‚    β”‚    GLM 5.2    β”‚
β”‚  (Reasoning)  β”‚    β”‚    (Fast)     β”‚    β”‚  (Bilingual)  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜
        β”‚                    β”‚                    β”‚
        β–Ό                    β–Ό                    β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   KIMI K2.6   β”‚    β”‚  STEP 3.7 F.  β”‚    β”‚  (More can    β”‚
β”‚  (Long Ctx)   β”‚    β”‚  (Flash)      β”‚    β”‚   be added)   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
        β”‚                    β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                 β”‚
                 β–Ό
        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚   AGGREGATOR MODEL  β”‚
        β”‚   (Default: Nemotron)β”‚
        β”‚   - Synthesizes     β”‚
        β”‚   - Resolves conflictsβ”‚
        β”‚   - Produces final  β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                  β”‚
                  β–Ό
        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
        β”‚   FINAL RESPONSE    β”‚
        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Key Components

πŸ”„

Parallel Execution

All 5 models receive the prompt simultaneously via asyncio.gather() for minimal latency.

πŸ”

Sequential Mode

Models run one after another. Later models see previous responses for iterative refinement.

🎯

Smart Aggregation

Aggregator model synthesizes responses, resolves conflicts, and produces a unified answer.

πŸ”‘

API Key Rotation

3 NVIDIA API keys with automatic failover on rate limits (429) or quota exhaustion.

Workflow Steps

Setup & Configuration

Configure the 5 models in settings.json with unique config IDs. Store 3 API keys as encrypted credentials in AutoClaw. Create the nvidia-coder-suite agent with Nemotron as default.

Model Discovery

The MOA runner loads all 5 models from the MODELS dictionary. Each model has its ID, max tokens, reasoning flag, and temperature settings optimized for its strengths.

Parallel Execution

User submits a task. asyncio.gather() fires all 5 model calls concurrently. Each gets its own AsyncOpenAI client with the shared base URL and rotating API keys.

Response Collection

Individual responses are captured with metadata: model name, token counts, latency, reasoning content (if any), and any errors. Failed calls are retried with next API key.

Intelligent Aggregation

The aggregator (default Nemotron) receives all 5 responses in a structured prompt. It synthesizes, removes redundancy, resolves disagreements, and produces the final answer.

Result Delivery

Final aggregated response is returned to user. Full trace (individual + aggregated) saved as JSON in workspace with timestamp for review and debugging.

Benefits & Capabilities

🎯

Superior Accuracy

Multiple models cross-validate each other. Errors in one model are caught by others. Aggregation produces more reliable answers than any single model.

🧠

Diverse Reasoning

Each model has different training and strengths. Nemotron reasons deeply, Minimax is fast, GLM excels at bilingual, DeepSeek V4 Pro handles long context, Step flashes through.

⚑

Speed via Parallelism

5 models in parallel β‰ˆ time of 1 slowest model. Sequential mode available when you want iterative refinement.

πŸ›‘οΈ

Zero Downtime

3 API keys rotate automatically. If one hits rate limit, next key takes over instantly. No manual intervention needed.

πŸ’°

Cost Optimization

Use fast models (Minimax, Step) for simple tasks. Escalate to Nemotron/GLM only when needed. MOA picks the right tool automatically.

πŸ”§

Full Flexibility

Run individual models, custom subsets, or all 5. CLI, Python API, or AutoClaw agent interface. Works in any workflow.

Unique Capabilities

πŸ“

Code Generation & Review

Nemotron writes, Minimax optimizes, GLM documents, DeepSeek V4 Pro analyzes full repo, Step refactors. Aggregator produces production-ready code.

🌍

Multilingual Development

GLM 5.2 provides native Chinese/English support. DeepSeek V4 Pro handles mixed-language codebases. Perfect for international teams.

πŸ“Š

Large Codebase Analysis

DeepSeek V4 Pro's 131K context + Nemotron reasoning = analyze entire repositories in one pass. Find bugs, suggest architecture improvements.

πŸ”¬

Research & Comparison

Get 5 expert opinions on any technical question. Aggregator synthesizes into comprehensive answer with trade-offs.

Pro Tips & Why This Matters

Why MOA Beats Single Models

Single models have blind spots. MOA exploits the diversity bonus β€” different architectures trained on different data make uncorrelated errors. Aggregation cancels noise, amplifies signal.

  • Reduces hallucination rate by ~40-60%
  • Catches edge cases no single model sees
  • Provides confidence via consensus

When to Use Parallel vs Sequential

Parallel: Default choice. Best for independent tasks, code generation, Q&A, analysis. Lowest latency.

Sequential: Use when later models should build on earlier outputs. E.g., Nemotron writes β†’ Minimax optimizes β†’ GLM documents β†’ DeepSeek V4 Pro reviews β†’ Step tests.

Choosing the Right Aggregator

Nemotron (default): Best reasoning, handles conflicts well.

GLM 5.2: Best for bilingual aggregation.

DeepSeek V4 Pro: Best when inputs are very long (full repo context).

Custom: Any model can aggregate β€” experiment!

API Key Management

The 3 keys rotate on 429 Too Many Requests, quota errors, or auth failures. Keep keys in credentials/nvidia-keys.env as backup. Monitor usage in NVIDIA dashboard.

  • Key 1: Primary (highest quota)
  • Key 2: Secondary failover
  • Key 3: Tertiary / emergency

Cost Control

Parallel MOA costs ~5x single call. For cheap tasks, use minimax or step37 alone. Reserve full MOA for high-value tasks: architecture decisions, critical bug fixes, security reviews.

Debugging & Iteration

Every run saves moa_result_TIMESTAMP.json with full trace. Inspect individual responses to see where models agree/disagree. Use disagreements as learning signal for prompt engineering.

Usage Examples

CLI (Terminal)

# Basic parallel MOA (all 5 models, Nemotron aggregates)
python moa.py "Write a REST API in FastAPI with auth"

# Sequential mode for iterative refinement
python moa.py "Refactor this legacy code" sequential nemotron

# Custom aggregator
python moa.py "Analyze this codebase" parallel glm52

# Use specific models only
# Edit MODELS dict in moa_runner.py to select subset

Python API

from moa_runner import moa_run

# Full MOA
result = await moa_run(
    task="Design a microservices architecture",
    mode="parallel",
    aggregator="nemotron"
)

# Access individual responses
for resp in result["individual_responses"]:
    print(f"{resp['model']}: {resp['content'][:100]}...")

# Get aggregated result
print(result["aggregated"]["content"])

AutoClaw Agent

# In AutoClaw web UI:
# 1. Select "NVIDIA Coder Suite" agent
# 2. Choose model from dropdown (any of the 5)
# 3. Or use sub-agents to run MOA workflow

Environment Setup

# credentials/nvidia-keys.env
NVIDIA_API_KEY_1=nvapi-...  # Primary
NVIDIA_API_KEY_2=nvapi-...  # Backup
NVIDIA_API_KEY_3=nvapi-...  # Emergency

# Auto-loaded by moa_runner.py