Qwen Mtp Gguf
R6410418/Jackrong-llm-finetuning-guide
Complete agent-ready workflow for Qwen-family MTP or nextn GGUF conversion and release.
Add a new quantization data type to AutoRound (e.g., INT, FP8, MXFP, NVFP, GGUF variants).
$ npx skills add intel/auto-round --skill add-quantization-datatype -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install intel/auto-round add-quantization-datatype --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-quantization-datatype .claude/skills/add-quantization-datatype && 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-quantization-datatype" agent skill from https://github.com/intel/auto-round/tree/main/.claude/skills/add-quantization-datatype into .claude/skills/add-quantization-datatype/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-quantization-datatype", 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-quantization-datatypeType 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-quantization-datatype -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install intel/auto-round add-quantization-datatype --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-quantization-datatype .agents/skills/add-quantization-datatype && 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-quantization-datatype" agent skill from https://github.com/intel/auto-round/tree/main/.claude/skills/add-quantization-datatype into .agents/skills/add-quantization-datatype/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-quantization-datatype", 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-quantization-datatype -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install intel/auto-round add-quantization-datatype --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-quantization-datatype .cursor/skills/add-quantization-datatype && 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-quantization-datatype" agent skill from https://github.com/intel/auto-round/tree/main/.claude/skills/add-quantization-datatype into .cursor/skills/add-quantization-datatype/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-quantization-datatype", 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-quantization-datatype--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-quantization-datatype -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install intel/auto-round add-quantization-datatype --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-quantization-datatype .gemini/skills/add-quantization-datatype && 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-quantization-datatype" agent skill from https://github.com/intel/auto-round/tree/main/.claude/skills/add-quantization-datatype into .gemini/skills/add-quantization-datatype/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-quantization-datatype", 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-quantization-datatypeInstalls 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-quantization-datatype -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-quantization-datatype .github/skills/add-quantization-datatype && 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-quantization-datatype" agent skill from https://github.com/intel/auto-round/tree/main/.claude/skills/add-quantization-datatype into .github/skills/add-quantization-datatype/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-quantization-datatype", 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-quantization-datatype -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-quantization-datatype --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-quantization-datatype .opencode/skills/add-quantization-datatype && 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-quantization-datatype" agent skill from https://github.com/intel/auto-round/tree/main/.claude/skills/add-quantization-datatype into .opencode/skills/add-quantization-datatype/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-quantization-datatype", 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-quantization-datatypeAdd a new quantization data type to AutoRound (e.g., INT, FP8, MXFP, NVFP, GGUF variants).
Add Quantization Datatype is an agent skill from intel/auto-round, published by the product's own GitHub organization. Add a new quantization data type to AutoRound (e.g., INT, FP8, MXFP, NVFP, GGUF variants). Use when implementing a new weight/activation quantization scheme, registering a new quant function, or extending the datatype registry.
Its SKILL.md is about 1.5k 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 llama.cpp. 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.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 6afaecd. 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).
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 Quantization Datatype loads about 1.5k tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 306 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 6afaecd, republished under its Apache-2.0 licence (© intel). 306 words, ~1,486 tokens.
.claude/skills/add-quantization-datatype/SKILL.md (or your agent's skills folder).This skill guides you through adding a new quantization data type to AutoRound. A data type defines how tensors are quantized and dequantized (e.g., INT symmetric, FP8 per-block, MXFP4). Each data type is registered via a decorator and plugged into the quantization loop automatically.
Before starting, determine:
Create a new file at auto_round/data_type/your_dtype.py.
The quantization function must follow this contract:
from auto_round.data_type.register import register_dtype
from auto_round.data_type.utils import reshape_pad_tensor_by_group_size, revert_tensor_by_pad
@register_dtype("your_dtype_name")
def quant_tensor_your_dtype(
tensor,
bits=4,
group_size=128,
v=0,
min_scale=0,
max_scale=0,
scale_dtype=torch.float16,
q_scale_thresh=0,
weight_fp8_max_scale=0,
imatrix=None,
**kwargs
):
"""Quantize a tensor using your data type.
Args:
tensor: The weight tensor to quantize (2D: [out_features, in_features])
bits: Number of quantization bits
group_size: Number of elements per quantization group
v: Learnable perturbation tensor (for SignSGD optimization, same shape as tensor)
min_scale: Minimum scale clipping value
max_scale: Maximum scale clipping value
scale_dtype: Data type for quantization scales
q_scale_thresh: Threshold for scale quantization
weight_fp8_max_scale: Max scale for FP8 weight quantization
imatrix: Importance matrix for weighted quantization (optional)
**kwargs: Additional parameters
Returns:
tuple: (qdq_tensor, scale, zp)
- qdq_tensor: Quantized-then-dequantized tensor (same shape as input)
- scale: Quantization scale tensor
- zp: Zero-point tensor (or maxq for symmetric)
"""
# 1. Apply perturbation
tensor = tensor + v
# 2. Reshape by group_size
orig_shape = tensor.shape
tensor, orig_out_features = reshape_pad_tensor_by_group_size(tensor, group_size)
# 3. Compute scale and zero-point
# ... your quantization logic here ...
# 4. Quantize and dequantize (Straight-Through Estimator for gradients)
from auto_round.data_type.utils import round_ste
tensor_q = round_ste(tensor / scale) + zp # or your rounding logic
qdq_tensor = (tensor_q - zp) * scale
# 5. Revert padding
qdq_tensor = revert_tensor_by_pad(qdq_tensor, orig_out_features, orig_shape)
return qdq_tensor, scale, zpauto_round/data_type/utils.pyreshape_pad_tensor_by_group_size(tensor, group_size) — Reshape tensor into
groups, padding if neededrevert_tensor_by_pad(tensor, orig_out_features, orig_shape) — Undo padding
and restore original shaperound_ste(x) — Round with Straight-Through Estimator (gradient passthrough)get_quant_func(data_type, bits) — Look up registered quant functionIf your data type has variants, register them all:
@register_dtype(["your_dtype", "your_dtype_v2"])
def quant_tensor_your_dtype(tensor, bits=4, group_size=128, v=0, **kwargs):
variant = kwargs.get("data_type", "your_dtype")
# Branch logic based on variant
...__init__.pyAdd your import to auto_round/data_type/__init__.py:
import auto_round.data_type.your_dtypeThis triggers the @register_dtype decorator, populating QUANT_FUNC_WITH_DTYPE.
If your data type corresponds to a named scheme (e.g., "W4A16", "MXFP4"), add
it to auto_round/schemes.py:
YOUR_SCHEME = QuantizationScheme(
bits=4,
group_size=32,
sym=True,
data_type="your_dtype",
)
PRESET_SCHEMES["YOUR_SCHEME"] = YOUR_SCHEMEIf your data type needs specific export handling, update the relevant export
format's support_schemes list in the corresponding OutputFormat subclass
under auto_round/export/.
Create tests in the appropriate test directory (e.g., test/test_cuda/ or
test/test_cpu/):
def test_your_dtype_quantization(tiny_opt_model_path, dataloader):
ar = AutoRound(
tiny_opt_model_path,
bits=4,
group_size=128,
data_type="your_dtype",
dataset=dataloader,
iters=2,
nsamples=2,
)
compressed_model, _ = ar.quantize()
# Verify model produces valid outputs| File | Data Types | Key Patterns |
|---|---|---|
auto_round/data_type/int.py | int (sym/asym) | Basic INT quantization with min/max scaling |
auto_round/data_type/fp8.py | fp8_e4m3fn, fp8_e5m2, fp8_dynamic, fp8_block | Per-tensor/block FP8 with amax-based scaling |
auto_round/data_type/mxfp.py | mx_fp, mx_fp_rceil | Microscaling with shared exponent |
auto_round/data_type/nvfp.py | nv_fp, nv_fp4 | NVIDIA FP4 with static group scale |
auto_round/data_type/w4fp8.py | w4fp8 | Hybrid INT4 weight + FP8 activation |
auto_round/data_type/gguf.py | GGUF Q2_K through Q8_0 | Super-block quantization with multiple sub-types |
© 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-quantization-datatype of intel/auto-round.
Open the folder on GitHubat commit 6afaecd
Add Quantization Datatype 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 Quantization Datatype this skillintel/auto-round | 1.6k | — | ~1.5k | Automated safety check: Pass | Apache-2.0 | |
| Qwen Mtp GgufR6410418/Jackrong-llm-finetuning-guide | 1.7k | — | ~1.7k | Automated safety check: Pass | MIT | |
| Hugging Face Local Modelshuggingface/skills | 11k | 3 repos | ~945 | Automated safety check: Pass | Apache-2.0 | |
| Hf Quant And Layer Package JobsMesh-LLM/mesh-llm | 3.5k | — | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| Llama Patch ChangesMesh-LLM/mesh-llm | 3.5k | — | ~1.9k | Automated safety check: Pass | Apache-2.0 | |
| Skippy Spec BenchMesh-LLM/mesh-llm | 3.5k | — | ~260 | Automated safety check: Pass | Apache-2.0 |
R6410418/Jackrong-llm-finetuning-guide
Complete agent-ready workflow for Qwen-family MTP or nextn GGUF conversion and release.
huggingface/skills
Finds llama.cpp-compatible GGUF models on the Hugging Face Hub, picks a quantization for your hardware and launches them with llama-cli or llama-server.
Mesh-LLM/mesh-llm
A skill your agent uses when running quantization of a BF16/FP16 GGUF repo and Skippy layer-package creation as one local or Hugging Face Jobs workflow, publishing both artifacts to Hugging Face.
Mesh-LLM/mesh-llm
A skill your agent uses when changing mesh-llm's llama.cpp patch queue, upstream pin, prepare/build scripts, or carried RPC, MoE, and mesh-hook llama.cpp patches.
Mesh-LLM/mesh-llm
A skill your agent uses when testing or benchmarking target/draft GGUF pairs for speculative decoding compatibility, tokenizer agreement, draft acceptance rate, or staged verification behavior.
wshobson/agents
Export a promoted fine-tuned model in the right deployment format — merged safetensors, LoRA-only, GGUF with imatrix, or FP8.
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 support for a new Vision-Language Model (VLM) to AutoRound, including multimodal block handler, calibration dataset template, and special model handling.
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…
Works with
Categories
Add a new quantization data type to AutoRound (e.g., INT, FP8, MXFP, NVFP, GGUF variants). Add Quantization Datatype is an agent skill from intel/auto-round, published by the product's own GitHub organization., INT, FP8, MXFP, NVFP, GGUF variants).
Add Quantization Datatype fits situations like: implementing a new weight/activation quantization scheme; registering a new quant function; extending the datatype registry.
Run `npx skills add intel/auto-round --skill add-quantization-datatype -a claude-code`. Or copy the skill folder (.claude/skills/add-quantization-datatype in intel/auto-round) into .claude/skills/add-quantization-datatype in your project. Claude Code loads it when a task matches its description.
Run `npx skills add intel/auto-round --skill add-quantization-datatype -a codex`. Or copy the skill folder (.claude/skills/add-quantization-datatype in intel/auto-round) into .agents/skills/add-quantization-datatype 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-quantization-datatype -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-quantization-datatype, .gemini/skills/add-quantization-datatype, .github/skills/add-quantization-datatype and .opencode/skills/add-quantization-datatype in your project.
SKILL.md names no scripts, command-line tools or credentials: Add Quantization Datatype 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 Quantization Datatype 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 1.5k tokens (SKILL.md is roughly 5.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 Add Quantization Datatype: Qwen Mtp Gguf (R6410418/Jackrong-llm-finetuning-guide, 1.7k stars), Hugging Face Local Models (huggingface/skills, 11k stars), Hf Quant And Layer Package Jobs (Mesh-LLM/mesh-llm, 3.5k stars) and Llama Patch Changes (Mesh-LLM/mesh-llm, 3.5k 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 5, 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.