Quark Onnx Ptq Workflow
amd/Quark
End-to-end ONNX PTQ workflow for AMD Quark — from a .onnx file (and calibration data) to a quantized .onnx output.
Add support for a new Vision-Language Model (VLM) to AutoRound, including multimodal block handler, calibration dataset template, and special model handling.
$ npx skills add intel/auto-round --skill add-vlm-model -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install intel/auto-round add-vlm-model --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/intel/auto-round.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/add-vlm-model .claude/skills/add-vlm-model && 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 "add-vlm-model" agent skill from https://github.com/intel/auto-round/tree/main/.claude/skills/add-vlm-model into .claude/skills/add-vlm-model/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-vlm-model", 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/intel/auto-round/tree/main/.claude/skills/add-vlm-modelType 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 intel/auto-round --skill add-vlm-model -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install intel/auto-round add-vlm-model --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/intel/auto-round.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/add-vlm-model .agents/skills/add-vlm-model && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "add-vlm-model" agent skill from https://github.com/intel/auto-round/tree/main/.claude/skills/add-vlm-model into .agents/skills/add-vlm-model/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-vlm-model", 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 intel/auto-round --skill add-vlm-model -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install intel/auto-round add-vlm-model --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/intel/auto-round.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/add-vlm-model .cursor/skills/add-vlm-model && 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 "add-vlm-model" agent skill from https://github.com/intel/auto-round/tree/main/.claude/skills/add-vlm-model into .cursor/skills/add-vlm-model/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-vlm-model", 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/intel/auto-round.git --path .claude/skills/add-vlm-model--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 intel/auto-round --skill add-vlm-model -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install intel/auto-round add-vlm-model --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/intel/auto-round.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/add-vlm-model .gemini/skills/add-vlm-model && 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 "add-vlm-model" agent skill from https://github.com/intel/auto-round/tree/main/.claude/skills/add-vlm-model into .gemini/skills/add-vlm-model/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-vlm-model", 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 intel/auto-round add-vlm-modelInstalls 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 intel/auto-round --skill add-vlm-model -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/intel/auto-round.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/add-vlm-model .github/skills/add-vlm-model && 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 "add-vlm-model" agent skill from https://github.com/intel/auto-round/tree/main/.claude/skills/add-vlm-model into .github/skills/add-vlm-model/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-vlm-model", 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 intel/auto-round --skill add-vlm-model -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install intel/auto-round add-vlm-model --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/intel/auto-round.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/add-vlm-model .opencode/skills/add-vlm-model && 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 "add-vlm-model" agent skill from https://github.com/intel/auto-round/tree/main/.claude/skills/add-vlm-model into .opencode/skills/add-vlm-model/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-vlm-model", 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.
add-vlm-modelAdd support for a new Vision-Language Model (VLM) to AutoRound, including multimodal block handler, calibration dataset template, and special model handling.
Add Vlm Model is an agent skill from intel/auto-round, published by the product's own GitHub organization. Add support for a new Vision-Language Model (VLM) to AutoRound, including multimodal block handler, calibration dataset template, and special model handling. Use when integrating a new VLM like LLaVA, Qwen2-VL, GLM-Image, Phi-Vision, or similar multi-modal models for quantization.
Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in AI & LLM Engineering, covering LLM inference and serving, Performance reviews and Computer vision. The repository describes itself as: A simple and effective post training quantization toolkit for high-accuracy low-bit LLM inference|简洁且高效的后训练量化工具包. The licence is Apache-2.0.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit ae21ef9. 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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python and json).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
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.
Add Vlm Model loads about 2.4k tokens when it runs. Until then it costs about 74 tokens; SKILL.md has 564 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 intel/auto-round at commit ae21ef9, republished under its Apache-2.0 licence (© intel). 564 words, ~2,438 tokens.
.claude/skills/add-vlm-model/SKILL.md (or your agent's skills folder).This skill guides you through adding support for a new Vision-Language Model (VLM) to AutoRound. VLMs require special handling because they typically have separate vision encoder and language model components, and calibration may need multi-modal data.
The integration involves three parts:
MLLMCalibrator can build and feed calibration samplesBefore starting, determine:
model_type string from config.jsonmodel.layers, thinker.model.layers, language_model.layers)Edit auto_round/special_model_handler.py:
def _get_your_vlm_multimodal_block(model, quant_vision=False):
"""Get block names for YourVLM model.
YourVLM structure:
- model.vision_encoder.blocks: vision encoder
- model.projector.layers: vision-language projector
- model.language_model.layers: text decoder
By default, only the text decoder is quantized. Set quant_vision=True
to include vision encoder and projector blocks.
"""
block_names = []
if quant_vision:
if hasattr(model, "model") and hasattr(model.model, "vision_encoder"):
if hasattr(model.model.vision_encoder, "blocks"):
block_names.append(
[f"model.vision_encoder.blocks.{i}" for i in range(len(model.model.vision_encoder.blocks))]
)
# Add projector if it has quantizable layers
if hasattr(model, "model") and hasattr(model.model, "projector"):
if hasattr(model.model.projector, "layers"):
block_names.append([f"model.projector.layers.{i}" for i in range(len(model.model.projector.layers))])
# Language model layers (always quantized)
if hasattr(model, "model") and hasattr(model.model, "language_model"):
if hasattr(model.model.language_model, "layers"):
block_names.append(
[f"model.language_model.layers.{i}" for i in range(len(model.model.language_model.layers))]
)
return block_namesSPECIAL_MULTIMODAL_BLOCK dictFind the SPECIAL_MULTIMODAL_BLOCK dictionary (in special_model_handler.py)
and add your model:
SPECIAL_MULTIMODAL_BLOCK["your_vlm"] = _get_your_vlm_multimodal_blockThe key must match the model_type from the model's config.json.
# If your VLM supports text-only calibration (most do):
SUPPORT_ONLY_TEXT_MODELS.append("your_vlm")
# If your VLM has batch size limitations:
mllms_with_limited_bs = (
...,
"your_vlm",
)The new architecture routes multimodal calibration through:
auto_round/compressors/mllm_mixin.py for compressor construction and calibrator selectionauto_round/calibration/mllm.py for template selection, dataloader creation, and calibration forward callsauto_round/special_model_handler.py for multimodal block discovery and special forwardsIf your model works with an existing template/processor, prefer passing
template=..., processor=..., or image_processor=... directly through
AutoRound kwargs instead of adding compressor code.
The built-in MLLM template and processor registries live in
auto_round/compressors/mllm/ and are consumed by the new architecture through
MLLMCalibrator. When adding a new built-in template, keep the
new-architecture caller in mind: auto_round/calibration/mllm.py will load it
via get_template().
Create a template JSON file in auto_round/compressors/mllm/templates/:
{
"model_type": "your_vlm",
"format_user": "<|user|>\n{content}\n",
"format_assistant": "<|assistant|>\n{content}\n",
"format_system": "<|system|>\n{content}\n",
"format_observation": "",
"system": "",
"separator": "",
"stop_words": ["<|end|>"]
}Adjust the template fields to match your model's chat format. Check the model's
tokenizer_config.json or documentation for the correct chat template.
Register it in the MLLM template registry loaded by
auto_round/calibration/mllm.py:
_register_template(
"your_vlm",
default_dataset="liuhaotian/llava_conv_58k", # or appropriate dataset
processor=PROCESSORS["default"], # or a custom processor
)If your model requires special image/prompt processing for calibration, create a
processor in auto_round/compressors/mllm/processor.py, which is used by
MLLMCalibrator:
def _your_vlm_processor(raw_data, model_path, seqlen, processor=None, **kwargs):
"""Process calibration data for YourVLM.
Args:
raw_data: Dataset samples
model_path: Path to the model
seqlen: Sequence length for calibration
processor: The model's processor
Returns:
list: Processed samples ready for calibration
"""
# Build prompts with images and text
...Register it:
PROCESSORS["your_vlm"] = _your_vlm_processorIf your VLM's forward() method is non-standard (e.g., requires special
kwargs, has multiple model components that need separate handling), add a
custom forward wrapper in special_model_handler.py:
def _your_vlm_forward(model, **kwargs):
"""Custom forward pass for YourVLM during calibration."""
# Handle special input processing
# Route inputs to correct sub-models
return model.language_model(**kwargs)Register it in _handle_special_model():
def _handle_special_model(model):
...
if hasattr(model, "config") and model.config.model_type == "your_vlm":
from functools import partial
model.forward = partial(_your_vlm_forward, model)
return modelIf your model needs a specialized calibration dataset loader, create one in
auto_round/calib_dataset.py using the @register_dataset decorator:
@register_dataset("your_vlm_dataset")
class YourVLMDataset:
def __init__(self, dataset_name, model_path, seqlen, **kwargs): ...
def __len__(self):
return len(self.data)
def __iter__(self):
for sample in self.data:
yield sampledef test_your_vlm_quantization():
model_name = "your-org/your-vlm-small"
ar = AutoRound(
model_name,
bits=4,
group_size=128,
iters=2,
nsamples=2,
quant_nontext_module=False, # text-only quantization
)
compressed_model, _ = ar.quantize()
ar.save_quantized(output_dir="./tmp_your_vlm", format="auto_round")Test with vision quantization:
ar = AutoRound(
model_name,
bits=4,
group_size=128,
quant_nontext_module=True, # also quantize vision encoder
)README.mdREADME_CN.md with the same changes (Chinese translation required)| Model Type | Block Handler | Template | Special Forward |
|---|---|---|---|
llava | _get_llava_multimodal_block | llava template | No |
qwen2_vl | _get_qwen2_vl_multimodal_block | qwen2_vl template | No |
qwen2_5_omni | _get_qwen2_5_omni_multimodal_block | qwen2_5_omni template | Yes (_qwen2_5_omni_forward) |
qwen3_omni_moe | _get_qwen3_omni_moe_multimodal_block | qwen3_omni_moe template | Yes (_qwen3_omni_moe_forward) |
deepseek_vl_v2 | _get_deepseek_vl2_multimodal_block | deepseek_vl_v2 template | Yes (_deepseek_vl2_forward) |
glm_image | _get_glm_image_multimodal_block | glm_image template | No |
phi3_v | via generic handler | phi3_v template | No |
| What | Where | Mechanism |
|---|---|---|
| Block handler | special_model_handler.py | SPECIAL_MULTIMODAL_BLOCK[model_type] |
| Text-only support | special_model_handler.py | SUPPORT_ONLY_TEXT_MODELS list |
| Batch limit | special_model_handler.py | mllms_with_limited_bs tuple |
| MLLM routing | compressors/mllm_mixin.py | _get_calibrator_kind() -> "mllm" |
| MLLM calibration | calibration/mllm.py | MLLMCalibrator.calib() |
| Template | compressors/mllm/template.py | _register_template() |
| Processor | compressors/mllm/processor.py | PROCESSORS dict |
| Custom forward | special_model_handler.py | _handle_special_model() |
| Dataset loader | calib_dataset.py | @register_dataset() |
© intel, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/add-vlm-model of intel/auto-round.
Open the folder on GitHubat commit ae21ef9
Add Vlm Model 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 |
|---|---|---|---|---|---|---|
| Add Vlm Model this skillintel/auto-round | 1.6k | — | ~2.4k | Automated safety check: Pass | Apache-2.0 | |
| Quark Onnx Ptq Workflowamd/Quark | 181 | — | ~4.5k | Automated safety check: Pass | MIT | |
| Astreawarpfront/hipfire | 653 | — | ~2.6k | Automated safety check: Pass | Custom licence | |
| Visiongridaco/grida | 2.7k | — | ~1.5k | Automated safety check: Pass | Apache-2.0 | |
| Robot Perceptionarpitg1304/robotics-agent-skills | 368 | — | ~15k | Automated safety check: Pass | Apache-2.0 | |
| Quark Onnx Autosearch Proamd/Quark | 181 | — | ~3.4k | Automated safety check: Pass | MIT |
amd/Quark
End-to-end ONNX PTQ workflow for AMD Quark — from a .onnx file (and calibration data) to a quantized .onnx output.
warpfront/hipfire
A skill your agent uses for hipfire quant calibration, imatrix-driven experiments, KLD/PPL quality evaluation, k-map/format selection, MQ/HFQ/HFP/MFP tradeoff work, ParoQuant-style weight transform…
gridaco/grida
Query images with a local Ollama vision model without loading the image into the main agent context.
arpitg1304/robotics-agent-skills
Comprehensive best practices for robot perception systems covering cameras, LiDARs, depth sensors, IMUs, and multi-sensor setups.
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…
NVIDIA/skills
RT-DETR (Real-Time DEtection TRansformer) for 2D object detection.
intel/auto-round
Adapt AutoRound to support a new diffusion model architecture (DiT, UNet, hybrid AR+DiT).
intel/auto-round
Adapt AutoRound to support a new LLM architecture that doesn't work out-of-the-box.
intel/auto-round
Add a new model export format to AutoRound (e.g., autoround, autogptq, autoawq, gguf, llmcompressor).
intel/auto-round
Add a new hardware inference backend to AutoRound for deploying quantized models (e.g., CUDA/Marlin, Triton, CPU, HPU, ARK).
intel/auto-round
Add a new quantization data type to AutoRound (e.g., INT, FP8, MXFP, NVFP, GGUF variants).
intel/auto-round
Review or prepare a pull request for the AutoRound repository — checks registration points for new data types/backends/VLMs, validates Chinese translation parity for modified markdown files…
Categories
Add support for a new Vision-Language Model (VLM) to AutoRound, including multimodal block handler, calibration dataset template, and special model handling. Add Vlm Model is an agent skill from intel/auto-round, published by the product's own GitHub organization. Add support for a new Vision-Language Model (VLM) to AutoRound, including multimodal block handler, calibration dataset template, and special model handling.
Add Vlm Model fits situations like: integrating a new VLM like LLaVA; similar multi-modal models for quantization.
Run `npx skills add intel/auto-round --skill add-vlm-model -a claude-code`. Or copy the skill folder (.claude/skills/add-vlm-model in intel/auto-round) into .claude/skills/add-vlm-model in your project. Claude Code loads it when a task matches its description.
Run `npx skills add intel/auto-round --skill add-vlm-model -a codex`. Or copy the skill folder (.claude/skills/add-vlm-model in intel/auto-round) into .agents/skills/add-vlm-model 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 intel/auto-round --skill add-vlm-model -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-vlm-model, .gemini/skills/add-vlm-model, .github/skills/add-vlm-model and .opencode/skills/add-vlm-model in your project.
SKILL.md names no scripts, command-line tools or credentials: Add Vlm Model is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. 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.
Add Vlm Model is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.4k tokens (SKILL.md is roughly 9.8k 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 Add Vlm Model: Quark Onnx Ptq Workflow (amd/Quark, 181 stars), Astrea (warpfront/hipfire, 653 stars), Vision (gridaco/grida, 2.7k stars) and Robot Perception (arpitg1304/robotics-agent-skills, 368 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
intel (a GitHub organization, an official publisher) maintains it in intel/auto-round, which has 1,628 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 8, 2026.
Source: intel/auto-round on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.