Deploy new llm

From Xilinx/mlir-air · View interactive version

Deploy new llm is an AI agent skill from the GitHub repository Xilinx/mlir-air. Coordinate NPU model deployment, adaptation, debugging or optimization through functional skills, kernel and full-model verification, and scoped performance evidence.

How to use this skill

Skill file

Deploy or adapt an NPU model

Start from the HF model ID and any requirements following the skill invocation,

or from the supplied task. Translate explicit requirements into the supported

JSON fields described in task input, then run

python agentic/tools/task.py OWNER/MODEL --requirements /path/requirements.json --out /path/task.json

from AIR's root. Omit --requirements for the documented defaults. Summarize

the resolved model/revision, task mode, precision, configurations, placement and

acceptance before substantial implementation or device work. Continue when

requirements or documented defaults resolve the task; ask only about material

ambiguity or conflicts. Preserve requirements outside the structured fields in

the task record and resolve their implementation explicitly.

Read execution in the prepared task. SHARED_ADAPTER_AVAILABLE permits reuse

of the existing production workflow for the selected configurations.

ADAPTATION_REQUIRED identifies architecture, precision, workload or protocol

work to complete before those commands can satisfy this task. Preserve supplied

quantization rather than silently switching formats, and never replace a

requested gate or timing protocol with the shared tool's fixed defaults.

Unknown-model preparation is followed by reference inspection and implementation;

continue through verification and profiling rather than stopping at task.json.

The task preparation guide covers

offline inputs and adding a new model adapter. Explicit user requirements

override example defaults.

Read the workflow, supplied source/seed, new requirement, allowed changes/resources, workload, reference, verification criteria, performance target and budget. Choose the needed work from the current evidence; a valid seed for an old requirement does not establish new-valid behavior.

For failures use debug routing; for spatial relationships use megakernel analysis. Each entry returns evidence, remaining obligations and a next action to the same task record. Continue within the authorized scope. Acceptance is controlled by the applicable verification contract, not the number or order of skills read.

For a supported-model reproduction or optimization task, use the runnable Phi-2 example. It connects task preparation to the shared production gate and profiling commands.

Single-agent use is complete. Optional reviewers require the user's delegation authorization and use focused handoffs. Keep shared skills/registry unchanged during frozen evaluations; collect proposed lessons and rows locally. Stop after the required successful affected gates and timing batch; add checks for specific failures or changed dependencies. At the stopping condition, report the best verified result, unmet requirements, attempts and measured/unknown cost.

For the AIR Q4NX fused path, read fused-decode compatibility when changing compiler flags, packed weights, instruction templates, or KV ownership. Its source-specific constraints and example complement this skill; they do not choose a new model's implementation.

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.