Add Model
guoqingbao/xinfer
Adapt and port new LLM model architectures to this xinfer project.
Inspect a target model and prepare metadata for Quark PTQ planning.
$ npx skills add amd/Quark --skill quark-torch-model-intake -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install amd/Quark quark-torch-model-intake --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/.claude/skills-impl/l1-atomic/torch/quark-torch-model-intake .claude/skills/quark-torch-model-intake && 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-torch-model-intake" agent skill from https://github.com/amd/Quark/tree/release%2F0.13/.claude/skills-impl/l1-atomic/torch/quark-torch-model-intake into .claude/skills/quark-torch-model-intake/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "quark-torch-model-intake", 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/.claude/skills-impl/l1-atomic/torch/quark-torch-model-intakeType 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-torch-model-intake -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install amd/Quark quark-torch-model-intake --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/.claude/skills-impl/l1-atomic/torch/quark-torch-model-intake .agents/skills/quark-torch-model-intake && 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-torch-model-intake" agent skill from https://github.com/amd/Quark/tree/release%2F0.13/.claude/skills-impl/l1-atomic/torch/quark-torch-model-intake into .agents/skills/quark-torch-model-intake/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "quark-torch-model-intake", 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-torch-model-intake -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install amd/Quark quark-torch-model-intake --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/.claude/skills-impl/l1-atomic/torch/quark-torch-model-intake .cursor/skills/quark-torch-model-intake && 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-torch-model-intake" agent skill from https://github.com/amd/Quark/tree/release%2F0.13/.claude/skills-impl/l1-atomic/torch/quark-torch-model-intake into .cursor/skills/quark-torch-model-intake/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "quark-torch-model-intake", 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 .claude/skills-impl/l1-atomic/torch/quark-torch-model-intake--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-torch-model-intake -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install amd/Quark quark-torch-model-intake --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/.claude/skills-impl/l1-atomic/torch/quark-torch-model-intake .gemini/skills/quark-torch-model-intake && 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-torch-model-intake" agent skill from https://github.com/amd/Quark/tree/release%2F0.13/.claude/skills-impl/l1-atomic/torch/quark-torch-model-intake into .gemini/skills/quark-torch-model-intake/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "quark-torch-model-intake", 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-torch-model-intakeInstalls 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-torch-model-intake -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/.claude/skills-impl/l1-atomic/torch/quark-torch-model-intake .github/skills/quark-torch-model-intake && 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-torch-model-intake" agent skill from https://github.com/amd/Quark/tree/release%2F0.13/.claude/skills-impl/l1-atomic/torch/quark-torch-model-intake into .github/skills/quark-torch-model-intake/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "quark-torch-model-intake", 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-torch-model-intake -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-torch-model-intake --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/.claude/skills-impl/l1-atomic/torch/quark-torch-model-intake .opencode/skills/quark-torch-model-intake && 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-torch-model-intake" agent skill from https://github.com/amd/Quark/tree/release%2F0.13/.claude/skills-impl/l1-atomic/torch/quark-torch-model-intake into .opencode/skills/quark-torch-model-intake/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "quark-torch-model-intake", 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-torch-model-intakeInspect a target model and prepare metadata for Quark PTQ planning.
Quark Torch Model Intake is an agent skill from amd/Quark. Inspect a target model and prepare metadata for Quark PTQ planning. Use when the user needs model path validation, architecture detection, quantization target discovery, layer counting, risk assessment, or transformer compatibility checks before planning PTQ. Trigger for "analyze my model", "check this model", "what architecture is this", "can Quark quantize X", "is this model supported", or when any quantization step needs model facts that are missing.
Its SKILL.md is about 2k 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. It works with Qwen and DeepSeek. The licence is MIT.
5 steps, taken from the first numbered list 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.
Shell commands in SKILL.md call:
python3From 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.
Quark Torch Model Intake loads about 2k tokens when it runs. Until then it costs about 121 tokens; SKILL.md has 605 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). 605 words, ~1,976 tokens.
.claude/skills/quark-torch-model-intake/SKILL.md (or your agent's skills folder).Validate the target model and extract the structural facts that quark-torch-quant-plan needs to make correct quantization decisions. This step exists because different model architectures have different quantization requirements — MoE models need expert module replacement, some models require trust_remote_code, and certain architectures have known compatibility issues with specific transformers versions.
env_context.json for Python and accelerator constraintsworkspace_context.json for the validated model pathCaptures architecture facts, quantizable layer count, transformer compatibility, and risks.
Schema: model_analysis.schema.json
{
"analysis_status": "complete",
"model": {
"model_path": "Qwen/Qwen3-8B",
"model_type": "qwen3",
"trust_remote_code": false,
"transformers_version_required": ">=4.48.0,<5.3",
"loading_class": "AutoModelForCausalLM",
"is_moe": false,
"num_hidden_layers": 36,
"hidden_size": 4096,
"estimated_size_gb": 16.0
},
"quantization_targets": {
"linear_layer_count": 224,
"has_non_linear_experts": false,
"exclude_defaults": ["lm_head"],
"needs_moe_preparation": false
},
"risks": [
{
"severity": "low",
"message": "Model size fits in single GPU with 24GB+ VRAM for FP8/INT8 schemes.",
"recovery_hint": "Use --multi_gpu for INT4 with large calibration datasets if OOM occurs."
}
]
}Quark has built-in templates for 36 model families:
| Category | Models |
|---|---|
| Standard LLMs | llama, mistral, opt, phi, phi3, qwen, qwen2, gptj, cohere, olmo |
| Advanced LLMs | qwen3, qwen3_next, deepseek, deepseek_v2, deepseek_v3, deepseek_v32 |
| MoE Models | mixtral, dbrx, llama4, qwen2_moe, qwen3_moe, qwen3_5_moe, gpt_oss, granitemoehybrid, glm4_moe |
| Vision-Language | mllama, deepseek_vl_v2, qwen3_vl_moe |
| Other | chatglm, gemma2, gemma3, gemma3_text, grok-1, instella, kimi_k25, minimax_m2 |
Models not in this list may still work if they follow standard HuggingFace AutoModelForCausalLM patterns, but need extra attention.
model_type — must match a Quark template name (e.g., "llama", "qwen3", "mistral")num_hidden_layers — determines the number of quantizable linear layershidden_size, intermediate_size — affects memory estimatesnum_attention_heads, num_key_value_heads — relevant for KV cache quantizationnum_experts for MoE models)lm_head is almost always excludedprepare_for_moe_quant()Some models require specific minimum transformers versions:
llama4 → transformers >= 4.51.0gpt_oss, granitemoehybrid → transformers >= 4.55.1qwen3_vl_moe → transformers >= 4.57.0qwen3_5_moe → transformers >= 5.2.0transformers < 5.3deepseek_vl_v2 → uses AutoModel instead of AutoModelForCausalLMmllama → uses MllamaForConditionalGenerationgpt_oss → needs Mxfp4Config(dequantize=True) for loadingtrust_remote_code=TrueFlag anything that could cause failures downstream:
--multi_gpu or --file2file_quantizationpython3 -c "
from transformers import AutoConfig
import json
config = AutoConfig.from_pretrained('<MODEL_PATH>', trust_remote_code=True)
info = {
'model_type': config.model_type,
'num_hidden_layers': config.num_hidden_layers,
'hidden_size': config.hidden_size,
'intermediate_size': getattr(config, 'intermediate_size', None),
'num_attention_heads': config.num_attention_heads,
'num_key_value_heads': getattr(config, 'num_key_value_heads', None),
'vocab_size': config.vocab_size,
'num_experts': getattr(config, 'num_local_experts', getattr(config, 'num_experts', None)),
'torch_dtype': str(getattr(config, 'torch_dtype', 'unknown')),
}
print(json.dumps(info, indent=2))
"du -sh /path/to/model/
ls -lh /path/to/model/*.safetensorsAfter running the above, format the results as:
Model Analysis:
Model path: <path or HuggingFace ID>
Model type: <model_type from config>
Hidden layers: <num_hidden_layers>
Linear layers: ~<estimated count>
MoE: Yes/No
Exclude defaults: [lm_head]
Risks: <list or "None">
Compatibility: OK / <version constraints>This table is what the user sees at Checkpoint 1 of quark-torch-llm-ptq-workflow.
quark-workspace-validate first to confirm that model paths are valid before attempting to read config.json.config.json and listing files is enough — loading weights is expensive and belongs to the quantization step.model_analysis.json under risks and asking quark-torch-router to add them to session_context.json's open_questions. Do not write directly to env_context.json.quark-workspace-validate already confirmed the path.config.json. Present a summary table to the user.model_analysis.json. Surface any new constraints back to quark-torch-router so they land in session_context.json.analysis_status: "partial" — some facts were extracted but the model could not be fully inspected. Common cause: model needs trust_remote_code=True but the user has not approved it.LLMTemplate.register_template() in quantize_quark.py).© amd, MIT. 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-impl/l1-atomic/torch/quark-torch-model-intake of amd/Quark.
Open the folder on GitHubat commit 313cb0b
Quark Torch Model Intake 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 Torch Model Intake this skillamd/Quark | 181 | — | ~2k | Automated safety check: Pass | MIT | |
| Add Modelguoqingbao/xinfer | 333 | — | ~4.2k | Automated safety check: Notes | MIT | |
| Serving LLMs On Instinctamd/skills | 398 | — | ~4k | Automated safety check: Notes | MIT | |
| Miles Rl TrainingOrchestra-Research/AI-Research-SKILLs | 13k | 3 repos | ~2.2k | Automated safety check: Pass | MIT | |
| LLM Pipeline Profiler AnalysisBBuf/AI-Infra-Auto-Driven-SKILLS | 911 | — | ~3.9k | Automated safety check: Pass | None | |
| Update Ollama Cloud Modelsheypinchy/pinchy | 182 | — | ~3.9k | Automated safety check: Notes | AGPL-3.0 |
guoqingbao/xinfer
Adapt and port new LLM model architectures to this xinfer project.
amd/skills
Serves AI models on AMD Instinct GPU hardware using vLLM. An agent skill from amd/skills.
Orchestra-Research/AI-Research-SKILLs
Provides guidance for enterprise-grade RL training using miles, a production-ready fork of slime.
BBuf/AI-Infra-Auto-Driven-SKILLS
Breaks LLM torch profiler traces down by forward pass, layer and kernel, with timing tables and Perfetto time ranges for the layers you want to inspect.
heypinchy/pinchy
A skill your agent uses when a new Ollama Cloud model is announced or available (e.g.
ascend-ai-coding/awesome-ascend-skills
vLLM Ascend plugin for LLM inference serving on Huawei Ascend NPU.
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…
Categories
Inspect a target model and prepare metadata for Quark PTQ planning. Quark Torch Model Intake is an agent skill from amd/Quark. Inspect a target model and prepare metadata for Quark PTQ planning.
Quark Torch Model Intake fits situations like: the user needs model path validation; architecture detection; quantization target discovery; risk assessment.
Run `npx skills add amd/Quark --skill quark-torch-model-intake -a claude-code`. Or copy the skill folder (.claude/skills-impl/l1-atomic/torch/quark-torch-model-intake in amd/Quark) into .claude/skills/quark-torch-model-intake in your project. Claude Code loads it when a task matches its description.
Run `npx skills add amd/Quark --skill quark-torch-model-intake -a codex`. Or copy the skill folder (.claude/skills-impl/l1-atomic/torch/quark-torch-model-intake in amd/Quark) into .agents/skills/quark-torch-model-intake 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-torch-model-intake -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-torch-model-intake, .gemini/skills/quark-torch-model-intake, .github/skills/quark-torch-model-intake and .opencode/skills/quark-torch-model-intake in your project.
Going by SKILL.md and its folder, Quark Torch Model Intake needs the command-line tools its instructions call (python3). 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.
Quark Torch Model Intake is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2k tokens (SKILL.md is roughly 7.9k 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 Torch Model Intake: Add Model (guoqingbao/xinfer, 333 stars), Serving LLMs On Instinct (amd/skills, 398 stars), Miles Rl Training (Orchestra-Research/AI-Research-SKILLs, 13k stars) and LLM Pipeline Profiler Analysis (BBuf/AI-Infra-Auto-Driven-SKILLS, 911 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 181 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.