performance-optimize-verify

Validate code performance optimizations with unit tests across vllm-mindspore and vllm-ascend.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the challenge of validating performance optimizations in AI inference code across frameworks, ensuring hardware readiness, correct operation, and reproducible results.

Core Features & Use Cases

  • Hardware validation: verify hardware availability and health across target devices.
  • Environment verification: detect framework type (mindspore/vllm-mindspore and ascend/vllm-ascend), check dependencies, and prepare test env.
  • Correctness validation: create and run unit tests to ensure optimized code preserves behavior.
  • Performance comparison: optionally compare performance before and after optimization and document results.

Quick Start

Run the performance-verify workflow against your codebase to validate hardware readiness, environment setup, and correctness before releasing optimized versions.

Frequently Asked Questions about performance-optimize-verify

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

FAQPage Schema
How do I automate performance verification for inference code optimizations across frameworks?

Automate performance verification by validating hardware readiness, checking inference frameworks like vllm-mindspore and vllm-ascend, and running unit tests to ensure optimized code preserves behavior and produces reproducible results.

Does vllm-ascend require specific environment checks before running performance verification?

Yes, vllm-ascend requires environment verification to detect framework types, check dependencies, and prepare the test environment before executing correctness validation and optional performance comparison.

How do I validate that my MindSpore inference optimization did not break existing functionality?

Validate MindSpore inference optimizations by constructing and running unit tests that verify correctness, ensuring the optimized code preserves original behavior prior to release.

What is the best way to compare inference performance before and after a code optimization?

Compare inference performance by optionally evaluating metrics before and after optimization, then generating structured result documentation to ensure reproducible verification and safe rollback.

Why do I need hardware validation before testing inference performance on Ascend devices?

Hardware validation verifies availability and health across target Ascend devices, ensuring the underlying infrastructure is ready before executing unit tests and performance comparisons.

Can I use automated unit tests to ensure safe rollback for vllm-mindspore inference changes?

Yes, automated unit tests validate correctness and generate structured result documentation, ensuring reproducible verification and providing a safe rollback path for vllm-mindspore inference changes.