Aipc Toolkit
qualcomm/qai-appbuilder
AIPC, AI Porting Conversion. An agent skill from qualcomm/qai-appbuilder.
Partition an ONNX model graph into named functional subgraphs and emit a subgraphpartition.json file.
$ npx skills add amd/Quark --skill quark-onnx-subgraph-partitioner -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install amd/Quark quark-onnx-subgraph-partitioner --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/amd/Quark.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/_legacy_impl/l1-atomic/onnx/quark-onnx-subgraph-partitioner .claude/skills/quark-onnx-subgraph-partitioner && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "quark-onnx-subgraph-partitioner" agent skill from https://github.com/amd/Quark/tree/release%2F0.13/skills/_legacy_impl/l1-atomic/onnx/quark-onnx-subgraph-partitioner into .claude/skills/quark-onnx-subgraph-partitioner/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "quark-onnx-subgraph-partitioner", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/amd/Quark/tree/release%2F0.13/skills/_legacy_impl/l1-atomic/onnx/quark-onnx-subgraph-partitionerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add amd/Quark --skill quark-onnx-subgraph-partitioner -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install amd/Quark quark-onnx-subgraph-partitioner --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/amd/Quark.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/_legacy_impl/l1-atomic/onnx/quark-onnx-subgraph-partitioner .agents/skills/quark-onnx-subgraph-partitioner && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "quark-onnx-subgraph-partitioner" agent skill from https://github.com/amd/Quark/tree/release%2F0.13/skills/_legacy_impl/l1-atomic/onnx/quark-onnx-subgraph-partitioner into .agents/skills/quark-onnx-subgraph-partitioner/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "quark-onnx-subgraph-partitioner", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add amd/Quark --skill quark-onnx-subgraph-partitioner -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install amd/Quark quark-onnx-subgraph-partitioner --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/amd/Quark.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/_legacy_impl/l1-atomic/onnx/quark-onnx-subgraph-partitioner .cursor/skills/quark-onnx-subgraph-partitioner && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "quark-onnx-subgraph-partitioner" agent skill from https://github.com/amd/Quark/tree/release%2F0.13/skills/_legacy_impl/l1-atomic/onnx/quark-onnx-subgraph-partitioner into .cursor/skills/quark-onnx-subgraph-partitioner/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "quark-onnx-subgraph-partitioner", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/amd/Quark.git --path skills/_legacy_impl/l1-atomic/onnx/quark-onnx-subgraph-partitioner--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add amd/Quark --skill quark-onnx-subgraph-partitioner -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install amd/Quark quark-onnx-subgraph-partitioner --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/amd/Quark.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/_legacy_impl/l1-atomic/onnx/quark-onnx-subgraph-partitioner .gemini/skills/quark-onnx-subgraph-partitioner && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "quark-onnx-subgraph-partitioner" agent skill from https://github.com/amd/Quark/tree/release%2F0.13/skills/_legacy_impl/l1-atomic/onnx/quark-onnx-subgraph-partitioner into .gemini/skills/quark-onnx-subgraph-partitioner/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "quark-onnx-subgraph-partitioner", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install amd/Quark quark-onnx-subgraph-partitionerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add amd/Quark --skill quark-onnx-subgraph-partitioner -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/amd/Quark.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/_legacy_impl/l1-atomic/onnx/quark-onnx-subgraph-partitioner .github/skills/quark-onnx-subgraph-partitioner && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "quark-onnx-subgraph-partitioner" agent skill from https://github.com/amd/Quark/tree/release%2F0.13/skills/_legacy_impl/l1-atomic/onnx/quark-onnx-subgraph-partitioner into .github/skills/quark-onnx-subgraph-partitioner/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "quark-onnx-subgraph-partitioner", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add amd/Quark --skill quark-onnx-subgraph-partitioner -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install amd/Quark quark-onnx-subgraph-partitioner --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/amd/Quark.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/_legacy_impl/l1-atomic/onnx/quark-onnx-subgraph-partitioner .opencode/skills/quark-onnx-subgraph-partitioner && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "quark-onnx-subgraph-partitioner" agent skill from https://github.com/amd/Quark/tree/release%2F0.13/skills/_legacy_impl/l1-atomic/onnx/quark-onnx-subgraph-partitioner into .opencode/skills/quark-onnx-subgraph-partitioner/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "quark-onnx-subgraph-partitioner", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
quark-onnx-subgraph-partitionerPartition an ONNX model graph into named functional subgraphs and emit a subgraphpartition.json file.
Quark Onnx Subgraph Partitioner is an agent skill from amd/Quark. Partition an ONNX model graph into named functional subgraphs and emit a subgraphpartition.json file. Use when the user wants to understand a model's high-level structure, document its architectural blocks, or prepare a partition for downstream workflows (mixed-precision quantization, layer-wise profiling, partial deployment, graph visualization). Triggers on "partition my ONNX model", "generate a subgraph JSON", "which nodes belong to the attention blocks", "show me the model architecture", "split the model into…
Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `inspect_model.py` and `validate_partition.py`).
It sits in AI & LLM Engineering, covering LLM inference and serving. It works with ONNX. The licence is MIT.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 313cb0b. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships script files (Python), which the agent can run.
Shell commands in SKILL.md call:
python3pipFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use pip, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Quark Onnx Subgraph Partitioner loads about 2.7k tokens when it runs. Until then it costs about 244 tokens; SKILL.md has 1,075 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from amd/Quark at commit 313cb0b, republished under its MIT licence (© amd). 1,075 words, ~2,672 tokens.
.claude/skills/quark-onnx-subgraph-partitioner/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Produce a subgraph_partition.json that groups ONNX graph nodes into named
functional blocks (stem, backbone stage, attention layer, FFN, FPN neck, etc.).
The partition can serve as input to AMP sensitivity analysis, layer-wise
profiling, partial deployment, or graph documentation.
Two helper scripts live alongside this file:
SKILL_DIR=skills/_legacy_impl/l1-atomic/onnx/quark-onnx-subgraph-partitioner.onnx file supplied as $ARGUMENTSSchema: subgraph_partition.schema.json
{
"quantized": false,
"num_subgraphs": 4,
"subgraphs": [
{
"name": "backbone_stem",
"description": "Initial stride-2 Conv → SiLU activation, produces P1 features",
"start_nodes": ["/model.0/conv/Conv"],
"end_nodes": ["/model.0/act/Mul"]
},
{
"name": "attention_layer_0",
"description": "Full encoder layer 0: self-attention + FFN + LayerNorm + residuals",
"start_nodes": ["/encoder/layer.0/attention/self/query/MatMul"],
"end_nodes": ["/encoder/layer.0/output/LayerNorm"]
}
]
}Every entry requires all four fields: name, description, start_nodes,
end_nodes. Never include resolved_nodes — node resolution happens at
runtime. num_subgraphs must equal len(subgraphs); set it last.
python3 "$SKILL_DIR/inspect_model.py" <MODEL_PATH>For quantized models (detected automatically via Q/DQ op presence), Q/DQ wrapper nodes are suppressed so structural landmarks remain visible; Q/DQ counts are reported separately.
Text .onnxtxt — use grep instead:
grep -n 'op_type:\| name:\|input:\|output:' <MODEL_PATH> | head -400Quantized model rules: use compute nodes (Conv, MatMul, Add, …) as
boundaries — never Q/DQ nodes. BFS from a compute node captures surrounding
Q/DQ wrappers automatically.
| Signal | Likely boundary |
|---|---|
First Conv consuming the graph input | Backbone / model stem |
Repeated /model.N/ or /layer.N/ prefix groups | Stage or layer repetition |
MaxPool or strided Conv (stride 2) | Resolution downsampling |
Resize (upsample) + Concat on lateral path | FPN / PAN top-down merge |
Split → N parallel Conv → Concat + 1×1 Conv | C2f / CSP bottleneck |
GlobalAveragePool → FC → activation → Mul | SE block |
MatMul×3 → Softmax → MatMul (QKV pattern) | Self-attention block |
LayerNormalization or InstanceNormalization | Transformer / diffusion layer |
MatMul/Gemm → activation → MatMul/Gemm (hidden × 4) | FFN / MLP block |
Add immediately after attention + FFN | Residual add (layer end) |
GridSample with sampling offsets | Deformable attention |
Gather on index 0 → LayerNorm → Gemm | CLS token / pooler / head |
| Block type | Description |
|---|---|
Stem | Initial convs before first downsampling |
BackboneStage | Stage at one resolution (N residual / bottleneck blocks) |
SEBlock | Squeeze-and-Excitation (GAP → FC → activation → Mul) |
PatchEmbedding | ViT patch projection (Conv with patch-stride kernel) |
SelfAttentionBlock | Multi-head self-attention (QKV + Softmax + out proj) |
FFNBlock | Feed-forward network (Linear → activation → Linear) |
TransformerLayer | Full encoder/decoder layer (attn + FFN + norms + residuals) |
SPPF | Spatial Pyramid Pooling Fast |
FPNNeck | Feature Pyramid Network (lateral convs + upsample + merge) |
PANNeck | Path Aggregation Network (down-path convs + concat + merge) |
DetectionHead | Conv layers + decode logic for bbox / class output |
ClassificationHead | MLP predicting class logits |
Granularity rules:
Concat / Add / Resize to the subgraph that produces the feature map.start_nodes: first node(s) receiving data from outside the block. Only
list a node if it is not already reachable from another listed start node —
downstream-reachable additions are redundant. When a block has multiple
independent entry paths (e.g., parallel detection-head branches), list all.
end_nodes: last node(s) whose output feeds the next block.
Residual fork hazard. BFS stops when it visits an end node, but still
enqueues all consumers of every preceding node. If any node before the end
node fans out to an external consumer (a residual skip, a lateral FPN branch),
BFS cascades through the rest of the model. Fix: move end_nodes back to the
last node whose output has no external consumers, i.e. the node immediately
before the fork. Check 5 in validate_partition.py catches this automatically
by flagging subgraphs that resolve to > 25 % of total nodes.
Copy all node names verbatim from the Step 1 listing — never reconstruct them.
python3 "$SKILL_DIR/validate_partition.py" <MODEL_PATH> <DRAFT_JSON>Runs five checks (see validate_partition.py docstring for details). Fix all
ERROR: lines before proceeding. Common fixes:
Constant start nodes with the Resize / Conv that consumes them.end_nodes so all end nodes are reachable from start_nodes.end_nodes one step earlier to avoid residual-fork BFS explosion.Also verify coverage: confirm the union of resolved subgraphs covers the
model's quantizable ops (Conv / MatMul / Gemm). Explain any ops that land
in __ungrouped__.
Write subgraph_partition.json beside the model file (or in the working
directory). Before writing, verify:
name values.num_subgraphs equals len(subgraphs) (count programmatically).Always finish with:
| # | Name | Block type | Start node | End node | Est. nodes |
|---|
Include an Architectural note: overall architecture family, number and type of repeated blocks, and any non-obvious design choices visible in the graph.
description is not acceptable.resolved_nodes / nodes in the output.__ungrouped__ nodes.$ARGUMENTS; resolve to absolute path.subgraph_partition.json; confirm zero errors.AutoMixprecisionConfig(subgraph_json="<path>")resolved_nodes per block| Failure | Action |
|---|---|
onnx not installed | Run pip install onnx and retry Step 1 |
| Model > 2 GB, Python OOM | Print only n.name and n.op_type; skip weight shapes |
All node names are anonymous (/Add_7) | Use op-type sequences and output shapes; use index ranges as block names |
| Validation: node not found | Re-check Step 1 listing; never guess — omit if unconfirmable |
| Validation: name is an initializer | Use the graph node that reads the initializer instead |
Validation: start node is Constant | Replace with the data-path node consuming it |
| Validation: start/end is a Q/DQ wrapper | Replace with the adjacent compute node |
| Validation: end not reachable from start | Add the branching node to start_nodes, or adjust end_nodes |
| Check 5: subgraph resolves to > 25 % | Residual-fork hazard; move end_nodes one step earlier to the DQL before the fork |
© amd, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files in skills/_legacy_impl/l1-atomic/onnx/quark-onnx-subgraph-partitioner of amd/Quark.
Open the folder on GitHubat commit 313cb0b
Quark Onnx Subgraph Partitioner next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Quark Onnx Subgraph Partitioner this skillamd/Quark | 182 | — | ~2.7k | Automated safety check: Pass | MIT | |
| Aipc Toolkitqualcomm/qai-appbuilder | 247 | — | ~5.7k | Automated safety check: Notes | Custom licence | |
| Matlab Use Visual Inspectionmatlab/matlab-agentic-toolkit | 1.1k | — | ~3.1k | Automated safety check: Pass | Custom licence | |
| Onboard Jetpack5 Inference BackendsEGalahad/sim2real | 146 | — | ~1.1k | Automated safety check: Pass | None | |
| Model Builderqualcomm/qai-appbuilder | 247 | — | ~4.1k | Automated safety check: Pass | BSD-3-Clause | |
| Engine Performancescragnog/HOT-Step-CPP | 174 | — | ~4.9k | Automated safety check: Pass | MIT |
qualcomm/qai-appbuilder
AIPC, AI Porting Conversion. An agent skill from qualcomm/qai-appbuilder.
matlab/matlab-agentic-toolkit
Build machine vision inspection systems with MATLAB Visual Inspection Toolbox.
EGalahad/sim2real
Install, convert, debug, and benchmark sim2real ONNX GPU and TensorRT inference backends on onboard JetPack 5 Orin hosts such as g1-cable.
qualcomm/qai-appbuilder
QAI ModelBuilder. An agent skill from qualcomm/qai-appbuilder.
scragnog/HOT-Step-CPP
Explains where HOT-Step generation time goes (LM/DiT/VAE), how the TensorRT paths activate, how to benchmark from logs, and which knobs trade quality for speed.
maziyarpanahi/openmed
Run OpenMed models fully on-device with the MLX (Apple Silicon), CoreML (iOS/macOS), or ONNX/WebGPU (cross-platform/browser) backends, including convert-quantize-run workflows.
amd/Quark
Author or restructure a Quark Agent Skill so it conforms to this project's template, contracts, and layer rules.
amd/Quark
Run, resume, monitor, diagnose, and report Quark Quant-Perf workflows for PyTorch and HuggingFace transformers models.
amd/Quark
Author a new ShapeShifter graph-transformation pass for AMD Quark (ONNX or PyTorch) so it conforms to the pass framework's conventions and auto-registers.
amd/Quark
Collect and normalize environment facts (OS, Python, GPU, CUDA/ROCm, container state) before Quark installation or PTQ planning.
amd/Quark
Install or verify the AMD Quark package and its dependencies.
amd/Quark
L3 recipe that runs quark.onnx.AutoSearchPro end-to-end on a user .onnx model: intake → preset selection (or custom search space) → calibration / eval data reader → standalone autosearch script…
Works with
Categories
Partition an ONNX model graph into named functional subgraphs and emit a subgraphpartition.json file. Quark Onnx Subgraph Partitioner is an agent skill from amd/Quark.json file.
Quark Onnx Subgraph Partitioner fits situations like: the user wants to understand a models high-level structure; document its architectural blocks; prepare a partition for downstream workflows (mixed-precision quantization; layer-wise profiling.
Run `npx skills add amd/Quark --skill quark-onnx-subgraph-partitioner -a claude-code`. Or copy the skill folder (skills/_legacy_impl/l1-atomic/onnx/quark-onnx-subgraph-partitioner in amd/Quark) into .claude/skills/quark-onnx-subgraph-partitioner in your project. Claude Code loads it when a task matches its description.
Run `npx skills add amd/Quark --skill quark-onnx-subgraph-partitioner -a codex`. Or copy the skill folder (skills/_legacy_impl/l1-atomic/onnx/quark-onnx-subgraph-partitioner in amd/Quark) into .agents/skills/quark-onnx-subgraph-partitioner in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add amd/Quark --skill quark-onnx-subgraph-partitioner -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/quark-onnx-subgraph-partitioner, .gemini/skills/quark-onnx-subgraph-partitioner, .github/skills/quark-onnx-subgraph-partitioner and .opencode/skills/quark-onnx-subgraph-partitioner in your project.
Going by SKILL.md and its folder, Quark Onnx Subgraph Partitioner needs Python for the scripts in its folder and the command-line tools its instructions call (python3 and pip). Our summary lists: Python 3.
SKILL.md contains no URLs. Its commands use pip, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Quark Onnx Subgraph Partitioner is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Quark Onnx Subgraph Partitioner: Aipc Toolkit (qualcomm/qai-appbuilder, 247 stars), Matlab Use Visual Inspection (matlab/matlab-agentic-toolkit, 1.1k stars), Onboard Jetpack5 Inference Backends (EGalahad/sim2real, 146 stars) and Model Builder (qualcomm/qai-appbuilder, 247 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
amd (a GitHub organization) maintains it in amd/Quark, which has 182 GitHub stars. The repository holds 37 skills in this directory. The repository was last updated on September 28, 2026.
Source: amd/Quark on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.