Aimet

From VectorSpaceLab/AREX-Skill · View interactive version

Aimet is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Route AIMET install, PyTorch/ONNX quantization, GenAILab, model access, cluster/Pod, Qualcomm SDK, optimization, export, and repository tasks to focused operating guidance.

How to use this skill

Skill file

AIMET repo skill

AIMET (AI Model Efficiency Toolkit) is a toolkit for quantizing, compressing, analyzing, and exporting trained PyTorch and ONNX models, with repository-side GenAILab scorecard tooling and Qualcomm target-deployment guidance. Use this skill when a task names AIMET, aimet-torch, aimet-onnx, aimet_torch, aimet_onnx, QuantizationSimModel, AIMET encodings, AIMET compression, GenAILab, QNN/QAIRT/AI Hub, or AIMET repository build/test workflows.

This skill is a router. Open the focused sub-skill and bundled references before changing code, adjusting build settings, or running expensive examples.

Start here

  1. Identify the surface. Decide whether the task is about installation/build, PyTorch quantization, ONNX quantization, GenAILab LLM/VLM evaluation, model/download credentials, cluster/Pod execution, or Qualcomm target deployment.
  2. Verify the environment before debugging AIMET. For installed-package tasks, run python scripts/quick_smoke.py --framework both from this skill directory or copy it into a clean working area. For GenAILab configs, run python scripts/genai_config_preflight.py <config.yaml> --framework <torch|onnx|both> --print-command before long runs.
  3. Do not assume CUDA is required. Core PyTorch and ONNX QuantSim workflows are CPU-valid; CUDA is required only for GPU provider checks, CUDA-marked tests, source CUDA builds, GenAILab runs whose model size needs GPU memory, or user workloads that cannot run on CPU.
  4. Treat examples as evidence, not mandatory runtime. AIMET examples often expect ImageNet-scale data, Hugging Face models, cluster credentials, or target SDKs. Use the distilled workflows and preflight scripts here unless the user has explicitly supplied those assets.

Route map

| User task | Read first | Why |

| --- | --- | --- |

| Install aimet-torch/aimet-onnx, repair dependency conflicts, choose CPU vs CUDA, build from source, or run focused repo checks | install-and-build | Captures package names, build flags, dependency variants, and safe smoke checks. |

| Quantize a PyTorch model, prepare a model for AIMET, run calibration, use QAT, or export a Torch QuantSim model | torch-quantization | Covers aimet_torch workflows, model preparation, BatchNorm folding, QuantSim, encodings, and Torch export. |

| Quantize an ONNX model, choose ONNX Runtime providers, compute/load encodings, export QDQ, or run ONNX PTQ utilities such as SeqMSE/AdaRound | onnx-quantization | Covers aimet_onnx graph/session workflows, precision controls, PTQ utilities, and provider decisions. |

| Diagnose accuracy loss, use QuantAnalyzer/visualization, mixed precision, compression, deployment artifacts, or on-target inference handoff | optimization-analysis-deployment | Covers cross-framework optimization, compression, debugging workflow, export artifacts, and target-runtime boundaries. |

| Configure or run AIMET GenAILab LLM/VLM scorecards, recipe chains, local Torch/ONNX GenAI tests, online scorecards, exports, caches, or summaries | genai-lab | Covers python -m GenAILab, YAML contracts, framework choice, cache/export/result directories, and safe preflight. |

| Use Hugging Face tokens, gated/private models, GitHub Actions dispatch/download, AWS/S3 checkpoint artifacts, SAML login, or metric-version-aware result comparisons | model-access-and-credentialed-evaluation | Covers model downloads, credential boundaries, artifact download, cache planning, and comparability rules. |

| Launch or reuse Argo/Kubernetes pods, sync AIMET to /scratch, run GenAILab/source builds on remote GPU pods, list workflows, or stop pods | cluster-pod-workflows | Covers resource requests, launch/sync/exec/list/stop helper commands, and remote-state safety. |

| Send AIMET ONNX/encoding exports to Qualcomm AI Hub, QAIRT, QNN, HTP, DLC conversion, profiling, inference, or SDK command generation | qualcomm-sdk-deployment | Covers export validation, AI Hub compile/profile/inference, local QAIRT/QNN command generation, and target-runtime boundaries. |

Bundled references

Bundled scripts

Scope and limits

This repaired skill covers the public AIMET package surfaces under aimet_torch and aimet_onnx, common quantization/compression/analysis workflows, maintainer install/build/test orientation, GenAILab LLM/VLM scorecards, model/checkpoint access, credentialed evaluation boundaries, cluster/Pod execution patterns, and Qualcomm AI Hub / QAIRT / QNN target-deployment handoff. Heavy or credentialed actions remain gated: do not run large Hugging Face, ImageNet, S3, GitHub Actions, cluster, or SDK workflows until the user supplies assets/credentials and approves the runtime or remote-state effect.

Operating rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.