adaptive-evolve

Automates iterative optimization of neural network operators through coordinated designer, coder, and verifier agents.

258|48|Updated Jun 22, 2020
One-click install
npx skills add https://github.com/mindspore-ai/akg --skill adaptive-evolve
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adaptive-evolve
Source: https://github.com/mindspore-ai/akg/tree/main/akg_agents/examples/run_skill/skills/adaptive-evolve
Command: npx skills add https://github.com/mindspore-ai/akg --skill adaptive-evolve

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Adaptive-evolution workflows streamline multi-round optimization of neural network operators, reducing manual trial-and-error and uncovering high-performance configurations.

Core Features & Use Cases

  • Coordinated multi-agent workflow: Designer, Coder, and Verifier collaborate to explore, implement, and validate operator optimizations.
  • Adaptive search strategies: Dynamically adjust population and mutation rates to balance exploration and convergence.
  • Use Case: When optimizing a fused MatMul+Bias+Activation path for a new backend, this skill coordinates design proposals, code generation, and verification to reach a performance target faster than manual tuning.

Quick Start

Run the adaptive-evolve workflow to initialize a designer-agent population, evolve designs with the coder-agent, and verify results with the verifier-agent.

Frequently Asked Questions about adaptive-evolve

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate operator optimization for complex fused operators across diverse backends?

Evolutionary algorithms optimize neural network operators by simulating natural selection, dynamically adjusting population size and mutation rates to balance exploration and convergence. This mechanism replaces manual trial-and-error by evolving operator designs through automated selection.

How does an evolutionary algorithm workflow handle operator design and verification?

The evolutionary algorithm workflow handles operator design by assigning sub-skills to specific roles: a designer-agent proposes designs, a coder-agent implements them, and a verifier-agent validates the results. This multi-agent coordination ensures continuous verification throughout the optimization rounds.

Can I configure early-stopping and population parameters for multi-agent operator tuning?

Yes, you can configure adaptive population sizes, mutation rates, and early-stopping mechanisms for multi-agent operator tuning. These parameters allow you to control the evolutionary search strategy, balancing computational cost with the convergence speed of the operator designs.

What is the best way to optimize a fused MatMul, Bias, and Activation path for a new backend?

The best way to optimize a fused MatMul, Bias, and Activation path is to use an adaptive evolution workflow that coordinates design proposals, code generation, and performance verification. This multi-agent approach reaches performance targets faster than manual tuning.

Why should I use an adaptive multi-agent workflow instead of manual trial-and-error for performance-sensitive workloads?

An adaptive multi-agent workflow outperforms manual trial-and-error for performance-sensitive workloads by automating multi-round optimization and dynamically adjusting search strategies. This structured workflow uncovers high-performance operator configurations that manual tuning might miss.