🧩

gptqmodel-audit-and-review

gptqmodel-audit-and-review · v
作者 ModelCloud 公开目录收录

简介

Audit GPT-QModel quantization pipeline and math, packing, and inference kernel accuracy. File verified findings as they emerge and review fixes in the context of upstream owners and downstream consumers.

通过你的 Agent 添加

安装目录:gptqmodel-audit-and-review/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/gptqmodel-audit-and-review/
Codex CLI~/.codex/skills/gptqmodel-audit-and-review/
DeepSeek Harness~/.agents/skills/gptqmodel-audit-and-review/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


SPDX-FileCopyrightText: 2026 ModelCloud.ai

SPDX-License-Identifier: Apache-2.0

name: gptqmodel-audit-and-review description: Audit GPT-QModel quantization pipeline and math, packing, and inference kernel accuracy. File verified findings as they emerge and review fixes in the context of upstream owners and downstream consumers.

GPT-QModel audits and reviews

Contracts first. Read and honour contracts/ before acting. In particular, read the kernel forward dtype contract: one activation dtype per module, and output dtype equals input dtype. A different dtype on a later call is a bug. Contracts outrank this skill.

Audit the full path

Start from the public entry points. Follow values and metadata across Python and native code, and inspect the contracts where stages hand off to each other. Prioritize these paths in a repository-wide correctness audit:

Area What to check
Quantization pipeline and math Trace calibration inputs, capture and replay, quantizer updates, and scales, zero points, and codes. Check agreement with the method's math and precision contract.
Packing and checkpoints Trace layout, bit order, padding, dtypes, and metadata from pack and save through load and the kernel's first use. Check the round trip, including supported legacy checkpoints.
Inference kernel accuracy Trace backend selection, unpacking or dequantization, accumulation, and the output epilogue. Exercise the actual native path and relevant fallbacks, shapes, dtypes, and device families.

Use the Torch oracle skill for independent numerical references, tolerance and tie rules, and target-device evidence. State which paths were exercised and what remains unverified.

File findings as they are verified

Open a new GitHub issue in ModelCloud/GPTQModel for each distinct defect as soon as there is enough evidence to establish it. Check briefly for an existing report of the same defect and link it if one exists. Continue the audit after filing each issue. Add further reproduction or fix evidence to the issue as it becomes available.

For a dependency-owned defect, also file or link the upstream issue and link the fix PR when available. Use the upstream ownership guide to route the fix. Keep the GPT-QModel issue focused on its downstream impact.

Include the audited commit, the affected code and entry point, the trigger, the expected and observed behavior, and the user impact. For numerical bugs, include relevant backend, device architecture, format, dtype, and shape, plus the measured error and reference where available. Include a minimal runnable reproduction in a fenced code block when applicable. When the likely fix is clear, name the owning code and include a fenced code or diff snippet where applicable. Label proposed changes and any untested configurations. File a verified defect promptly even if an optional snippet is still being prepared.

When reviewing a PR, also post findings relevant to the diff in the review and link any corresponding repository issues.

Review the root cause and its consumers

  • Trace the violated invariant back to the code that owns it. Search for callers, sibling implementations, and shared helpers outside the diff before proposing a fix. A bad output can originate in an earlier stage.
  • Choose the smallest coherent fix at the owning layer. Reuse an existing contract or implementation where it fits and avoid duplicating conversions, guards, or state across consumers. Check the scope of a shared fix before applying it to other backends.
  • Identify which callers rely on current behavior and test the next consumer through a normal entry point. Check applicable native and fallback paths, existing checkpoints, model variants, and eager or compiled execution. Follow the regression-test skill for red/green evidence and a control case that preserves valid behavior.

正文来自原始仓库, 版权归作者所有,许可:Apache-2.0。 权利人认为有不妥,可申请下架。

原始仓库

作者的项目地址:https://github.com/ModelCloud/GPTQModel

标签

没有标签

同类 Skill